| | |
| | | and borrow_date <= DATE_FORMAT(#{documentationBorrowManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | <select id="exportrevent" resultType="com.ruoyi.warehouse.dto.ReturnExportDto"> |
| | | <select id="list" resultType="com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_borrow_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | where dbm.returner IS NOT NULL |
| | | <if test="documentationBorrowManagement.borrowStatus != null"> |
| | | and borrow_status = #{documentationBorrowManagement.borrowStatus} |
| | | </if> |
| | | <if test="documentationBorrowManagement.documentationId != null"> |
| | | and documentation_id = #{documentationBorrowManagement.documentationId} |
| | | </if> |
| | | <if test="documentationBorrowManagement.borrower != null"> |
| | | and borrower like concat('%',#{documentationBorrowManagement.borrower},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.returner != null"> |
| | | and returner like concat('%',#{documentationBorrowManagement.returner},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateStart != null and documentationBorrowManagement.entryDateStart != ''"> |
| | | and borrow_date >= DATE_FORMAT(#{documentationBorrowManagement.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateEnd != null and documentationBorrowManagement.entryDateEnd != ''"> |
| | | and borrow_date <= DATE_FORMAT(#{documentationBorrowManagement.entryDateEnd},'%Y-%m-%d') |
| | | <if test="ew != null"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |