盘点测试优化

main
judy 1 year ago
parent 0ee63a1947
commit 3d019bb7f4
  1. 21
      shkj-wms/src/main/java/com/shkj/wms/service/IBusinStockInvService.java
  2. 5
      shkj-wms/src/main/java/com/shkj/wms/vo/BusinStockInvVo.java
  3. 2
      shkj-wms/src/main/resources/mapper/wms/BusinStockInvMapper.xml

@ -20,13 +20,14 @@ import java.util.List;
* @author lch * @author lch
* @date 2022-06-10 * @date 2022-06-10
*/ */
public interface IBusinStockInvService extends IService<BusinStockInv> { /** public interface IBusinStockInvService extends IService<BusinStockInv> {
* 查询列表 /**
* * 查询列表
* @param bo *
* @return * @param bo
*/ * @return
List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo); */
List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/** /**
* 通过商品分组查询盘点列表 * 通过商品分组查询盘点列表
@ -54,7 +55,6 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
Result<Boolean> invFinish(Long invId); Result<Boolean> invFinish(Long invId);
/** /**
* 查询需要盘点的货位信息 * 查询需要盘点的货位信息
* *
@ -65,15 +65,16 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/** /**
* 设置为货位 * 设置为货位
*
* @param locationId * @param locationId
* @return * @return
*/ */
Result<Boolean> setEmptyLocation(Long locationId); Result<Boolean> setEmptyLocation(Long locationId);
/** /**
* 设置为空托 * 设置为空托
*
* @param locationId * @param locationId
* @return * @return
*/ */
@ -81,6 +82,7 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/** /**
* 标记差异 * 标记差异
*
* @param locationId * @param locationId
* @return * @return
*/ */
@ -88,6 +90,7 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/** /**
* 下发任务 * 下发任务
*
* @param locationId * @param locationId
* @return * @return
*/ */

@ -53,6 +53,9 @@ public class BusinStockInvVo {
*/ */
private String goodQty; private String goodQty;
/**
* 盘点单号
*/
private String invOrderNo;
} }

@ -39,7 +39,7 @@
<select id="queryList" resultType="com.shkj.wms.vo.BusinStockInvVo" <select id="queryList" resultType="com.shkj.wms.vo.BusinStockInvVo"
parameterType="com.shkj.wms.bo.BusinStockInvQueryBo"> parameterType="com.shkj.wms.bo.BusinStockInvQueryBo">
SELECT SELECT
si.id as invId, loc.id as locationId,loc.location_code,goods.vehiche_model,goods.color,loc.location_status, sum(case when stock.goods_no is null then 0 else 1 end ) as goodQty si.id as invId, loc.id as locationId,loc.location_code,goods.vehiche_model,goods.color,loc.location_status, sum(case when stock.goods_no is null then 0 else 1 end ) as goodQty,inv_order_no
FROM FROM
busin_stock_inv si busin_stock_inv si
JOIN base_location loc ON si.location_id = loc.id JOIN base_location loc ON si.location_id = loc.id

Loading…
Cancel
Save