|
|
@ -420,6 +420,17 @@ |
|
|
delete from ecss_hsCode where site=#{site} and buNo=#{buNo} and hsCodeDesc=#{hsCodeDesc} and ISNULL(brand,'无') = ISNULL(#{brand},'无') |
|
|
delete from ecss_hsCode where site=#{site} and buNo=#{buNo} and hsCodeDesc=#{hsCodeDesc} and ISNULL(brand,'无') = ISNULL(#{brand},'无') |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 物料绑定以 Part.hsCodeDesc+brand 为准,需与品名档案唯一键保持一致 --> |
|
|
|
|
|
<select id="listPartNosBoundByHsCode" resultType="java.lang.String"> |
|
|
|
|
|
select distinct a.part_no |
|
|
|
|
|
from Part a |
|
|
|
|
|
where a.site = #{site} |
|
|
|
|
|
and a.sourceBu = #{buNo} |
|
|
|
|
|
and a.hsCodeDesc = #{hsCodeDesc} |
|
|
|
|
|
and ISNULL(a.brand, '无') = ISNULL(#{brand}, '无') |
|
|
|
|
|
order by a.part_no |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="searchPropertiesItemList" resultType="com.xujie.sys.modules.attrbute.entity.PropertyItem"> |
|
|
<select id="searchPropertiesItemList" resultType="com.xujie.sys.modules.attrbute.entity.PropertyItem"> |
|
|
select |
|
|
select |
|
|
id,site,bu_no,item_no,item_type,item_desc,default_value,value_type,value_type_db,value_choose_flag,min_value,max_value, |
|
|
id,site,bu_no,item_no,item_type,item_desc,default_value,value_type,value_type_db,value_choose_flag,min_value,max_value, |
|
|
@ -2180,6 +2191,9 @@ create_by,create_date,update_by,update_date |
|
|
<if test = "query.partDesc != null and query.partDesc != ''"> |
|
|
<if test = "query.partDesc != null and query.partDesc != ''"> |
|
|
AND a.part_desc like '%' + #{query.partDesc} + '%' |
|
|
AND a.part_desc like '%' + #{query.partDesc} + '%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = "query.hsCodeDesc != null and query.hsCodeDesc != ''"> |
|
|
|
|
|
AND a.hsCodeDesc like '%' + #{query.hsCodeDesc} + '%' |
|
|
|
|
|
</if> |
|
|
<if test = "query.sku != null and query.sku != ''"> |
|
|
<if test = "query.sku != null and query.sku != ''"> |
|
|
AND a.sku like '%' + #{query.sku} + '%' |
|
|
AND a.sku like '%' + #{query.sku} + '%' |
|
|
</if> |
|
|
</if> |
|
|
|