|
|
|
@ -15,6 +15,7 @@ import com.bnyer.img.service.CreatorProfitService; |
|
|
|
import com.bnyer.img.service.TiktokImgService; |
|
|
|
import com.bnyer.img.vo.*; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -286,4 +287,20 @@ public class CreatorProfitServiceImpl implements CreatorProfitService { |
|
|
|
public List<ConfirmProfitVo> queryConfirmList() { |
|
|
|
return creatorProfitMapper.queryConfirmList(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<CreatorProfit> queryProfitByCreatorId(Long creatorId) { |
|
|
|
LambdaQueryWrapper<CreatorProfit> wrapper = new LambdaQueryWrapper<>(); |
|
|
|
wrapper.eq(CreatorProfit::getCreatorId,creatorId); |
|
|
|
wrapper.eq(CreatorProfit::getStatus, "1"); |
|
|
|
wrapper.eq(CreatorProfit::getConfirmStatus, "1"); |
|
|
|
wrapper.notIn(CreatorProfit::getType,"2"); |
|
|
|
return creatorProfitMapper.selectList(wrapper); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public int batchUpdate(List<Long> list) { |
|
|
|
return creatorProfitMapper.batchUpdateTransInfo(list); |
|
|
|
} |
|
|
|
} |
|
|
|
|