Преглед на файлове

优化脚本patrol_type

wuxw преди 6 години
родител
ревизия
e20ba997e2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml

+ 2 - 2
java110-db/src/main/resources/mapper/community/InspectionTaskDetailServiceDaoImplMapper.xml

@@ -93,7 +93,7 @@
         and t.state = td1.status_cd
         and t.state = td1.status_cd
         and td1.table_name = 'inspection_task_detail'
         and td1.table_name = 'inspection_task_detail'
         and td1.table_columns = 'state'
         and td1.table_columns = 'state'
-        and t.state = td2.status_cd
+        and t.patrol_type = td2.status_cd
         and td2.table_name = 'inspection_task_detail'
         and td2.table_name = 'inspection_task_detail'
         and td2.table_columns = 'patrol_type'
         and td2.table_columns = 'patrol_type'
         <if test="inspectionId !=null and inspectionId != ''">
         <if test="inspectionId !=null and inspectionId != ''">
@@ -176,7 +176,7 @@
         and t.state = td1.status_cd
         and t.state = td1.status_cd
         and td1.table_name = 'inspection_task_detail'
         and td1.table_name = 'inspection_task_detail'
         and td1.table_columns = 'state'
         and td1.table_columns = 'state'
-        and t.state = td2.status_cd
+        and t.patrol_type = td2.status_cd
         and td2.table_name = 'inspection_task_detail'
         and td2.table_name = 'inspection_task_detail'
         and td2.table_columns = 'patrol_type'
         and td2.table_columns = 'patrol_type'
         <if test="inspectionId !=null and inspectionId != ''">
         <if test="inspectionId !=null and inspectionId != ''">