|
|
|
@ -24,8 +24,7 @@ |
|
|
|
c.um_name as printUnitName, |
|
|
|
a.official_flag, |
|
|
|
b.ifs_part_no, |
|
|
|
b.plm_part_no, |
|
|
|
a.product_group_id4 |
|
|
|
b.plm_part_no |
|
|
|
FROM plm_recipe_header as a |
|
|
|
left join part as b on a.site = b.site and a.part_no = b.part_no |
|
|
|
left join um as c on b.um_id = c.um_id |
|
|
|
@ -110,7 +109,8 @@ |
|
|
|
a.part_status, |
|
|
|
d.part_status_desc, |
|
|
|
a.plm_part_no, |
|
|
|
a.ifs_part_no |
|
|
|
a.ifs_part_no, |
|
|
|
a.product_group_id4 |
|
|
|
FROM part as a |
|
|
|
left join um as b on a.um_id = b.um_id |
|
|
|
left join part_family as c on a.site = c.site and a.family_id = c.family_id |
|
|
|
@ -134,6 +134,12 @@ |
|
|
|
<if test = "query.status != null and query.status != ''"> |
|
|
|
AND a.status = #{query.status} |
|
|
|
</if> |
|
|
|
<if test = "query.productGroupId4 != null and query.productGroupId4 != ''"> |
|
|
|
AND a.product_group_id4 = #{query.productGroupId4} |
|
|
|
</if> |
|
|
|
<if test = "query.partStatus != null and query.partStatus == 'active'"> |
|
|
|
AND a.part_status != 'D' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -190,9 +196,9 @@ |
|
|
|
<!-- 新增Recipe主表内容 --> |
|
|
|
<insert id="saveRecipeHeader" parameterType="RecipeHeaderEntity"> |
|
|
|
INSERT INTO plm_recipe_header |
|
|
|
(site, part_no, eng_chg_level, bom_type, note_text, eff_phase_in_date, eff_phase_out_date, eng_revision, type_flag, net_weight, official_flag, create_date, create_by, product_group_id4) |
|
|
|
(site, part_no, eng_chg_level, bom_type, note_text, eff_phase_in_date, eff_phase_out_date, eng_revision, type_flag, net_weight, official_flag, create_date, create_by) |
|
|
|
VALUES |
|
|
|
(#{site}, #{partNo}, #{engChgLevel}, #{bomType}, #{noteText}, #{effPhaseInDate}, #{effPhaseOutDate}, #{engRevision}, #{typeFlag}, #{netWeight}, #{officialFlag}, getDate(), #{createBy}, #{productGroupId4}) |
|
|
|
(#{site}, #{partNo}, #{engChgLevel}, #{bomType}, #{noteText}, #{effPhaseInDate}, #{effPhaseOutDate}, #{engRevision}, #{typeFlag}, #{netWeight}, #{officialFlag}, getDate(), #{createBy}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- recipe明细新增 --> |
|
|
|
@ -416,8 +422,7 @@ |
|
|
|
net_weight = #{netWeight}, |
|
|
|
note_text = #{noteText}, |
|
|
|
update_date = getDate(), |
|
|
|
update_by = #{updateBy}, |
|
|
|
product_group_id4 = #{productGroupId4} |
|
|
|
update_by = #{updateBy} |
|
|
|
where site = #{site} and part_no = #{partNo} and eng_chg_level = #{engChgLevel} and bom_type = #{bomType} |
|
|
|
</update> |
|
|
|
|
|
|
|
@ -461,8 +466,7 @@ |
|
|
|
type_flag, |
|
|
|
net_weight, |
|
|
|
note_text, |
|
|
|
official_flag, |
|
|
|
product_group_id4 |
|
|
|
official_flag |
|
|
|
FROM plm_recipe_header |
|
|
|
where site = #{site} and part_no = #{partNo} and bom_type = #{bomType} and eng_chg_level = #{engChgLevel} |
|
|
|
</select> |
|
|
|
|