From 7a4475a4a35c06244875b0b1888bb83c5351ca47 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期日, 13 十月 2024 22:22:57 +0800
Subject: [PATCH] 修改了bug

---
 zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorServiceImpl.java |   53 ++++++++++++++++++++++++++---------------------------
 1 files changed, 26 insertions(+), 27 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorServiceImpl.java
index eeb1f45..b55db11 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfDoctorServiceImpl.java
@@ -158,7 +158,7 @@
 
 
         for (ZfDoctor zfDoctor : dataList) {
-            if (zfDoctor.getSuitable().length() != 0 || zfDoctor.getType().length() != 0 || zfDoctor.getEffect().length() != 0 ) {
+//            if (zfDoctor.getSuitable().length() != 0 || zfDoctor.getType().length() != 0 || zfDoctor.getEffect().length() != 0 ) {
                 if(zfDoctor.getSymptom().length() == 0 || zfDoctor.getSymptom() == null){
                     throw new RuntimeException("鐥囩姸涓虹┖锛屽鍏ユ暟鎹け璐�");
                 }
@@ -166,7 +166,7 @@
                     zfDoctorService.addData(zfDoctor);
                 }
             }
-        }
+//        }
         return AjaxResult.success("瀵煎叆鏁版嵁鎴愬姛");
 
     }
@@ -439,31 +439,30 @@
         return lqw;
     }
 
-    public LambdaQueryWrapper<ZfDoctor> buildCondition2(List<Long> ids) {
-        LambdaQueryWrapper<ZfDoctor> lqw = new LambdaQueryWrapper<>();
-
-            lqw.eq(ZfDoctor::getId, ids);
-
-        return lqw;
-    }
-    @Override
-    public AjaxResult selectListById(List<Long> ids, Integer pageNum, Integer pageSize) {
-        List<ZfDoctor> lqw2 = new ArrayList<>();
-
-        LambdaQueryWrapper<ZfDoctor> lqw = buildCondition2(ids);
-        List<ZfDoctor> bb = list(lqw);
-        System.out.println("15052222254"+bb);
-
-        Page<ZfDoctor> zfDoctorPage = new Page<>(pageNum, pageSize);
-        Page<ZfDoctor> pageResult = page(zfDoctorPage, lqw);
-        List<ZfDoctor> beanRecords = pageResult.getRecords();//寰楀埌鏌ヨ鍑烘潵鐨勬暟鎹�
-        System.out.println(beanRecords);
-
-        HashMap<String, Object> data = MapUtils.getResult(pageResult, beanRecords);
-
-
-        return AjaxResult.success(data);
+//    public LambdaQueryWrapper<ZfDoctor> buildCondition2(List<Long> ids) {
+//        LambdaQueryWrapper<ZfDoctor> lqw = new LambdaQueryWrapper<>();
+//            lqw.eq(ZfDoctor::getId, ids);
+//
+//        return lqw;
 //    }
+//    @Override
+//    public AjaxResult selectListById(List<Long> ids, Integer pageNum, Integer pageSize) {
+//        List<ZfDoctor> lqw2 = new ArrayList<>();
+//
+//        LambdaQueryWrapper<ZfDoctor> lqw = buildCondition2(ids);
+//        List<ZfDoctor> bb = list(lqw);
+//        System.out.println("15052222254"+bb);
+//
+//        Page<ZfDoctor> zfDoctorPage = new Page<>(pageNum, pageSize);
+//        Page<ZfDoctor> pageResult = page(zfDoctorPage, lqw);
+//        List<ZfDoctor> beanRecords = pageResult.getRecords();//寰楀埌鏌ヨ鍑烘潵鐨勬暟鎹�
+//        System.out.println(beanRecords);
+//
+//        HashMap<String, Object> data = MapUtils.getResult(pageResult, beanRecords);
+//
+//
+//        return AjaxResult.success(data);
+////    }
 
 //        private List<Long> buildCondition1(){
 //        List<ZfDoctorShare> authority1 = zfDoctorShareService.getAuthority();
@@ -481,4 +480,4 @@
 //    }
 
 
-}}
\ No newline at end of file
+}
\ No newline at end of file

--
Gitblit v1.9.1