Explorar el Código

【CHG】修改查询字段

zhaomn hace 2 años
padre
commit
771f197cf9

+ 1 - 1
railway-business/src/main/resources/mapper/bi/ShowBpdjxjhMapper.xml

@@ -235,7 +235,7 @@
     from show_bpdjxjh
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
-      and completion_state != '1' or completion_state = ''
+      and (completion_state != '1' or completion_state = '')
   </select>
 
   <select id="listWwcmx" resultType="java.lang.String">

+ 1 - 1
railway-business/src/main/resources/mapper/bi/ShowGsdMapper.xml

@@ -344,7 +344,7 @@
     from show_gsd
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
-      and completion_date is null or completion_date = ''
+      and (completion_date is null or completion_date = '')
   </select>
 
   <select id="listWwcmx" resultType="java.lang.String">

+ 6 - 6
railway-business/src/main/resources/mapper/bi/ShowGsyMapper.xml

@@ -275,7 +275,7 @@
 
   <select id="countByywc" resultType="java.lang.Integer">
     select count(*)
-    from show_gsd
+    from show_gsy
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
       and MONTH(test_plan1) = #{month} and completion_date1 is not null and completion_date1 != '';
@@ -283,7 +283,7 @@
 
   <select id="countBywwc" resultType="java.lang.Integer">
     select count(*)
-    from show_gsd
+    from show_gsy
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
       and MONTH(test_plan1) = #{month} and (completion_date1 is null or completion_date1 = '')
@@ -291,7 +291,7 @@
 
   <select id="countXyjhwc" resultType="java.lang.Integer">
     select count(*)
-    from show_gsd
+    from show_gsy
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
       and MONTH(test_plan1) = #{month}
@@ -299,15 +299,15 @@
 
   <select id="countNdsys" resultType="java.lang.Integer">
     select count(*)
-    from show_gsd
+    from show_gsy
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
-      and completion_date1 is null or completion_date1 = ''
+      and (completion_date1 is null or completion_date1 = '')
   </select>
 
   <select id="listWwcmx" resultType="java.lang.String">
     select substation_name
-    from show_gsd
+    from show_gsy
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
       and MONTH(test_plan1) = #{month} and (completion_date1 is null or completion_date1 = '')

+ 1 - 1
railway-business/src/main/resources/mapper/bi/ShowYdtsMapper.xml

@@ -327,7 +327,7 @@
     from show_gsd
     where del_flag='0'
       and file_id = (select max(id) from show_file where data_type = 'scrw' and imp_result = '1')
-      and completion_date is null or completion_date = ''
+      and (completion_date is null or completion_date = '')
   </select>
 
   <select id="listWwcmx" resultType="java.lang.String">