修改
This commit is contained in:
@@ -742,7 +742,6 @@ public class MemberService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TbShopUser user = tbShopUserMapper.selectByPrimaryKey(flow.getShopUserId());
|
TbShopUser user = tbShopUserMapper.selectByPrimaryKey(flow.getShopUserId());
|
||||||
|
|
||||||
if (ObjectUtil.isEmpty(user) || ObjectUtil.isNull(user)) {
|
if (ObjectUtil.isEmpty(user) || ObjectUtil.isNull(user)) {
|
||||||
@@ -754,18 +753,12 @@ public class MemberService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(user.getShopId()));
|
TbShopInfo shopInfo = tbShopInfoMapper.selectByPrimaryKey(Integer.valueOf(user.getShopId()));
|
||||||
if (ObjectUtil.isEmpty(shopInfo) || ObjectUtil.isNull(shopInfo)) {
|
if (ObjectUtil.isEmpty(shopInfo) || ObjectUtil.isNull(shopInfo)) {
|
||||||
return Result.fail(CodeEnum.MERCHANTEIXST);
|
return Result.fail(CodeEnum.MERCHANTEIXST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ("scanMemberIn".equals(flow.getBizCode())) {
|
if ("scanMemberIn".equals(flow.getBizCode())) {
|
||||||
TbMerchantThirdApply thirdApply = tbMerchantThirdApplyMapper.selectByPrimaryKey(Integer.valueOf(shopInfo.getMerchantId()));
|
TbMerchantThirdApply thirdApply = tbMerchantThirdApplyMapper.selectByPrimaryKey(Integer.valueOf(shopInfo.getMerchantId()));
|
||||||
if (ObjectUtil.isEmpty(thirdApply) || ObjectUtil.isNull(thirdApply)) {
|
if (ObjectUtil.isEmpty(thirdApply) || ObjectUtil.isNull(thirdApply)) {
|
||||||
@@ -800,6 +793,19 @@ public class MemberService {
|
|||||||
tbShopUserFlowMapper.updateByPrimaryKey(flow);
|
tbShopUserFlowMapper.updateByPrimaryKey(flow);
|
||||||
|
|
||||||
|
|
||||||
|
TbShopUserFlow userFlow = new TbShopUserFlow();
|
||||||
|
userFlow.setShopUserId(user.getId());
|
||||||
|
userFlow.setBizCode("memberReturn");
|
||||||
|
userFlow.setBizName("会员退款");
|
||||||
|
userFlow.setType("-");
|
||||||
|
userFlow.setAmount(new BigDecimal(amount));
|
||||||
|
userFlow.setBalance(user.getAmount());
|
||||||
|
userFlow.setCreateTime(new Date());
|
||||||
|
userFlow.setIsReturn("1");
|
||||||
|
userFlow.setRemark(flowId);
|
||||||
|
|
||||||
|
tbShopUserFlowMapper.insert(userFlow);
|
||||||
|
|
||||||
JSONObject baObj = new JSONObject();
|
JSONObject baObj = new JSONObject();
|
||||||
baObj.put("userId", user.getUserId());
|
baObj.put("userId", user.getUserId());
|
||||||
baObj.put("shopId", user.getId());
|
baObj.put("shopId", user.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user