自动化立体仓库 - WMS系统
Junjie
2024-12-21 a98a2e141895ae9c225ca2db836ae98ddc3f75b9
src/main/java/com/zy/asrs/controller/ManLocDetlController.java
@@ -10,6 +10,7 @@
import com.zy.asrs.entity.param.LocDetlAdjustParam;
import com.zy.asrs.service.ManLocDetlService;
import com.zy.common.web.BaseController;
import com.zy.system.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -76,7 +77,8 @@
    @RequestMapping("/manLocDetl/adjust/start")
    @ManagerAuth(memo = "库存调整")
    public R locDetlAdjustStart(@RequestBody LocDetlAdjustParam param) {
        manLocDetlService.adjustLocDetl(param, getUserId(),getUser());
        User user = getUser();
        manLocDetlService.adjustLocDetl(param, getUserId(), user == null ? "" : user.getUsername());
        return R.ok("库存调整成功");
    }
@@ -93,6 +95,16 @@
        Page<ManLocDetl> all = manLocDetlService.selectAllPage(manLocDetlPage);
        return R.ok().add(all);
    }
    /*
   平库移库
    */
    @RequestMapping("/node/move/start")
    public R nodeMoveStart(@RequestParam String sourceLocNo, @RequestParam String targetLocNo){
        manLocDetlService.updateLocNo(targetLocNo,sourceLocNo);
        return R.ok();
    }
    private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){
        for (Map.Entry<String, Object> entry : map.entrySet()){
            String val = String.valueOf(entry.getValue());
@@ -109,8 +121,5 @@
            }
        }
    }
}