Parcourir la source

[集团版][修改]:集团版预处理

release_toaliyun_real
Stormeye Wu il y a 6 ans
Parent
révision
8cb9ec9064
20 fichiers modifiés avec 55 ajouts et 55 suppressions
  1. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java
  2. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java
  3. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java
  4. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java
  5. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java
  6. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java
  7. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java
  8. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java
  9. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java
  10. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java
  11. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java
  12. +14
    -14
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java
  13. +4
    -4
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java
  14. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java
  15. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java
  16. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxDateAmountRecordServiceImpl.java
  17. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxFloatingLayerServiceImpl.java
  18. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java
  19. +6
    -6
      mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java
  20. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java

+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherDepositServiceImpl.java Voir le fichier

@@ -236,7 +236,7 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService
wxBillAction.setUserId(user.getId()); wxBillAction.setUserId(user.getId());
wxBillAction.setUserName(user.getName()); wxBillAction.setUserName(user.getName());
wxBillAction.setPhone(user.getPhone()); wxBillAction.setPhone(user.getPhone());
wxBillAction.setTenantId(wxBillOtherDeposit.getTenantId());
wxBillAction.updateTenantInfo(user);
wxBillAction.setPayDate(wxBillOtherDeposit.getPayDate()); wxBillAction.setPayDate(wxBillOtherDeposit.getPayDate());
try { try {
wxBillActionService.save(wxBillAction); wxBillActionService.save(wxBillAction);


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxBillOtherServiceImpl.java Voir le fichier

@@ -156,7 +156,7 @@ public class WxBillOtherServiceImpl implements WxBillOtherService {
if (record.getId() == null) { if (record.getId() == null) {
logger.info("新增其他押金账单"); logger.info("新增其他押金账单");
WxBillOther otherQuery = new WxBillOther(); WxBillOther otherQuery = new WxBillOther();
otherQuery.setTenantId(record.getTenantId());
otherQuery.updateTenantInfo(user);
otherQuery.setMerchantId(record.getMerchantId()); otherQuery.setMerchantId(record.getMerchantId());
otherQuery.setReceiveDate(record.getReceiveDate()); otherQuery.setReceiveDate(record.getReceiveDate());
otherQuery.setName(record.getName()); otherQuery.setName(record.getName());
@@ -237,7 +237,7 @@ public class WxBillOtherServiceImpl implements WxBillOtherService {
wxBillAction.setUserId(user.getId()); wxBillAction.setUserId(user.getId());
wxBillAction.setUserName(user.getName()); wxBillAction.setUserName(user.getName());
wxBillAction.setPhone(user.getPhone()); wxBillAction.setPhone(user.getPhone());
wxBillAction.setTenantId(wxBillOther.getTenantId());
wxBillAction.updateTenantInfo(user);
wxBillAction.setPayDate(wxBillOther.getPayDate()); wxBillAction.setPayDate(wxBillOther.getPayDate());
try { try {
wxBillActionService.save(wxBillAction); wxBillActionService.save(wxBillAction);


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyDepositServiceImpl.java Voir le fichier

@@ -183,7 +183,7 @@ public class WxBillPropertyDepositServiceImpl implements WxBillPropertyDepositSe
wxBillAction.setUserId(user.getId()); wxBillAction.setUserId(user.getId());
wxBillAction.setUserName(user.getName()); wxBillAction.setUserName(user.getName());
wxBillAction.setPhone(user.getPhone()); wxBillAction.setPhone(user.getPhone());
wxBillAction.setTenantId(wxBillDeposit.getTenantId());
wxBillAction.updateTenantInfo(user);
wxBillAction.setPayDate(wxBillDeposit.getPayDate()); wxBillAction.setPayDate(wxBillDeposit.getPayDate());
try { try {
wxBillActionService.save(wxBillAction); wxBillActionService.save(wxBillAction);
@@ -247,7 +247,7 @@ public class WxBillPropertyDepositServiceImpl implements WxBillPropertyDepositSe
wxBillAction.setUserId(user.getId()); wxBillAction.setUserId(user.getId());
wxBillAction.setUserName(user.getName()); wxBillAction.setUserName(user.getName());
wxBillAction.setPhone(user.getPhone()); wxBillAction.setPhone(user.getPhone());
wxBillAction.setTenantId(wxBillDeposit.getTenantId());
wxBillAction.updateTenantInfo(user);
try { try {
wxBillActionService.save(wxBillAction); wxBillActionService.save(wxBillAction);
} catch (Exception e) { } catch (Exception e) {


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxBillPropertyServiceImpl.java Voir le fichier

@@ -230,7 +230,7 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService {
wxBillAction.setUserId(user.getId()); wxBillAction.setUserId(user.getId());
wxBillAction.setUserName(user.getName()); wxBillAction.setUserName(user.getName());
wxBillAction.setPhone(user.getPhone()); wxBillAction.setPhone(user.getPhone());
wxBillAction.setTenantId(property.getTenantId());
wxBillAction.updateTenantInfo(user);
wxBillAction.setPayDate(property.getPayDate()); wxBillAction.setPayDate(property.getPayDate());
try { try {
wxBillActionService.save(wxBillAction); wxBillActionService.save(wxBillAction);


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxBillSettleServiceImpl.java Voir le fichier

@@ -109,7 +109,7 @@ public class WxBillSettleServiceImpl implements WxBillSettleService {


//加载账单列表 //加载账单列表
WxBillSettleBill wxBillSettleBill = new WxBillSettleBill(); WxBillSettleBill wxBillSettleBill = new WxBillSettleBill();
wxBillSettleBill.setTenantId(billSettle.getTenantId());
wxBillSettleBill.updateTenantInfo(merchant);
wxBillSettleBill.setSettleId(billSettle.getId()); wxBillSettleBill.setSettleId(billSettle.getId());
wxBillSettleBill.setType(EnumSettleBillType.R.getCode()); wxBillSettleBill.setType(EnumSettleBillType.R.getCode());
billSettle.setReceiveBillIds(wxBillSettleBillMapper.findBySettleId(wxBillSettleBill)); billSettle.setReceiveBillIds(wxBillSettleBillMapper.findBySettleId(wxBillSettleBill));
@@ -118,7 +118,7 @@ public class WxBillSettleServiceImpl implements WxBillSettleService {


//加载清算历史 //加载清算历史
WxBillSettleRecord wxBillSettleRecord = new WxBillSettleRecord(); WxBillSettleRecord wxBillSettleRecord = new WxBillSettleRecord();
wxBillSettleRecord.setTenantId(billSettle.getTenantId());
wxBillSettleRecord.updateTenantInfo(merchant);
wxBillSettleRecord.setSettleId(billSettle.getId()); wxBillSettleRecord.setSettleId(billSettle.getId());
billSettle.setSettleRecordList(wxBillSettleRecordMapper.findList(wxBillSettleRecord)); billSettle.setSettleRecordList(wxBillSettleRecordMapper.findList(wxBillSettleRecord));


@@ -497,14 +497,14 @@ public class WxBillSettleServiceImpl implements WxBillSettleService {
for (WxBillSettleBill bill:record.getReceiveBillIds()) { for (WxBillSettleBill bill:record.getReceiveBillIds()) {
bill.setId(idWorker.nextId()); bill.setId(idWorker.nextId());
bill.setSettleId(record.getId()); bill.setSettleId(record.getId());
bill.setTenantId(record.getTenantId());
bill.updateTenantInfo(userInfo);
bill.setType(EnumSettleBillType.R.getCode()); bill.setType(EnumSettleBillType.R.getCode());
wxBillSettleBillMapper.insert(bill); wxBillSettleBillMapper.insert(bill);
} }
for (WxBillSettleBill bill:record.getPayBillIds()) { for (WxBillSettleBill bill:record.getPayBillIds()) {
bill.setId(idWorker.nextId()); bill.setId(idWorker.nextId());
bill.setSettleId(record.getId()); bill.setSettleId(record.getId());
bill.setTenantId(record.getTenantId());
bill.updateTenantInfo(userInfo);
bill.setType(EnumSettleBillType.P.getCode()); bill.setType(EnumSettleBillType.P.getCode());
wxBillSettleBillMapper.insert(bill); wxBillSettleBillMapper.insert(bill);
} }


+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicInfoServiceImpl.java Voir le fichier

@@ -601,21 +601,21 @@ public class WxCUserBasicInfoServiceImpl implements WxCUserBasicInfoService {
public void updateObj(WxCUserBasicInfo record, WxCUser user) { public void updateObj(WxCUserBasicInfo record, WxCUser user) {
// 1. update c_user_tags // 1. update c_user_tags
CUserTagNewIdVo userTagVo = new CUserTagNewIdVo(); CUserTagNewIdVo userTagVo = new CUserTagNewIdVo();
userTagVo.setTenantId(record.getTenantId());
userTagVo.updateTenantInfo(record);
userTagVo.setUserId(record.getId()); userTagVo.setUserId(record.getId());
userTagVo.setNewUserId(user.getId()); userTagVo.setNewUserId(user.getId());
wxCUserTagsMapper.updateNewId(userTagVo); wxCUserTagsMapper.updateNewId(userTagVo);


// 2. update score history // 2. update score history
WxScoreHistoryNewIdVo scoreHistoryNewIdVo = new WxScoreHistoryNewIdVo(); WxScoreHistoryNewIdVo scoreHistoryNewIdVo = new WxScoreHistoryNewIdVo();
scoreHistoryNewIdVo.setTenantId(record.getTenantId());
scoreHistoryNewIdVo.updateTenantInfo(record);
scoreHistoryNewIdVo.setCUserId(record.getId()); scoreHistoryNewIdVo.setCUserId(record.getId());
scoreHistoryNewIdVo.setNewUserId(user.getId()); scoreHistoryNewIdVo.setNewUserId(user.getId());
scoreHistoryMapper.updateNewId(scoreHistoryNewIdVo); scoreHistoryMapper.updateNewId(scoreHistoryNewIdVo);


// 3. update credit history // 3. update credit history
WxCreditHistoryNewIdVo creditHistoryNewIdVo = new WxCreditHistoryNewIdVo(); WxCreditHistoryNewIdVo creditHistoryNewIdVo = new WxCreditHistoryNewIdVo();
creditHistoryNewIdVo.setTenantId(record.getTenantId());
creditHistoryNewIdVo.updateTenantInfo(record);
creditHistoryNewIdVo.setCUserId(record.getId()); creditHistoryNewIdVo.setCUserId(record.getId());
creditHistoryNewIdVo.setNewUserId(user.getId()); creditHistoryNewIdVo.setNewUserId(user.getId());
creditHistoryMapper.updateNewId(creditHistoryNewIdVo); creditHistoryMapper.updateNewId(creditHistoryNewIdVo);


+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxCUserServiceImpl.java Voir le fichier

@@ -107,7 +107,7 @@ public class WxCUserServiceImpl implements WxCUserService {
public int saveOrUpdateMpUser(WxMpUser mpUser, WxAuthorizerInfo authorizerInfo) { public int saveOrUpdateMpUser(WxMpUser mpUser, WxAuthorizerInfo authorizerInfo) {
// 1. check user exist // 1. check user exist
WxCUser userQ = new WxCUser(); WxCUser userQ = new WxCUser();
userQ.setTenantId(authorizerInfo.getTenantId());
userQ.updateTenantInfo(authorizerInfo);
boolean bHaveUnionId = false; boolean bHaveUnionId = false;
if(StringUtils.isNotBlank(mpUser.getUnionId())) { if(StringUtils.isNotBlank(mpUser.getUnionId())) {
userQ.setUnionId(mpUser.getUnionId()); userQ.setUnionId(mpUser.getUnionId());
@@ -226,7 +226,7 @@ public class WxCUserServiceImpl implements WxCUserService {
public void actionMsgAfterLogin(WxCUser user, Boolean findByUnionId) { public void actionMsgAfterLogin(WxCUser user, Boolean findByUnionId) {
FmInsideCLoginMsg loginMsg = new FmInsideCLoginMsg(); FmInsideCLoginMsg loginMsg = new FmInsideCLoginMsg();
loginMsg.setMsgType(EnumMsgRecordType.INSIDE_C_LOGIN.getCode()); loginMsg.setMsgType(EnumMsgRecordType.INSIDE_C_LOGIN.getCode());
loginMsg.setTenantId(user.getTenantId());
loginMsg.updateTenantInfo(user);
loginMsg.setCUserId(user.getId()); loginMsg.setCUserId(user.getId());
loginMsg.setFindByUnionId(findByUnionId); loginMsg.setFindByUnionId(findByUnionId);
mqBaseProducer.sendMessage(loginMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode()); mqBaseProducer.sendMessage(loginMsg, EnumMsgMqTopic.DEFAULT.getCode(), EnumMsgMqTag.DEFAULT.getCode(), EnumMsgMqKey.DEFAULT.getCode());
@@ -300,7 +300,7 @@ public class WxCUserServiceImpl implements WxCUserService {
public WxCreditHistory addCredit(WxCUser user, EnumScoreType enumScoreType) { public WxCreditHistory addCredit(WxCUser user, EnumScoreType enumScoreType) {
WxCreditHistory wxCreditHistory = new WxCreditHistory(); WxCreditHistory wxCreditHistory = new WxCreditHistory();
wxCreditHistory.setCUserId(user.getId()); wxCreditHistory.setCUserId(user.getId());
wxCreditHistory.setTenantId(user.getTenantId());
wxCreditHistory.updateTenantInfo(user);
wxCreditHistory.setCreateDate(new Date()); wxCreditHistory.setCreateDate(new Date());
wxCreditHistory.setCreditType(enumScoreType.getCode()); wxCreditHistory.setCreditType(enumScoreType.getCode());
wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode()); wxCreditHistory.setOperatorType(EnumUserType.CUSER.getCode());


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCUserTagsServiceImpl.java Voir le fichier

@@ -115,7 +115,7 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
return null; return null;
WxCUserTags record = new WxCUserTags(); WxCUserTags record = new WxCUserTags();
record.setUserId(user.getId()); record.setUserId(user.getId());
record.setTenantId(user.getTenantId());
record.updateTenantInfo(user);
List<WxCUserTags> cUserTagsList = wxCUserTagsMapper.findList(record); List<WxCUserTags> cUserTagsList = wxCUserTagsMapper.findList(record);
if (cUserTagsList.size() > 0) { if (cUserTagsList.size() > 0) {
record.setId(cUserTagsList.get(0).getId()); record.setId(cUserTagsList.get(0).getId());
@@ -165,7 +165,7 @@ public class WxCUserTagsServiceImpl implements WxCUserTagsService {
return null; return null;
WxCUserTags record = new WxCUserTags(); WxCUserTags record = new WxCUserTags();
record.setUserId(user.getId()); record.setUserId(user.getId());
record.setTenantId(user.getTenantId());
record.updateTenantInfo(user);
List<WxCUserTags> cUserTagsList = wxCUserTagsMapper.findList(record); List<WxCUserTags> cUserTagsList = wxCUserTagsMapper.findList(record);
if (cUserTagsList.size() > 0) { if (cUserTagsList.size() > 0) {
record.setId(cUserTagsList.get(0).getId()); record.setId(cUserTagsList.get(0).getId());


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java Voir le fichier

@@ -183,7 +183,7 @@ public class WxCampaignServiceImpl implements WxCampaignService {
public void delBatch(WxCampaign record) { public void delBatch(WxCampaign record) {
// couponChannel 下架 // couponChannel 下架
WxCouponChannel wxCouponChannelQ = new WxCouponChannel(); WxCouponChannel wxCouponChannelQ = new WxCouponChannel();
wxCouponChannelQ.setTenantId(record.getTenantId());
wxCouponChannelQ.updateTenantInfo(record);
wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_CAMPAIN.getCode()); wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_CAMPAIN.getCode());
wxCouponChannelQ.setSubTargetId(record.getId()); wxCouponChannelQ.setSubTargetId(record.getId());
wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
@@ -200,7 +200,7 @@ public class WxCampaignServiceImpl implements WxCampaignService {
public void addOrUpdateBatch(List<String> ids, WxCampaign record) { public void addOrUpdateBatch(List<String> ids, WxCampaign record) {
// 获取已上架的CouponChannel // 获取已上架的CouponChannel
WxCouponChannel wxCouponChannelQ = new WxCouponChannel(); WxCouponChannel wxCouponChannelQ = new WxCouponChannel();
wxCouponChannelQ.setTenantId(record.getTenantId());
wxCouponChannelQ.updateTenantInfo(record);
wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_CAMPAIN.getCode()); wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_CAMPAIN.getCode());
wxCouponChannelQ.setSubTargetId(record.getId()); wxCouponChannelQ.setSubTargetId(record.getId());
wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java Voir le fichier

@@ -620,7 +620,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService {
// 3. get pay account // 3. get pay account
WxPayAccount payAccount = null; WxPayAccount payAccount = null;
WxPayAccount payAccountQ = new WxPayAccount(); WxPayAccount payAccountQ = new WxPayAccount();
payAccountQ.setTenantId(record.getTenantId());
payAccountQ.updateTenantInfo(record);
try { try {
payAccount = payAccountMapper.selectOne(new QueryWrapper(payAccountQ)); payAccount = payAccountMapper.selectOne(new QueryWrapper(payAccountQ));
} catch (Exception e) { } catch (Exception e) {
@@ -717,7 +717,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService {
// 3. get pay account // 3. get pay account
WxPayAccount payAccount = null; WxPayAccount payAccount = null;
WxPayAccount payAccountQ = new WxPayAccount(); WxPayAccount payAccountQ = new WxPayAccount();
payAccountQ.setTenantId(record.getTenantId());
payAccountQ.updateTenantInfo(record);
try { try {
payAccount = payAccountMapper.selectOne(new QueryWrapper(payAccountQ)); payAccount = payAccountMapper.selectOne(new QueryWrapper(payAccountQ));
} catch (Exception e) { } catch (Exception e) {


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponInjectServiceImpl.java Voir le fichier

@@ -189,9 +189,9 @@ public class WxCouponInjectServiceImpl implements WxCouponInjectService {
} }


WxMsg wxmsg=new WxMsg(); WxMsg wxmsg=new WxMsg();
wxmsg.setTenantId(record.getTenantId());
wxmsg.updateTenantInfo(record);
WxMsgConfig wxMsgConfig = new WxMsgConfig(); WxMsgConfig wxMsgConfig = new WxMsgConfig();
wxMsgConfig.setTenantId(wxmsg.getTenantId());
wxMsgConfig.updateTenantInfo(record);
wxMsgConfig = wxMsgConfigService.findObject(wxMsgConfig); wxMsgConfig = wxMsgConfigService.findObject(wxMsgConfig);
if (wxMsgConfig==null){ if (wxMsgConfig==null){
return new ResultData(ErrorCode.MSG_SERVER_NOT_FIND); return new ResultData(ErrorCode.MSG_SERVER_NOT_FIND);


+ 14
- 14
mallinkService/src/main/java/com/iformall/service/impl/WxCouponOrderServiceImpl.java Voir le fichier

@@ -390,7 +390,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
creditHistory.setOperatorId(bUser.getId()); creditHistory.setOperatorId(bUser.getId());
creditHistory.setCUserId(couponOrder.getcUserId()); creditHistory.setCUserId(couponOrder.getcUserId());
creditHistory.setCreateDate(new Date()); creditHistory.setCreateDate(new Date());
creditHistory.setTenantId(couponOrder.getTenantId());
creditHistory.updateTenantInfo(couponOrder);
creditHistory.setCreditType(EnumScoreType.CONSUMPTION.getCode()); creditHistory.setCreditType(EnumScoreType.CONSUMPTION.getCode());
creditHistory.setCouponId(wxCoupon.getId()); creditHistory.setCouponId(wxCoupon.getId());
creditHistory.setBusinessId(wxCoupon.getBusiness()); creditHistory.setBusinessId(wxCoupon.getBusiness());
@@ -446,7 +446,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
public void actionAfterVerify(WxCouponOrder couponOrder, WxMerchantBUser bUser) { public void actionAfterVerify(WxCouponOrder couponOrder, WxMerchantBUser bUser) {


WxPayAccount wxPayAccountQuery = new WxPayAccount(); WxPayAccount wxPayAccountQuery = new WxPayAccount();
wxPayAccountQuery.setTenantId(couponOrder.getTenantId());
wxPayAccountQuery.updateTenantInfo(couponOrder);
WxPayAccount wxPayAccount = wxPayAccountMapper.selectOne(new QueryWrapper<>(wxPayAccountQuery)); WxPayAccount wxPayAccount = wxPayAccountMapper.selectOne(new QueryWrapper<>(wxPayAccountQuery));
if (wxPayAccount != null && wxPayAccount.getShare().equals(EnumPayShare.NO.getCode())) { if (wxPayAccount != null && wxPayAccount.getShare().equals(EnumPayShare.NO.getCode())) {
try { try {
@@ -509,7 +509,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
final IdWorker idWorker = IdWorker.get(); final IdWorker idWorker = IdWorker.get();
Date curDate = new Date(); Date curDate = new Date();
merchantSubsidy.setId(idWorker.nextId()); merchantSubsidy.setId(idWorker.nextId());
merchantSubsidy.setTenantId(couponOrder.getTenantId());
merchantSubsidy.updateTenantInfo(couponOrder);
merchantSubsidy.setOrderId(couponOrder.getOrderId()); merchantSubsidy.setOrderId(couponOrder.getOrderId());
merchantSubsidy.setOrderType(EnumOrderType.COUPON.getCode()); merchantSubsidy.setOrderType(EnumOrderType.COUPON.getCode());
merchantSubsidy.setMerchantId(merchantId); merchantSubsidy.setMerchantId(merchantId);
@@ -533,7 +533,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
// 微信分账 // 微信分账
try { try {
WxPayOrder wxPayOrder = new WxPayOrder(); WxPayOrder wxPayOrder = new WxPayOrder();
wxPayOrder.setTenantId(couponOrder.getTenantId());
wxPayOrder.updateTenantInfo(couponOrder);
wxPayOrder.setOrderId(couponOrder.getOrderId()); wxPayOrder.setOrderId(couponOrder.getOrderId());
wxPayOrder.setPayOrderStatus(EnumPayStatus.PAY_STATUS_SUCCESS.getCode()); wxPayOrder.setPayOrderStatus(EnumPayStatus.PAY_STATUS_SUCCESS.getCode());
wxPayOrder = wxPayOrderMapper.selectOne(new QueryWrapper(wxPayOrder)); wxPayOrder = wxPayOrderMapper.selectOne(new QueryWrapper(wxPayOrder));
@@ -547,7 +547,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
wxSharingOrderDto.setOrderId(wxPayOrder.getId()); wxSharingOrderDto.setOrderId(wxPayOrder.getId());
wxSharingOrderDto.setPayTimeStart(wxPayOrder.getPayTimeStart()); wxSharingOrderDto.setPayTimeStart(wxPayOrder.getPayTimeStart());
wxSharingOrderDto.setPayTimeEnd(wxPayOrder.getPayTimeEnd()); wxSharingOrderDto.setPayTimeEnd(wxPayOrder.getPayTimeEnd());
wxSharingOrderDto.setTenantId(wxPayOrder.getTenantId());
wxSharingOrderDto.updateTenantInfo(wxPayOrder);
wxSharingOrderDto.setTransactionId(wxPayOrder.getTransactionId()); wxSharingOrderDto.setTransactionId(wxPayOrder.getTransactionId());
wxSharingOrderDto.setShareAmount(wxPayOrder.getShareAmount()); wxSharingOrderDto.setShareAmount(wxPayOrder.getShareAmount());
wxProfitSharingOrderService.createSharingOrder(wxSharingOrderDto); wxProfitSharingOrderService.createSharingOrder(wxSharingOrderDto);
@@ -613,7 +613,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {


WxMerchantSubsidy merchantSubsidy = new WxMerchantSubsidy(); WxMerchantSubsidy merchantSubsidy = new WxMerchantSubsidy();
merchantSubsidy.setId(idWorker.nextId()); merchantSubsidy.setId(idWorker.nextId());
merchantSubsidy.setTenantId(couponOrder.getTenantId());
merchantSubsidy.updateTenantInfo(couponOrder);
merchantSubsidy.setOrderId(couponOrder.getOrderId()); merchantSubsidy.setOrderId(couponOrder.getOrderId());
merchantSubsidy.setOrderType(EnumOrderType.COUPON.getCode()); merchantSubsidy.setOrderType(EnumOrderType.COUPON.getCode());
merchantSubsidy.setMerchantId(merchantId); merchantSubsidy.setMerchantId(merchantId);
@@ -746,7 +746,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
// formId为空,获取prepayId // formId为空,获取prepayId
WxPayOrder payOrder = null; WxPayOrder payOrder = null;
WxPayOrder payOrderQ = new WxPayOrder(); WxPayOrder payOrderQ = new WxPayOrder();
payOrderQ.setTenantId(couponOrder.getTenantId());
payOrderQ.updateTenantInfo(couponOrder);
payOrderQ.setOrderId(order.getId()); payOrderQ.setOrderId(order.getId());
payOrderQ.setPayOrderStatus(EnumPayStatus.PAY_STATUS_SUCCESS.getCode()); payOrderQ.setPayOrderStatus(EnumPayStatus.PAY_STATUS_SUCCESS.getCode());
List<WxPayOrder> payList = wxPayOrderMapper.selectList(new QueryWrapper(payOrderQ)); List<WxPayOrder> payList = wxPayOrderMapper.selectList(new QueryWrapper(payOrderQ));
@@ -779,7 +779,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
* 检查 小程序模板消息是否超限 * 检查 小程序模板消息是否超限
*/ */
WxMsgLimit msgLimit = new WxMsgLimit(); WxMsgLimit msgLimit = new WxMsgLimit();
msgLimit.setTenantId(user.getTenantId());
msgLimit.updateTenantInfo(merchant);
msgLimit.setType(formType); msgLimit.setType(formType);
msgLimit.setLimitId(formId); msgLimit.setLimitId(formId);
if (wxMsgLimitService.checkIsLimit(msgLimit)) { if (wxMsgLimitService.checkIsLimit(msgLimit)) {
@@ -813,7 +813,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
mpAppMsg.setTo(user.getMpOpenId()); mpAppMsg.setTo(user.getMpOpenId());
mpAppMsg.setMiniAppId(user.getAppId()); mpAppMsg.setMiniAppId(user.getAppId());
mpAppMsg.setMiniPagePath(gotopage); mpAppMsg.setMiniPagePath(gotopage);
mpAppMsg.setTenantId(couponOrder.getTenantId());
mpAppMsg.updateTenantInfo(couponOrder);
mpAppMsg.setTemplateType(EnumTemplateType.VERIFY_RESULT.getCode()); mpAppMsg.setTemplateType(EnumTemplateType.VERIFY_RESULT.getCode());
mpAppMsg.setDataList(Lists.newArrayList( mpAppMsg.setDataList(Lists.newArrayList(
merchant.getName(), merchant.getName(),
@@ -834,7 +834,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
private void doVerifyAppUniformMsg(WxCouponOrder couponOrder, WxCoupon coupon, WxMerchant merchant, WxCUser user, SimpleDateFormat dateFormat, String gotopage) { private void doVerifyAppUniformMsg(WxCouponOrder couponOrder, WxCoupon coupon, WxMerchant merchant, WxCUser user, SimpleDateFormat dateFormat, String gotopage) {
WxAuthorizerInfo authQ = new WxAuthorizerInfo(); WxAuthorizerInfo authQ = new WxAuthorizerInfo();
authQ.setAuthorizerAppid(user.getAppId()); authQ.setAuthorizerAppid(user.getAppId());
authQ.setTenantId(user.getTenantId());
authQ.updateTenantInfo(merchant);
WxAuthorizerInfo weappInfo = authorizerInfoMapper.findMp(authQ); WxAuthorizerInfo weappInfo = authorizerInfoMapper.findMp(authQ);
if (weappInfo != null) { if (weappInfo != null) {
AppUniformMsg appUniformMsg = new AppUniformMsg(); AppUniformMsg appUniformMsg = new AppUniformMsg();
@@ -875,7 +875,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
smartAppMsg = new SmartAppMsg(); smartAppMsg = new SmartAppMsg();
smartAppMsg.setMsgType(EnumMsgRecordType.SMART_APP.getCode()); smartAppMsg.setMsgType(EnumMsgRecordType.SMART_APP.getCode());
smartAppMsg.setAppId(user.getAppId()); smartAppMsg.setAppId(user.getAppId());
smartAppMsg.setTenantId(couponOrder.getTenantId());
smartAppMsg.updateTenantInfo(couponOrder);
smartAppMsg.setTemplateType(EnumTemplateType.VERIFY_SUCCESS.getCode()); smartAppMsg.setTemplateType(EnumTemplateType.VERIFY_SUCCESS.getCode());
smartAppMsg.setGotopage(gotopage); smartAppMsg.setGotopage(gotopage);
smartAppMsg.setTo(user.getOpenId()); smartAppMsg.setTo(user.getOpenId());
@@ -910,7 +910,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
smartAppMsg = new SmartAppMsg(); smartAppMsg = new SmartAppMsg();
smartAppMsg.setMsgType(EnumMsgRecordType.SMART_APP.getCode()); smartAppMsg.setMsgType(EnumMsgRecordType.SMART_APP.getCode());
smartAppMsg.setAppId(user.getAppId()); smartAppMsg.setAppId(user.getAppId());
smartAppMsg.setTenantId(couponOrder.getTenantId());
smartAppMsg.updateTenantInfo(couponOrder);
smartAppMsg.setTemplateType(EnumTemplateType.VERIFY_FAIL.getCode()); smartAppMsg.setTemplateType(EnumTemplateType.VERIFY_FAIL.getCode());
smartAppMsg.setGotopage(gotopage); smartAppMsg.setGotopage(gotopage);
smartAppMsg.setTo(user.getOpenId()); smartAppMsg.setTo(user.getOpenId());
@@ -1233,7 +1233,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {


// 1. insert posOrderId // 1. insert posOrderId
PosCouponOrderVerify posCouponOrderVerify = new PosCouponOrderVerify(); PosCouponOrderVerify posCouponOrderVerify = new PosCouponOrderVerify();
posCouponOrderVerify.setTenantId(couponOrder.getTenantId());
posCouponOrderVerify.updateTenantInfo(couponOrder);
posCouponOrderVerify.setCouponOrderId(couponOrder.getId()); posCouponOrderVerify.setCouponOrderId(couponOrder.getId());
posCouponOrderVerify.setPosOrderId(microOrder.getId()); posCouponOrderVerify.setPosOrderId(microOrder.getId());
posCouponOrderVerify.setOrderFrom(EnumOrderFrom.INSIDE.getCode()); posCouponOrderVerify.setOrderFrom(EnumOrderFrom.INSIDE.getCode());
@@ -1267,7 +1267,7 @@ public class WxCouponOrderServiceImpl implements WxCouponOrderService {
final IdWorker idWorker = IdWorker.get(); final IdWorker idWorker = IdWorker.get();
Long id = idWorker.nextId(); Long id = idWorker.nextId();
setId(id); setId(id);
setTenantId(microOrder.getTenantId());
updateTenantInfo(microOrder);
setCUserId(microOrder.getCUserId()); setCUserId(microOrder.getCUserId());
setOrderId(microOrder.getId()); setOrderId(microOrder.getId());
setCreateTime(curDate); setCreateTime(curDate);


+ 4
- 4
mallinkService/src/main/java/com/iformall/service/impl/WxCouponSendServiceImpl.java Voir le fichier

@@ -443,7 +443,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
user.getMpSubscribe().equals(EnumUserIsSubscribe.YES.getCode())) { user.getMpSubscribe().equals(EnumUserIsSubscribe.YES.getCode())) {
// 检查是否超限 // 检查是否超限
WxMsgLimit msgLimit = new WxMsgLimit(); WxMsgLimit msgLimit = new WxMsgLimit();
msgLimit.setTenantId(user.getTenantId());
msgLimit.updateTenantInfo(couponOrder);
msgLimit.setType(EnumMsgLimitType.WXCHAT_OPENID_SEND.getCode()); msgLimit.setType(EnumMsgLimitType.WXCHAT_OPENID_SEND.getCode());
msgLimit.setLimitId(user.getMpOpenId()); msgLimit.setLimitId(user.getMpOpenId());
if (wxMsgLimitService.checkIsLimit(msgLimit)) { if (wxMsgLimitService.checkIsLimit(msgLimit)) {
@@ -468,7 +468,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
mpAppMsg.setTo(user.getMpOpenId()); mpAppMsg.setTo(user.getMpOpenId());
mpAppMsg.setMiniAppId(user.getAppId()); mpAppMsg.setMiniAppId(user.getAppId());
mpAppMsg.setMiniPagePath(gotopage); mpAppMsg.setMiniPagePath(gotopage);
mpAppMsg.setTenantId(couponOrder.getTenantId());
mpAppMsg.updateTenantInfo(couponOrder);
mpAppMsg.setTemplateType(EnumTemplateType.GIFT_MESSAGE.getCode()); mpAppMsg.setTemplateType(EnumTemplateType.GIFT_MESSAGE.getCode());
mpAppMsg.setDataList(Lists.newArrayList( mpAppMsg.setDataList(Lists.newArrayList(
user.getNickName(), user.getNickName(),
@@ -492,7 +492,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
// 8. 微信小程序-统一消息 // 8. 微信小程序-统一消息
// 检查是否超限 // 检查是否超限
WxMsgLimit msgLimit = new WxMsgLimit(); WxMsgLimit msgLimit = new WxMsgLimit();
msgLimit.setTenantId(user.getTenantId());
msgLimit.updateTenantInfo(user);
msgLimit.setType(EnumMsgLimitType.WEAPP_OPENID_SEND.getCode()); msgLimit.setType(EnumMsgLimitType.WEAPP_OPENID_SEND.getCode());
msgLimit.setLimitId(user.getOpenId()); msgLimit.setLimitId(user.getOpenId());
if (wxMsgLimitService.checkIsLimit(msgLimit)) { if (wxMsgLimitService.checkIsLimit(msgLimit)) {
@@ -502,7 +502,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService {
// 获取小程序关联的服务号 // 获取小程序关联的服务号
WxAuthorizerInfo authQ = new WxAuthorizerInfo(); WxAuthorizerInfo authQ = new WxAuthorizerInfo();
authQ.setAuthorizerAppid(user.getAppId()); authQ.setAuthorizerAppid(user.getAppId());
authQ.setTenantId(user.getTenantId());
authQ.updateTenantInfo(user);
WxAuthorizerInfo weappInfo = authorizerInfoMapper.findMp(authQ); WxAuthorizerInfo weappInfo = authorizerInfoMapper.findMp(authQ);
if (weappInfo != null) { if (weappInfo != null) {
AppUniformMsg appUniformMsg = new AppUniformMsg(); AppUniformMsg appUniformMsg = new AppUniformMsg();


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Voir le fichier

@@ -108,7 +108,7 @@ import java.util.stream.Collectors;


List<Long> ids = wxCouponList.stream().map(p -> p.getId()).collect(Collectors.toList()); List<Long> ids = wxCouponList.stream().map(p -> p.getId()).collect(Collectors.toList());
WxCouponChannel wxCouponChannel = new WxCouponChannel(); WxCouponChannel wxCouponChannel = new WxCouponChannel();
wxCouponChannel.setTenantId(wxCoupon.getTenantId());
wxCouponChannel.updateTenantInfo(wxCoupon);
wxCouponChannel.setCouponIds(ids); wxCouponChannel.setCouponIds(ids);
wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
//上架状态 //上架状态


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCreditHistoryServiceImpl.java Voir le fichier

@@ -436,7 +436,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService {


private int checkCompleteInfoScoreCount(WxCUser cUser) { private int checkCompleteInfoScoreCount(WxCUser cUser) {
WxCreditHistory wxCreditHistory = new WxCreditHistory(); WxCreditHistory wxCreditHistory = new WxCreditHistory();
wxCreditHistory.setTenantId(cUser.getTenantId());
wxCreditHistory.updateTenantInfo(cUser);
wxCreditHistory.setCUserId(cUser.getId()); wxCreditHistory.setCUserId(cUser.getId());
wxCreditHistory.setCreditType(EnumScoreType.COMPLETE_INFO.getCode()); wxCreditHistory.setCreditType(EnumScoreType.COMPLETE_INFO.getCode());
return wxCreditHistoryMapper.countList(wxCreditHistory); return wxCreditHistoryMapper.countList(wxCreditHistory);


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxDateAmountRecordServiceImpl.java Voir le fichier

@@ -53,7 +53,7 @@ public class WxDateAmountRecordServiceImpl implements WxDateAmountRecordService


WxDateAmountRecord record = new WxDateAmountRecord(); WxDateAmountRecord record = new WxDateAmountRecord();
record.setDate(amount.getDate()); record.setDate(amount.getDate());
record.setTenantId(amount.getTenantId());
record.updateTenantInfo(amount);
record.setMerchantId(amount.getMerchantId()); record.setMerchantId(amount.getMerchantId());
record.setType(amount.getType()); record.setType(amount.getType());




+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxFloatingLayerServiceImpl.java Voir le fichier

@@ -51,7 +51,7 @@ public class WxFloatingLayerServiceImpl implements WxFloatingLayerService {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "小程序跳转路径不能为空"); return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "小程序跳转路径不能为空");
} }
WxFloatingLayer wxFloatingLayerQuery = new WxFloatingLayer(); WxFloatingLayer wxFloatingLayerQuery = new WxFloatingLayer();
wxFloatingLayerQuery.setTenantId(wxFloatingLayer.getTenantId());
wxFloatingLayerQuery.updateTenantInfo(wxFloatingLayer);
wxFloatingLayerQuery.setStatus(wxFloatingLayer.getStatus()); wxFloatingLayerQuery.setStatus(wxFloatingLayer.getStatus());
Integer integer = wxFloatingLayerMapper.selectCount(new QueryWrapper<>(wxFloatingLayerQuery)); Integer integer = wxFloatingLayerMapper.selectCount(new QueryWrapper<>(wxFloatingLayerQuery));
if (integer > 0) { if (integer > 0) {


+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java Voir le fichier

@@ -293,7 +293,7 @@ public class WxFlowServiceImpl implements WxFlowService {
wxCoupon.setRemainInventory(remainInventory); wxCoupon.setRemainInventory(remainInventory);
wxCoupon.setType(type); wxCoupon.setType(type);
wxCoupon.setValidType(validType); wxCoupon.setValidType(validType);
wxCoupon.setTenantId(wxCoupon.getTenantId());
wxCoupon.updateTenantInfo(wxCoupon);
wxCouponService.updateCouponStockAndEndTime(wxCoupon); wxCouponService.updateCouponStockAndEndTime(wxCoupon);
} }
}else if(EnumCouponAppType.CANCLE.getCode().equals(operateType)){ }else if(EnumCouponAppType.CANCLE.getCode().equals(operateType)){
@@ -1516,7 +1516,7 @@ public class WxFlowServiceImpl implements WxFlowService {
@Override @Override
public ResultData delModel(WxFlowModel wxFlowModel) { public ResultData delModel(WxFlowModel wxFlowModel) {
WxFlowConfig query = new WxFlowConfig(); WxFlowConfig query = new WxFlowConfig();
query.setTenantId(wxFlowModel.getTenantId());
query.updateTenantInfo(wxFlowModel);
query.setModelId(wxFlowModel.getId()); query.setModelId(wxFlowModel.getId());
if(CollectionUtils.isNotEmpty(wxFlowConfigMapper.findList(query))){ if(CollectionUtils.isNotEmpty(wxFlowConfigMapper.findList(query))){
return new ResultData(Result.ERROR, "该流程模板在使用中,须先停用正在\n" + return new ResultData(Result.ERROR, "该流程模板在使用中,须先停用正在\n" +


+ 6
- 6
mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java Voir le fichier

@@ -121,7 +121,7 @@ public class WxGameServiceImpl implements WxGameService {
final IdWorker idWorker = IdWorker.get(); final IdWorker idWorker = IdWorker.get();
WxGameActionLog wxGameActionLog = new WxGameActionLog(); WxGameActionLog wxGameActionLog = new WxGameActionLog();
wxGameActionLog.setUserId(userId); wxGameActionLog.setUserId(userId);
wxGameActionLog.setTenantId(wxCouponOrder.getTenantId());
wxGameActionLog.updateTenantInfo(wxCouponOrder);
wxGameActionLog.setGameId(gameId); wxGameActionLog.setGameId(gameId);
wxGameActionLog.setCouponOrderId(wxCouponOrder.getOrderId()); wxGameActionLog.setCouponOrderId(wxCouponOrder.getOrderId());
wxGameActionLog.setId(idWorker.nextId()); wxGameActionLog.setId(idWorker.nextId());
@@ -138,7 +138,7 @@ public class WxGameServiceImpl implements WxGameService {
return new ResultData(ErrorCode.GAME_NOT_FOUND); return new ResultData(ErrorCode.GAME_NOT_FOUND);


WxGameActionLog wxGameActionLog = new WxGameActionLog(); WxGameActionLog wxGameActionLog = new WxGameActionLog();
wxGameActionLog.setTenantId(wxGame.getTenantId());
wxGameActionLog.updateTenantInfo(wxGame);
wxGameActionLog.setUserId(userId); wxGameActionLog.setUserId(userId);
wxGameActionLog.setGameId(gameId); wxGameActionLog.setGameId(gameId);


@@ -163,7 +163,7 @@ public class WxGameServiceImpl implements WxGameService {
private List<Object> getParams(WxGame record) { private List<Object> getParams(WxGame record) {
// 获取已上架的CouponChannel // 获取已上架的CouponChannel
WxCouponChannel couponChannelQ = new WxCouponChannel(); WxCouponChannel couponChannelQ = new WxCouponChannel();
couponChannelQ.setTenantId(record.getTenantId());
couponChannelQ.updateTenantInfo(record);
couponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode()); couponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode());
couponChannelQ.setSubTargetId(record.getId()); couponChannelQ.setSubTargetId(record.getId());
couponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); couponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
@@ -223,7 +223,7 @@ public class WxGameServiceImpl implements WxGameService {
private void delCouponChannelBatch(WxGame record) { private void delCouponChannelBatch(WxGame record) {
// couponChannel 下架 // couponChannel 下架
WxCouponChannel wxCouponChannelQ = new WxCouponChannel(); WxCouponChannel wxCouponChannelQ = new WxCouponChannel();
wxCouponChannelQ.setTenantId(record.getTenantId());
wxCouponChannelQ.updateTenantInfo(record);
wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode()); wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode());
wxCouponChannelQ.setSubTargetId(record.getId()); wxCouponChannelQ.setSubTargetId(record.getId());
wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
@@ -240,7 +240,7 @@ public class WxGameServiceImpl implements WxGameService {
private void addOrUpdateCouponChannelBatch(List couponIds, WxGame record) { private void addOrUpdateCouponChannelBatch(List couponIds, WxGame record) {
// 获取已上架的CouponChannel // 获取已上架的CouponChannel
WxCouponChannel wxCouponChannelQ = new WxCouponChannel(); WxCouponChannel wxCouponChannelQ = new WxCouponChannel();
wxCouponChannelQ.setTenantId(record.getTenantId());
wxCouponChannelQ.updateTenantInfo(record);
wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode()); wxCouponChannelQ.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode());
wxCouponChannelQ.setSubTargetId(record.getId()); wxCouponChannelQ.setSubTargetId(record.getId());
wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode()); wxCouponChannelQ.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
@@ -303,7 +303,7 @@ public class WxGameServiceImpl implements WxGameService {
wxCouponChannel.setCouponId(couponId); wxCouponChannel.setCouponId(couponId);
wxCouponChannel.setType(wxCoupon.getType()); wxCouponChannel.setType(wxCoupon.getType());
wxCouponChannel.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode()); wxCouponChannel.setTargetAd(EnumCouponChannelType.COUPON_CHANNEL_ID_GAME.getCode());
wxCouponChannel.setTenantId(wxCoupon.getTenantId());
wxCouponChannel.updateTenantInfo(wxCoupon);
wxCouponChannel.setBusiness(wxCoupon.getBusiness()); wxCouponChannel.setBusiness(wxCoupon.getBusiness());
wxCouponChannel.setSubBusiness(wxCoupon.getSubBusiness()); wxCouponChannel.setSubBusiness(wxCoupon.getSubBusiness());
wxCouponChannel.setTitle(wxCoupon.getTitle()); wxCouponChannel.setTitle(wxCoupon.getTitle());


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxLevelConfigServiceImpl.java Voir le fichier

@@ -56,7 +56,7 @@ public class WxLevelConfigServiceImpl implements WxLevelConfigService {
l.setScale(WxLevelConfig.DEFAULT_SCALE); l.setScale(WxLevelConfig.DEFAULT_SCALE);
} }
WxCUserBasicInfoDto dto = new WxCUserBasicInfoDto(); WxCUserBasicInfoDto dto = new WxCUserBasicInfoDto();
dto.setTenantId(l.getTenantId());
dto.updateTenantInfo(record);
dto.setLevelStartScore(l.getPoints()); dto.setLevelStartScore(l.getPoints());
if (i + 1<page.getList().size()) if (i + 1<page.getList().size())
dto.setLevelEndScore(page.getList().get(i+1).getPoints()); dto.setLevelEndScore(page.getList().get(i+1).getPoints());


Chargement…
Annuler
Enregistrer