Просмотр исходного кода

信创审核列表 金额查询问题

tags/24080901
PoffyZhang 4 месяцев назад
Родитель
Сommit
26258827b2
2 измененных файлов: 8 добавлений и 2 удалений
  1. +4
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/service/impl/PurchaseServiceImpl.java
  2. +4
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/todocenter/handle/WithDrawHandle.java

+ 4
- 2
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/service/impl/PurchaseServiceImpl.java Просмотреть файл

@@ -64,8 +64,6 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
.ge(req.getCreateOnMin() != null, Purchase::getCreateOn, req.getCreateOnMin())
.eq(req.getStatus() != null, Purchase::getXcfhxApplyStatus, req.getStatus())
.eq(req.getSourceType() != null,Purchase::getSourceType,req.getSourceType())
.ge(Objects.nonNull(req.getAmountStart()),Purchase::getTransactionAmount,req.getAmountStart())
.le(Objects.nonNull(req.getAmountEnd()),Purchase::getTransactionAmount,req.getAmountEnd())
.orderByDesc(Purchase::getCreateOn);

if (Boolean.TRUE.equals(req.getFinished())) {
@@ -114,6 +112,10 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
return null;
}
item.setContractAmount(contract.getTotalAmount());
}else{
if(Objects.nonNull(req.getAmountStart()) || Objects.nonNull(req.getAmountEnd())){
return null;
}
}
return item;
}).collect(Collectors.toList());


+ 4
- 0
hz-pm-api/src/main/java/com/hz/pm/api/todocenter/handle/WithDrawHandle.java Просмотреть файл

@@ -15,6 +15,7 @@ import com.hz.pm.api.todocenter.constant.TodoCenterConst;
import com.hz.pm.api.user.security.model.UserFullInfoDTO;
import com.hz.pm.api.user.security.model.UserInfoDetails;
import com.hz.pm.api.user.util.LoginUserUtil;
import com.ningdatech.basic.function.VUtils;
import com.wflow.contants.HisProInsEndActId;
import com.wflow.workflow.bean.dto.ReqProcessHandlerDTO;
import com.wflow.workflow.bean.process.ProgressNode;
@@ -350,6 +351,9 @@ public class WithDrawHandle {
.select(XinchuangInst::getInstType)
.eq(XinchuangInst::getInstCode, instance.getId());
XinchuangInst xinchuangInst = xinchuangInstService.getOne(piQuery);
if(Objects.isNull(xinchuangInst)) {
return Boolean.FALSE;
}
Integer instType = xinchuangInst.getInstType();

if (InstTypeEnum.APPLY_DELAY.eq(instType) || InstTypeEnum.APPLY_BORROW.eq(instType) ||


Загрузка…
Отмена
Сохранить