修改msg 信息统一处理
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
package com.chaozhanggui.system.cashierservice.dao;
|
||||
|
||||
import com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
@Mapper
|
||||
public interface TbShopUserFlowMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
@@ -22,5 +18,6 @@ public interface TbShopUserFlowMapper {
|
||||
|
||||
int updateByPrimaryKey(TbShopUserFlow record);
|
||||
|
||||
|
||||
List<Map<String,Object>> selectByMemberAccountFlow(String memberId);
|
||||
}
|
||||
@@ -19,6 +19,8 @@ public class TbShopUserFlow implements Serializable {
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private String type;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Integer getId() {
|
||||
@@ -76,4 +78,12 @@ public class TbShopUserFlow implements Serializable {
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
}
|
||||
@@ -352,6 +352,7 @@ public class PayService {
|
||||
flow.setShopUserId(Integer.valueOf(user.getId()));
|
||||
flow.setBizCode("accountPay");
|
||||
flow.setBizName("会员储值卡支付");
|
||||
flow.setType("-");
|
||||
flow.setAmount(orderInfo.getOrderAmount());
|
||||
flow.setBalance(user.getAmount());
|
||||
flow.setCreateTime(new Date());
|
||||
@@ -424,6 +425,7 @@ public class PayService {
|
||||
TbShopUserFlow flow = new TbShopUserFlow();
|
||||
flow.setShopUserId(Integer.valueOf(user.getId()));
|
||||
flow.setBizCode("accountGroupPay");
|
||||
flow.setType("-");
|
||||
flow.setBizName("会员储值卡支付团购卷");
|
||||
flow.setAmount(orderInfo.getOrderAmount());
|
||||
flow.setBalance(user.getAmount());
|
||||
@@ -1039,7 +1041,9 @@ public class PayService {
|
||||
TbShopUserFlow flow=new TbShopUserFlow();
|
||||
flow.setShopUserId(Integer.valueOf(tbShopUser.getId()));
|
||||
flow.setBizCode("scanMemberIn");
|
||||
|
||||
flow.setBizName("会员扫码充值");
|
||||
flow.setType("+");
|
||||
flow.setAmount(memberIn.getAmount());
|
||||
flow.setBalance(tbShopUser.getAmount());
|
||||
flow.setCreateTime(new Date());
|
||||
@@ -1065,6 +1069,7 @@ public class PayService {
|
||||
flow.setShopUserId(Integer.valueOf(tbShopUser.getId()));
|
||||
flow.setBizCode("scanMemberAwardIn");
|
||||
flow.setBizName("会员充值奖励");
|
||||
flow.setType("+");
|
||||
flow.setAmount(amount);
|
||||
flow.setBalance(tbShopUser.getAmount());
|
||||
flow.setCreateTime(new Date());
|
||||
@@ -1119,6 +1124,8 @@ public class PayService {
|
||||
TbShopUserFlow flow=new TbShopUserFlow();
|
||||
flow.setShopUserId(Integer.valueOf(tbShopUser.getId()));
|
||||
flow.setBizCode("scanMemberIn");
|
||||
flow.setType("+");
|
||||
|
||||
flow.setBizName("线上充值");
|
||||
flow.setAmount(memberIn.getAmount());
|
||||
flow.setBalance(tbShopUser.getAmount());
|
||||
@@ -1145,6 +1152,7 @@ public class PayService {
|
||||
flow=new TbShopUserFlow();
|
||||
flow.setShopUserId(Integer.valueOf(tbShopUser.getId()));
|
||||
flow.setBizCode("scanMemberAwardIn");
|
||||
flow.setType("+");
|
||||
flow.setBizName("充值活动奖励");
|
||||
flow.setAmount(amount);
|
||||
flow.setBalance(tbShopUser.getAmount());
|
||||
|
||||
Reference in New Issue
Block a user