|
|
@ -2,21 +2,19 @@ package com.hnac.hzims.operational.duty.feign; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; |
|
|
|
import com.hnac.hzims.middle.process.to.ProcessWorkFlowResponse; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ChangeShiftsReqDTO; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ChangeShiftsReqDTO; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ChangeShiftsRspDTO; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ChangeShiftsRspDTO; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ImsDutyRecDTO; |
|
|
|
import com.hnac.hzims.operational.duty.dto.ImsDutyRecDTO; |
|
|
|
import com.hnac.hzims.operational.duty.service.IImsDutyRecService; |
|
|
|
import com.hnac.hzims.operational.duty.service.IImsDutyRecService; |
|
|
|
import com.hnac.hzims.operational.duty.vo.ImsDutyRecVO; |
|
|
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
@ -42,7 +40,7 @@ public class DutyRecClient implements IDutyRecClient { |
|
|
|
}); |
|
|
|
}); |
|
|
|
recDTO.setDealChain(processWorkFlowResponse.getTaskName()); |
|
|
|
recDTO.setDealChain(processWorkFlowResponse.getTaskName()); |
|
|
|
recDTO.setIsNormal(true); |
|
|
|
recDTO.setIsNormal(true); |
|
|
|
if(700==processWorkFlowResponse.getCode()){ |
|
|
|
if(ObjectUtils.isNotEmpty(processWorkFlowResponse.getCode())&&700==processWorkFlowResponse.getCode()){ |
|
|
|
recDTO.setIsNormal(false); |
|
|
|
recDTO.setIsNormal(false); |
|
|
|
recDTO.setRemark(JSONObject.toJSONString(processWorkFlowResponse.getVariables())); |
|
|
|
recDTO.setRemark(JSONObject.toJSONString(processWorkFlowResponse.getVariables())); |
|
|
|
} |
|
|
|
} |
|
|
|