Quellcode durchsuchen

feature:处方列表取药方式筛选

wuyongyi vor 2 Jahren
Ursprung
Commit
bf25e246e8
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/main/java/com/ywt/mg/services/PrescriptionServices.java

+ 2 - 2
src/main/java/com/ywt/mg/services/PrescriptionServices.java

@@ -111,7 +111,7 @@ public class PrescriptionServices {
         if (!Checker.isNull(deliveryMethod)) {
             int deliveryInt = Integer.parseInt(deliveryMethod);
             if (deliveryInt == DeliveryMethodEnum.SelfPickUp.getValue()) {
-                whereSql += " and ( (delivery_method = ? ) or (delivery_method is null and source = 1 or source = 4 or source = 5))";
+                whereSql += " and ( (delivery_method = ? ) or (delivery_method is null and source in (1,4,5) ))";
             } else {
                 whereSql += " and ( delivery_method = ?)";
             }
@@ -1226,7 +1226,7 @@ public class PrescriptionServices {
         if (!Checker.isNull(deliveryMethod)) {
             int deliveryInt = Integer.parseInt(deliveryMethod);
             if (deliveryInt == DeliveryMethodEnum.SelfPickUp.getValue()) {
-                whereSql += " and ( (delivery_method = ? ) or (delivery_method is null and source = 1 or source = 4 or source = 5))";
+                whereSql += " and ( (delivery_method = ? ) or (delivery_method is null and source in (1,4,5) ))";
             } else {
                 whereSql += " and ( delivery_method = ?)";
             }