fix: 修正日计划持久层约束
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
FROM lms_daily_plan
|
||||
WHERE deleted = b'0'
|
||||
AND order_status = #{reqVO.orderStatus}
|
||||
AND #{reqVO.orderStatus} IN (1, 3)
|
||||
<include refid="planOrOrderCodeCondition"/>
|
||||
<include refid="materialKeywordCondition"/>
|
||||
ORDER BY sort_seq ASC, daily_plan_id ASC
|
||||
@@ -109,7 +110,7 @@
|
||||
previous_order_status, previous_stocking_status, previous_sleeving_status,
|
||||
order_start_time, order_end_time, stocking_start_time, stocking_complete_time,
|
||||
sleeving_start_time, sleeving_complete_time, version,
|
||||
creator, create_time, updater, update_time, deleted, tenant_id)
|
||||
creator, updater)
|
||||
VALUES
|
||||
(#{plan.dailyPlanId}, #{plan.planCode}, #{plan.sourceType}, #{plan.erpOrderCode}, #{plan.manualOrderCode},
|
||||
#{plan.planDate}, #{plan.materialId}, #{plan.materialCode}, #{plan.materialName}, #{plan.materialSpec},
|
||||
@@ -118,7 +119,7 @@
|
||||
#{plan.previousOrderStatus}, #{plan.previousStockingStatus}, #{plan.previousSleevingStatus},
|
||||
#{plan.orderStartTime}, #{plan.orderEndTime}, #{plan.stockingStartTime}, #{plan.stockingCompleteTime},
|
||||
#{plan.sleevingStartTime}, #{plan.sleevingCompleteTime}, #{plan.version},
|
||||
#{plan.creator}, #{plan.createTime}, #{plan.updater}, #{plan.updateTime}, #{plan.deleted}, #{plan.tenantId})
|
||||
#{plan.creator}, #{plan.updater})
|
||||
</insert>
|
||||
|
||||
<update id="updateNotStartedPlan">
|
||||
|
||||
@@ -12,14 +12,13 @@
|
||||
INSERT INTO lms_daily_plan_operation_log
|
||||
(operation_log_id, daily_plan_id, operation_target, operation_type,
|
||||
before_value, after_value, change_qty, operation_reason,
|
||||
operator, operation_time, deleted, tenant_id)
|
||||
operator, operation_time)
|
||||
VALUES
|
||||
(#{operationLog.operationLogId}, #{operationLog.dailyPlanId},
|
||||
#{operationLog.operationTarget}, #{operationLog.operationType},
|
||||
#{operationLog.beforeValue}, #{operationLog.afterValue},
|
||||
#{operationLog.changeQty}, #{operationLog.operationReason},
|
||||
#{operationLog.operator}, #{operationLog.operationTime},
|
||||
#{operationLog.deleted}, #{operationLog.tenantId})
|
||||
#{operationLog.operator}, #{operationLog.operationTime})
|
||||
</insert>
|
||||
|
||||
<select id="selectListByDailyPlanId"
|
||||
|
||||
Reference in New Issue
Block a user