| | |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import com.ruoyi.system.service.ISysMenuService; |
| | | import com.smartor.mapper.SysUserDeptMapper; |
| | | import com.smartor.service.IServiceSLTDHealthcareRecordService; |
| | | import com.smartor.service.impl.ServiceSLTDHealthcareRecordServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | @Autowired |
| | | private IServiceSLTDHealthcareRecordService iServiceSLTDHealthcareRecordService; |
| | | |
| | | |
| | | @Value("${pri_key}") |
| | |
| | | String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOrgid()); |
| | | ajax.put(Constants.TOKEN, token); |
| | | return ajax; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 登录方法 |
| | | * |
| | | * @param loginBody 登录信息 |
| | | * @return 结果 |
| | | */ |
| | | @PostMapping("/test") |
| | | public void test(@RequestBody Map<String, Object> map) { |
| | | iServiceSLTDHealthcareRecordService.aa(map); |
| | | } |
| | | |
| | | /** |
| | |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | userName = rsaPublicKeyExample.decryptedData(userName, pri_key); |
| | | } |
| | | |
| | | if (StringUtils.isEmpty(deptId)) deptId = "null"; |
| | | String token2 = loginService.loginByUserName(userName + "&" + orgid + "&" + deptId); |
| | | if (StringUtils.isEmpty(token2)) { |
| | | throw new BaseException("登陆失败"); |