盘点测试优化

main
judy 1 year ago
parent 0ee63a1947
commit 3d019bb7f4
  1. 9
      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,7 +20,8 @@ import java.util.List;
* @author lch
* @date 2022-06-10
*/
public interface IBusinStockInvService extends IService<BusinStockInv> { /**
public interface IBusinStockInvService extends IService<BusinStockInv> {
/**
* 查询列表
*
* @param bo
@ -54,7 +55,6 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
Result<Boolean> invFinish(Long invId);
/**
* 查询需要盘点的货位信息
*
@ -65,15 +65,16 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/**
* 设置为货位
*
* @param locationId
* @return
*/
Result<Boolean> setEmptyLocation(Long locationId);
/**
* 设置为空托
*
* @param locationId
* @return
*/
@ -81,6 +82,7 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/**
* 标记差异
*
* @param locationId
* @return
*/
@ -88,6 +90,7 @@ List<BusinStockInvVo> queryList(BusinStockInvQueryBo bo);
/**
* 下发任务
*
* @param locationId
* @return
*/

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

@ -39,7 +39,7 @@
<select id="queryList" resultType="com.shkj.wms.vo.BusinStockInvVo"
parameterType="com.shkj.wms.bo.BusinStockInvQueryBo">
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
busin_stock_inv si
JOIN base_location loc ON si.location_id = loc.id

Loading…
Cancel
Save