|
|
@ -18,6 +18,7 @@ |
|
|
a.task_qty as taskQty, |
|
|
a.task_qty as taskQty, |
|
|
a.report_qty as reportQty, |
|
|
a.report_qty as reportQty, |
|
|
a.auto_assign_all_users as autoAssignAllUsers, |
|
|
a.auto_assign_all_users as autoAssignAllUsers, |
|
|
|
|
|
a.node_report_mode as nodeReportMode, |
|
|
convert(varchar(10), a.plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), a.plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), a.plan_finish_date, 23) as planFinishDate, |
|
|
convert(varchar(10), a.plan_finish_date, 23) as planFinishDate, |
|
|
a.status, |
|
|
a.status, |
|
|
@ -77,6 +78,7 @@ |
|
|
a.task_qty as taskQty, |
|
|
a.task_qty as taskQty, |
|
|
a.report_qty as reportQty, |
|
|
a.report_qty as reportQty, |
|
|
a.auto_assign_all_users as autoAssignAllUsers, |
|
|
a.auto_assign_all_users as autoAssignAllUsers, |
|
|
|
|
|
a.node_report_mode as nodeReportMode, |
|
|
convert(varchar(10), a.plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), a.plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), a.plan_finish_date, 23) as planFinishDate, |
|
|
convert(varchar(10), a.plan_finish_date, 23) as planFinishDate, |
|
|
a.status, |
|
|
a.status, |
|
|
@ -181,6 +183,7 @@ |
|
|
task_qty as taskQty, |
|
|
task_qty as taskQty, |
|
|
report_qty as reportQty, |
|
|
report_qty as reportQty, |
|
|
auto_assign_all_users as autoAssignAllUsers, |
|
|
auto_assign_all_users as autoAssignAllUsers, |
|
|
|
|
|
node_report_mode as nodeReportMode, |
|
|
convert(varchar(10), plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), plan_delivery_date, 23) as planDeliveryDate, |
|
|
convert(varchar(10), plan_finish_date, 23) as planFinishDate, |
|
|
convert(varchar(10), plan_finish_date, 23) as planFinishDate, |
|
|
status, |
|
|
status, |
|
|
@ -194,11 +197,11 @@ |
|
|
insert into lc_production_order |
|
|
insert into lc_production_order |
|
|
(order_no, order_type, task_no, task_type, source_project_no, project_no, model_no, color, floor_count, |
|
|
(order_no, order_type, task_no, task_type, source_project_no, project_no, model_no, color, floor_count, |
|
|
special_requirement, task_qty, report_qty, plan_delivery_date, plan_finish_date, status, finish_date, |
|
|
special_requirement, task_qty, report_qty, plan_delivery_date, plan_finish_date, status, finish_date, |
|
|
auto_assign_all_users, create_time, create_by, update_time, update_by) |
|
|
|
|
|
|
|
|
auto_assign_all_users, node_report_mode, create_time, create_by, update_time, update_by) |
|
|
values |
|
|
values |
|
|
(#{orderNo}, #{orderType}, #{taskNo}, #{taskType}, #{sourceProjectNo}, #{projectNo}, #{modelNo}, #{color}, #{floorCount}, |
|
|
(#{orderNo}, #{orderType}, #{taskNo}, #{taskType}, #{sourceProjectNo}, #{projectNo}, #{modelNo}, #{color}, #{floorCount}, |
|
|
#{specialRequirement}, #{taskQty}, ISNULL(#{reportQty}, 0), #{planDeliveryDate,jdbcType=DATE}, #{planFinishDate,jdbcType=DATE}, #{status}, #{finishDate,jdbcType=DATE}, |
|
|
#{specialRequirement}, #{taskQty}, ISNULL(#{reportQty}, 0), #{planDeliveryDate,jdbcType=DATE}, #{planFinishDate,jdbcType=DATE}, #{status}, #{finishDate,jdbcType=DATE}, |
|
|
ISNULL(#{autoAssignAllUsers}, 0), GETDATE(), #{createBy}, GETDATE(), #{updateBy}) |
|
|
|
|
|
|
|
|
ISNULL(#{autoAssignAllUsers}, 0), ISNULL(#{nodeReportMode}, 'PARALLEL'), GETDATE(), #{createBy}, GETDATE(), #{updateBy}) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
<update id="updateOrder"> |
|
|
<update id="updateOrder"> |
|
|
@ -217,6 +220,7 @@ |
|
|
plan_finish_date = #{planFinishDate,jdbcType=DATE}, |
|
|
plan_finish_date = #{planFinishDate,jdbcType=DATE}, |
|
|
status = #{status}, |
|
|
status = #{status}, |
|
|
auto_assign_all_users = ISNULL(#{autoAssignAllUsers}, 0), |
|
|
auto_assign_all_users = ISNULL(#{autoAssignAllUsers}, 0), |
|
|
|
|
|
node_report_mode = ISNULL(#{nodeReportMode}, 'PARALLEL'), |
|
|
finish_date = #{finishDate,jdbcType=DATE}, |
|
|
finish_date = #{finishDate,jdbcType=DATE}, |
|
|
update_time = GETDATE(), |
|
|
update_time = GETDATE(), |
|
|
update_by = #{updateBy} |
|
|
update_by = #{updateBy} |
|
|
|