feat:搜索金额数组

This commit is contained in:
dzc committed 2025-12-17 15:57:08 +08:00
1 parent 2268b09f7f
commit 2a6b9517d5
3 files changed
+21 -1

No files matched your search

@@ -58,4 +58,10 @@ public class WalletTransactionDto extends WalletTransactionEntity implements Bas
*/
private Boolean isInclude;
/**
* 金额区间
*/
private List<Integer> priceList;
}
@@ -109,7 +109,9 @@ public class WalletTransactionController {
if (ObjectUtil.isNotEmpty(dto.getPrice())) {
dto.setPrice(dto.getPrice() * 100);
}
if (ObjectUtil.isNotEmpty(dto.getPriceList())) {
dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList());
}
DataScope dataScope = new DataScope();
return R.ok(walletTransactionService.pageCzTotalList(dto, dataScope));
}
@@ -122,6 +124,9 @@ public class WalletTransactionController {
if (ObjectUtil.isNotEmpty(dto.getPrice())) {
dto.setPrice(dto.getPrice() * 100);
}
if (ObjectUtil.isNotEmpty(dto.getPriceList())) {
dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList());
}
walletTransactionService.exportCzTotal(response, dto, null);
}
@@ -133,6 +138,9 @@ public class WalletTransactionController {
if (ObjectUtil.isNotEmpty(dto.getPrice())) {
dto.setPrice(dto.getPrice() * 100);
}
if (ObjectUtil.isNotEmpty(dto.getPriceList())) {
dto.setPriceList(dto.getPriceList().stream().map(item -> item * 100).toList());
}
DataScope dataScope = new DataScope();
return R.ok(walletTransactionService.listDeptCzTotal(dto, dataScope));
}
@@ -50,6 +50,12 @@
<if test="dto.price != null">
and a.price = #{dto.price}
</if>
<if test="dto.priceList != null and dto.priceList.size() != 0">
and a.price in
<foreach collection="dto.priceList" item="v" open="(" close=")" separator=",">
#{v}
</foreach>
</if>
<if test="dto.type != null and dto.type == 1 ">
and a.price &gt; 0
</if>