Kaynağa Gözat

【CHG】修改查询数据权限

zhaomn 3 yıl önce
ebeveyn
işleme
3fd5fba9ca

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml

@@ -484,6 +484,9 @@
       <if test="submitState!=null and submitState!=''">
         and t.submit_state = #{submitState}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -562,6 +565,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -609,6 +615,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -644,6 +653,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbDmcgyqMapper.xml

@@ -481,6 +481,9 @@
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -531,6 +534,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -579,6 +585,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -614,6 +623,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbFdfxjyqMapper.xml

@@ -679,6 +679,9 @@
       <if test="sdgjcztSddgDesc!=null and sdgjcztSddgDesc!=''">
         and t.sdgjczt_sddg_desc=#{sdgjcztSddgDesc}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -756,6 +759,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -797,6 +803,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -838,6 +847,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbGlkgMapper.xml

@@ -952,6 +952,9 @@
       <if test="delFlag!=null and delFlag!=''">
         and t.del_flag=#{delFlag}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -1025,6 +1028,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -1072,6 +1078,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -1107,6 +1116,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml

@@ -650,6 +650,9 @@
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -698,6 +701,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -745,6 +751,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -780,6 +789,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml

@@ -627,6 +627,9 @@
       <if test="delFlag!=null and delFlag!=''">
         and t.del_flag=#{delFlag}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -675,6 +678,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -722,6 +728,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -757,6 +766,9 @@
       <if test="operationDate!=null">
         and t.check_date=#{operationDate}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebFzswjfxcMapper.xml

@@ -353,6 +353,9 @@
       <if test="createTime!=null">
         and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -398,6 +401,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -442,6 +448,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -474,6 +483,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

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

@@ -357,6 +357,9 @@
       <if test="updateTime!=null">
         and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -402,6 +405,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -446,6 +452,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -478,6 +487,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

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

@@ -281,6 +281,9 @@
       <if test="delFlag!=null and delFlag!=''">
         and t.del_flag=#{delFlag}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -326,6 +329,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -370,6 +376,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -402,6 +411,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

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

@@ -247,6 +247,9 @@
       <if test="updateTime!=null">
         and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -292,6 +295,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -336,6 +342,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -368,6 +377,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

+ 12 - 0
railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml

@@ -287,6 +287,9 @@
       <if test="updateTime!=null">
         and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -335,6 +338,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -379,6 +385,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -411,6 +420,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

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

@@ -327,6 +327,9 @@
       <if test="updateTime!=null">
         and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -372,6 +375,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -416,6 +422,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -448,6 +457,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 

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

@@ -314,6 +314,9 @@
       <if test="delFlag!=null and delFlag!=''">
         and t.del_flag=#{delFlag}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">
       order by t.${orderBy}
@@ -359,6 +362,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -403,6 +409,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>
 
@@ -435,6 +444,9 @@
       <if test="createBy!=null and createBy!=''">
         and t.create_by=#{createBy}
       </if>
+      <if test="submitState==null or submitState==''">
+        and ((t.submit_state = '0' and t.create_by=#{createBy}) or t.submit_state != '0')
+      </if>
     </where>
   </select>