| | |
| | | import com.gkhy.exam.common.exception.ApiException; |
| | | import com.gkhy.exam.common.utils.PageUtils; |
| | | import com.gkhy.exam.common.utils.SecurityUtils; |
| | | import com.gkhy.exam.common.utils.StringUtils; |
| | | import com.gkhy.exam.system.domain.UseSealApply; |
| | | import com.gkhy.exam.system.domain.UseSealApplyFile; |
| | | import com.gkhy.exam.system.domain.UseSealApplyFlow; |
| | |
| | | List<UseSealApplyFlow> flows = useSealApply.getFlows(); |
| | | for (UseSealApplyFlow flow : flows) { |
| | | flow.setUseSealId(useSealApply.getId()); |
| | | if (flow.getApproveUserId().equals(useSealApply.getApplyUserId())){ |
| | | if (flow.getApproveUserId().equals(useSealApply.getApplyUserId()) && flow.getFlowName().equals("申请人")){ |
| | | flow.setStatus(2); |
| | | }else { |
| | | flow.setStatus(1); |
| | |
| | | if (useSealApplyFlow.getApproveStatus()==null){ |
| | | return CommonResult.failed("审批意见不可为空"); |
| | | } |
| | | if (StringUtils.isEmpty(useSealApplyFlow.getApproveMess())){ |
| | | return CommonResult.failed("审批意见不可为空"); |
| | | } |
| | | if (useSealApplyFlow.getApproveStatus()==1){ |
| | | useSealApplyFlow.setApproveContent("同意"); |
| | | }else { |