库存明细修改

main
judy 1 year ago
parent aff60bf647
commit e0c833d7d3
  1. 42
      shkj-wms/src/main/java/com/shkj/wms/vo/SysStockNumDetailVo.java
  2. 19
      shkj-wms/src/main/resources/mapper/wms/SysStockMapper.xml

@ -21,36 +21,32 @@ public class SysStockNumDetailVo implements Serializable {
private String branchName; private String branchName;
/** /**
* 所在楼层 * 所在巷道
*/ */
private String layer; private String tunnel;
/** /**
* 库位 * 库位
*/ */
private String locationCode; private String locationCode;
/** /**
* 台车编号 * 治具编号
*/ */
private String containerCode; private String containerCode;
/** /**
* 物料编号 * 保险杠条码
*/ */
private String ptPart; private String qrCode;
/** /**
* 物料名称 * 车型
*/ */
private String ptName; private String vehicheModel;
/**
* 规格
*/
private String ptDesc;
/** /**
* 机种即车型 * 颜色
*/ */
private String ptBreakCat; private String color;
/** /**
* 在库数量 * 在库数量
@ -81,7 +77,7 @@ public class SysStockNumDetailVo implements Serializable {
/** /**
* 批次 * 批次
*/ */
private String rerpDate; private String batch;
/** /**
* 作业时间 * 作业时间
@ -93,24 +89,6 @@ public class SysStockNumDetailVo implements Serializable {
*/ */
private String type ; private String type ;
/**
* 批次
*/
private String batch;
/**
* 开始时间之前的所有入库
*/
private Integer invInqty;
/**
* 开始时间之前的所有出库
*/
private Integer invOutqty;
/**
* 可用数量
*/
private Integer useQty;
} }

@ -164,15 +164,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="queryStockDetailList" resultType="com.shkj.wms.vo.SysStockNumDetailVo" parameterType="com.shkj.wms.bo.SysStockNumQueryBo"> <select id="queryStockDetailList" resultType="com.shkj.wms.vo.SysStockNumDetailVo" parameterType="com.shkj.wms.bo.SysStockNumQueryBo">
SELECT SELECT
item.goods_no, item.color,
item.vehiche_model,
group_concat( stock.qr_code) as qr_code, group_concat( stock.qr_code) as qr_code,
stock.qty, stock.qty,
IFNULL( qty, 0 )+ IFNULL( in_qty, 0 )- IFNULL( out_qty, 0 ) AS useQty,
IFNULL( in_qty, 0 ) AS in_qty,
IFNULL( out_qty, 0 ) AS out_qty,
DATEDIFF( curtime(), stock.batch ) AS storageAge, DATEDIFF( curtime(), stock.batch ) AS storageAge,
branch.branch_name, loc.tunnel,
loc.layer,
loc.location_code, loc.location_code,
con.container_code, con.container_code,
stock.batch stock.batch
@ -199,7 +196,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and con.container_code= #{containerCode} and con.container_code= #{containerCode}
</if> </if>
</where> </where>
order by loc.location_name GROUP BY
item.color,
item.vehiche_model,
stock.qty,
storageAge,
loc.tunnel,
loc.location_code,
con.container_code,
stock.batch
</select> </select>

Loading…
Cancel
Save