1
This commit is contained in:
parent
8f761d02de
commit
912de74254
@ -409,12 +409,14 @@ public class PsContractInfoServiceImpl implements IPsContractInfoService {
|
|||||||
log.info("托管服务");
|
log.info("托管服务");
|
||||||
}
|
}
|
||||||
QueryWrapper<PsContractInfo> lqw = buildQueryWrapper(bo);
|
QueryWrapper<PsContractInfo> lqw = buildQueryWrapper(bo);
|
||||||
|
if (bo.getAllReturn() != null){
|
||||||
String sql = "IFNULL((select sum(money) from ps_contract_pay where pay_status = 1 and business_type = 1 and contract_code = info.contract_code),0) - IFNULL((select sum(money) from ps_contract_pay where pay_status = 1 and business_type = 2 and contract_code = info.contract_code),0)";
|
String sql = "IFNULL((select sum(money) from ps_contract_pay where pay_status = 1 and business_type = 1 and contract_code = info.contract_code),0) - IFNULL((select sum(money) from ps_contract_pay where pay_status = 1 and business_type = 2 and contract_code = info.contract_code),0)";
|
||||||
if (bo.getAllReturn() == 1){
|
if (bo.getAllReturn() == 1){
|
||||||
lqw.apply("info.contract_amount <= " + sql);
|
lqw.apply("info.contract_amount <= " + sql);
|
||||||
} else if (bo.getAllReturn() == 0) {
|
} else if (bo.getAllReturn() == 0) {
|
||||||
lqw.apply("info.contract_amount > " + sql);
|
lqw.apply("info.contract_amount > " + sql);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Page<PsContractInfoVo> result = baseMapper.selectPageContractList(pageQuery.build(), lqw);
|
Page<PsContractInfoVo> result = baseMapper.selectPageContractList(pageQuery.build(), lqw);
|
||||||
if(CollectionUtils.isEmpty(result.getRecords())){
|
if(CollectionUtils.isEmpty(result.getRecords())){
|
||||||
|
Loading…
Reference in New Issue
Block a user