|
|
@ -23,8 +23,8 @@ |
|
|
t.pm_inquery_time, |
|
|
t.pm_inquery_time, |
|
|
t.importance, |
|
|
t.importance, |
|
|
-- 打样完成日期口径:actuality_delivery_date(DeliveryPackage 完成时回写),未完成则为空。 |
|
|
-- 打样完成日期口径:actuality_delivery_date(DeliveryPackage 完成时回写),未完成则为空。 |
|
|
CASE WHEN t.actuality_delivery_date IS NULL THEN NULL ELSE YEAR(t.actuality_delivery_date) END AS sampleMakingYear, |
|
|
|
|
|
CASE WHEN t.actuality_delivery_date IS NULL THEN NULL ELSE MONTH(t.actuality_delivery_date) END AS sampleMakingMonth, |
|
|
|
|
|
|
|
|
CASE WHEN t.required_delivery_date IS NULL THEN NULL ELSE YEAR(t.required_delivery_date) END AS sampleMakingYear, |
|
|
|
|
|
CASE WHEN t.required_delivery_date IS NULL THEN NULL ELSE MONTH(t.required_delivery_date) END AS sampleMakingMonth, |
|
|
CASE |
|
|
CASE |
|
|
WHEN t.actuality_delivery_date IS NULL OR t.plan_start_date IS NULL THEN NULL |
|
|
WHEN t.actuality_delivery_date IS NULL OR t.plan_start_date IS NULL THEN NULL |
|
|
ELSE DATEDIFF(DAY, t.plan_start_date, t.actuality_delivery_date) |
|
|
ELSE DATEDIFF(DAY, t.plan_start_date, t.actuality_delivery_date) |
|
|
@ -561,6 +561,7 @@ |
|
|
proofing_number = #{proofingNumber}, |
|
|
proofing_number = #{proofingNumber}, |
|
|
plan_start_date = #{planStartDate,jdbcType=DATE}, |
|
|
plan_start_date = #{planStartDate,jdbcType=DATE}, |
|
|
required_delivery_date = #{requiredDeliveryDate,jdbcType=DATE}, |
|
|
required_delivery_date = #{requiredDeliveryDate,jdbcType=DATE}, |
|
|
|
|
|
baseline = #{baseline,jdbcType=DATE}, |
|
|
pm_inquery_time = #{pmInqueryTime,jdbcType=DATE}, |
|
|
pm_inquery_time = #{pmInqueryTime,jdbcType=DATE}, |
|
|
importance = #{importance}, |
|
|
importance = #{importance}, |
|
|
project_phase = #{projectPhase}, |
|
|
project_phase = #{projectPhase}, |
|
|
|