فهرست منبع

手机挂号接口改造

hurugang 2 سال پیش
والد
کامیت
d622d6bb38

+ 32 - 0
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -1862,6 +1862,38 @@ public class MedicalViewApiController {
                         }
                     }
                 }
+                if(Constants.AM.equals(ampm)){
+                    map.remove("p1");
+                    map.remove("p2");
+                    map.remove("p3");
+                    map.remove("p4");
+                    map.remove("p5");
+                    map.remove("p6");
+                }else  if(Constants.PM.equals(ampm)){
+                    map.remove("a1");
+                    map.remove("a2");
+                    map.remove("a3");
+                    map.remove("a4");
+                    map.remove("a5");
+                    map.remove("a6");
+                    map.remove("a7");
+                    map.remove("a8");
+                }else {
+                    map.remove("a1");
+                    map.remove("a2");
+                    map.remove("a3");
+                    map.remove("a4");
+                    map.remove("a5");
+                    map.remove("a6");
+                    map.remove("a7");
+                    map.remove("a8");
+                    map.remove("p1");
+                    map.remove("p2");
+                    map.remove("p3");
+                    map.remove("p4");
+                    map.remove("p5");
+                    map.remove("p6");
+                }
                 MzZdWorkTime mzZdWorkTime = mzZdWorkTimeService.queryMzZdWorkTimeByCode(ampm);
                 if (mzZdWorkTime == null) {
                     results.put("resultCode", -1);

+ 1 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzyRequestMapper.java

@@ -323,7 +323,7 @@ public interface MzyRequestMapper {
      * @return
      */
     @Select({"<script>",
-            "select id mzyRequestId,ampm,doctor_code doctorCode,charge_type chargeType,check_fee checkFee,left_num leftNum,total_num totalNum from mzy_request_new WITH(NOLOCK) where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and doctor_code  =#{doctorCode} and del_flag=0  and charge_type not in (16,24)",
+            "select id mzyRequestId,rtrim(ampm) ampm,doctor_code doctorCode,charge_type chargeType,check_fee checkFee,left_num leftNum,total_num totalNum,a1,a2,a3,a4,a5,a6,a7,a8,p1,p2,p3,p4,p5,p6 from mzy_request_new WITH(NOLOCK) where unit_code=#{unitCode} and request_day=#{requestDay,jdbcType=TIMESTAMP} and doctor_code  =#{doctorCode} and del_flag=0  and charge_type not in (16,24)",
             "<when test='ampms!=null'>",
             " and ampm  not in ",
             "<foreach item='item' index='index' collection='ampms' open='(' separator=',' close=')'>",