|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.glxp.api.controller.sup;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -18,7 +19,6 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
@ -63,6 +63,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/admin/auth/register/get/{mobile}")
|
|
|
|
|
public BaseResponse getInfo(@PathVariable String mobile) {
|
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
|
UserRegisterEntity userRegisterEntity = userRegisterService.getOne(new QueryWrapper<UserRegisterEntity>().eq("mobile", mobile));
|
|
|
|
|
List<UserPersonEntity> userPersons = new ArrayList<>();
|
|
|
|
|
List<UserCertEntity> userCerts = new ArrayList<>();
|
|
|
|
@ -72,12 +73,10 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
userPersons = userPersonService.list(new QueryWrapper<UserPersonEntity>().eq("registerId", userRegisterEntity.getId()));
|
|
|
|
|
userCerts = userCertService.list(new QueryWrapper<UserCertEntity>().eq("businessId", userRegisterEntity.getId()));
|
|
|
|
|
}
|
|
|
|
|
BaseResponse res = ResultVOUtils.success(userRegisterEntity);
|
|
|
|
|
JSONObject object = (JSONObject) res.getData();
|
|
|
|
|
object.put("userPersons", userPersons);
|
|
|
|
|
object.put("userCerts", userCerts);
|
|
|
|
|
res.setData(object);
|
|
|
|
|
return res;
|
|
|
|
|
map.put("registerInfo", userRegisterEntity);
|
|
|
|
|
map.put("userPersons", userPersons);
|
|
|
|
|
map.put("userCerts", userCerts);
|
|
|
|
|
return ResultVOUtils.success(map);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|