|
|
|
@ -24,7 +24,8 @@ |
|
|
|
c.um_name as printUnitName, |
|
|
|
a.official_flag, |
|
|
|
b.ifs_part_no, |
|
|
|
b.plm_part_no |
|
|
|
b.plm_part_no, |
|
|
|
a.product_group_id4 |
|
|
|
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 |
|
|
|
@ -183,9 +184,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) |
|
|
|
(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) |
|
|
|
VALUES |
|
|
|
(#{site}, #{partNo}, #{engChgLevel}, #{bomType}, #{noteText}, #{effPhaseInDate}, #{effPhaseOutDate}, #{engRevision}, #{typeFlag}, #{netWeight}, #{officialFlag}, getDate(), #{createBy}) |
|
|
|
(#{site}, #{partNo}, #{engChgLevel}, #{bomType}, #{noteText}, #{effPhaseInDate}, #{effPhaseOutDate}, #{engRevision}, #{typeFlag}, #{netWeight}, #{officialFlag}, getDate(), #{createBy}, #{productGroupId4}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- recipe明细新增 --> |
|
|
|
@ -409,7 +410,8 @@ |
|
|
|
net_weight = #{netWeight}, |
|
|
|
note_text = #{noteText}, |
|
|
|
update_date = getDate(), |
|
|
|
update_by = #{updateBy} |
|
|
|
update_by = #{updateBy}, |
|
|
|
product_group_id4 = #{productGroupId4} |
|
|
|
where site = #{site} and part_no = #{partNo} and eng_chg_level = #{engChgLevel} and bom_type = #{bomType} |
|
|
|
</update> |
|
|
|
|
|
|
|
@ -453,7 +455,8 @@ |
|
|
|
type_flag, |
|
|
|
net_weight, |
|
|
|
note_text, |
|
|
|
official_flag |
|
|
|
official_flag, |
|
|
|
product_group_id4 |
|
|
|
FROM plm_recipe_header |
|
|
|
where site = #{site} and part_no = #{partNo} and bom_type = #{bomType} and eng_chg_level = #{engChgLevel} |
|
|
|
</select> |
|
|
|
|