| | |
| | | from (select * |
| | | from cnas_process_method_search_new |
| | | <where> |
| | | and is_auto_archived = 0 |
| | | <if test="beginDate != null and beginDate != '' and endDate != null and endDate != ''"> |
| | | and create_time between #{beginDate} and #{endDate} |
| | | </if> |
| | |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="pageAutoArchived" resultType="com.ruoyi.process.pojo.ProcessMethodSearchNew"> |
| | | select * |
| | | from ( |
| | | select * from cnas_process_method_search_new |
| | | where is_auto_archived = 1 |
| | | order by auto_archived_time desc, method_search_new_id desc |
| | | ) a |
| | | <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | </mapper> |