11
This commit is contained in:
1 parent
77e932ead0
commit
a133b54ed3
2 files changed
+16
-4
No files matched your search
+2
-1
@@ -453,7 +453,8 @@ public class HardOrderTotalServiceImpl implements HardOrderTotalService {
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(walletOnceReduceList)) {
|
||||
walletOnceReduceList.stream().filter(i -> ObjectUtil.equals(i.getDeptId(), v.getDeptId())).findFirst().ifPresent(i -> {
|
||||
v.setWalletOnceReducePrice(i.getSum());
|
||||
// v.setWalletOnceReducePrice(i.getSum());
|
||||
v.setWalletOnceReducePrice(Math.abs(i.getSum()));
|
||||
v.setWalletOnceReduceCount(i.getCount());
|
||||
});
|
||||
}
|
||||
|
||||
+14
-3
@@ -219,7 +219,6 @@
|
||||
</if>
|
||||
</where>
|
||||
group by a.hard_id
|
||||
order by a.merchant_type asc
|
||||
</select>
|
||||
|
||||
<select id="listCs" resultType="com.bsd.pjcloud.hard.api.vo.order.HardOrderCsVo">
|
||||
@@ -241,7 +240,13 @@
|
||||
</if>
|
||||
</where>
|
||||
group by a.merchant_id
|
||||
order by a.merchant_type asc
|
||||
order by
|
||||
CASE a.merchant_type
|
||||
WHEN 1 THEN 1
|
||||
WHEN 3 THEN 2
|
||||
WHEN 0 THEN 3
|
||||
WHEN 2 THEN 4
|
||||
ELSE 5 END
|
||||
</select>
|
||||
|
||||
<select id="listCsByDay" resultType="com.bsd.pjcloud.hard.api.vo.order.HardOrderCsVo">
|
||||
@@ -278,7 +283,13 @@
|
||||
<include refid="whereA"/>
|
||||
</where>
|
||||
group by a.pay_type
|
||||
order by a.merchant_type asc
|
||||
CASE a.merchant_type
|
||||
WHEN 10 THEN 1
|
||||
WHEN 30 THEN 2
|
||||
WHEN 0 THEN 3
|
||||
WHEN 20 THEN 4
|
||||
ELSE 5
|
||||
END;
|
||||
</select>
|
||||
|
||||
<select id="sumAndCount" resultType="com.bsd.pjcloud.hard.api.vo.order.HardOrderSumAndCountVo">
|
||||
|
||||
Reference in new issue
Block a user