| | |
| | | private final YHAiCompanyMapper yhAiCompanyMapper; |
| | | |
| | | @Override |
| | | @Transactional |
| | | public FebsResponse xcxLogin(ApiXcxLoginDto apiXcxLoginDto) throws IOException { |
| | | log.info("登录请求参数:{}", JSONObject.toJSONString(apiXcxLoginDto)); |
| | | FebsResponse febsResponse = new FebsResponse(); |
| | |
| | | Wrappers.lambdaQuery(YHAiCompany.class) |
| | | .eq(YHAiCompany::getCode, apiXcxLoginDto.getCompanyId()) |
| | | ); |
| | | if (ObjectUtil.isNotEmpty(aiCompany)){ |
| | | entity.setCompanyId(aiCompany.getId()); |
| | | if (ObjectUtil.isEmpty(aiCompany)){ |
| | | throw new FebsException("公司编码错误"); |
| | | } |
| | | entity.setCompanyId(aiCompany.getId()); |
| | | } |
| | | entity.setCreateTime(systemTime); |
| | | entity.setUpdateTime(systemTime); |