|
@@ -534,13 +534,14 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
StoreUser storeUser = storeUserMapper.selectOne(storeUserLambdaQueryWrapper);
|
|
StoreUser storeUser = storeUserMapper.selectOne(storeUserLambdaQueryWrapper);
|
|
Map<String, String> storeMap = new HashMap<>();
|
|
Map<String, String> storeMap = new HashMap<>();
|
|
if (storeUser != null) {
|
|
if (storeUser != null) {
|
|
|
|
+ storeMap.put("status",storeUser.getStatus().toString());
|
|
if (null != storeUser.getStoreId()) {
|
|
if (null != storeUser.getStoreId()) {
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeUser.getStoreId());
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeUser.getStoreId());
|
|
if (1 != storeInfo.getLogoutFlag()) {
|
|
if (1 != storeInfo.getLogoutFlag()) {
|
|
//vaule为0代表有商铺未注销
|
|
//vaule为0代表有商铺未注销
|
|
storeMap.put("accountStore", "0");
|
|
storeMap.put("accountStore", "0");
|
|
} else {
|
|
} else {
|
|
- //vaule为1代表可注销
|
|
|
|
|
|
+ //vaule为1代表绑定店铺注销
|
|
storeMap.put("accountStore", "1");
|
|
storeMap.put("accountStore", "1");
|
|
}
|
|
}
|
|
} else if (storeUser.getMoney() != null && storeUser.getMoney() > 0) {
|
|
} else if (storeUser.getMoney() != null && storeUser.getMoney() > 0) {
|
|
@@ -614,6 +615,8 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
storeUser.setStatus(-1);
|
|
storeUser.setStatus(-1);
|
|
// 添加注销申请时间
|
|
// 添加注销申请时间
|
|
storeUser.setLogoutTime(new Date());
|
|
storeUser.setLogoutTime(new Date());
|
|
|
|
+ // 更新logout_flag状态为1
|
|
|
|
+ storeUser.setLogoutFlag(1);
|
|
int num = storeUserMapper.updateById(storeUser);
|
|
int num = storeUserMapper.updateById(storeUser);
|
|
if (num > 0) {
|
|
if (num > 0) {
|
|
// 发送通知
|
|
// 发送通知
|
|
@@ -645,6 +648,8 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
storeUser.setLogoutReason(null);
|
|
storeUser.setLogoutReason(null);
|
|
// 清空注销申请时间
|
|
// 清空注销申请时间
|
|
storeUser.setLogoutTime(null);
|
|
storeUser.setLogoutTime(null);
|
|
|
|
+ // 更新logout_flag状态为0
|
|
|
|
+ storeUser.setLogoutFlag(0);
|
|
int num = storeUserMapper.updateById(storeUser);
|
|
int num = storeUserMapper.updateById(storeUser);
|
|
if (num > 0) {
|
|
if (num > 0) {
|
|
// 发送通知
|
|
// 发送通知
|