|
|
|
@ -1140,6 +1140,17 @@ |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<!-- <!– 批量更新 –>--> |
|
|
|
<!-- <update id="syncUpdateLocation" parameterType="LocationInformationEntity">--> |
|
|
|
<!-- UPDATE location SET--> |
|
|
|
<!-- location_name = #{locationName},--> |
|
|
|
<!-- active = #{active},--> |
|
|
|
<!-- warehouse_id = #{warehouseId},--> |
|
|
|
<!-- location_type = #{locationType},--> |
|
|
|
<!-- ifs_row_version = #{ifsRowVersion}--> |
|
|
|
<!-- WHERE location_id = #{locationId} AND site = #{site}--> |
|
|
|
<!-- </update>--> |
|
|
|
|
|
|
|
<select id="getPLMLaborClasss" resultType="PersonnelLevel"> |
|
|
|
select |
|
|
|
site, |
|
|
|
@ -1187,6 +1198,16 @@ |
|
|
|
</foreach> |
|
|
|
</update> |
|
|
|
|
|
|
|
<!-- <!– 批量更新 –>--> |
|
|
|
<!-- <update id="syncUpdateLaborClass" parameterType="PersonnelLevel">--> |
|
|
|
<!-- UPDATE labor_class SET--> |
|
|
|
<!-- level_desc = #{levelDesc},--> |
|
|
|
<!-- active = #{active},--> |
|
|
|
<!-- level_cost = #{levelCost},--> |
|
|
|
<!-- ifs_row_version = #{ifsRowVersion}--> |
|
|
|
<!-- WHERE level_id = #{levelId} AND site = #{site}--> |
|
|
|
<!-- </update>--> |
|
|
|
|
|
|
|
<select id="getPLMWorkCenters" resultType="WorkCenter"> |
|
|
|
select |
|
|
|
site, |
|
|
|
@ -1232,30 +1253,50 @@ |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<!-- <!– 批量更新 –>--> |
|
|
|
<!-- <update id="syncUpdateWorkCenter" parameterType="java.util.List">--> |
|
|
|
<!-- UPDATE work_center SET--> |
|
|
|
<!-- <foreach item="item" index="index" collection="list" separator=",">--> |
|
|
|
<!-- work_center_desc = #{item.workCenterDesc},--> |
|
|
|
<!-- work_center_type_db = #{item.workCenterTypeDB},--> |
|
|
|
<!-- work_center_type = #{item.workCenterType},--> |
|
|
|
<!-- average_capacity = #{item.averageCapacity,jdbcType=DECIMAL},--> |
|
|
|
<!-- efficiency = #{item.efficiency,jdbcType=DECIMAL},--> |
|
|
|
<!-- utilization = #{item.utilization,jdbcType=DECIMAL},--> |
|
|
|
<!-- capacity_type_db = #{item.capacityTypeDB},--> |
|
|
|
<!-- capacity_type = #{item.capacityType},--> |
|
|
|
<!-- um_id = #{item.umId},--> |
|
|
|
<!-- active = #{item.active},--> |
|
|
|
<!-- remark = #{item.remark},--> |
|
|
|
<!-- pro_line_no = #{item.proLineNo},--> |
|
|
|
<!-- can_create_new_roll_flag = #{item.canCreateNewRollFlag},--> |
|
|
|
<!-- need_setup_flag = #{item.needSetupFlag},--> |
|
|
|
<!-- ifs_row_version = #{item.ifsRowVersion}--> |
|
|
|
<!-- </foreach>--> |
|
|
|
<!-- WHERE--> |
|
|
|
<!-- <foreach item="item" index="index" collection="list" open="(" separator=") OR (" close=")">--> |
|
|
|
<!-- work_center_no = #{item.workCenterNo} AND site = #{item.site}--> |
|
|
|
<!-- </foreach>--> |
|
|
|
<!-- </update>--> |
|
|
|
<!-- 批量更新 --> |
|
|
|
<update id="syncUpdateWorkCenter" parameterType="java.util.List"> |
|
|
|
<update id="syncUpdateWorkCenter" parameterType="WorkCenter"> |
|
|
|
UPDATE work_center SET |
|
|
|
<foreach item="item" index="index" collection="list" separator=","> |
|
|
|
work_center_desc = #{item.workCenterDesc}, |
|
|
|
work_center_type_db = #{item.workCenterTypeDB}, |
|
|
|
work_center_type = #{item.workCenterType}, |
|
|
|
average_capacity = #{item.averageCapacity,jdbcType=DECIMAL}, |
|
|
|
efficiency = #{item.efficiency,jdbcType=DECIMAL}, |
|
|
|
utilization = #{item.utilization,jdbcType=DECIMAL}, |
|
|
|
capacity_type_db = #{item.capacityTypeDB}, |
|
|
|
capacity_type = #{item.capacityType}, |
|
|
|
um_id = #{item.umId}, |
|
|
|
active = #{item.active}, |
|
|
|
remark = #{item.remark}, |
|
|
|
pro_line_no = #{item.proLineNo}, |
|
|
|
can_create_new_roll_flag = #{item.canCreateNewRollFlag}, |
|
|
|
need_setup_flag = #{item.needSetupFlag}, |
|
|
|
ifs_row_version = #{item.ifsRowVersion} |
|
|
|
</foreach> |
|
|
|
WHERE |
|
|
|
<foreach item="item" index="index" collection="list" open="(" separator=") OR (" close=")"> |
|
|
|
work_center_no = #{item.workCenterNo} AND site = #{item.site} |
|
|
|
</foreach> |
|
|
|
work_center_desc = #{workCenterDesc}, |
|
|
|
work_center_type_db = #{workCenterTypeDB}, |
|
|
|
work_center_type = #{workCenterType}, |
|
|
|
average_capacity = #{averageCapacity,jdbcType=DECIMAL}, |
|
|
|
efficiency = #{efficiency,jdbcType=DECIMAL}, |
|
|
|
utilization = #{utilization,jdbcType=DECIMAL}, |
|
|
|
capacity_type_db = #{capacityTypeDB}, |
|
|
|
capacity_type = #{capacityType}, |
|
|
|
um_id = #{umId}, |
|
|
|
active = #{active}, |
|
|
|
remark = #{remark}, |
|
|
|
pro_line_no = #{proLineNo}, |
|
|
|
can_create_new_roll_flag = #{canCreateNewRollFlag}, |
|
|
|
need_setup_flag = #{needSetupFlag}, |
|
|
|
ifs_row_version = #{ifsRowVersion} |
|
|
|
WHERE work_center_no = #{workCenterNo} AND site = #{site} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="getRoutingComponentRowKeyAndVersion" resultType="RoutingComponentEntity"> |
|
|
|
|