registerInfo

ww
chengqf 2 years ago
parent c99bb5d2b8
commit 0f7b98963f

@ -1,6 +1,5 @@
package com.glxp.api.controller.sup; package com.glxp.api.controller.sup;
import java.util.List;
import java.util.Map; import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -22,8 +21,6 @@ import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils; import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.controller.BaseController; import com.glxp.api.controller.BaseController;
import com.glxp.api.entity.sup.UserCertEntity;
import com.glxp.api.entity.sup.UserPersonEntity;
import com.glxp.api.entity.sup.UserRegisterEntity; import com.glxp.api.entity.sup.UserRegisterEntity;
import com.glxp.api.service.sup.UserCertService; import com.glxp.api.service.sup.UserCertService;
import com.glxp.api.service.sup.UserPersonService; import com.glxp.api.service.sup.UserPersonService;
@ -64,11 +61,6 @@ public class UserRegisterController extends BaseController {
UserRegisterEntity userRegisterEntity = userRegisterService.getOne(new QueryWrapper<UserRegisterEntity>().eq("mobile", mobile)); UserRegisterEntity userRegisterEntity = userRegisterService.getOne(new QueryWrapper<UserRegisterEntity>().eq("mobile", mobile));
if(userRegisterEntity==null) { if(userRegisterEntity==null) {
userRegisterEntity = new UserRegisterEntity(); userRegisterEntity = new UserRegisterEntity();
} else {
List<UserPersonEntity> userPersons = userPersonService.list(new QueryWrapper<UserPersonEntity>().eq("registerId", userRegisterEntity.getId()));
userRegisterEntity.setUserPersons(userPersons);
List<UserCertEntity> userCerts = userCertService.list(new QueryWrapper<UserCertEntity>().eq("registerId", userRegisterEntity.getId()));
userRegisterEntity.setUserCerts(userCerts);
} }
return ResultVOUtils.success(userRegisterEntity); return ResultVOUtils.success(userRegisterEntity);
} }

Loading…
Cancel
Save