浏览代码

异常用户名

zhangxin 1 年之前
父节点
当前提交
e425937d66

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/ams/LocationViewController.java

@@ -55,18 +55,18 @@ public class LocationViewController extends BaseController {
     @GetMapping(value = "/lockLoc/{id}")
     public AjaxResult lockLoc(@PathVariable("id") Long id) {
         return invLotLocIdService.adjLocationStockStatus(id.toString(), Constant.WAREHOUSE_ID
-                , logger.getName());
+                , getUsername());
     }
 
     @GetMapping(value = "/clearLoc/{id}")
     public AjaxResult clearLoc(@PathVariable("id") Long id) {
-        return invLotLocIdService.clear(id.toString(),Constant.WAREHOUSE_ID, logger.getName());
+        return invLotLocIdService.clear(id.toString(),Constant.WAREHOUSE_ID, getUsername());
     }
 
     @GetMapping(value = "/setIsEmpty/{id}")
     public AjaxResult adjLocationIsEmpty(@PathVariable("id") Long id) {
 
-        return invLotLocIdService.adjLocationIsEmpty(id.toString(), Constant.WAREHOUSE_ID, logger.getName());
+        return invLotLocIdService.adjLocationIsEmpty(id.toString(), Constant.WAREHOUSE_ID, getUsername());
     }
 
     @GetMapping(value = "/locationLotatt/{locationId}")

+ 3 - 4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/ams/LocationViewSafeController.java

@@ -8,7 +8,6 @@ import com.ruoyi.ams.locationView.domain.vo.LocationViewVO;
 import com.ruoyi.ams.locationView.service.LocationViewService;
 import com.ruoyi.base.constant.Constant;
 import com.ruoyi.base.domain.BaseLocationZone;
-import com.ruoyi.base.domain.BaseWarehouse;
 import com.ruoyi.base.domain.dto.BasLocationGuiExtDTO;
 import com.ruoyi.base.service.IBaseLocationZoneService;
 import com.ruoyi.common.annotation.Log;
@@ -60,19 +59,19 @@ public class LocationViewSafeController extends BaseController {
     @GetMapping(value = "/lockLoc/{id}")
     public AjaxResult lockLoc(@PathVariable("id") Long id) {
         return invLotLocIdService.adjLocationStockStatus(id.toString(), Constant.WAREHOUSE_ID
-                , logger.getName());
+                , getUsername());
     }
 
     @Log(title = "库位库存清除", businessType = BusinessType.CLEAN)
     @GetMapping(value = "/clearLoc/{id}")
     public AjaxResult clearLoc(@PathVariable("id") Long id) {
-        return invLotLocIdService.clear(id.toString(),Constant.WAREHOUSE_ID, logger.getName());
+        return invLotLocIdService.clear(id.toString(),Constant.WAREHOUSE_ID, getUsername());
     }
 
     @Log(title = "库存有货状态调整", businessType = BusinessType.CLEAN)
     @GetMapping(value = "/setIsEmpty/{id}")
     public AjaxResult adjLocationIsEmpty(@PathVariable("id") Long id) {
-        return invLotLocIdService.adjLocationIsEmpty(id.toString(), Constant.WAREHOUSE_ID, logger.getName());
+        return invLotLocIdService.adjLocationIsEmpty(id.toString(), Constant.WAREHOUSE_ID, getUsername());
     }
 
     @GetMapping(value = "/locationLotatt/{locationId}")