ソースを参照

fix: 特俗字符

xdd 2 週間 前
コミット
6d2c0257fb

+ 2 - 2
fs-service/src/main/java/com/fs/medical/mapper/MedicalIndicatorMapper.java

@@ -80,10 +80,10 @@ public interface MedicalIndicatorMapper {
             "AND unit_id = #{unitId} " +
             "</if>" +
             "<if test='referenceMin != null'>" +
-            "AND reference_min >= #{referenceMin} " +
+            "AND reference_min <![CDATA[>=]]> #{referenceMin} " +
             "</if>" +
             "<if test='referenceMax != null'>" +
-            "AND reference_max <= #{referenceMax} " +
+            "AND reference_max <![CDATA[<=]]> #{referenceMax} " +
             "</if>" +
             "<if test='referenceText != null and referenceText != &quot;&quot;'>" +
             "AND reference_text LIKE CONCAT('%', #{referenceText}, '%') " +

+ 12 - 12
fs-service/src/main/java/com/fs/medical/mapper/PhysicalExamReportMapper.java

@@ -73,40 +73,40 @@ public interface PhysicalExamReportMapper {
             "AND user_id = #{userId} " +
             "</if>" +
             "<if test='examDateStart != null'>" +
-            "AND exam_date >= #{examDateStart} " +
+            "AND exam_date <![CDATA[>=]]> #{examDateStart} " +
             "</if>" +
             "<if test='examDateEnd != null'>" +
-            "AND exam_date <= #{examDateEnd} " +
+            "AND exam_date <![CDATA[<=]]> #{examDateEnd} " +
             "</if>" +
             "<if test='heightMin != null'>" +
-            "AND height >= #{heightMin} " +
+            "AND height <![CDATA[>=]]> #{heightMin} " +
             "</if>" +
             "<if test='heightMax != null'>" +
-            "AND height <= #{heightMax} " +
+            "AND height <![CDATA[<=]]> #{heightMax} " +
             "</if>" +
             "<if test='weightMin != null'>" +
-            "AND weight >= #{weightMin} " +
+            "AND weight <![CDATA[>=]]> #{weightMin} " +
             "</if>" +
             "<if test='weightMax != null'>" +
-            "AND weight <= #{weightMax} " +
+            "AND weight <![CDATA[<=]]> #{weightMax} " +
             "</if>" +
             "<if test='bmiMin != null'>" +
-            "AND bmi >= #{bmiMin} " +
+            "AND bmi <![CDATA[>=]]> #{bmiMin} " +
             "</if>" +
             "<if test='bmiMax != null'>" +
-            "AND bmi <= #{bmiMax} " +
+            "AND bmi <![CDATA[<=]]> #{bmiMax} " +
             "</if>" +
             "<if test='waistCircumferenceMin != null'>" +
-            "AND waist_circumference >= #{waistCircumferenceMin} " +
+            "AND waist_circumference <![CDATA[>=]]> #{waistCircumferenceMin} " +
             "</if>" +
             "<if test='waistCircumferenceMax != null'>" +
-            "AND waist_circumference <= #{waistCircumferenceMax} " +
+            "AND waist_circumference <![CDATA[<=]]> #{waistCircumferenceMax} " +
             "</if>" +
             "<if test='chestCircumferenceMin != null'>" +
-            "AND chest_circumference >= #{chestCircumferenceMin} " +
+            "AND chest_circumference <![CDATA[>=]]> #{chestCircumferenceMin} " +
             "</if>" +
             "<if test='chestCircumferenceMax != null'>" +
-            "AND chest_circumference <= #{chestCircumferenceMax} " +
+            "AND chest_circumference <![CDATA[<=]]> #{chestCircumferenceMax} " +
             "</if>" +
             "<if test='reportStatus != null'>" +
             "AND report_status = #{reportStatus} " +

+ 2 - 2
fs-service/src/main/java/com/fs/medical/mapper/ReportIndicatorResultMapper.java

@@ -73,10 +73,10 @@ public interface ReportIndicatorResultMapper {
             "AND indicator_id = #{indicatorId} " +
             "</if>" +
             "<if test='testValueMin != null'>" +
-            "AND test_value >= #{testValueMin} " +
+            "AND test_value <![CDATA[>=]]> #{testValueMin} " +
             "</if>" +
             "<if test='testValueMax != null'>" +
-            "AND test_value <= #{testValueMax} " +
+            "AND test_value <![CDATA[<=]]> #{testValueMax} " +
             "</if>" +
             "<if test='testResult != null and testResult != \"\"'>" +
             "AND test_result LIKE CONCAT('%', #{testResult}, '%') " +