| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResManagePerson; |
| | | import cn.gistack.sm.sjztmd.service.IAttResManagePersonService; |
| | | import cn.gistack.sm.sjztmd.vo.PersonVO; |
| | | import cn.gistack.sm.sjztmd.vo.ChargePersonVO; |
| | | import cn.gistack.system.user.entity.User; |
| | | import cn.gistack.system.user.feign.IUserClient; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | 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.*; |
| | | |
| | |
| | | @GetMapping("/getManagePersonList") |
| | | public R getManagePersonList(String resId,String findType){ |
| | | |
| | | List<PersonVO> list = attResManagePersonService.getManagePersonList(resId,findType); |
| | | List<ChargePersonVO> list = attResManagePersonService.getManagePersonList(resId,findType); |
| | | return R.data(list); |
| | | |
| | | } |
| | | |
| | | @GetMapping("/getCityCountyPersonListByResGuid") |
| | | public R getCityCountyPersonListByResGuid(String resCd){ |
| | | 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,",")); |
| | | } |
| | | |
| | | } |