Commit 857e3d93 authored by libin's avatar libin

钱包

parent 2a88acfe
......@@ -53,4 +53,15 @@ public class DataController {
}
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