|
|
|
@ -424,6 +424,7 @@ create_by,create_date,update_by,update_date |
|
|
|
SELECT a.part_no |
|
|
|
, a.Site |
|
|
|
, a.code_no |
|
|
|
, a.brand |
|
|
|
, a.sub_code_seq_no |
|
|
|
, a.sub_code_desc |
|
|
|
,a.bu_no |
|
|
|
@ -445,6 +446,9 @@ create_by,create_date,update_by,update_date |
|
|
|
and a.bu_no=#{buNo} |
|
|
|
and a.code_no = #{codeNo} |
|
|
|
AND a.part_no = #{partNo,jdbcType=VARCHAR} |
|
|
|
<if test="brand != null and brand != ''"> |
|
|
|
AND ISNULL(a.brand,'无') = ISNULL(#{brand},'无') |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by a.item_no |
|
|
|
</select> |
|
|
|
@ -458,17 +462,21 @@ create_by,create_date,update_by,update_date |
|
|
|
and sub_code_seq_no = #{subCodeSeqNo} |
|
|
|
and item_no = #{itemNo} |
|
|
|
and bu_no=#{buNo} |
|
|
|
<if test="brand != null and brand != ''"> |
|
|
|
and ISNULL(brand,'无') = ISNULL(#{brand},'无') |
|
|
|
</if> |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<insert id="saveSubPropertiesValueForAlone"> |
|
|
|
insert into part_sub_properties_value ( part_no, site, bu_no, code_no, sub_code_seq_no, sub_code_desc, |
|
|
|
insert into part_sub_properties_value ( part_no, site, bu_no, code_no, brand, sub_code_seq_no, sub_code_desc, |
|
|
|
item_no, properties_item_no, text_value, num_value, record_type) |
|
|
|
select |
|
|
|
#{partNo}, |
|
|
|
#{site}, |
|
|
|
#{buNo}, |
|
|
|
#{codeNo}, |
|
|
|
#{brand,jdbcType=NVARCHAR}, |
|
|
|
1, |
|
|
|
d.code_desc, |
|
|
|
#{itemNo,jdbcType=DOUBLE}, |
|
|
|
@ -492,6 +500,9 @@ create_by,create_date,update_by,update_date |
|
|
|
and bu_no=#{buNo} |
|
|
|
and code_no = #{codeNo} |
|
|
|
AND part_no = #{partNo,jdbcType=VARCHAR} |
|
|
|
<if test="brand != null and brand != ''"> |
|
|
|
AND ISNULL(brand,'无') = ISNULL(#{brand},'无') |
|
|
|
</if> |
|
|
|
and properties_item_no = #{propertiesItemNo} |
|
|
|
</delete> |
|
|
|
|
|
|
|
@ -503,6 +514,9 @@ create_by,create_date,update_by,update_date |
|
|
|
and a.bu_no=#{buNo} |
|
|
|
and a.code_no = #{codeNo} |
|
|
|
AND a.part_no = #{partNo,jdbcType=VARCHAR} |
|
|
|
<if test="brand != null and brand != ''"> |
|
|
|
AND ISNULL(a.brand,'无') = ISNULL(#{brand},'无') |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="searchPropertiesUnChoose" resultType="com.xujie.sys.modules.ecss.entity.PropertyItemData"> |
|
|
|
|