| | |
| | | unqualified_desc,inventory_quantity_id |
| | | </sql> |
| | | <select id="selectPageList" resultType="com.ruoyi.inspect.vo.UnqualifiedHandlerVO"> |
| | | select * from (select |
| | | select |
| | | * |
| | | from ( |
| | | select |
| | | iiq.*, |
| | | iuh.id as handler_id, |
| | | iuh.no, |
| | |
| | | iuh.oa_state, |
| | | iuh.request_id, |
| | | iuh.file_url, |
| | | iuh.headline |
| | | iuh.headline, |
| | | coa.operation |
| | | from |
| | | ins_unqualified_handler iuh |
| | | inner join |
| | | ifs_inventory_quantity iiq |
| | | on |
| | | iuh.inventory_quantity_id = iiq.id)tempA |
| | | iuh.inventory_quantity_id = iiq.id |
| | | LEFT JOIN ( |
| | | SELECT |
| | | *, |
| | | ROW_NUMBER() OVER (PARTITION BY workflow_id ORDER BY approval_time DESC, id DESC) AS rn |
| | | FROM |
| | | common_oa |
| | | ) AS coa ON iuh.request_id = coa.workflow_id AND coa.rn = 1 |
| | | )tempA |
| | | <where> |
| | | <if test="feedbackStartDate!=null and feedbackEndDate !=null"> |
| | | AND feedback_time between #{feedbackStartDate} AND #{feedbackEndDate} |
| | | </if> |
| | | </where> |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |