Skip to content

Commit 832a15f

Browse files
committed
优化审核不过
1 parent bcc8afd commit 832a15f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

service-api/src/main/java/com/java110/api/listener/purchaseApply/AuditApplyOrderListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context,
7474
Assert.listOnlyOne(purchaseApplyDtos, "采购申请单存在多条");
7575
purchaseApplyDto.setStartUserId(purchaseApplyDtos.get(0).getUserId());
7676
purchaseApplyDto.setResOrderType(purchaseApplyDtos.get(0).getResOrderType());
77+
purchaseApplyDto.setNextStaffId(reqJson.getString("nextUserId"));
7778
if (purchaseApplyDtos.get(0).getState().equals(purchaseApplyDto.STATE_WAIT_DEAL) && reqJson.getString("state").equals("1100")) { //如果状态是未审核 并且是审核通过,就变成审核中
7879
PurchaseApplyPo purchaseApplyPo = new PurchaseApplyPo();
7980
purchaseApplyPo.setApplyOrderId(purchaseApplyDtos.get(0).getApplyOrderId());

service-api/src/main/java/com/java110/api/listener/workflow/ListWorkflowAuditInfoListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.java110.utils.constant.ServiceCodeWorkflowConstant;
1313
import com.java110.utils.util.Assert;
1414
import com.java110.utils.util.BeanConvertUtil;
15+
import com.java110.utils.util.StringUtil;
1516
import com.java110.vo.ResultVo;
1617
import org.springframework.beans.factory.annotation.Autowired;
1718
import org.springframework.http.HttpMethod;
@@ -86,6 +87,9 @@ private void freshUserName(List<WorkflowAuditInfoDto> workflowAuditInfoDtos) {
8687

8788

8889
for (WorkflowAuditInfoDto tmpWorkflowAuditInfoDto:workflowAuditInfoDtos ){
90+
if(StringUtil.isEmpty(tmpWorkflowAuditInfoDto.getUserId())){
91+
continue;
92+
}
8993
for(UserDto tmpUserDto: userDtos){
9094
if (tmpWorkflowAuditInfoDto.getUserId().equals(tmpUserDto.getUserId())){
9195
tmpWorkflowAuditInfoDto.setUserName(tmpUserDto.getUserName());

0 commit comments

Comments
 (0)