Просмотр исходного кода

wx_c_user_basic_info添加分表

release_toaliyun_real
xiaohanzi 5 лет назад
Родитель
Сommit
c646f9e674
25 измененных файлов: 74 добавлений и 72 удалений
  1. +10
    -9
      mallinkAdmin/src/main/java/com/iformall/controller/mem/WxCUserBasicInfoController.java
  2. +1
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/mem/WxCreditHistoryController.java
  3. +2
    -2
      mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java
  4. +1
    -1
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponOrderController.java
  5. +1
    -0
      mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java
  6. +2
    -2
      mallinkSchedule/src/main/java/com/iformall/schedule/CouponSendSchedule.java
  7. +1
    -1
      mallinkSchedule/src/main/java/com/iformall/schedule/OrderExpiringSchedule.java
  8. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCUserBasicInfoService.java
  9. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCUserTagsService.java
  10. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCouponOrderService.java
  11. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxCreditHistoryService.java
  12. +1
    -1
      mallinkService/src/main/java/com/iformall/service/WxOrderService.java
  13. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java
  14. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java
  15. +7
    -7
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java
  16. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java
  17. +5
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  18. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java
  19. +6
    -6
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java
  20. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java
  21. +6
    -6
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
  22. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java
  23. +11
    -11
      mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java
  24. +1
    -1
      mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java
  25. +1
    -1
      mallinkSysAdmin/src/main/java/com/iformall/controller/datafix/DataInitController.java

+ 10
- 9
mallinkAdmin/src/main/java/com/iformall/controller/mem/WxCUserBasicInfoController.java Просмотреть файл

@@ -202,19 +202,20 @@ public class WxCUserBasicInfoController extends BaseController {
wxCUserBasicInfo.setTagId(record.getId()); wxCUserBasicInfo.setTagId(record.getId());
} }
wxCUserBasicInfoService.update(wxCUserBasicInfo); wxCUserBasicInfoService.update(wxCUserBasicInfo);
wxCUserBasicInfo.updateTenantInfo(oldInfo);
wxCUserTagsService.triggerAssignTags(EnumAssignTagsTrigger.ASSIGN_TAGS_TRIGGER_IMPORT, wxCUserBasicInfo); wxCUserTagsService.triggerAssignTags(EnumAssignTagsTrigger.ASSIGN_TAGS_TRIGGER_IMPORT, wxCUserBasicInfo);
return new ResultData(); return new ResultData();
} }


@ApiOperation("根据id删除接口")
@GetMapping("/del")
@ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true)
@SystemControllerLog(description = "会员管理-删除")
public ResultData delete(Long id) {
logger.debug("[" + getIpAddr() + "] WxCUserBasicInfoController::delete");
wxCUserBasicInfoService.deleteById(id);
return new ResultData(Result.SUCCESS, "删除成功", null);
}
// @ApiOperation("根据id删除接口")
// @GetMapping("/del")
// @ApiImplicitParam(name = "id", value = "id", dataType = "Long", paramType = "query", required = true)
// @SystemControllerLog(description = "会员管理-删除")
// public ResultData delete(Long id) {
// logger.debug("[" + getIpAddr() + "] WxCUserBasicInfoController::delete");
// wxCUserBasicInfoService.deleteById(id);
// return new ResultData(Result.SUCCESS, "删除成功", null);
// }


@ApiOperation("根据id查询接口") @ApiOperation("根据id查询接口")
@GetMapping("/findById") @GetMapping("/findById")


+ 1
- 1
mallinkAdmin/src/main/java/com/iformall/controller/mem/WxCreditHistoryController.java Просмотреть файл

@@ -85,7 +85,7 @@ public class WxCreditHistoryController extends BaseController {
wxCreditHistory.updateTenantInfo(user); wxCreditHistory.updateTenantInfo(user);
wxCreditHistory.setOperatorId(user.getId()); wxCreditHistory.setOperatorId(user.getId());
try { try {
wxCreditHistoryService.creditUsercheck(wxCreditHistory.getCUserId()) ;
wxCreditHistoryService.creditUsercheck(wxCreditHistory.getCUserId(),wxCreditHistory) ;
WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory); WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory);
return new ResultData(Result.SUCCESS, "操作成功", credit); return new ResultData(Result.SUCCESS, "操作成功", credit);
} catch (MallinkException e) { } catch (MallinkException e) {


+ 2
- 2
mallinkBApi/src/main/java/com/iformall/controller/WxCreditHistoryController.java Просмотреть файл

@@ -119,12 +119,12 @@ public class WxCreditHistoryController extends BaseController {
//B端操作用户 //B端操作用户
wxCreditHistory.setOperatorType(EnumUserType.BUSER.getCode()); wxCreditHistory.setOperatorType(EnumUserType.BUSER.getCode());
try { try {
wxCreditHistoryService.creditUsercheck(wxCreditHistory.getCUserId());
wxCreditHistoryService.creditUsercheck(wxCreditHistory.getCUserId(),wxCreditHistory);
wxCreditHistory.setBuserId(getBuser().getId()); wxCreditHistory.setBuserId(getBuser().getId());
WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory); WxCreditHistory credit = wxCreditHistoryService.saveOrUpdate(wxCreditHistory);
//更新标签 //更新标签
if (wxCreditHistory.getTags() != null && !wxCreditHistory.getTags().isEmpty()) { if (wxCreditHistory.getTags() != null && !wxCreditHistory.getTags().isEmpty()) {
wxCUserTagsService.updateTagByUserId(wxCreditHistory.getCUserId(), wxCreditHistory.getTags());
wxCUserTagsService.updateTagByUserId(wxCreditHistory.getCUserId(),wxCreditHistory, wxCreditHistory.getTags());
} }
return new ResultData(Result.SUCCESS, "操作成功", credit); return new ResultData(Result.SUCCESS, "操作成功", credit);
} catch (MallinkException e) { } catch (MallinkException e) {


+ 1
- 1
mallinkCApi/src/main/java/com/iformall/controller/WxCouponOrderController.java Просмотреть файл

@@ -300,7 +300,7 @@ public class WxCouponOrderController extends BaseController {
} catch (Exception e) { } catch (Exception e) {
return new ResultData(Result.ERROR,e.getMessage()); return new ResultData(Result.ERROR,e.getMessage());
} }
return wxCouponOrderService.cardDetailCUserVo(memberId, couponOrderId);
return wxCouponOrderService.cardDetailCUserVo(memberId,getTenantInfo(), couponOrderId);
} }


@ApiOperation(value = "卡转赠领取") @ApiOperation(value = "卡转赠领取")


+ 1
- 0
mallinkCApi/src/main/java/com/iformall/controller/WxUserGrantController.java Просмотреть файл

@@ -964,6 +964,7 @@ public class WxUserGrantController extends BaseController {
record.setSex(wxCUserBasicInfo.getSex()); record.setSex(wxCUserBasicInfo.getSex());
record.setAddress(wxCUserBasicInfo.getAddress()); record.setAddress(wxCUserBasicInfo.getAddress());
record.setUpdateDate(new Date()); record.setUpdateDate(new Date());
record.updateTenantInfo(wxCUserBasicInfo);
wxCUserBasicInfoService.update(record); wxCUserBasicInfoService.update(record);
wxScoreRulesService.addScore(tenantEntity,EnumScoreType.COMPLETE_INFO, record); wxScoreRulesService.addScore(tenantEntity,EnumScoreType.COMPLETE_INFO, record);
//增加积分 //增加积分


+ 2
- 2
mallinkSchedule/src/main/java/com/iformall/schedule/CouponSendSchedule.java Просмотреть файл

@@ -191,7 +191,7 @@ public class CouponSendSchedule {


// 发放免费券 // 发放免费券
try { try {
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cu.getId(), cs.getTenantId(),cs.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND);
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cu.getId(), cs,cs.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND);
wxCouponActionLogService.addOne(tenantEntity, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId()); wxCouponActionLogService.addOne(tenantEntity, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId());
} catch (Exception e) { } catch (Exception e) {
logger.error("定时发券:发券失败 levelId=" + l.getId() + " couponId=" + cs.getCouponId() + " userId=" + cu.getId() + e.getMessage()); logger.error("定时发券:发券失败 levelId=" + l.getId() + " couponId=" + cs.getCouponId() + " userId=" + cu.getId() + e.getMessage());
@@ -321,7 +321,7 @@ public class CouponSendSchedule {
for (WxCUserBasicInfo cu : newUserList) { for (WxCUserBasicInfo cu : newUserList) {
// 发放生日券 // 发放生日券
try { try {
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cu.getId(),cs.getTenantId(), cs.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND);
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cu.getId(),cs, cs.getCouponId(), null,EnumPayWay.PAY_WAY_NOT_UNPAY_SYSTEM_SEND);
wxCouponActionLogService.addOne(tenantEntity, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId()); wxCouponActionLogService.addOne(tenantEntity, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId());
couponSendedUsers.add(cu); couponSendedUsers.add(cu);
} catch (Exception e) { } catch (Exception e) {


+ 1
- 1
mallinkSchedule/src/main/java/com/iformall/schedule/OrderExpiringSchedule.java Просмотреть файл

@@ -244,7 +244,7 @@ public class OrderExpiringSchedule {
if (null == wxpayOrder) { if (null == wxpayOrder) {
return false; return false;
} }
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(wxpayOrder.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(wxpayOrder.getCUserId(),wxpayOrder.getFinalTenantId());
//找不到用户,问题单,不能删 //找不到用户,问题单,不能删
if (null == user) { if (null == user) {
return true; return true;


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCUserBasicInfoService.java Просмотреть файл

@@ -81,7 +81,7 @@ public interface WxCUserBasicInfoService {
* *
* @param id * @param id
*/ */
void deleteById(Long id);
//void deleteById(Long id);


List<WxCUserBasicInfo> findByPhone(TenantEntity tenantEntity, String phone); List<WxCUserBasicInfo> findByPhone(TenantEntity tenantEntity, String phone);
WxCUserBasicInfo findInfoByPhone(TenantEntity tenantEntity, String phone); WxCUserBasicInfo findInfoByPhone(TenantEntity tenantEntity, String phone);


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCUserTagsService.java Просмотреть файл

@@ -50,6 +50,6 @@ public interface WxCUserTagsService {
List<WxTags> assignTags(List<Long> tagIdList, WxCUserBasicInfo user); List<WxTags> assignTags(List<Long> tagIdList, WxCUserBasicInfo user);
List<WxTags> triggerAssignTags(EnumAssignTagsTrigger trigger, Object obj); List<WxTags> triggerAssignTags(EnumAssignTagsTrigger trigger, Object obj);


void updateTagByUserId(Long cUserId, List<Long> tags);
void updateTagByUserId(Long cUserId,TenantEntity tenantinfo, List<Long> tags);


} }

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCouponOrderService.java Просмотреть файл

@@ -193,7 +193,7 @@ public interface WxCouponOrderService {
* *
* @param ownerId C端用户 * @param ownerId C端用户
*/ */
ResultData cardDetailCUserVo(Long ownerId, String couponOrderId);
ResultData cardDetailCUserVo(Long ownerId, TenantEntity tenantinfo,String couponOrderId);


ResultData cardAccept(WxCouponOrder wxCouponOrder); ResultData cardAccept(WxCouponOrder wxCouponOrder);




+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxCreditHistoryService.java Просмотреть файл

@@ -45,7 +45,7 @@ public interface WxCreditHistoryService {
* 规则:有手机号增加积分,无手机号提示授权手机号 * 规则:有手机号增加积分,无手机号提示授权手机号
* @param cUserId * @param cUserId
*/ */
void creditUsercheck(Long cUserId);
void creditUsercheck(Long cUserId,TenantEntity tenantinfo);


/** /**
* 保存或更新实体 * 保存或更新实体


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/WxOrderService.java Просмотреть файл

@@ -86,7 +86,7 @@ public interface WxOrderService {
* @param wxCouponSendVo 商户注券时必须指定 * @param wxCouponSendVo 商户注券时必须指定
* @return WxCouponOrder * @return WxCouponOrder
*/ */
WxCouponOrder sendFreeCouponToUser(Long userId, String tenantId,Long couponId, WxCouponSendVo wxCouponSendVo,EnumPayWay payWay);
WxCouponOrder sendFreeCouponToUser(Long userId,TenantEntity tenantinfo,Long couponId, WxCouponSendVo wxCouponSendVo,EnumPayWay payWay);


/** /**
* orderSuccess 订单已支付 * orderSuccess 订单已支付


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxActivityJoinServiceImpl.java Просмотреть файл

@@ -173,7 +173,7 @@ public class WxActivityJoinServiceImpl implements WxActivityJoinService {
if (count > 0) { if (count > 0) {
return new ResultData(ErrorCode.ACTIVITY_JOINED); return new ResultData(ErrorCode.ACTIVITY_JOINED);
} }
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(wxActivityJoin.getUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(wxActivityJoin.getUserId(),wxActivityJoin.getFinalTenantId());
//查询是否消耗积分 //查询是否消耗积分
WxActivity wxActivity = wxActivityMapper.selectById(wxActivityJoin.getActivityId()); WxActivity wxActivity = wxActivityMapper.selectById(wxActivityJoin.getActivityId());
Date date = new Date(); Date date = new Date();


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java Просмотреть файл

@@ -659,10 +659,10 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService,IExc
// wxCUserBasicInfoMapper.updateNewId(userBaseVo); // wxCUserBasicInfoMapper.updateNewId(userBaseVo);
} }


@Override
public void deleteById(Long id) {
wxCUserBasicInfoMapper.deleteById(id);
}
// @Override
// public void deleteById(Long id) {
// wxCUserBasicInfoMapper.deleteById(id);
// }


@Override @Override
public long findCountBySex(WxCUserBasicInfoDto dto) { public long findCountBySex(WxCUserBasicInfoDto dto) {


+ 7
- 7
mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java Просмотреть файл

@@ -610,7 +610,7 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
switch (trigger) { switch (trigger) {
case ASSIGN_TAGS_TRIGGER_IMPORT: { case ASSIGN_TAGS_TRIGGER_IMPORT: {
WxCUserBasicInfo param = (WxCUserBasicInfo) obj; WxCUserBasicInfo param = (WxCUserBasicInfo) obj;
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getId(),param.getFinalTenantId());
if (user != null) { if (user != null) {
if (param.getSex() != null) { if (param.getSex() != null) {
//性别 //性别
@@ -638,8 +638,8 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
} }
break; break;
case ASSIGN_TAGS_TRIGGER_CAR:{ case ASSIGN_TAGS_TRIGGER_CAR:{
Long param = (Long) obj;
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param);
WxCUserCar userCar = (WxCUserCar) obj;
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(userCar.getCUserId(),userCar.getFinalTenantId());
if (user != null) { if (user != null) {
//车 //车
resList = assignTypeId11(user); resList = assignTypeId11(user);
@@ -648,7 +648,7 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
break; break;
case ASSIGN_TAGS_TRIGGER_PHONE: { case ASSIGN_TAGS_TRIGGER_PHONE: {
WxCUser param = (WxCUser) obj; WxCUser param = (WxCUser) obj;
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getUserId(),param.getFinalTenantId());
if (user != null) { if (user != null) {
if (param.getPhone() != null) { if (param.getPhone() != null) {
//来源 //来源
@@ -678,7 +678,7 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {


case ASSIGN_TAGS_TRIGGER_LOGIN: { case ASSIGN_TAGS_TRIGGER_LOGIN: {
WxCUser param = (WxCUser) obj; WxCUser param = (WxCUser) obj;
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(param.getUserId(),param.getFinalTenantId());
if (user != null) { if (user != null) {
if (param.getGender() != null) { if (param.getGender() != null) {
//性别 //性别
@@ -757,8 +757,8 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
} }


@Override @Override
public void updateTagByUserId(Long cUserId, List<Long> tags) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
public void updateTagByUserId(Long cUserId,TenantEntity tenantinfo, List<Long> tags) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,tenantinfo.getFinalTenantId());
WxCUserTags userTags = null; WxCUserTags userTags = null;
if (wxCUserBasicInfo.getTagId() != null) { if (wxCUserBasicInfo.getTagId() != null) {
userTags = getById(wxCUserBasicInfo.getTagId()); userTags = getById(wxCUserBasicInfo.getTagId());


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java Просмотреть файл

@@ -274,7 +274,7 @@ public class WxCouponInjectServiceImpl implements WxCouponInjectService {
// 发放免费券 // 发放免费券
WxCouponOrder couponOrder = null; WxCouponOrder couponOrder = null;
try { try {
couponOrder = wxOrderService.sendFreeCouponToUser(tempCUser.getId(),wxCoupon.getTenantId(), wxCoupon.getId(),null,EnumPayWay.PAY_WAY_NOT_UNPAY_BATCH_SEND);
couponOrder = wxOrderService.sendFreeCouponToUser(tempCUser.getId(),wxCoupon, wxCoupon.getId(),null,EnumPayWay.PAY_WAY_NOT_UNPAY_BATCH_SEND);
if (couponOrder != null) { if (couponOrder != null) {
wxCouponActionLogService.addOne(couponOrder, wxCoupon.getId(), couponOrder.getId(), EnumCouponSendSendType.INJECT.getCode(), couponInjectId); wxCouponActionLogService.addOne(couponOrder, wxCoupon.getId(), couponOrder.getId(), EnumCouponSendSendType.INJECT.getCode(), couponInjectId);
} }


+ 5
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Просмотреть файл

@@ -1032,8 +1032,8 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
} }


@Override @Override
public ResultData cardDetailCUserVo(Long ownerId, String couponOrderId) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(ownerId);
public ResultData cardDetailCUserVo(Long ownerId, TenantEntity tenantinfo, String couponOrderId) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(ownerId,tenantinfo.getFinalTenantId());
if (wxCUserBasicInfo == null) { if (wxCUserBasicInfo == null) {
logger.error("用户不存在:" + ownerId); logger.error("用户不存在:" + ownerId);
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);
@@ -1064,7 +1064,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
//转赠人是否存在 //转赠人是否存在
Long cUserId = record.getCUserId(); Long cUserId = record.getCUserId();


WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,cardCVo.getFinalTenantId());
if (wxCUserBasicInfo == null) { if (wxCUserBasicInfo == null) {
logger.info("转赠人不存在:" + cUserId); logger.info("转赠人不存在:" + cUserId);
return new ResultData(ErrorCode.USER_IS_EMPTY.getCode(), "转赠人不存在"); return new ResultData(ErrorCode.USER_IS_EMPTY.getCode(), "转赠人不存在");
@@ -1117,7 +1117,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
} }
//转赠人是否存在 //转赠人是否存在
Long cUserId = record.getCUserId(); Long cUserId = record.getCUserId();
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,cardCVo.getFinalTenantId());
if (wxCUserBasicInfo == null) { if (wxCUserBasicInfo == null) {
logger.info("转赠人不存在:" + cUserId); logger.info("转赠人不存在:" + cUserId);
return new ResultData(ErrorCode.USER_IS_EMPTY.getCode(), "转赠人不存在"); return new ResultData(ErrorCode.USER_IS_EMPTY.getCode(), "转赠人不存在");
@@ -1470,7 +1470,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
int num = wxCouponOrderMapper.updateById(updateCouponOrder); int num = wxCouponOrderMapper.updateById(updateCouponOrder);
if (num == 1) { if (num == 1) {
WxCouponOrder couponOrder = wxCouponOrderMapper.selectById(couponOrderId); WxCouponOrder couponOrder = wxCouponOrderMapper.selectById(couponOrderId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(couponOrder.getcUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(couponOrder.getcUserId(),couponOrder.getFinalTenantId());
WxCoupon coupon = wxCouponMapper.selectById(couponOrder.getCouponId(),couponOrder.getTenantId()); WxCoupon coupon = wxCouponMapper.selectById(couponOrder.getCouponId(),couponOrder.getTenantId());
doAfterVerify(couponOrder, coupon, wxCUserBasicInfo); doAfterVerify(couponOrder, coupon, wxCUserBasicInfo);
} }


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java Просмотреть файл

@@ -313,7 +313,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
return false; return false;
} }


WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,tenantEntity.getFinalTenantId());
if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) { if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) {
logger.info("会员权益被锁定:cUserId:" + cUserId); logger.info("会员权益被锁定:cUserId:" + cUserId);
return false; return false;
@@ -369,7 +369,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
// 发放免费券 // 发放免费券
WxCouponOrder couponOrder = null; WxCouponOrder couponOrder = null;
try { try {
couponOrder = wxOrderService.sendFreeCouponToUser(cUserId,send.getTenantId(), send.getCouponId(), null,payWay);
couponOrder = wxOrderService.sendFreeCouponToUser(cUserId,send, send.getCouponId(), null,payWay);
if (couponOrder != null) { if (couponOrder != null) {
bRet = true; bRet = true;


@@ -628,7 +628,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
public void handSel(WxCouponSend wxCouponSend, Long cUserId,EnumPayWay payWay) { public void handSel(WxCouponSend wxCouponSend, Long cUserId,EnumPayWay payWay) {


WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,wxCouponSend.getFinalTenantId());
if (Objects.isNull(wxCUserBasicInfo)) { if (Objects.isNull(wxCUserBasicInfo)) {
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
} }
@@ -639,7 +639,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
} }
couponSendList.forEach(cs -> { couponSendList.forEach(cs -> {
// 发放免费券 // 发放免费券
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cUserId,cs.getTenantId(), cs.getCouponId(), cs,payWay);
WxCouponOrder couponOrder = wxOrderService.sendFreeCouponToUser(cUserId,cs, cs.getCouponId(), cs,payWay);
if (couponOrder != null) { if (couponOrder != null) {
wxCouponActionLogService.addOne(couponOrder, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId()); wxCouponActionLogService.addOne(couponOrder, cs.getCouponId(), couponOrder.getId(), cs.getSendType(), cs.getId());
sendMsgForSendCoupon(couponOrder, cs, couponOrder, wxCUserBasicInfo); sendMsgForSendCoupon(couponOrder, cs, couponOrder, wxCUserBasicInfo);


+ 6
- 6
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java Просмотреть файл

@@ -191,15 +191,15 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
} }


@Override @Override
public void creditUsercheck(Long cUserId) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId);
public void creditUsercheck(Long cUserId,TenantEntity tenantinfo) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(cUserId,tenantinfo.getFinalTenantId());
UserUtil.creditUserCheck(wxCUserBasicInfo); UserUtil.creditUserCheck(wxCUserBasicInfo);
} }


@Override @Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
public WxCreditHistory saveOrUpdate(WxCreditHistory record) { public WxCreditHistory saveOrUpdate(WxCreditHistory record) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId(),record.getFinalTenantId());
if (wxCUserBasicInfo == null) { if (wxCUserBasicInfo == null) {
//验证此用户是否存在 //验证此用户是否存在
throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE); throw new MallinkException(ErrorCode.USER_NOT_AUTH_PHONE);
@@ -296,7 +296,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
return 0; return 0;
} }
// 2. user // 2. user
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId(),record.getFinalTenantId());
if (wxCUserBasicInfo != null) { if (wxCUserBasicInfo != null) {
WxCUserBasicInfo wxCUserBasicInfoNew = new WxCUserBasicInfo(); WxCUserBasicInfo wxCUserBasicInfoNew = new WxCUserBasicInfo();
wxCUserBasicInfoNew.setId(wxCUserBasicInfo.getId()); wxCUserBasicInfoNew.setId(wxCUserBasicInfo.getId());
@@ -326,7 +326,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
wxCreditHistory.setSpend(new BigDecimal(spendStr).multiply(new BigDecimal(100)).intValue()); wxCreditHistory.setSpend(new BigDecimal(spendStr).multiply(new BigDecimal(100)).intValue());
credit = payAddCredit(wxCreditHistory); credit = payAddCredit(wxCreditHistory);
if (Objects.nonNull(userId)) { if (Objects.nonNull(userId)) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId,tenantEntity.getFinalTenantId());
creditNew = CreditUtil.calUserCredit(tenantEntity,credit, wxCUserBasicInfo, wxScoreRulesService,wxLevelConfigMapper); creditNew = CreditUtil.calUserCredit(tenantEntity,credit, wxCUserBasicInfo, wxScoreRulesService,wxLevelConfigMapper);
} else { } else {
creditNew = credit; creditNew = credit;
@@ -423,7 +423,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {
} }


private int infoAddCredit(WxCreditHistory record) { private int infoAddCredit(WxCreditHistory record) {
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(record.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(record.getCUserId(),record.getFinalTenantId());
if (user == null || checkCompleteInfoScoreCount(record,user) > 0) if (user == null || checkCompleteInfoScoreCount(record,user) > 0)
return 0; return 0;
// 1. 获取score rules // 1. 获取score rules


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxOrderGroupServiceImpl.java Просмотреть файл

@@ -335,7 +335,7 @@ public class WxOrderGroupServiceImpl implements WxOrderGroupService {
if (!orderList.isEmpty()) { if (!orderList.isEmpty()) {
List<WxCUserBasicInfo> userList = new ArrayList<>(); List<WxCUserBasicInfo> userList = new ArrayList<>();
for (WxOrder order : orderList) { for (WxOrder order : orderList) {
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId(),order.getFinalTenantId());
if (user != null) { if (user != null) {
userList.add(user); userList.add(user);
} }


+ 6
- 6
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Просмотреть файл

@@ -1235,11 +1235,11 @@ public class WxOrderServiceImpl implements WxOrderService {


@Override @Override
@Transactional(propagation = Propagation.NESTED, readOnly = false, rollbackFor = {Exception.class}) @Transactional(propagation = Propagation.NESTED, readOnly = false, rollbackFor = {Exception.class})
public WxCouponOrder sendFreeCouponToUser(Long userId,String tenantId, Long couponId, WxCouponSendVo wxCouponSendVo,EnumPayWay payWay) {
public WxCouponOrder sendFreeCouponToUser(Long userId,TenantEntity tenantinfo, Long couponId, WxCouponSendVo wxCouponSendVo,EnumPayWay payWay) {
// check 用户状态 // check 用户状态
WxCUserBasicInfo user = null; WxCUserBasicInfo user = null;
try { try {
user = wxCUserBasicInfoMapper.selectById(userId);
user = wxCUserBasicInfoMapper.selectById(userId,tenantinfo.getFinalTenantId());
} catch (Exception e) { } catch (Exception e) {
logger.error("userId : " + userId + ", e: " + e.getMessage()); logger.error("userId : " + userId + ", e: " + e.getMessage());
} }
@@ -1250,7 +1250,7 @@ public class WxOrderServiceImpl implements WxOrderService {


// 检查券状态 // 检查券状态
String couponIdStr = String.valueOf(couponId); String couponIdStr = String.valueOf(couponId);
WxCoupon coupon = wxCouponMapper.selectById(couponId,tenantId);
WxCoupon coupon = wxCouponMapper.selectById(couponId,tenantinfo.getTenantId());
if (coupon == null) { if (coupon == null) {
logger.error("券不存在, couponId: " + couponIdStr); logger.error("券不存在, couponId: " + couponIdStr);
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); throw new MallinkException(ErrorCode.COUPON_IS_EMPTY);
@@ -1336,7 +1336,7 @@ public class WxOrderServiceImpl implements WxOrderService {
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); throw new MallinkException(ErrorCode.COUPON_IS_EMPTY);
} }
// 检查用户 // 检查用户
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId(),updateOrder.getFinalTenantId());
if (user == null) { if (user == null) {
logger.error("用户不存在, userId: " + updateOrder.getCUserId()); logger.error("用户不存在, userId: " + updateOrder.getCUserId());
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);
@@ -1397,7 +1397,7 @@ public class WxOrderServiceImpl implements WxOrderService {
// throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF); // throw new MallinkException(ErrorCode.COUPON_IS_TAKE_OFF);
// } // }
// 检查用户 // 检查用户
WxCUserBasicInfo basicUser = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId());
WxCUserBasicInfo basicUser = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId(),updateOrder.getFinalTenantId());
if (basicUser == null) { if (basicUser == null) {
logger.error("会员不存在, userId: " + updateOrder.getCUserId()); logger.error("会员不存在, userId: " + updateOrder.getCUserId());
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);
@@ -1496,7 +1496,7 @@ public class WxOrderServiceImpl implements WxOrderService {
public int microPayOrderSuccess(WxOrder updateOrder) { public int microPayOrderSuccess(WxOrder updateOrder) {
Date currentDate = new Date(); Date currentDate = new Date();
// C端用户 // C端用户
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(updateOrder.getCUserId(),updateOrder.getFinalTenantId());
if (user == null) { if (user == null) {
logger.error("用户不存在, userId: " + updateOrder.getCUserId()); logger.error("用户不存在, userId: " + updateOrder.getCUserId());
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);


+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxPayOrderServiceImpl.java Просмотреть файл

@@ -881,7 +881,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService {
}else { }else {
//扫码支付的会员固定 //扫码支付的会员固定
basicUserId = Long.parseLong(record.getTenantId()+"0001"); basicUserId = Long.parseLong(record.getTenantId()+"0001");
WxCUserBasicInfo basicInfo = wxCUserBasicInfoMapper.selectById(basicUserId);
WxCUserBasicInfo basicInfo = wxCUserBasicInfoMapper.selectById(basicUserId,record.getFinalTenantId());
if (null == basicInfo) { if (null == basicInfo) {
basicInfo = new WxCUserBasicInfo(); basicInfo = new WxCUserBasicInfo();
basicInfo.setId(basicUserId); basicInfo.setId(basicUserId);
@@ -1096,7 +1096,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService {
throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND); throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND);
} }
if (order.getType().equals(EnumOrderType.COUPON.getCode())) { if (order.getType().equals(EnumOrderType.COUPON.getCode())) {
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId(),order.getFinalTenantId());
if (user == null) { if (user == null) {
logger.error("pay handle, order " + record.getOrderId() + " not found , payOrderid : " + record.getPayOrderNo()); logger.error("pay handle, order " + record.getOrderId() + " not found , payOrderid : " + record.getPayOrderNo());
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);
@@ -1190,7 +1190,7 @@ public class WxPayOrderServiceImpl implements WxPayOrderService {
throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND); throw new MallinkException(ErrorCode.ORDER_IS_NOT_FIND);
} }
if (order.getType().equals(EnumOrderType.COUPON.getCode())) { if (order.getType().equals(EnumOrderType.COUPON.getCode())) {
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId());
WxCUserBasicInfo user = wxCUserBasicInfoMapper.selectById(order.getCUserId(),order.getFinalTenantId());
if (user == null) { if (user == null) {
logger.error("pay handle, order " + record.getOrderId() + " not found , payOrderid : " + record.getPayOrderNo()); logger.error("pay handle, order " + record.getOrderId() + " not found , payOrderid : " + record.getPayOrderNo());
throw new MallinkException(ErrorCode.USER_IS_EMPTY); throw new MallinkException(ErrorCode.USER_IS_EMPTY);


+ 11
- 11
mallinkService/src/main/java/com/iformall/service/impl/WxScoreRulesServiceImpl.java Просмотреть файл

@@ -283,7 +283,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
return 0; return 0;
} }
// 2. user score back // 2. user score back
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId());
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(record.getCUserId(),record.getFinalTenantId());
if (wxCUserBasicInfo != null) { if (wxCUserBasicInfo != null) {
WxCUserBasicInfo wxCUserBasicInfoNew = new WxCUserBasicInfo(); WxCUserBasicInfo wxCUserBasicInfoNew = new WxCUserBasicInfo();
wxCUserBasicInfoNew.setId(wxCUserBasicInfo.getId()); wxCUserBasicInfoNew.setId(wxCUserBasicInfo.getId());
@@ -294,8 +294,8 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
return num; return num;
} }


private void updateScore(Long userId, int addedScoreNumber) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId);
private void updateScore(Long userId, TenantEntity tenantinfo, int addedScoreNumber) {
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId,tenantinfo.getFinalTenantId());
if (wxCUserBasicInfo.getPoins() == null) { if (wxCUserBasicInfo.getPoins() == null) {
wxCUserBasicInfo.setPoins(0); wxCUserBasicInfo.setPoins(0);
} }
@@ -325,7 +325,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {


// 2. 增长的成长值 // 2. 增长的成长值
addScoreNumber = scoreRules.getRule(EnumScoreType.LOGIN,WxScoreRules.SCORE); addScoreNumber = scoreRules.getRule(EnumScoreType.LOGIN,WxScoreRules.SCORE);
updateScore(user.getId(), addScoreNumber);
updateScore(user.getId(), tenantEntity,addScoreNumber);


// 3. 记录历史 // 3. 记录历史
recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.LOGIN); recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.LOGIN);
@@ -383,7 +383,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {




// 5. 增长的成长值 // 5. 增长的成长值
updateScore(order.getCUserId(), addScoreNumber);
updateScore(order.getCUserId(),order, addScoreNumber);


// 6. 记录历史 // 6. 记录历史
recordPayScoreHistory(addScoreNumber, order, EnumScoreType.CONSUMPTION); recordPayScoreHistory(addScoreNumber, order, EnumScoreType.CONSUMPTION);
@@ -401,7 +401,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
addScoreNumber = scoreRules.getRule(EnumScoreType.BIND_CAR,WxScoreRules.SCORE); addScoreNumber = scoreRules.getRule(EnumScoreType.BIND_CAR,WxScoreRules.SCORE);


// 3. 增长的成长值 // 3. 增长的成长值
updateScore(user.getId(), addScoreNumber);
updateScore(user.getId(),tenantEntity, addScoreNumber);


// 4. 记录历史 // 4. 记录历史
recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.BIND_CAR); recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.BIND_CAR);
@@ -417,7 +417,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
addScoreNumber = scoreRules.getRule(EnumScoreType.WECHAT_PERSION,WxScoreRules.SCORE); addScoreNumber = scoreRules.getRule(EnumScoreType.WECHAT_PERSION,WxScoreRules.SCORE);


// 3. 增长的成长值 // 3. 增长的成长值
updateScore(user.getId(), addScoreNumber);
updateScore(user.getId(),tenantEntity, addScoreNumber);


// 4. 记录历史 // 4. 记录历史
recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.WECHAT_PERSION); recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.WECHAT_PERSION);
@@ -433,7 +433,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
addScoreNumber = scoreRules.getRule(EnumScoreType.WECHAT_PHONE,WxScoreRules.SCORE); addScoreNumber = scoreRules.getRule(EnumScoreType.WECHAT_PHONE,WxScoreRules.SCORE);


// 3. 增长的成长值 // 3. 增长的成长值
updateScore(user.getId(), addScoreNumber);
updateScore(user.getId(),tenantEntity, addScoreNumber);


// 4. 记录历史 // 4. 记录历史
recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.WECHAT_PHONE); recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.WECHAT_PHONE);
@@ -459,7 +459,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
addScoreNumber = scoreRules.getRule(EnumScoreType.COMPLETE_INFO,WxScoreRules.SCORE); addScoreNumber = scoreRules.getRule(EnumScoreType.COMPLETE_INFO,WxScoreRules.SCORE);


// 3. 增长的成长值 // 3. 增长的成长值
updateScore(user.getId(), addScoreNumber);
updateScore(user.getId(),tenantEntity, addScoreNumber);


// 4. 记录历史 // 4. 记录历史
recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.COMPLETE_INFO); recordScoreHistory(addScoreNumber, tenantEntity, user.getId(), EnumScoreType.COMPLETE_INFO);
@@ -571,7 +571,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
logger.info("暂未成为会员:cUserId" + userId); logger.info("暂未成为会员:cUserId" + userId);
return 0; return 0;
} }
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId,tenantEntity.getFinalTenantId());
if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) { if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) {
logger.info("会员权益被锁定:cUserId:" + userId); logger.info("会员权益被锁定:cUserId:" + userId);
return 0; return 0;
@@ -614,7 +614,7 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService {
userId = user.getId(); userId = user.getId();
} }


WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId);
WxCUserBasicInfo wxCUserBasicInfo = wxCUserBasicInfoMapper.selectById(userId,tenantEntity.getFinalTenantId());
if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) { if (wxCUserBasicInfo != null && wxCUserBasicInfo.getStatus().equals(EnumCUserBasicInfoStatus.LOCKED.getCode())) {
logger.info("会员权益被锁定:cUserId:" + userId); logger.info("会员权益被锁定:cUserId:" + userId);
return 0; return 0;


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/park/impl/util/ParkHelper.java Просмотреть файл

@@ -73,7 +73,7 @@ public class ParkHelper {
wxScoreRulesService.addScore(userCar,EnumScoreType.BIND_CAR, userCar); wxScoreRulesService.addScore(userCar,EnumScoreType.BIND_CAR, userCar);
//增加积分 //增加积分
addCredit(park, cuUserId); addCredit(park, cuUserId);
wxCUserTagsService.triggerAssignTags(EnumAssignTagsTrigger.ASSIGN_TAGS_TRIGGER_CAR,cuUserId);
wxCUserTagsService.triggerAssignTags(EnumAssignTagsTrigger.ASSIGN_TAGS_TRIGGER_CAR,userCar);
} }
//-----增加积分start----- //-----增加积分start-----


+ 1
- 1
mallinkSysAdmin/src/main/java/com/iformall/controller/datafix/DataInitController.java Просмотреть файл

@@ -190,7 +190,7 @@ public class DataInitController extends BaseController {
log.debug(" : {}", ret.getId()); log.debug(" : {}", ret.getId());
return; return;
} }
WxCUserBasicInfo userBasicInfo = cUserBasicInfoMapper.selectById(co.getcUserId());
WxCUserBasicInfo userBasicInfo = cUserBasicInfoMapper.selectById(co.getcUserId(),co.getFinalTenantId());
//排查不存在的用户 //排查不存在的用户
if (Objects.isNull(userBasicInfo)) { if (Objects.isNull(userBasicInfo)) {
log.debug("用户不存在 id: {}", co.getId()); log.debug("用户不存在 id: {}", co.getId());


Загрузка…
Отмена
Сохранить