【DAOP-1.0】数据需求
【功能点】测试问题处理
Showing
1 changed file
with
11 additions
and
2 deletions
| ... | @@ -10,6 +10,7 @@ import com.csbr.qingcloud.portal.domain.vo.*; | ... | @@ -10,6 +10,7 @@ import com.csbr.qingcloud.portal.domain.vo.*; | 
| 10 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | 10 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | 
| 11 | import com.csbr.qingcloud.portal.feign.DataProcessBasicFeign; | 11 | import com.csbr.qingcloud.portal.feign.DataProcessBasicFeign; | 
| 12 | import com.csbr.qingcloud.portal.feign.PersonelFeign; | 12 | import com.csbr.qingcloud.portal.feign.PersonelFeign; | 
| 13 | import csbr.cloud.entity.domain.user.UserInfo; | ||
| 13 | import csbr.cloud.entity.enums.ApprovalStateEnum; | 14 | import csbr.cloud.entity.enums.ApprovalStateEnum; | 
| 14 | import com.csbr.cloud.common.exception.CsbrSystemException; | 15 | import com.csbr.cloud.common.exception.CsbrSystemException; | 
| 15 | import com.csbr.cloud.common.util.CommonUtil; | 16 | import com.csbr.cloud.common.util.CommonUtil; | 
| ... | @@ -24,6 +25,7 @@ import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; | ... | @@ -24,6 +25,7 @@ import com.csbr.cloud.workflow.domain.dto.callback.BizCallbackDTO; | 
| 24 | import com.csbr.qingcloud.portal.mybatis.entity.MfDemand; | 25 | import com.csbr.qingcloud.portal.mybatis.entity.MfDemand; | 
| 25 | import com.csbr.qingcloud.portal.mybatis.service.MfDemandService; | 26 | import com.csbr.qingcloud.portal.mybatis.service.MfDemandService; | 
| 26 | import com.csbr.qingcloud.portal.service.DemandService; | 27 | import com.csbr.qingcloud.portal.service.DemandService; | 
| 28 | import csbr.cloud.entity.utils.UserContextHolder; | ||
| 27 | import jakarta.annotation.Resource; | 29 | import jakarta.annotation.Resource; | 
| 28 | import lombok.extern.slf4j.Slf4j; | 30 | import lombok.extern.slf4j.Slf4j; | 
| 29 | import org.apache.commons.collections.CollectionUtils; | 31 | import org.apache.commons.collections.CollectionUtils; | 
| ... | @@ -251,7 +253,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -251,7 +253,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 251 | String orderNo = null; | 253 | String orderNo = null; | 
| 252 | if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) { | 254 | if (ApprovalStateEnum.PASSED.getValue().equals(dto.getApprovalState())) { | 
| 253 | //生成加工单 | 255 | //生成加工单 | 
| 254 | orderNo = addOrder(mfDemandService.getById(dto.getBizGuid())); | 256 | orderNo = addOrder(mfDemandService.getById(dto.getBizGuid()),dto); | 
| 255 | } | 257 | } | 
| 256 | // 同步更新审批状态 | 258 | // 同步更新审批状态 | 
| 257 | LambdaUpdateWrapper<MfDemand> updateWrapper = mfDemandService.csbrUpdateWrapper(MfDemand.class); | 259 | LambdaUpdateWrapper<MfDemand> updateWrapper = mfDemandService.csbrUpdateWrapper(MfDemand.class); | 
| ... | @@ -265,7 +267,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -265,7 +267,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 265 | } | 267 | } | 
| 266 | } | 268 | } | 
| 267 | 269 | ||
| 268 | private String addOrder(MfDemand bean){ | 270 | private String addOrder(MfDemand bean,BizCallbackDTO dto){ | 
| 269 | ProcessOrderRQVO vo = csbrBeanUtil.convert(bean,ProcessOrderRQVO.class); | 271 | ProcessOrderRQVO vo = csbrBeanUtil.convert(bean,ProcessOrderRQVO.class); | 
| 270 | vo.setGuid(null); | 272 | vo.setGuid(null); | 
| 271 | vo.setTenantName(personelFeign.getAllTenantGuidNameMap().getData().get(bean.getTenantGuid())); | 273 | vo.setTenantName(personelFeign.getAllTenantGuidNameMap().getData().get(bean.getTenantGuid())); | 
| ... | @@ -278,6 +280,13 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -278,6 +280,13 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | 
| 278 | vo.setLinkContractInfoJson(bean.getContractAttachJson()); | 280 | vo.setLinkContractInfoJson(bean.getContractAttachJson()); | 
| 279 | vo.setFileUrl(bean.getDataDemandFieldAttachJson()); | 281 | vo.setFileUrl(bean.getDataDemandFieldAttachJson()); | 
| 280 | 282 | ||
| 283 | UserInfo user = UserContextHolder.get(); | ||
| 284 | vo.setAcceptanceNameGuid(dto.getStaffGuid()); | ||
| 285 | vo.setAcceptanceName(user.getUserName()); | ||
| 286 | vo.setAcceptanceDate(new Date()); | ||
| 287 | vo.setAcceptanceReason(approvalFlowUtil.getApprovalInfo(dto.getBizGuid()).getApproveSuggest()); | ||
| 288 | vo.setRequestPath(bean.getRequestType()); | ||
| 289 | |||
| 281 | dataProcessBasicFeign.saveProcessOrder(vo); | 290 | dataProcessBasicFeign.saveProcessOrder(vo); | 
| 282 | return vo.getProcessOrderNo(); | 291 | return vo.getProcessOrderNo(); | 
| 283 | } | 292 | } | ... | ... | 
- 
Please register or sign in to post a comment
