瀏覽代碼

【CHG】检测表统计与明细记录数量不一致问题

ZhaoMn 4 年之前
父節點
當前提交
350d3ec0a7

+ 3 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml

@@ -417,6 +417,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>
 

+ 3 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebJddzMapper.xml

@@ -335,6 +335,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>
 

+ 3 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebJyzqsjlMapper.xml

@@ -304,6 +304,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>
 

+ 28 - 25
railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml

@@ -205,13 +205,13 @@
     v.dept_id, v.dept_name,
     v.line_id, v.line_name,
     v.station_name, v.station_id,
-    a.*
+    t.*
     FROM bus_jceb_lbjghjl a
-    LEFT JOIN v_station v ON a.dept_station_id = v.dept_station_id
+    LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
     WHERE
-    a.del_flag = '0'
+    t.del_flag = '0'
     AND s.del_flag = '0'
-    AND a.id = #{id}
+    AND t.id = #{id}
   </select>
 
   <select id="getList" resultMap="BaseResultMap">
@@ -219,68 +219,68 @@
     v.dept_id, v.dept_name,
     v.line_id, v.line_name,
     v.station_name, v.station_id,
-    a.*
+    t.*
     FROM bus_jceb_lbjghjl a
-    LEFT JOIN v_station v ON a.dept_station_id = v.dept_station_id
+    LEFT JOIN v_station v ON t.dept_station_id = v.dept_station_id
     <where>
-      a.del_flag = '0'
+      t.del_flag = '0'
       <if test="stationId!=null and stationId!=''">
         and v.station_id=#{stationId}
       </if>
       <if test="dd!=null and dd!=''">
-        and a.dd=#{dd}
+        and t.dd=#{dd}
       </if>
       <if test="ghqMc!=null and ghqMc!=''">
-        and a.ghq_mc=#{ghqMc}
+        and t.ghq_mc=#{ghqMc}
       </if>
       <if test="ghqGgxh!=null and ghqGgxh!=''">
-        and a.ghq_ggxh=#{ghqGgxh}
+        and t.ghq_ggxh=#{ghqGgxh}
       </if>
       <if test="ghqSccj!=null and ghqSccj!=''">
-        and a.ghq_sccj=#{ghqSccj}
+        and t.ghq_sccj=#{ghqSccj}
       </if>
       <if test="ghhMc!=null and ghhMc!=''">
-        and a.ghh_mc=#{ghhMc}
+        and t.ghh_mc=#{ghhMc}
       </if>
       <if test="ghhGgxh!=null and ghhGgxh!=''">
-        and a.ghh_ggxh=#{ghhGgxh}
+        and t.ghh_ggxh=#{ghhGgxh}
       </if>
       <if test="ghhSccj!=null and ghhSccj!=''">
-        and a.ghh_sccj=#{ghhSccj}
+        and t.ghh_sccj=#{ghhSccj}
       </if>
       <if test="ghyy!=null and ghyy!=''">
-        and a.ghyy=#{ghyy}
+        and t.ghyy=#{ghyy}
       </if>
       <if test="operationDate!=null and operationDate!=''">
-        and a.operation_date=#{operationDate}
+        and t.operation_date=#{operationDate}
       </if>
       <if test="operator!=null and operator!=''">
-        and a.operator=#{operator}
+        and t.operator=#{operator}
       </if>
       <if test="remark!=null and remark!=''">
-        and a.remark=#{remark}
+        and t.remark=#{remark}
       </if>
       <if test="submitState!=null and submitState!=''">
-        and a.submit_state <![CDATA[ >= ]]> #{submitState}
+        and t.submit_state <![CDATA[ >= ]]> #{submitState}
       </if>
       <if test="delFlag!=null and delFlag!=''">
-        and a.del_flag=#{delFlag}
+        and t.del_flag=#{delFlag}
       </if>
       <if test="createBy!=null and createBy!=''">
-        and a.create_by=#{createBy}
+        and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null and createTime!=''">
-        and a.create_time=#{createTime}
+        and t.create_time=#{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
-        and a.update_by=#{updateBy}
+        and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null and updateTime!=''">
-        and a.update_time=#{updateTime}
+        and t.update_time=#{updateTime}
       </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
-      order by a.${orderBy}
+      order by t.${orderBy}
     </if>
     <if test="isAsc!=null and isAsc!=''">
       <if test="isAsc == '1'.toString()">
@@ -341,6 +341,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>
 

+ 3 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebQmjcjlMapper.xml

@@ -381,6 +381,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>
 

+ 3 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebXsjcjlMapper.xml

@@ -365,6 +365,9 @@
       <if test="operator!=null and operator!=''">
         and t.operator=#{operator}
       </if>
+      <if test="createBy!=null and createBy!=''">
+        and t.create_by=#{createBy}
+      </if>
     </where>
   </select>