mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
1、软件购买接入新的渠道code基于二进制的解析;2、账户明细、销售管理、软件购买列表查询和回调数据调整;
This commit is contained in:
+49
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cf.imes.module.system.dal.mysql.incomeandexpense.IncomeExpenseDetailsMapper">
|
||||
<select id="getAccountDetailsPage" resultType="com.cf.imes.module.system.dal.dataobject.incomeandexpense.AccountDetailsDO">
|
||||
select i.id, i.business_no, i.order_no ,i.trade_type , i.income_expense_type, i.cash_amount_change, i.gift_amount_change, i.creator, i.create_time, i.organ_id ,
|
||||
p.total_amount, p.external_spent, p.account_balance_spent, p.gift_money_spent, p.payment_method, o.channel_code
|
||||
from income_expense_details i
|
||||
left join purchase_record p on i.purchase_id = p.id
|
||||
left join pay_order o on i.order_no = o.id
|
||||
where i.deleted = false
|
||||
<if test="reqVO.organId != null">
|
||||
AND i.organ_id = #{reqVO.organId}
|
||||
</if>
|
||||
<if test="reqVO.businessNo != null and reqVO.businessNo != ''">
|
||||
AND i.business_no = #{reqVO.businessNo}
|
||||
</if>
|
||||
<if test="reqVO.orderNo != null and reqVO.orderNo != ''">
|
||||
AND i.order_no = #{reqVO.orderNo}
|
||||
</if>
|
||||
<if test="reqVO.tradeType != null">
|
||||
<choose>
|
||||
<when test="reqVO.tradeType == @com.cf.imes.module.system.enums.pay.TradeTypeEnum@RECHARGE.code">
|
||||
AND i.trade_type IN (
|
||||
#{reqVO.tradeType},
|
||||
'${@com.cf.imes.module.system.enums.pay.TradeTypeEnum@MANUAL_ADJUST.code}'
|
||||
)
|
||||
</when>
|
||||
<otherwise>
|
||||
AND i.trade_type = #{reqVO.tradeType}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="reqVO.incomeExpenseType != null">
|
||||
AND i.income_expense_type = #{reqVO.incomeExpenseType}
|
||||
</if>
|
||||
<if test="reqVO.createTime != null and reqVO.createTime.size() == 2">
|
||||
AND i.create_time between #{reqVo.createTime[0]} and #{reqVo.createTime[1]}
|
||||
</if>
|
||||
<if test="reqVO.productPrice != null">
|
||||
AND p.total_amount = #{reqVo.productPrice}
|
||||
</if>
|
||||
<if test="reqVO.rechargeAmount != null">
|
||||
AND i.cash_amount_change = #{reqVo.rechargeAmount}
|
||||
</if>
|
||||
<if test="reqVO.giftAmount != null">
|
||||
AND i.gift_amount_change = #{reqVo.giftAmount}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
+2
-1
@@ -2,10 +2,11 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.cf.imes.module.system.dal.mysql.pay.PayOrderMapper">
|
||||
<select id="getRechargeDetailsPage" resultType="com.cf.imes.module.system.dal.dataobject.pay.PayOrderRechargeDetailDO">
|
||||
select o.id, o.organ_id, o.pay_no, o.price, o.purchase_id, o.creator, o.create_time, p.total_amount, p.account_balance_spent, p.gift_money_spent
|
||||
select o.id, o.organ_id, o.pay_no, o.price, o.purchase_id, o.channel_code, o.creator, o.create_time, p.total_amount, p.account_balance_spent, p.gift_money_spent, p.payment_method
|
||||
from pay_order o
|
||||
left join purchase_record p on o.purchase_id = p.id
|
||||
where o.status = '${@com.cf.imes.module.system.enums.pay.PayOrderStatusEnum@SUCCESS.status}'
|
||||
|
||||
<if test="reqVO.organId != null">
|
||||
AND o.organ_id = #{reqVO.organId}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user