| | |
| | | import com.ltkj.common.enums.DataSourceType; |
| | | import com.ltkj.framework.config.MatchUtils; |
| | | import com.ltkj.framework.datasource.DynamicDataSourceContextHolder; |
| | | import com.ltkj.hosp.domain.TjCustomerBlack; |
| | | import com.ltkj.hosp.domain.TjReservation; |
| | | import com.ltkj.hosp.mapper.TestMapper; |
| | | import com.ltkj.hosp.service.*; |
| | |
| | | private LtkjMiddleDetailService middleDetailService; |
| | | @Resource |
| | | private ITjOrderService tjOrderService; |
| | | @Resource |
| | | private TjCustomerBlackService blackService; |
| | | |
| | | @GetMapping("/newGetTjPat") |
| | | @ApiOperation(value = "查询his数据库返回新的数据") |
| | |
| | | List<TjCustomer> list = tjCustomerService.selectTjCustomerList(tjCustomer); |
| | | if(null !=list && list.size()>0){ |
| | | for (TjCustomer customer : list) { |
| | | customer.setCusName(MatchUtils.hideCusName(customer.getCusName())); |
| | | // customer.setCusName(MatchUtils.hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(MatchUtils.hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(MatchUtils.hideIdCardNum(customer.getCusIdcard())); |
| | | TjCustomerBlack tjCustomerBlack = blackService.isTjCustomerBlack(String.valueOf(customer.getCusId())); |
| | | if(null !=tjCustomerBlack){ |
| | | customer.setIsBlack("Y"); |
| | | }else { |
| | | customer.setIsBlack("N"); |
| | | } |
| | | } |
| | | } |
| | | return getDataTable(list); |