| | |
| | | </if> |
| | | <if test="salesLedgerDto.reviewStatusList != null and salesLedgerDto.reviewStatusList.size() > 0"> |
| | | AND ( |
| | | T1.review_status IN |
| | | <foreach collection="salesLedgerDto.reviewStatusList" item="status" open="(" separator="," close=")"> |
| | | #{status} |
| | | </foreach> |
| | | OR T1.review_status IS NULL |
| | | T1.review_status IN |
| | | <foreach collection="salesLedgerDto.reviewStatusList" item="status" open="(" separator="," close=")"> |
| | | #{status} |
| | | </foreach> |
| | | OR T1.review_status IS NULL |
| | | ) |
| | | </if> |
| | | |
| | |
| | | ) |
| | | </if> |
| | | </where> |
| | | ORDER BY T1.entry_date DESC,T1.id DESC |
| | | ORDER BY T1.sales_contract_no desc |
| | | </select> |
| | | |
| | | <select id="selectIncomeStats" resultType="com.ruoyi.home.dto.IncomeExpenseAnalysisDto"> |