Browse Source

1.21 修改排序

huangqizheng/feature-20260113143035-现金管理0109
huangqizhen 1 month ago
parent
commit
3f96213936
  1. 4
      src/main/java/com/example/demo/domain/vo/cash/FundsDTO.java
  2. 8
      src/main/resources/cashMapper/CashRefundMapper.xml

4
src/main/java/com/example/demo/domain/vo/cash/FundsDTO.java

@ -67,4 +67,8 @@ public class FundsDTO {
private BigDecimal permanentGold; private BigDecimal permanentGold;
@ExcelIgnore @ExcelIgnore
private BigDecimal freeGold; private BigDecimal freeGold;
@ExcelIgnore
private String sortField;
@ExcelIgnore
private String sortOrder;
} }

8
src/main/resources/cashMapper/CashRefundMapper.xml

@ -462,6 +462,14 @@
</foreach> </foreach>
</if> </if>
</where> </where>
<choose>
<when test="sortField != null and sortField.length > 0 or sortOrder != null and sortOrder.length > 0">
ORDER BY ${sortField} ${sortOrder}
</when>
<otherwise>
ORDER BY crc.create_time DESC
</otherwise>
</choose>
</select> </select>
<select id="selectRefundCount" resultType="com.example.demo.domain.vo.cash.FundsDTO"> <select id="selectRefundCount" resultType="com.example.demo.domain.vo.cash.FundsDTO">
select crr.refund_currency, select crr.refund_currency,

Loading…
Cancel
Save