ソースを参照

修改查询权限

ZhaoMn 4 年 前
コミット
cd202d4637

+ 1 - 1
railway-business/src/main/java/com/railway/business/catenary/util/JcebQueryUtil.java

@@ -24,9 +24,9 @@ public class JcebQueryUtil {
     }
     String post = user.getPost();
     PostTypeEnum postType = PostTypeEnum.ofValue(post);
+    jcebQuery.setDeptId(user.getDeptId());
     if(postType == PostTypeEnum.LEADER){
       jcebQuery.setSubmitState(JcebStatusEnum.REPORTED.getCode());
-      jcebQuery.setDeptId(user.getDeptId());
       jcebQuery.setCreateBy(null);
     }else {
       jcebQuery.setCreateBy(user.getUserName());

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

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

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

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

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

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

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

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

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

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

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

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