feat(delivery): 添加根据发货单查询已装车箱子功能
- 在 DeliveryController 中新增 getBoxByDeliveryId 接口供 PDA 使用 - 在 IWmsShipmentDeliveryService 接口中定义 getBoxByDeliveryId 方法 - 在 WmsShipmentDeliveryMapper 中新增 getBoxByDeliveryId 查询方法 - 在 WmsShipmentDeliveryMapper.xml 中实现 SQL 查询逻辑 - 在 WmsShipmentDeliveryServiceImpl 中实现业务逻辑
This commit is contained in:
parent
9c690dc366
commit
94594abdf1
|
|
@ -19,4 +19,6 @@ public interface WmsShipmentDeliveryMapper extends BaseMapper<WmsShipmentDeliver
|
||||||
WmsShipmentDelivery getByPackagingCodeId(Long id);
|
WmsShipmentDelivery getByPackagingCodeId(Long id);
|
||||||
|
|
||||||
List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber);
|
List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber);
|
||||||
|
|
||||||
|
List<ShipmentPackagingCodeVO> getBoxByDeliveryId(Long deliveryId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,6 @@ public interface IWmsShipmentDeliveryService extends IService<WmsShipmentDeliver
|
||||||
WmsShipmentDelivery getByPackagingCodeId(Long id);
|
WmsShipmentDelivery getByPackagingCodeId(Long id);
|
||||||
|
|
||||||
List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber);
|
List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber);
|
||||||
|
|
||||||
|
List<ShipmentPackagingCodeVO> getBoxByDeliveryId(Long deliveryId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,9 @@ public class WmsShipmentDeliveryServiceImpl extends ServiceImpl<WmsShipmentDeliv
|
||||||
public List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber) {
|
public List<ShipmentPackagingCodeVO> getBoxByPlateNumber(String plateNumber) {
|
||||||
return baseMapper.getBoxByPlateNumber(plateNumber);
|
return baseMapper.getBoxByPlateNumber(plateNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ShipmentPackagingCodeVO> getBoxByDeliveryId(Long deliveryId) {
|
||||||
|
return baseMapper.getBoxByDeliveryId(deliveryId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,13 @@
|
||||||
INNER JOIN wms_shipment_delivery sd ON sdi.delivery_id=sd."id"
|
INNER JOIN wms_shipment_delivery sd ON sdi.delivery_id=sd."id"
|
||||||
WHERE sd.plate_number=#{plateNumber}
|
WHERE sd.plate_number=#{plateNumber}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getBoxByDeliveryId" resultType="com.nflg.wms.common.pojo.vo.ShipmentPackagingCodeVO">
|
||||||
|
SELECT c.*,di."name" AS "type_name"
|
||||||
|
FROM wms_shipment_packaging_code c
|
||||||
|
LEFT JOIN dictionary_item di ON c."type"=di."id"
|
||||||
|
INNER JOIN wms_shipment_delivery_item sdi ON sdi.packaging_code_id=c."id"
|
||||||
|
INNER JOIN wms_shipment_delivery sd ON sdi.delivery_id=sd."id"
|
||||||
|
WHERE sd.id=#{deliveryId}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -286,6 +286,14 @@ public class DeliveryController extends BaseController {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据发货单查询已装车的箱子(PDA使用)
|
||||||
|
*/
|
||||||
|
@GetMapping("getBoxByDeliveryId")
|
||||||
|
public ApiResult<List<ShipmentPackagingCodeVO>> getBoxByDeliveryId(@RequestParam Long deliveryId) {
|
||||||
|
return ApiResult.success(deliveryService.getBoxByDeliveryId(deliveryId));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 装车(PDA使用)
|
* 装车(PDA使用)
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue