zhangxin преди 6 месеца
родител
ревизия
ab81d4d7cc
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/wms/asn/WmsDocAsnHeaderController.java

+ 3 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/wms/asn/WmsDocAsnHeaderController.java

@@ -142,6 +142,9 @@ public class WmsDocAsnHeaderController extends BaseController {
     @Log(title = "入库单", businessType = BusinessType.INSERT)
     @PostMapping("addDocAsnHeader")
     public AjaxResult addDocAsnHeader(@RequestBody WmsDocAsnHeader wmsDocAsnHeader) {
+        LoginUser loginUser = getLoginUser();
+        wmsDocAsnHeader.setCreateBy(loginUser.getUsername());
+        wmsDocAsnHeader.setCreateTime(new Date());
         return  wmsDocAsnHeaderService.insertWmsDocAsnHeader(wmsDocAsnHeader);
     }