|
|
@ -1328,10 +1328,10 @@ |
|
|
|
|
|
|
|
|
<!-- 批量新增 --> |
|
|
<!-- 批量新增 --> |
|
|
<insert id="syncSaveLaborClass"> |
|
|
<insert id="syncSaveLaborClass"> |
|
|
INSERT INTO labor_class (site, level_id, level_desc, level_cost, active, ifs_row_version) |
|
|
|
|
|
|
|
|
INSERT INTO labor_class (site, level_id, level_desc, level_cost, active, ifs_row_version, show_in_query_flag) |
|
|
VALUES |
|
|
VALUES |
|
|
<foreach item="item" collection="list" separator=","> |
|
|
<foreach item="item" collection="list" separator=","> |
|
|
(#{item.site}, #{item.levelId}, #{item.levelDesc}, #{item.levelCost}, #{item.active}, #{item.ifsRowVersion}) |
|
|
|
|
|
|
|
|
(#{item.site}, #{item.levelId}, #{item.levelDesc}, #{item.levelCost}, #{item.active}, #{item.ifsRowVersion}, #{item.showInQueryFlag}) |
|
|
</foreach> |
|
|
</foreach> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -1357,6 +1357,12 @@ |
|
|
</foreach> |
|
|
</foreach> |
|
|
ELSE level_cost |
|
|
ELSE level_cost |
|
|
END, |
|
|
END, |
|
|
|
|
|
show_in_query_flag = CASE level_id |
|
|
|
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
|
|
|
WHEN #{item.levelId} THEN #{item.showInQueryFlag} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
ELSE show_in_query_flag |
|
|
|
|
|
END, |
|
|
ifs_row_version = CASE level_id |
|
|
ifs_row_version = CASE level_id |
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
WHEN #{item.levelId} THEN #{item.ifsRowVersion} |
|
|
WHEN #{item.levelId} THEN #{item.ifsRowVersion} |
|
|
@ -1417,11 +1423,11 @@ |
|
|
<!-- 批量新增 --> |
|
|
<!-- 批量新增 --> |
|
|
<insert id="syncSaveWorkCenter"> |
|
|
<insert id="syncSaveWorkCenter"> |
|
|
INSERT INTO work_center (site, work_center_no, work_center_desc, work_center_type_db, work_center_type, average_capacity, efficiency, utilization, capacity_type_db, capacity_type, |
|
|
INSERT INTO work_center (site, work_center_no, work_center_desc, work_center_type_db, work_center_type, average_capacity, efficiency, utilization, capacity_type_db, capacity_type, |
|
|
um_id, active, remark, pro_line_no, can_create_new_roll_flag, need_setup_flag, ifs_row_version) |
|
|
|
|
|
|
|
|
um_id, active, remark, pro_line_no, can_create_new_roll_flag, need_setup_flag, ifs_row_version, show_in_query_flag) |
|
|
VALUES |
|
|
VALUES |
|
|
<foreach item="item" collection="list" separator=","> |
|
|
<foreach item="item" collection="list" separator=","> |
|
|
(#{item.site}, #{item.workCenterNo}, #{item.workCenterDesc}, #{item.workCenterTypeDB}, #{item.workCenterType}, #{item.averageCapacity,jdbcType=DECIMAL}, #{item.efficiency,jdbcType=DECIMAL}, #{item.utilization,jdbcType=DECIMAL}, #{item.capacityTypeDB}, #{item.capacityType}, |
|
|
(#{item.site}, #{item.workCenterNo}, #{item.workCenterDesc}, #{item.workCenterTypeDB}, #{item.workCenterType}, #{item.averageCapacity,jdbcType=DECIMAL}, #{item.efficiency,jdbcType=DECIMAL}, #{item.utilization,jdbcType=DECIMAL}, #{item.capacityTypeDB}, #{item.capacityType}, |
|
|
#{item.umId}, #{item.active}, #{item.remark}, #{item.proLineNo}, #{item.canCreateNewRollFlag}, #{item.needSetupFlag}, #{item.ifsRowVersion}) |
|
|
|
|
|
|
|
|
#{item.umId}, #{item.active}, #{item.remark}, #{item.proLineNo}, #{item.canCreateNewRollFlag}, #{item.needSetupFlag}, #{item.ifsRowVersion}, #{item.showInQueryFlag}) |
|
|
</foreach> |
|
|
</foreach> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -1489,6 +1495,12 @@ |
|
|
</foreach> |
|
|
</foreach> |
|
|
ELSE active |
|
|
ELSE active |
|
|
END, |
|
|
END, |
|
|
|
|
|
show_in_query_flag = CASE work_center_no |
|
|
|
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
|
|
|
WHEN #{item.workCenterNo} THEN #{item.showInQueryFlag} |
|
|
|
|
|
</foreach> |
|
|
|
|
|
ELSE show_in_query_flag |
|
|
|
|
|
END, |
|
|
remark = CASE work_center_no |
|
|
remark = CASE work_center_no |
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
<foreach item="item" index="index" collection="list" open="" close="" separator=" "> |
|
|
WHEN #{item.workCenterNo} THEN #{item.remark} |
|
|
WHEN #{item.workCenterNo} THEN #{item.remark} |
|
|
|