#
luxiaotao1123
2024-04-09 65611d34fce5970c7b126fa81b5288d0a62704ee
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/controller/MapController.java
@@ -2,14 +2,11 @@
import com.zy.asrs.framework.common.R;
import com.zy.asrs.wcs.core.map.controller.param.MapDataParam;
import com.zy.asrs.wcs.core.map.controller.param.MapQueryParam;
import com.zy.asrs.wcs.core.map.service.MapService;
import com.zy.asrs.wcs.system.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
 * Created by vincent on 3/15/2024
@@ -22,17 +19,37 @@
    private MapService mapService;
    //    @PreAuthorize("hasAuthority('core:map:list')")
    @PostMapping("/floor/list")
    public R floorList() {
        return R.ok().add(mapService.getMapFloorList(getLoginUserId()));
    }
    //    @PreAuthorize("hasAuthority('core:map:list')")
    @PostMapping("/list")
    public R mapList() {
        return R.ok().add(mapService.getMapData(getLoginUserId()));
    public R mapList(@RequestBody MapQueryParam param) {
        return R.ok().add(mapService.getMapData(param, getLoginUserId()));
    }
//    @PreAuthorize("hasAuthority('core:map:save')")
    @PostMapping("/save")
    @Transactional
    public R mapSave(@RequestBody MapDataParam param) {
        mapService.saveMapData(param, getLoginUserId());
        return R.ok();
    }
    // 货架 - 库位 --------------------------------------------------------
    @GetMapping("/shelf/info")
    public R shelfInfo(@RequestParam String locNo) {
        return R.ok().add(mapService.getShelfLocNoList(locNo));
    }
    // 输送线 - 库位 --------------------------------------------------------
//    @GetMapping("/conveyor/plc/list")
//    public R conveyorPlcList() {
//        return R.ok().add(mapService.getShelfLocNoList(locNo));
//    }
}