| | |
| | | wq1.eq(TjSampling::getTjNum,tjNum); |
| | | wq1.in(TjSampling::getProId,collect); |
| | | List<TjSampling> list = samplingService.list(wq1); |
| | | if(null !=list && list.size()>0) samplingService.removeByIds(list.stream().map(TjSampling::getId).collect(Collectors.toList())); |
| | | if (null != list && list.size() > 0) |
| | | samplingService.removeByIds(list.stream().map(TjSampling::getId).collect(Collectors.toList())); |
| | | LambdaQueryWrapper<TjSampling>wq2=new LambdaQueryWrapper<>(); |
| | | wq2.eq(TjSampling::getTjNum,tjNum); |
| | | wq2.eq(TjSampling::getProId,refundPro.getProId()); |
| | |
| | | } |
| | | return dictSfxms; |
| | | } |
| | | |
| | | private List<TjOrder> extracted(Integer type, List<TjOrder> list) { |
| | | List<TjOrder> list1=new ArrayList<>(); |
| | | for (TjOrder order : list) { |
| | |
| | | order.setTjCustomerAge(DateUtil.ageOfNow(tjCustomer.getCusBrithday())); |
| | | order.setGrMoBanId(reportService.getGrMoBanIds()); |
| | | order.setTjCustomerName(MatchUtils.hideCusName(tjCustomer.getCusName())); |
| | | if(null!=tjCustomer.getCusPhone())order.setTjCustomerPhone(MatchUtils.hidePhoneNum(tjCustomer.getCusPhone())); |
| | | if(null!=tjCustomer.getCusIdcard())order.setTjCusIdCard(MatchUtils.hideIdCardNum(tjCustomer.getCusIdcard())); |
| | | if (null != tjCustomer.getCusPhone()) |
| | | order.setTjCustomerPhone(MatchUtils.hidePhoneNum(tjCustomer.getCusPhone())); |
| | | if (null != tjCustomer.getCusIdcard()) |
| | | order.setTjCusIdCard(MatchUtils.hideIdCardNum(tjCustomer.getCusIdcard())); |
| | | } |
| | | String firmId = order.getFirmId(); |
| | | if (firmId != null && null != compService.selectDictCompByDrugManufacturerId(String.valueOf(order.getFirmId()))) { |
| | |
| | | } |
| | | return list1; |
| | | } |
| | | |
| | | private void getTjPackageListsByMan(List<TjPackage> tjPackageList) { |
| | | if (null != tjPackageList && tjPackageList.size() > 0) { |
| | | for (TjPackage aPackage : tjPackageList) { |
| | |
| | | redisCache.setCacheMapValue("getTjPackageListBySex","getTjPackageListByMan",tjPackageList); |
| | | } |
| | | } |
| | | |
| | | private void getTjPackageListByWoMan(List<TjPackage> tjPackageList) { |
| | | if (null != tjPackageList && tjPackageList.size() > 0) { |
| | | for (TjPackage aPackage : tjPackageList) { |
| | |
| | | redisCache.setCacheMapValue("getTjPackageListBySex","getTjPackageListByWoMan",tjPackageList); |
| | | } |
| | | } |
| | | |
| | | private void getTjPackageListByManAndWoMan(List<TjPackage> tjPackageList) { |
| | | if (null != tjPackageList && tjPackageList.size() > 0) { |
| | | for (TjPackage aPackage : tjPackageList) { |
| | |
| | | redisCache.setCacheMapValue("getTjPackageListBySex","getTjPackageListByManAndWoMan",tjPackageList); |
| | | } |
| | | } |
| | | |
| | | //已检 |
| | | public List<TjCustomer> getYjAjaxResult(List<Long> ksproList) { |
| | | List<TjCustomer> customerLis = new ArrayList<>(); |
| | |
| | | |
| | | TjCustomer customer = tjCustomerService.getById(order.getUserId()); |
| | | if (null != customer) { |
| | | //遍历项目 判断是否有重大阳性 标记 |
| | | for (TjOrderDetail tjOrderDetail11 : lists) { |
| | | customer.setIsPositive(tjOrderDetail11.getIsPositive()); |
| | | if (tjOrderDetail11.getIsPositive()==1){ |
| | | break; |
| | | } |
| | | } |
| | | |
| | | customer.setCusName(hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(hideIdCardNum(customer.getCusIdcard())); |
| | |
| | | } |
| | | return customerLis; |
| | | } |
| | | |
| | | //未检 |
| | | public List<TjCustomer> getWjAjaxResult(List<Long> ksproList) { |
| | | List<TjCustomer> customerLis = new ArrayList<>(); |
| | |
| | | if(null ==order){ |
| | | continue; |
| | | } |
| | | |
| | | TjCustomer customer = tjCustomerService.getById(order.getUserId()); |
| | | |
| | | if (null != customer) { |
| | | LambdaQueryWrapper<TjOrderDetail> qww = new LambdaQueryWrapper<>(); |
| | | qww.eq(TjOrderDetail::getOrderId, order.getOrderId()); |
| | | qww.isNotNull(TjOrderDetail::getFlowingWaterId); |
| | | List<TjOrderDetail> lists = tjOrderDetailService.list(qww); |
| | | if (null != lists) { |
| | | //遍历项目 判断是否有重大阳性 标记 |
| | | for (TjOrderDetail tjOrderDetail11 : lists) { |
| | | customer.setIsPositive(tjOrderDetail11.getIsPositive()); |
| | | if (tjOrderDetail11.getIsPositive()==1){ |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | customer.setCusName(hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(hideIdCardNum(customer.getCusIdcard())); |
| | |
| | | } |
| | | return customerLis; |
| | | } |
| | | |
| | | //已审 |
| | | private List<TjCustomer> getYsResult(String config) { |
| | | List<TjOrder> orderList = null; |
| | |
| | | if (customer == null) { |
| | | continue; |
| | | } |
| | | |
| | | customer.setCusName(hideCusName(customer.getCusName())); |
| | | customer.setCusPhone(hidePhoneNum(customer.getCusPhone())); |
| | | customer.setCusIdcard(hideIdCardNum(customer.getCusIdcard())); |
| | |
| | | } |
| | | return customerList; |
| | | } |
| | | |
| | | //未审 |
| | | private List<TjCustomer> getWsResult(String config) { |
| | | List<TjOrder> orderList = null; |
| | |
| | | } |
| | | return customerList; |
| | | } |
| | | |
| | | //总检点击体检信息详情 |
| | | private List<Map<String, Object>> getAjaxResult(String tjNumber) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | //已签收/未签收 |
| | | private List<Map<String, Object>> getYWqsResult(int a) { |
| | | LambdaQueryWrapper<TjSampling>wq=new LambdaQueryWrapper<>(); |
| | |
| | | } |
| | | return arrayList; |
| | | } |
| | | |
| | | /** |
| | | * 隐藏手机号 |
| | | * |
| | |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 隐藏身份证号码 |
| | | * |
| | |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 隐藏用户姓名 |
| | | * |
| | |
| | | } |
| | | return cusName; |
| | | } |
| | | |
| | | //临时表添加单项 |
| | | public void saveRedisTransitionByProId(String cusId, List<Long> proIds) { |
| | | for (Long proId : proIds) { |
| | |
| | | transitionService.saveRedisTransitionByProId(cusId,proId); |
| | | } |
| | | } |
| | | |
| | | //向缓存中添加 父项目的子项目详情 |
| | | private Map<String, Object> getOrderDetailByProParentId(String proParentId, String tjNumber) { |
| | | TjOrderRemark remark = orderRemarkService.getTjOrderRemarkByTjNumAndProParentId(tjNumber, proParentId); |