模糊查询替换%
This commit is contained in:
+12
@@ -103,6 +103,15 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
|
||||
if(Objects.equals(chargeStatus,PayIncomeContractCommon.CHARGE_STATUS0)){
|
||||
chargeStatus = "";
|
||||
}
|
||||
if(!StringUtils.isBlank(payIncomeContract.getContractNum())){
|
||||
payIncomeContract.setContractNum(oConvertUtils.replaceAllPercent(payIncomeContract.getContractNum()));
|
||||
}
|
||||
if(!StringUtils.isBlank(payIncomeContract.getContractName())){
|
||||
payIncomeContract.setContractName(oConvertUtils.replaceAllPercent(payIncomeContract.getContractName()));
|
||||
}
|
||||
if(!StringUtils.isBlank(projectName)){
|
||||
projectName = oConvertUtils.replaceAllPercent(projectName);
|
||||
}
|
||||
Page<PayIncomeContract> page = new Page<>(pageNo, pageSize);
|
||||
IPage<PayIncomeContract> pageList = payIncomeContractService.queryPageList(page, payIncomeContract,chargeStatus,projectName,startTime,endTime);
|
||||
return Result.OK(pageList);
|
||||
@@ -126,6 +135,9 @@ public class PayIncomeContractController extends JeroController<PayIncomeContrac
|
||||
if(Objects.isNull(sysUser)){
|
||||
return Result.error("没有查到用户信息!");
|
||||
}
|
||||
if(!StringUtils.isBlank(payIncomeContract.getContractName())){
|
||||
payIncomeContract.setContractName(oConvertUtils.replaceAllPercent(payIncomeContract.getContractName()));
|
||||
}
|
||||
payIncomeContract.setSignedContactsId(sysUser.getId());
|
||||
Page<PayIncomeContract> page = new Page<>(pageNo, pageSize);
|
||||
IPage<PayIncomeContract> pageList = payIncomeContractService.queryCompanyPageList(page, payIncomeContract);
|
||||
|
||||
+6
@@ -88,6 +88,12 @@ public class PaySpendingContractController extends JeroController<PaySpendingCon
|
||||
if(!StringUtils.isBlank(paySpendingContract.getContractName()) && paySpendingContract.getContractName().length() > 50){
|
||||
return Result.error("合同名称长度不能大于50个字符!");
|
||||
}
|
||||
if(!StringUtils.isBlank(paySpendingContract.getContractName())){
|
||||
paySpendingContract.setContractName(oConvertUtils.replaceAllPercent(paySpendingContract.getContractName()));
|
||||
}
|
||||
if(!StringUtils.isBlank(paySpendingContract.getContractNum())){
|
||||
paySpendingContract.setContractNum(oConvertUtils.replaceAllPercent(paySpendingContract.getContractNum()));
|
||||
}
|
||||
Page<PaySpendingContract> page = new Page<>(pageNo, pageSize);
|
||||
IPage<PaySpendingContract> pageList = paySpendingContractService.queryPageList(page, paySpendingContract.getContractNum(),
|
||||
paySpendingContract.getContractName(),startTime,endTime);
|
||||
|
||||
Reference in New Issue
Block a user