@@ -64,8 +64,6 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> | |||||
.ge(req.getCreateOnMin() != null, Purchase::getCreateOn, req.getCreateOnMin()) | .ge(req.getCreateOnMin() != null, Purchase::getCreateOn, req.getCreateOnMin()) | ||||
.eq(req.getStatus() != null, Purchase::getXcfhxApplyStatus, req.getStatus()) | .eq(req.getStatus() != null, Purchase::getXcfhxApplyStatus, req.getStatus()) | ||||
.eq(req.getSourceType() != null,Purchase::getSourceType,req.getSourceType()) | .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); | .orderByDesc(Purchase::getCreateOn); | ||||
if (Boolean.TRUE.equals(req.getFinished())) { | if (Boolean.TRUE.equals(req.getFinished())) { | ||||
@@ -114,6 +112,10 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase> | |||||
return null; | return null; | ||||
} | } | ||||
item.setContractAmount(contract.getTotalAmount()); | item.setContractAmount(contract.getTotalAmount()); | ||||
}else{ | |||||
if(Objects.nonNull(req.getAmountStart()) || Objects.nonNull(req.getAmountEnd())){ | |||||
return null; | |||||
} | |||||
} | } | ||||
return item; | return item; | ||||
}).collect(Collectors.toList()); | }).collect(Collectors.toList()); | ||||
@@ -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.UserFullInfoDTO; | ||||
import com.hz.pm.api.user.security.model.UserInfoDetails; | import com.hz.pm.api.user.security.model.UserInfoDetails; | ||||
import com.hz.pm.api.user.util.LoginUserUtil; | import com.hz.pm.api.user.util.LoginUserUtil; | ||||
import com.ningdatech.basic.function.VUtils; | |||||
import com.wflow.contants.HisProInsEndActId; | import com.wflow.contants.HisProInsEndActId; | ||||
import com.wflow.workflow.bean.dto.ReqProcessHandlerDTO; | import com.wflow.workflow.bean.dto.ReqProcessHandlerDTO; | ||||
import com.wflow.workflow.bean.process.ProgressNode; | import com.wflow.workflow.bean.process.ProgressNode; | ||||
@@ -350,6 +351,9 @@ public class WithDrawHandle { | |||||
.select(XinchuangInst::getInstType) | .select(XinchuangInst::getInstType) | ||||
.eq(XinchuangInst::getInstCode, instance.getId()); | .eq(XinchuangInst::getInstCode, instance.getId()); | ||||
XinchuangInst xinchuangInst = xinchuangInstService.getOne(piQuery); | XinchuangInst xinchuangInst = xinchuangInstService.getOne(piQuery); | ||||
if(Objects.isNull(xinchuangInst)) { | |||||
return Boolean.FALSE; | |||||
} | |||||
Integer instType = xinchuangInst.getInstType(); | Integer instType = xinchuangInst.getInstType(); | ||||
if (InstTypeEnum.APPLY_DELAY.eq(instType) || InstTypeEnum.APPLY_BORROW.eq(instType) || | if (InstTypeEnum.APPLY_DELAY.eq(instType) || InstTypeEnum.APPLY_BORROW.eq(instType) || | ||||