Browse Source

资料管理根据项目负责人进行权限控制

lamphua 5 months ago
parent
commit
7050b49481

+ 12
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/file/domain/FilesAchievement.java View File

33
     @Excel(name = "项目名称")
33
     @Excel(name = "项目名称")
34
     private String projectName;
34
     private String projectName;
35
 
35
 
36
+    /** 项目负责人 */
37
+    private String projectLeader;
38
+
36
     /** 数据年份 */
39
     /** 数据年份 */
37
     @Excel(name = "数据年份")
40
     @Excel(name = "数据年份")
38
     private String dataYear;
41
     private String dataYear;
143
     {
146
     {
144
         return projectName;
147
         return projectName;
145
     }
148
     }
149
+    public void setProjectLeader(String projectLeader)
150
+    {
151
+        this.projectLeader = projectLeader;
152
+    }
153
+
154
+    public String getProjectLeader()
155
+    {
156
+        return projectLeader;
157
+    }
146
     public void setAchiName(String achiName) 
158
     public void setAchiName(String achiName) 
147
     {
159
     {
148
         this.achiName = achiName;
160
         this.achiName = achiName;

+ 3
- 1
oa-back/ruoyi-system/src/main/resources/mapper/file/FilesAchievementMapper.xml View File

9
         <result property="projectId"    column="project_id"    />
9
         <result property="projectId"    column="project_id"    />
10
         <result property="projectNumber"    column="project_number"    />
10
         <result property="projectNumber"    column="project_number"    />
11
         <result property="projectName"    column="project_name"    />
11
         <result property="projectName"    column="project_name"    />
12
+        <result property="projectLeader"    column="project_leader"    />
12
         <result property="achiName"    column="achi_name"    />
13
         <result property="achiName"    column="achi_name"    />
13
         <result property="dataYear"    column="data_year"    />
14
         <result property="dataYear"    column="data_year"    />
14
         <result property="scaleGrade"    column="scale_grade"    />
15
         <result property="scaleGrade"    column="scale_grade"    />
35
     </sql>
36
     </sql>
36
 
37
 
37
     <sql id="Base_Column_List" >
38
     <sql id="Base_Column_List" >
38
-        a.id, a.project_id, p.project_number, p.project_name, a.achi_name, a.data_year, a.scale_grade, a.result_type, a.file_type, a.kml_url, a.kml_lng, a.kml_lat, a.work_load, a.unit, a.data_source, a.data_type, a.storage_id, s.storage_address, a.remark, a.submit_date, a.production_time, a.resolution, a.geodetic_datum
39
+        a.id, a.project_id, p.project_number, p.project_name, p.project_leader, a.achi_name, a.data_year, a.scale_grade, a.result_type, a.file_type, a.kml_url, a.kml_lng, a.kml_lat, a.work_load, a.unit, a.data_source, a.data_type, a.storage_id, s.storage_address, a.remark, a.submit_date, a.production_time, a.resolution, a.geodetic_datum
39
     </sql>
40
     </sql>
40
 
41
 
41
     <sql id="selectFilesAchievementAllVo">
42
     <sql id="selectFilesAchievementAllVo">
50
             <if test="projectId != null  and projectId != ''"> and a.project_id = #{projectId}</if>
51
             <if test="projectId != null  and projectId != ''"> and a.project_id = #{projectId}</if>
51
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
52
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
52
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
53
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
54
+            <if test="projectLeader != null  and projectLeader != ''"> and p.project_leader like concat('%', #{projectLeader}, '%')</if>
53
             <if test="achiName != null  and achiName != ''"> and a.achi_name like concat('%', #{achiName}, '%')</if>
55
             <if test="achiName != null  and achiName != ''"> and a.achi_name like concat('%', #{achiName}, '%')</if>
54
             <if test="dataYear != null  and dataYear != ''"> and a.data_year like concat('%', #{dataYear}, '%')</if>
56
             <if test="dataYear != null  and dataYear != ''"> and a.data_year like concat('%', #{dataYear}, '%')</if>
55
             <if test="scaleGrade != null  and scaleGrade != ''"> and a.scale_grade like concat('%', #{scaleGrade}, '%')</if>
57
             <if test="scaleGrade != null  and scaleGrade != ''"> and a.scale_grade like concat('%', #{scaleGrade}, '%')</if>

+ 58
- 6
oa-back/sql/sq.sql
File diff suppressed because it is too large
View File


+ 2
- 2
oa-ui/src/views/oa/car/index.vue View File

85
       </el-table-column>
85
       </el-table-column>
86
     </el-table>
86
     </el-table>
87
 
87
 
88
-    <!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
89
-      @pagination="getList" /> -->
88
+    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
89
+      @pagination="getList" />
90
 
90
 
91
     <!-- 添加或修改cmc车辆信息对话框 -->
91
     <!-- 添加或修改cmc车辆信息对话框 -->
92
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
92
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>

Loading…
Cancel
Save