常熟吴彦祖 2 weeks ago
parent
commit
828b70ff3f
  1. 21
      src/main/java/com/gaotao/modules/warehouse/controller/LabelQueryController.java
  2. 1
      src/main/java/com/gaotao/modules/warehouse/service/impl/LabelQueryServiceImpl.java
  3. 2
      src/main/resources/mapper/transit/TransitMapper.xml

21
src/main/java/com/gaotao/modules/warehouse/controller/LabelQueryController.java

@ -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);
}
}

1
src/main/java/com/gaotao/modules/warehouse/service/impl/LabelQueryServiceImpl.java

@ -177,6 +177,7 @@ public class LabelQueryServiceImpl implements LabelQueryService {
handlingUnit.setEngChgLevel(dto.getEngChgLevel());
handlingUnit.setQty(dto.getQty());
handlingUnit.setInStockFlag(dto.getInStockFlag());
handlingUnit.setAvailabilityControlId(dto.getAvailabilityControlId()); // AvailabilityControlId - rqrq
handlingUnit.setModifiedDate(new Date());
handlingUnit.setModifiedBy("SYSTEM");

2
src/main/resources/mapper/transit/TransitMapper.xml

@ -85,7 +85,7 @@
Active as active,
locationGroupId,
locationType
FROM location WITH (NOLOCK)
FROM location
WHERE LocationID = #{locationId}
AND Site = #{site}
</select>

Loading…
Cancel
Save