|
@@ -268,15 +268,18 @@ public interface CoinMapper {
|
|
|
void insertOrUpdateBinanceOrderHistoryList(List<CoinBinanceOrderHistory> coinBinanceOrderHistoryList);
|
|
void insertOrUpdateBinanceOrderHistoryList(List<CoinBinanceOrderHistory> coinBinanceOrderHistoryList);
|
|
|
|
|
|
|
|
@Select({"<script>" +
|
|
@Select({"<script>" +
|
|
|
- "select cch.*,cec.category_name exchangeCategory from coin_currency_holding cch left join coin_exchange_category cec on cch.exchange_category_id=cec.id WHERE cch.delete_flag = 1 and cch.status = 1" +
|
|
|
|
|
|
|
+ "select cch.*,cec.category_name exchangeCategory from coin_currency_holding cch left join coin_exchange_category cec on cch.exchange_category_id=cec.id WHERE cch.delete_flag = 1" +
|
|
|
"<if test=\"keyword != null and keyword != ''\">" +
|
|
"<if test=\"keyword != null and keyword != ''\">" +
|
|
|
" and cch.symbol like concat('%',#{keyword},'%')" +
|
|
" and cch.symbol like concat('%',#{keyword},'%')" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test=\"symbol != null and symbol != ''\">" +
|
|
"<if test=\"symbol != null and symbol != ''\">" +
|
|
|
" and cch.symbol = #{symbol}" +
|
|
" and cch.symbol = #{symbol}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
|
|
+ "<if test=\"status != null and status != ''\">" +
|
|
|
|
|
+ " and cch.status = #{status}" +
|
|
|
|
|
+ "</if>" +
|
|
|
"<if test=\"categoryField != null and categoryField != ''\">" +
|
|
"<if test=\"categoryField != null and categoryField != ''\">" +
|
|
|
- " and cec.id = #{categoryField}" +
|
|
|
|
|
|
|
+ " and cch.exchange_category_id = #{categoryField}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
" order by " +
|
|
" order by " +
|
|
|
"<foreach collection='sortField' item='sf' index=\"index\" separator=\",\">" +
|
|
"<foreach collection='sortField' item='sf' index=\"index\" separator=\",\">" +
|
|
@@ -292,15 +295,18 @@ public interface CoinMapper {
|
|
|
int updateCurrentHolding(CoinCurrencyHolding coinCurrencyHolding);
|
|
int updateCurrentHolding(CoinCurrencyHolding coinCurrencyHolding);
|
|
|
|
|
|
|
|
@Select({"<script>" +
|
|
@Select({"<script>" +
|
|
|
- "select sum(current_amount) from coin_currency_holding cch WHERE cch.delete_flag = 1 and cch.status = 1" +
|
|
|
|
|
|
|
+ "select sum(current_amount) from coin_currency_holding cch WHERE cch.delete_flag = 1" +
|
|
|
"<if test=\"keyword != null and keyword != ''\">" +
|
|
"<if test=\"keyword != null and keyword != ''\">" +
|
|
|
" and cch.symbol like concat('%',#{keyword},'%')" +
|
|
" and cch.symbol like concat('%',#{keyword},'%')" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test=\"symbol != null and symbol != ''\">" +
|
|
"<if test=\"symbol != null and symbol != ''\">" +
|
|
|
" and cch.symbol = #{symbol}" +
|
|
" and cch.symbol = #{symbol}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
|
|
+ "<if test=\"status != null and status != ''\">" +
|
|
|
|
|
+ " and cch.status = #{status}" +
|
|
|
|
|
+ "</if>" +
|
|
|
"<if test=\"categoryField != null and categoryField != ''\">" +
|
|
"<if test=\"categoryField != null and categoryField != ''\">" +
|
|
|
- " and cch.id = #{categoryField}" +
|
|
|
|
|
|
|
+ " and cch.exchange_category_id = #{categoryField}" +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
BigDecimal getCurrentHoldingTotalAmout(Map<String, Object> params);
|
|
BigDecimal getCurrentHoldingTotalAmout(Map<String, Object> params);
|