Commit 1fcc239b by huluobin

update

parent 1853804f
...@@ -108,7 +108,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg ...@@ -108,7 +108,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
.totalCharge(result.getTotalFee()) .totalCharge(result.getTotalFee())
.totalExpenditure(0) .totalExpenditure(0)
.updateTime(new Date()) .updateTime(new Date())
.version(5)
.build(); .build();
} else { } else {
customerBalance.setBalance(result.getTotalFee()); customerBalance.setBalance(result.getTotalFee());
...@@ -120,7 +119,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg ...@@ -120,7 +119,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
customerBalance.setTotalCharge(result.getTotalFee()); customerBalance.setTotalCharge(result.getTotalFee());
customerBalance.setTotalExpenditure(0); customerBalance.setTotalExpenditure(0);
customerBalance.setUpdateTime(new Date()); customerBalance.setUpdateTime(new Date());
customerBalance.setVersion(5);
} }
...@@ -128,7 +126,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg ...@@ -128,7 +126,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
if (customerBalance.getId() == null) { if (customerBalance.getId() == null) {
customerBalanceMapper.insert(customerBalance); customerBalanceMapper.insert(customerBalance);
} }
//会员卡存在 //会员卡存在
else { else {
customerBalanceMapper.updateById(customerBalance); customerBalanceMapper.updateById(customerBalance);
......
...@@ -30,12 +30,6 @@ ...@@ -30,12 +30,6 @@
total_bestow, total_expenditure, version, level,discount_rate total_bestow, total_expenditure, version, level,discount_rate
</sql> </sql>
<select id="selectByCustomerId" resultMap="BaseResultMap" parameterType="java.lang.Integer">
select
<include refid="Base_Column_List"/>
from customer_balance cb
where customer_id = #{customerId,jdbcType=INTEGER}
</select>
<select id="getByCustomerId" resultType="com.gogirl.domain.user.customer.CustomerBalance"> <select id="getByCustomerId" resultType="com.gogirl.domain.user.customer.CustomerBalance">
select * select *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment