| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return R.data(attResManagePersonService.getCityCountyPersonListByResGuid(resCd)); |
| | | } |
| | | |
| | | @GetMapping("/getResGuidList") |
| | | public R queryListByPhone() { |
| | | AttResManagePerson attResManagePerson = new AttResManagePerson(); |
| | | attResManagePerson.setUserPhone(AuthUtil.getUserAccount()); |
| | | List<AttResManagePerson> list = attResManagePersonService.list(Condition.getQueryWrapper(attResManagePerson)); |
| | | List<String> reslist = new ArrayList<>(); |
| | | list.forEach(item->{ |
| | | reslist.add(item.getResGuid()); |
| | | }); |
| | | return R.data(StringUtil.join(reslist,",")); |
| | | } |
| | | |
| | | } |