| | |
| | | import com.ltkj.common.core.redis.RedisCache; |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.domain.TjXdPicture; |
| | | import com.ltkj.hosp.service.ITjCustomerService; |
| | | import com.ltkj.hosp.service.ITjProjectService; |
| | | import com.ltkj.hosp.service.TjAsyncService; |
| | | import com.ltkj.hosp.service.*; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.enums.BusinessType; |
| | | import com.ltkj.hosp.domain.TjPureToneTest; |
| | | import com.ltkj.hosp.service.ITjPureToneTestService; |
| | | import com.ltkj.common.utils.poi.ExcelUtil; |
| | | import com.ltkj.common.core.page.TableDataInfo; |
| | | |
| | |
| | | private ITjCustomerService customerService; |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | @Resource |
| | | private ITjOrderService orderService; |
| | | |
| | | |
| | | /** |
| | |
| | | for (Map.Entry<String, List<TjPureToneTest>> entry : stringListMap.entrySet()) { |
| | | Map<String,Object>map=new HashMap<>(); |
| | | TjCustomer customer = customerService.getById(entry.getKey()); |
| | | if(customer==null) continue; |
| | | customer.setCusName(MatchUtils.hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(MatchUtils.hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(MatchUtils.hideIdCardNum(customer.getCusIdcard())); |
| | | customer.setTjNumber(entry.getValue().get(0).getTjNum()); |
| | | TjOrder order = orderService.getOrderByTjNum(entry.getValue().get(0).getTjNum()); |
| | | if(null !=order){ |
| | | customer.setTjTime(order.getCreateTime()); |
| | | customer.setTjType(order.getTjCategory()); |
| | | } |
| | | map.put("list",entry.getValue()); |
| | | map.put("customer",customer); |
| | | map.put("picturePath",configService.selectConfigByKey("TjPureToneTest")); |