| | |
| | | from reporting_work as rw |
| | | where rw.process_id = #{processId} and reviewed_state>=0 |
| | | </select> |
| | | <!-- 查询报工表内是否有对应流程卡--> |
| | | <select id="reportingWorkCountByOrderId"> |
| | | select COUNT(rw.process_id) |
| | | from pp.reporting_work as rw |
| | | where rw.order_id = #{orderId} and reviewed_state>=0 |
| | | </select> |
| | | |
| | | <!-- 插入Flow_card表--> |
| | | <insert id="addFlowCardMp"> |
| | | insert into flow_card (order_id, |
| | |
| | | select processPrintNum from optimize_project where project_no=#{projectNo} |
| | | </select> |
| | | |
| | | |
| | | <select id="flowCardToOptimizeCount"> |
| | | select count(*) from pp.flow_card where order_id = #{orderId} and engineering_occupancy=1 |
| | | </select> |
| | | </mapper> |