Browse Source

出库管理优化

1 year ago
parent
commit
23e210cf6f

+ 6 - 1
platform-service/src/main/java/com/platform/service/store/impl/OutStoreFormServiceImpl.java

@@ -190,8 +190,13 @@ public class OutStoreFormServiceImpl extends BaseServiceImpl<OutStoreFormMapper,
         OutStoreForm outStoreForm = new OutStoreForm();
         outStoreForm.setId(id);
         outStoreForm.setStatus(OutStoreStatusEnum.DELETE.getValue());
-        mapper.updateByPrimaryKeySelective(outStoreForm);
         UserInfo userInfo = SecurityUtils.getUserInfo();
+        outStoreForm.setUpdateTime(LocalDateTime.now());
+        outStoreForm.setUpdateUserId(userInfo.getUserId());
+        outStoreForm.setUpdateUserName(userInfo.getUsername());
+        mapper.updateByPrimaryKeySelective(outStoreForm);
+
+
 
         // 刪除详情,更新详情涉及的库存
 //        if (result == 1) {