Commit da14f40e authored by 周健威's avatar 周健威

Merge remote-tracking branch 'origin/dev' into dev

parents d1d95f5a 33a4258d
...@@ -198,12 +198,13 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> { ...@@ -198,12 +198,13 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
} }
return null; return null;
} }
@CacheClear(pre = "user{1}") @CacheClear(pre = "user{1.id}")
public void disable(AppUserLogin appUserLogin) { public void disable(AppUserLogin appUserLogin) {
mapper.updateByPrimaryKeySelective(appUserLogin); mapper.updateByPrimaryKeySelective(appUserLogin);
} }
@CacheClear(pre = "user{1.id}")
public void available(AppUserLogin appUserLogin) { public void available(AppUserLogin appUserLogin) {
mapper.updateByPrimaryKeySelective(appUserLogin); mapper.updateByPrimaryKeySelective(appUserLogin);
} }
......
...@@ -31,6 +31,7 @@ import tk.mybatis.mapper.entity.Example; ...@@ -31,6 +31,7 @@ import tk.mybatis.mapper.entity.Example;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
import java.time.Instant;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -361,16 +362,6 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> { ...@@ -361,16 +362,6 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
} }
} }
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
}
public void insertBatchWallet(){
List<AppUserLogin> appUserLogins = appUserLoginBiz.selectListAll();
List<Integer> userIds = appUserLogins.stream().map(AppUserLogin::getId).collect(Collectors.toList());
} }
} }
...@@ -53,4 +53,15 @@ public class DataController { ...@@ -53,4 +53,15 @@ public class DataController {
} }
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@GetMapping("/clear_relation_withphone")
public ObjectRestResponse<Void> clearRelation(@RequestParam("phones") List<String> phones){
Map<String, Integer> phoneAndUserIdMapByPhones = appUserLoginBiz.findPhoneAndUserIdMapByPhones(phones);
if (Objects.nonNull(phoneAndUserIdMapByPhones)){
Collection<Integer> userIds = phoneAndUserIdMapByPhones.values();
appUserRelationBiz.deleteByMemberIds(userIds);
appUserSellingWaterBiz.deleteByMemberIds(userIds);
}
return ObjectRestResponse.succ();
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment