Commit 1fcc239b by huluobin

update

parent 1853804f
......@@ -108,7 +108,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
.totalCharge(result.getTotalFee())
.totalExpenditure(0)
.updateTime(new Date())
.version(5)
.build();
} else {
customerBalance.setBalance(result.getTotalFee());
......@@ -120,7 +119,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
customerBalance.setTotalCharge(result.getTotalFee());
customerBalance.setTotalExpenditure(0);
customerBalance.setUpdateTime(new Date());
customerBalance.setVersion(5);
}
......@@ -128,7 +126,6 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
if (customerBalance.getId() == null) {
customerBalanceMapper.insert(customerBalance);
}
//会员卡存在
else {
customerBalanceMapper.updateById(customerBalance);
......
......@@ -30,12 +30,6 @@
total_bestow, total_expenditure, version, level,discount_rate
</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 *
......
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