| | |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.framework.config.UserHoder; |
| | | import com.ltkj.hosp.domain.LtkjJianchajianyanTree; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.domain.TjProject; |
| | | import com.ltkj.hosp.hisDto.*; |
| | |
| | | private LtkjHysqdService hysqdService; |
| | | @Autowired |
| | | private LtkjHybgdService hybgdService; |
| | | @Autowired |
| | | private ITjCustomerService tjCustomerService; |
| | | |
| | | /** |
| | | * 获取pacs检查数据 |
| | |
| | | wrapper.eq(TjOrder::getTjNumber,tjNum); |
| | | TjOrder order = tjOrderService.getOne(wrapper); |
| | | mzh = order.getCardId(); |
| | | LambdaQueryWrapper<TjCustomer> wrapper1 = new LambdaQueryWrapper<>(); |
| | | wrapper1.eq(TjCustomer::getCusId,order.getUserId()); |
| | | TjCustomer tjCustomer = tjCustomerService.getOne(wrapper1); |
| | | name = tjCustomer.getCusName(); |
| | | } |
| | | List<Map<String, Object>> jcList = testMapper.getPacsJcList(name, mzh, start, end); |
| | | if (jcList.isEmpty()){ |
| | |
| | | wrapper.eq(TjOrder::getTjNumber,tjNum); |
| | | TjOrder order = tjOrderService.getOne(wrapper); |
| | | mzh = order.getCardId(); |
| | | LambdaQueryWrapper<TjCustomer> wrapper1 = new LambdaQueryWrapper<>(); |
| | | wrapper1.eq(TjCustomer::getCusId,order.getUserId()); |
| | | TjCustomer tjCustomer = tjCustomerService.getOne(wrapper1); |
| | | name = tjCustomer.getCusName(); |
| | | } |
| | | List<Map<String, Object>> jcList = testMapper.getPacsJcList(name, mzh, start, end); |
| | | return AjaxResult.success(jcList); |
| | |
| | | wrapper.eq(TjOrder::getTjNumber,tjNum); |
| | | TjOrder order = tjOrderService.getOne(wrapper); |
| | | mzh = order.getCardId(); |
| | | LambdaQueryWrapper<TjCustomer> wrapper1 = new LambdaQueryWrapper<>(); |
| | | wrapper1.eq(TjCustomer::getCusId,order.getUserId()); |
| | | TjCustomer tjCustomer = tjCustomerService.getOne(wrapper1); |
| | | name = tjCustomer.getCusName(); |
| | | } |
| | | List<Map<String, Object>> jcList = testMapper.getLisJyList(name, mzh, start, end); |
| | | return AjaxResult.success(jcList); |
| | |
| | | public AjaxResult getTjList(@RequestParam("code")String code){ |
| | | // log.info("tjList接口参数->{}",code); |
| | | LambdaQueryWrapper<TjOrder> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(TjOrder::getCardId,code); |
| | | queryWrapper.eq(TjOrder::getCardId, code) |
| | | .or() |
| | | .eq(TjOrder::getTjNumber, code); |
| | | TjOrder order = tjOrderService.getOne(queryWrapper); |
| | | if (order == null){ |
| | | return AjaxResult.error("门诊号:"+code+"在体检系统中不存在"); |