|
@@ -175,8 +175,9 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
|
|
|
}
|
|
}
|
|
|
dbShop.setBusinessId(businessId);
|
|
dbShop.setBusinessId(businessId);
|
|
|
dbShop.setBusinessBindTime(DateTime.now());
|
|
dbShop.setBusinessBindTime(DateTime.now());
|
|
|
- yhShopMapper.updateById(dbShop);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ dbShop.setRemark(yhShop.getRemark());
|
|
|
|
|
+ yhShopMapper.updateById(dbShop);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -270,6 +271,27 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
|
|
|
yhShopDistributeMoneyApplyMapper.updateById(distributeMoneyApply);
|
|
yhShopDistributeMoneyApplyMapper.updateById(distributeMoneyApply);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void updateVerifyImg(DistributeApplyMoneyReq distributeApplyMoneyReq) {
|
|
|
|
|
+ Long id = distributeApplyMoneyReq.getId();
|
|
|
|
|
+ String img = distributeApplyMoneyReq.getImg();
|
|
|
|
|
+ if (id == null) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请选择对应的申请提现记录");
|
|
|
|
|
+ }
|
|
|
|
|
+ YhShopDistributeMoneyApply yhShopDistributeMoneyApply = yhShopDistributeMoneyApplyMapper.selectById(id);
|
|
|
|
|
+ if (yhShopDistributeMoneyApply == null) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请选择对应的申请提现记录");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StrUtil.isEmpty(img)) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("请传入对应的审核图片");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (yhShopDistributeMoneyApply.getVerifyStatus() != YhShopDistributeMoneyApply.Status.success) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("该申请提现记录未审核成功");
|
|
|
|
|
+ }
|
|
|
|
|
+ yhShopDistributeMoneyApply.setImg(img);
|
|
|
|
|
+ yhShopDistributeMoneyApplyMapper.updateById(yhShopDistributeMoneyApply);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public void checkDistributorAndBusinessRate(Integer distributeGoodsRate, Long goodsId, String goodsName) {
|
|
public void checkDistributorAndBusinessRate(Integer distributeGoodsRate, Long goodsId, String goodsName) {
|
|
|
YhShopUserBusinessDefaultRateConfig defaultGoodsRateConfig = defaultRateConfigMapper.selectOne(Wrappers.lambdaQuery(YhShopUserBusinessDefaultRateConfig.class)
|
|
YhShopUserBusinessDefaultRateConfig defaultGoodsRateConfig = defaultRateConfigMapper.selectOne(Wrappers.lambdaQuery(YhShopUserBusinessDefaultRateConfig.class)
|
|
|
.eq(YhShopUserBusinessDefaultRateConfig::getGoodsId, goodsId)
|
|
.eq(YhShopUserBusinessDefaultRateConfig::getGoodsId, goodsId)
|