Commit 4d58b85e authored by 刘学辉's avatar 刘学辉

物料主数据的调整

parent abdc083e
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<sql-query> <sql-query>
SELECT t.id,t.message_sponsor_id,t.task_execute,t.business_code,t.update_date,t.finished_date,t.active, SELECT t.id,t.message_sponsor_id,t.task_execute,t.business_code,t.update_date,t.finished_date,t.active,
CASE WHEN t.active = 3 THEN CONCAT(t.task_describe, :addText) ELSE CASE WHEN t.active = 3 THEN CONCAT(t.task_describe, :addText) ELSE
case when t.business_code='HYZY' then SUBSTRING(t.task_describe,LOCATE('-.',t.task_describe)+1) case when t.business_code='HYZY' or t.business_code='LDQR' then SUBSTRING(t.task_describe,LOCATE('-.',t.task_describe)+1)
else t.task_describe end else t.task_describe end
END AS task_describe, END AS task_describe,
IFNULL(ad.maktx,left(t.task_describe,LOCATE('-.',t.task_describe)-1)) as title, IFNULL(ad.maktx,left(t.task_describe,LOCATE('-.',t.task_describe)-1)) as title,
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
LEFT JOIN bsn_message_sponsor t2 ON t2.id = t.message_sponsor_id LEFT JOIN bsn_message_sponsor t2 ON t2.id = t.message_sponsor_id
LEFT JOIN sap_non_prod_apply_dept ad ON ad.apply_dept_id = t2.business_id LEFT JOIN sap_non_prod_apply_dept ad ON ad.apply_dept_id = t2.business_id
left join sap_non_prod_apply_base_info bs on bs.id=ad.base_info_id left join sap_non_prod_apply_base_info bs on bs.id=ad.base_info_id
WHERE t.active IN (0, 3) and (bs.distribute=2 or t.business_code='INIT_DPT' or t.business_code='HYZY' ) WHERE t.active IN (0, 3) and (bs.distribute=2 or t.business_code='INIT_DPT' or t.business_code='HYZY' or t.business_code='LDQR' )
and task_execute = :taskExecute and task_execute = :taskExecute
</sql-query> </sql-query>
</query> </query>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment