Merge branch 'prod' into test
This commit is contained in:
@@ -135,6 +135,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
||||
userInfo.setAmount(BigDecimal.ZERO);
|
||||
}
|
||||
userFlow.setUserId(userInfo.getUserId());
|
||||
userFlow.setShopUserId(shopUserEditDTO.getId());
|
||||
userFlow.setShopId(userInfo.getSourceShopId());
|
||||
userFlow.setAmount(shopUserEditDTO.getType() == 0 ? shopUserEditDTO.getMoney().negate() : shopUserEditDTO.getMoney());
|
||||
userFlow.setBalance(shopUserEditDTO.getType() == 0 ? userInfo.getAmount().subtract(shopUserEditDTO.getMoney()) : userInfo.getAmount().add(shopUserEditDTO.getMoney()));
|
||||
|
||||
@@ -179,6 +179,9 @@ public class UShopUserServiceImpl implements UShopUserService {
|
||||
if (StrUtil.isBlank(shopUser.getCode())) {
|
||||
shopUser.setCode(generateCode(shopId));
|
||||
}
|
||||
if (StrUtil.isBlank(shopUser.getBirthDay())) {
|
||||
shopUser.setBirthDay(null);
|
||||
}
|
||||
shopUser.setJoinTime(shopUser.getJoinTime() == null ? DateUtil.date().toLocalDateTime() : shopUser.getJoinTime());
|
||||
|
||||
|
||||
@@ -229,6 +232,7 @@ public class UShopUserServiceImpl implements UShopUserService {
|
||||
|
||||
shopUserDetailDTO.setFreeDineConfig(freeDineConfigService.getConfig(shopInfoService.getMainIdByShopId(shopId)));
|
||||
shopUserDetailDTO.setPayPwd(userInfo.getPayPwd());
|
||||
shopUserDetailDTO.setUsePayPwd(userInfo.getUsePayPwd());
|
||||
return shopUserDetailDTO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user