|
@@ -1,27 +1,31 @@
|
|
|
package com.ruoyi.web.controller.warewms.ams;
|
|
|
|
|
|
-import com.ruoyi.ams.inv.mapper.InvLotLocIdMapper;
|
|
|
+import com.ruoyi.ams.config.service.ILotattConfigService;
|
|
|
+import com.ruoyi.ams.inv.domain.vo.InvLotLocIdLotattVO;
|
|
|
import com.ruoyi.ams.inv.service.IInvLotLocIdService;
|
|
|
import com.ruoyi.ams.locationView.domain.form.LocationViewForm;
|
|
|
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.BaseLocationInfo;
|
|
|
+import com.ruoyi.base.domain.BaseLocationZone;
|
|
|
import com.ruoyi.base.domain.dto.BasLocationGuiExtDTO;
|
|
|
-import com.ruoyi.base.service.IBaseLocationInfoService;
|
|
|
-import com.ruoyi.common.annotation.Log;
|
|
|
+import com.ruoyi.base.service.IBaseLocationZoneService;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
-import com.ruoyi.common.enums.BusinessType;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
+ * 库位视图
|
|
|
+ *
|
|
|
* Created by IntelliJ IDEA.
|
|
|
- * User: andy.qu
|
|
|
- * Date: 2022/3/16
|
|
|
+ * User: kaka
|
|
|
+ * Date: 2022/3/22
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/ams/locationView")
|
|
@@ -30,11 +34,11 @@ public class LocationViewController extends BaseController {
|
|
|
@Autowired
|
|
|
private LocationViewService locationViewService;
|
|
|
@Autowired
|
|
|
- private IBaseLocationInfoService baseLocationInfoService;
|
|
|
+ private IInvLotLocIdService invLotLocIdService;
|
|
|
@Autowired
|
|
|
- private InvLotLocIdMapper invLotLocIdMapper;
|
|
|
+ private ILotattConfigService lotattConfigService;
|
|
|
@Autowired
|
|
|
- private IInvLotLocIdService invLotLocIdService;
|
|
|
+ private IBaseLocationZoneService baseLocationZoneService;
|
|
|
|
|
|
@GetMapping(value = "/view")
|
|
|
public AjaxResult getInfo(LocationViewForm locationViewForm) {
|
|
@@ -59,17 +63,28 @@ public class LocationViewController extends BaseController {
|
|
|
return invLotLocIdService.clear(id.toString(),Constant.WAREHOUSE_ID, logger.getName());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 库存是否有货状态调整
|
|
|
- *
|
|
|
- * @param locationId
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Log(title = "PDA库存状态调整", businessType = BusinessType.UPDATE)
|
|
|
-
|
|
|
@GetMapping(value = "/setIsEmpty/{id}")
|
|
|
public AjaxResult adjLocationIsEmpty(@PathVariable("id") Long id) {
|
|
|
|
|
|
return invLotLocIdService.adjLocationIsEmpty(id.toString(), Constant.WAREHOUSE_ID, logger.getName());
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping(value = "/locationLotatt/{locationId}")
|
|
|
+ public AjaxResult locationLotatt(@PathVariable("locationId") Long locationId) {
|
|
|
+ List<InvLotLocIdLotattVO> invLotLocIdLotattVOS = invLotLocIdService.selectInvLocIdLotattByLocationId(locationId);
|
|
|
+ return AjaxResult.success(invLotLocIdLotattVOS);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/lotattConfigList")
|
|
|
+ public AjaxResult lotattConfigList() {
|
|
|
+ return AjaxResult.success(lotattConfigService.queryLotattConfigList());
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/queryZoneDict")
|
|
|
+ public AjaxResult queryZoneDict()
|
|
|
+ {
|
|
|
+ BaseLocationZone query = new BaseLocationZone();
|
|
|
+ query.setStatus("0");
|
|
|
+ return AjaxResult.success(baseLocationZoneService.selectBaseLocationZoneList(query));
|
|
|
+ }
|
|
|
}
|