Ver código fonte

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

lamphua 3 meses atrás
pai
commit
7050b49481

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

@@ -33,6 +33,9 @@ public class FilesAchievement extends BaseEntity
33 33
     @Excel(name = "项目名称")
34 34
     private String projectName;
35 35
 
36
+    /** 项目负责人 */
37
+    private String projectLeader;
38
+
36 39
     /** 数据年份 */
37 40
     @Excel(name = "数据年份")
38 41
     private String dataYear;
@@ -143,6 +146,15 @@ public class FilesAchievement extends BaseEntity
143 146
     {
144 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 158
     public void setAchiName(String achiName) 
147 159
     {
148 160
         this.achiName = achiName;

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

@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
9 9
         <result property="projectId"    column="project_id"    />
10 10
         <result property="projectNumber"    column="project_number"    />
11 11
         <result property="projectName"    column="project_name"    />
12
+        <result property="projectLeader"    column="project_leader"    />
12 13
         <result property="achiName"    column="achi_name"    />
13 14
         <result property="dataYear"    column="data_year"    />
14 15
         <result property="scaleGrade"    column="scale_grade"    />
@@ -35,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35 36
     </sql>
36 37
 
37 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 40
     </sql>
40 41
 
41 42
     <sql id="selectFilesAchievementAllVo">
@@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
50 51
             <if test="projectId != null  and projectId != ''"> and a.project_id = #{projectId}</if>
51 52
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
52 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 55
             <if test="achiName != null  and achiName != ''"> and a.achi_name like concat('%', #{achiName}, '%')</if>
54 56
             <if test="dataYear != null  and dataYear != ''"> and a.data_year like concat('%', #{dataYear}, '%')</if>
55 57
             <if test="scaleGrade != null  and scaleGrade != ''"> and a.scale_grade like concat('%', #{scaleGrade}, '%')</if>

+ 58
- 6
oa-back/sql/sq.sql
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 2
- 2
oa-ui/src/views/oa/car/index.vue Ver arquivo

@@ -85,8 +85,8 @@
85 85
       </el-table-column>
86 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 91
     <!-- 添加或修改cmc车辆信息对话框 -->
92 92
     <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>

Carregando…
Cancelar
Salvar