| | |
| | | import com.ltkj.framework.config.UserHoder; |
| | | import com.ltkj.hosp.domain.DictHosp; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.mapper.TjCustomerMapper; |
| | | import com.ltkj.hosp.service.IDictHospService; |
| | | import com.ltkj.hosp.service.ITjCustomerService; |
| | | import com.ltkj.hosp.service.ITjOrderService; |
| | | import com.ltkj.system.domain.SysPost; |
| | | import com.ltkj.system.domain.SysRoleMenu; |
| | | import com.ltkj.system.domain.SysUserPost; |
| | |
| | | private boolean secretKeyLogin; |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | @Autowired |
| | | private ITjOrderService tjOrderService; |
| | | @Autowired |
| | | private TjCustomerMapper tjCustomerMapper; |
| | | |
| | | /** |
| | | * 登录方法 |
| | |
| | | token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getType(), loginBody.getCode(), loginBody.getUuid(),hospId); |
| | | } else { |
| | | token = loginService.Cuslogin(loginBody.getUsername(), loginBody.getPassword(), loginBody.getType(), loginBody.getCode(), loginBody.getUuid()); |
| | | LambdaQueryWrapper<TjCustomer> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjCustomer::getCusPhone, loginBody.getUsername()); |
| | | TjCustomer tjCustomer = customerService.getOne(wq); |
| | | List<Map<String ,Object>> customer = tjCustomerMapper.getCusInfoListByCardAndName(tjCustomer.getCusIdcard(),tjCustomer.getCusName()); |
| | | ajax.put("orderList",customer); |
| | | } |
| | | if (null == token) { |
| | | return success("该账号正在使用中"); |