| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.http.entity.ContentType; |
| | | import org.apache.logging.log4j.util.Strings; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.*; |
| | |
| | | SysUser sysUser = sysUserService.selectByPhone(sysAppUserVO.getPhone()); |
| | | if(Objects.nonNull(sysUser)){ |
| | | sysAppUserVO.setIsClinicUser(1); |
| | | // 查询诊所信息 |
| | | TCrmClinic crmClinic = crmClinicService.getOne(Wrappers.lambdaQuery(TCrmClinic.class) |
| | | .eq(TCrmClinic::getUserId, sysUser.getUserId()) |
| | | .last("LIMIT 1")); |
| | | if(StringUtils.isBlank(sysAppUserVO.getClinicId())){ |
| | | sysAppUserVO.setClinicId(crmClinic.getId()); |
| | | } |
| | | }else { |
| | | sysAppUserVO.setIsClinicUser(0); |
| | | } |