Commit ec80145d authored by tianbo's avatar tianbo

fix(jg): 修复管道装置报废时使用登记证状态更新问题

- 在管道装置报废逻辑中添加证书状态设置为已注销
parent e4eeb44b
......@@ -1177,6 +1177,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
// 2.管道装置对应使用登记证下所有管道都报废则证变成注销状态
if (nonCanceledAndScrappedPipelineCount == 0) {
JgUseRegistrationManage useRegistrationManage = jgUseRegistrationManageList.get(0);
useRegistrationManage.setCertificateStatus(CertificateStatusEnum.YIZHUXIAO.getName());
useRegistrationManage.setVersion(useRegistrationManage.getVersion() + 1);
useRegistrationManage.setChangeReason(BusinessTypeEnum.JG_EQUIPMENT_CANCEL.getName());
useRegistrationManage.setIsScrap("1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment