yzc 2 年 前
コミット
8d4daca620

+ 2 - 0
hx-victoriatourist/src/main/java/com/fjhx/victoriatourist/service/abnormal/impl/AbnormalDetailsServiceImpl.java

@@ -16,6 +16,7 @@ import com.fjhx.victoriatourist.entity.abnormal.vo.AbnormalDetailsVo;
 import com.fjhx.victoriatourist.mapper.abnormal.AbnormalDetailsMapper;
 import com.fjhx.victoriatourist.service.abnormal.AbnormalDetailsService;
 import com.fjhx.victoriatourist.service.abnormal.AbnormalInfoService;
+import com.fjhx.victoriatourist.utils.CodeEnum;
 import com.obs.services.internal.ServiceException;
 import com.ruoyi.common.utils.wrapper.IWrapper;
 import com.ruoyi.system.utils.UserUtil;
@@ -63,6 +64,7 @@ public class AbnormalDetailsServiceImpl extends ServiceImpl<AbnormalDetailsMappe
         }
         AbnormalInfo abnormalInfo = new AbnormalInfo();
         abnormalInfo.setId(abnormalInfoId);
+        abnormalInfo.setLinkCode(CodeEnum.ABNORMAL.getCode());
         abnormalInfo.setStatus(status);
         abnormalInfo.setHandleUser(abnormalDetailsDto.getHandleUser());
         abnormalInfo.setHandleTime(abnormalDetailsDto.getHandleTime());

+ 1 - 0
hx-victoriatourist/src/main/java/com/fjhx/victoriatourist/service/jd/impl/JdOrderServiceImpl.java

@@ -346,6 +346,7 @@ public class JdOrderServiceImpl extends ServiceImpl<JdOrderMapper, JdOrder> impl
                 abnormalInfo.setId(IdWorker.getId());
                 abnormalInfo.setType(30);
                 abnormalInfo.setLinkId(stockTransfer.getId());
+                abnormalInfo.setLinkCode(stockTransfer.getCode());
                 abnormalInfo.setTitle("调仓接收数量与发出数量不一致");
                 abnormalInfoService.save(abnormalInfo);
             }

+ 1 - 0
hx-victoriatourist/src/main/java/com/fjhx/victoriatourist/service/stock/impl/StockTransferServiceImpl.java

@@ -169,6 +169,7 @@ public class StockTransferServiceImpl extends ServiceImpl<StockTransferMapper, S
                 abnormalInfo.setId(IdWorker.getId());
                 abnormalInfo.setType(30);
                 abnormalInfo.setLinkId(stockTransfer.getId());
+                abnormalInfo.setLinkCode(stockTransfer.getCode());
                 abnormalInfo.setTitle("调仓接收数量与发出数量不一致");
                 abnormalInfoService.save(abnormalInfo);
             }

+ 3 - 1
hx-victoriatourist/src/main/java/com/fjhx/victoriatourist/utils/CodeEnum.java

@@ -23,7 +23,9 @@ public enum CodeEnum {
     ORDER_SALES("SO", null, "code", 5, OrderInfoService.class),
     //京东退货质检
     JD_BACK_QUALITY("PA", "yyMM-", "code", 3, StockTransferService.class),
-    ;
+
+    ABNORMAL("PO", "yyMM-", "code", 3, StockTransferService.class),
+            ;
 
     CodeEnum(String prefix, String dateFormat, String codeFieldName, Integer length, Class<? extends IService<?>> serviceCls) {
         this.prefix = prefix;