|
|
|
@ -9,6 +9,8 @@ import com.gaotao.modules.base.service.ReportLabelListService; |
|
|
|
import com.gaotao.modules.handlingunit.dao.HandlingUnitMapper; |
|
|
|
import com.gaotao.modules.handlingunit.entity.dto.HandlingUnitDto; |
|
|
|
import com.gaotao.modules.warehouse.service.LabelQueryService; |
|
|
|
import com.gaotao.modules.warehouse.entity.Location; |
|
|
|
import com.gaotao.modules.transit.dao.TransitMapper; |
|
|
|
import com.gaotao.modules.sys.controller.AbstractController; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -35,6 +37,9 @@ public class LabelQueryController extends AbstractController { |
|
|
|
@Autowired |
|
|
|
private PrintTaskService printTaskService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private TransitMapper transitMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* 分页查询HandlingUnit标签信息 |
|
|
|
*/ |
|
|
|
@ -194,4 +199,20 @@ public class LabelQueryController extends AbstractController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据库位ID查询库位信息(获取仓库编码)- rqrq |
|
|
|
* @Title getLocationByLocationId |
|
|
|
* @param params 参数(包含site和locationId) |
|
|
|
* @return R |
|
|
|
* @author rqrq |
|
|
|
* @date 2025/12/31 |
|
|
|
*/ |
|
|
|
@PostMapping("getLocationByLocationId") |
|
|
|
public R getLocationByLocationId(@RequestBody Map<String, Object> params) throws Exception { |
|
|
|
String site = (String) params.get("site"); |
|
|
|
String locationId = (String) params.get("locationId"); |
|
|
|
Location location = transitMapper.getLocationByLocationId(locationId, site); |
|
|
|
return R.ok().put("row", location); |
|
|
|
} |
|
|
|
|
|
|
|
} |