| | |
| | | left join pp.reporting_work as b |
| | | on a.reporting_work_id = b.reporting_work_id |
| | | left join patch_log as c |
| | | on a.reporting_work_id = c.reporting_work_id and a.process_id = c.process_id and a.order_number = c.order_sort |
| | | on a.reporting_work_id = c.reporting_work_id |
| | | and a.process_id = c.process_id |
| | | and a.order_number = c.order_sort |
| | | and a.technology_number = c.technology_number |
| | | WHERE a.process_id = #{processId} |
| | | <if test="needOrderNumber!=null"> |
| | | and a.order_number = #{orderNumber} |
| | |
| | | SELECT REGEXP_SUBSTR(#{behindProcess}, '[^,]+', 1, n) AS process |
| | | FROM cte |
| | | WHERE REGEXP_SUBSTR(#{behindProcess}, '[^,]+', 1, n) IS NOT NULL) |
| | | and c.review_status = 0 |
| | | and ifnull(c.review_status,0) = 0 |
| | | |
| | | </select> |
| | | <select id="getNotReview"> |