## 产品列表添加仓储编号显示及查询条件;
This commit is contained in:
parent
4c1b314c80
commit
1d6783cacd
|
@ -44,6 +44,12 @@ public class ProductVo implements Serializable {
|
||||||
@Excel(name = "产品编码")
|
@Excel(name = "产品编码")
|
||||||
private String productCode;
|
private String productCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓储产品编号
|
||||||
|
*/
|
||||||
|
@Excel(name = "仓储编号")
|
||||||
|
private String wmsCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属分类
|
* 所属分类
|
||||||
*/
|
*/
|
||||||
|
@ -277,9 +283,5 @@ public class ProductVo implements Serializable {
|
||||||
*/
|
*/
|
||||||
private Integer pkCubasdoc;
|
private Integer pkCubasdoc;
|
||||||
|
|
||||||
/**
|
|
||||||
* 仓储产品编号
|
|
||||||
*/
|
|
||||||
private String wmsCode;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
<result column="LISTING_TIME" property="listingTime"/>
|
<result column="LISTING_TIME" property="listingTime"/>
|
||||||
<result column="REMOVAL_TIME" property="removalTime"/>
|
<result column="REMOVAL_TIME" property="removalTime"/>
|
||||||
<result column="WMS_CODE" property="wmsCode"/>
|
<result column="WMS_CODE" property="wmsCode"/>
|
||||||
|
<result column="CLASSIFY_NAME" property="classifyName"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="getLastProductCode" resultType="string">
|
<select id="getLastProductCode" resultType="string">
|
||||||
|
@ -86,20 +87,22 @@
|
||||||
|
|
||||||
<select id="selectByQueryList" resultMap="ProductResultMap">
|
<select id="selectByQueryList" resultMap="ProductResultMap">
|
||||||
select
|
select
|
||||||
bp.PK_ID,bp.PRODUCT_CODE,bp.PRODUCT_NAME,bp.PK_CLASSIFY,bp.COVER,bp.SHIPPING_CHANNEL,bp.LENGTH,bp.WIDTH,bp.HEIGHT,bp.WEIGHT,bp.POSTAGE_WEIGHT,bp.UNIT,
|
bp.PK_ID,bp.PRODUCT_CODE,bp.PRODUCT_NAME,bp.PK_CLASSIFY,bp.COVER,bp.SHIPPING_CHANNEL,
|
||||||
|
bp.LENGTH,bp.WIDTH,bp.HEIGHT,bp.WEIGHT,bp.POSTAGE_WEIGHT,bp.UNIT,
|
||||||
bp.PRODUCT_ATTR,bp.RETAIL_PRICE,bp.SHELF_LIFE,bp.IS_FRESH,
|
bp.PRODUCT_ATTR,bp.RETAIL_PRICE,bp.SHELF_LIFE,bp.IS_FRESH,
|
||||||
(select REPLACE(wm_concat(st.TYPE_NAME),',','/') from BD_PRODUCT_SPECS ps
|
(select REPLACE(wm_concat(st.TYPE_NAME),',','/') from BD_PRODUCT_SPECS ps
|
||||||
left join BD_SPECS_TYPE st on st.PK_ID = ps.PK_SPECS_TYPE
|
left join BD_SPECS_TYPE st on st.PK_ID = ps.PK_SPECS_TYPE
|
||||||
where ps.PK_PRODUCT = bp.PK_ID and ps.DEL_FLAG = '0') productSpecType,
|
where ps.PK_PRODUCT = bp.PK_ID and ps.DEL_FLAG = '0') productSpecType,
|
||||||
pe.IS_GIFT,pe.IS_PICK_UP,pe.IS_PRIZE,pe.IS_BAR_CODE,pe.IS_MERGE,pe.IS_LAND_TRANS
|
pe.IS_GIFT,pe.IS_PICK_UP,pe.IS_PRIZE,pe.IS_BAR_CODE,pe.IS_MERGE,pe.IS_LAND_TRANS,
|
||||||
,pe.IS_AIR_TRANS,pe.IS_OCEAN_TRANS,pe.SORT,bp.CREATION_TIME,
|
pe.IS_AIR_TRANS,pe.IS_OCEAN_TRANS,pe.SORT,bp.CREATION_TIME,
|
||||||
bu.NAME unitVal,bc.CUST_NAME custName,pe.IS_PUT_ON,bp.LISTING_TIME,bp.REMOVAL_TIME
|
bu.NAME unitVal,bc.CUST_NAME custName,pe.IS_PUT_ON,bp.LISTING_TIME,bp.REMOVAL_TIME,
|
||||||
|
bp.wms_code, bcl.name classify_name
|
||||||
from BD_PRODUCT bp
|
from BD_PRODUCT bp
|
||||||
left join BD_PRODUCT_EXTEND pe on pe.PK_PRODUCT = bp.PK_ID
|
left join BD_PRODUCT_EXTEND pe on pe.PK_PRODUCT = bp.PK_ID
|
||||||
left join BD_UNIT bu on bu.PK_ID = bp.UNIT
|
left join BD_UNIT bu on bu.PK_ID = bp.UNIT
|
||||||
left join BD_CUBASDOC bc on bc.pk_id = bp.PK_CUBASDOC
|
left join BD_CUBASDOC bc on bc.pk_id = bp.PK_CUBASDOC
|
||||||
where 1 = 1 and bp.DEL_FLAG = '0'
|
left join BD_CLASSIFY bcl on bcl.pk_id = bp.PK_CLASSIFY
|
||||||
|
where 1 = 1 and bp.DEL_FLAG = 0
|
||||||
<if test="isExistSpecs != null">
|
<if test="isExistSpecs != null">
|
||||||
and (select count(ps.PK_ID) from BD_PRODUCT_SPECS ps where bp.PK_ID = ps.PK_PRODUCT and ps.del_flag = 0) > 0
|
and (select count(ps.PK_ID) from BD_PRODUCT_SPECS ps where bp.PK_ID = ps.PK_PRODUCT and ps.del_flag = 0) > 0
|
||||||
</if>
|
</if>
|
||||||
|
@ -163,6 +166,9 @@
|
||||||
<if test="endCreateDate != null">
|
<if test="endCreateDate != null">
|
||||||
and bp.CREATION_TIME <= #{endCreateDate}
|
and bp.CREATION_TIME <= #{endCreateDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="wmsCode != null">
|
||||||
|
and bp.wms_code = #{wmsCode}
|
||||||
|
</if>
|
||||||
order by pe.SORT desc
|
order by pe.SORT desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue