Browse Source

增加绩效上报部门字段

lamphua 10 months ago
parent
commit
71f7e83c6b

+ 14
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcPerformance.java View File

@@ -24,6 +24,10 @@ public class CmcPerformance extends BaseEntity
24 24
     @Excel(name = "上报人")
25 25
     private Long reporter;
26 26
 
27
+    /** 上报部门 */
28
+    @Excel(name = "上报部门")
29
+    private Long reportDept;
30
+
27 31
     /** 附件 */
28 32
     @Excel(name = "附件")
29 33
     private String document;
@@ -86,6 +90,15 @@ public class CmcPerformance extends BaseEntity
86 90
     {
87 91
         return reporter;
88 92
     }
93
+    public void setReportDept(Long reportDept)
94
+    {
95
+        this.reportDept = reportDept;
96
+    }
97
+
98
+    public Long getReportDept()
99
+    {
100
+        return reportDept;
101
+    }
89 102
     public void setDocument(String document)
90 103
     {
91 104
         this.document = document;
@@ -185,6 +198,7 @@ public class CmcPerformance extends BaseEntity
185 198
                 .append("document", getDocument())
186 199
                 .append("remark", getRemark())
187 200
                 .append("reportTime", getReportTime())
201
+                .append("reportDept", getReportDept())
188 202
                 .append("managerUserId", getManagerUserId())
189 203
                 .append("managerComment", getManagerComment())
190 204
                 .append("managerTime", getManagerTime())

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPerformanceMapper.xml View File

@@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
         <result property="document"    column="document"    />
11 11
         <result property="remark"    column="remark"    />
12 12
         <result property="reportTime"    column="report_time"    />
13
+        <result property="reportDept"    column="report_dept"    />
13 14
         <result property="managerUserId"    column="manager_user_id"    />
14 15
         <result property="managerComment"    column="manager_comment"    />
15 16
         <result property="managerTime"    column="manager_time"    />
@@ -21,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
21 22
     </resultMap>
22 23
 
23 24
     <sql id="selectCmcPerformanceVo">
24
-        select performance_id, reporter, document, remark, report_time, manager_user_id, manager_comment, manager_time, zjl_user_id, zjl_comment, zjl_time, zh_user_id, zh_time from cmc_performance
25
+        select performance_id, reporter, document, remark, report_time, report_dept, manager_user_id, manager_comment, manager_time, zjl_user_id, zjl_comment, zjl_time, zh_user_id, zh_time from cmc_performance
25 26
     </sql>
26 27
 
27 28
     <select id="selectCmcPerformanceList" parameterType="CmcPerformance" resultMap="CmcPerformanceResult">
@@ -30,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 31
             <if test="reporter != null "> and reporter = #{reporter}</if>
31 32
             <if test="document != null  and document != ''"> and document = #{document}</if>
32 33
             <if test="reportTime != null "> and report_time = #{reportTime}</if>
34
+            <if test="reportDept != null "> and report_dept = #{reportDept}</if>
33 35
             <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
34 36
             <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
35 37
             <if test="managerTime != null "> and manager_time = #{managerTime}</if>
@@ -54,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
54 56
             <if test="document != null">document,</if>
55 57
             <if test="remark != null">remark,</if>
56 58
             <if test="reportTime != null">report_time,</if>
59
+            <if test="reportDept != null">report_dept,</if>
57 60
             <if test="managerUserId != null">manager_user_id,</if>
58 61
             <if test="managerComment != null">manager_comment,</if>
59 62
             <if test="managerTime != null">manager_time,</if>
@@ -69,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
69 72
             <if test="document != null">#{document},</if>
70 73
             <if test="remark != null">#{remark},</if>
71 74
             <if test="reportTime != null">#{reportTime},</if>
75
+            <if test="reportDept != null">#{reportDept},</if>
72 76
             <if test="managerUserId != null">#{managerUserId},</if>
73 77
             <if test="managerComment != null">#{managerComment},</if>
74 78
             <if test="managerTime != null">#{managerTime},</if>
@@ -87,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
87 91
             <if test="document != null">document = #{document},</if>
88 92
             <if test="remark != null">remark = #{remark},</if>
89 93
             <if test="reportTime != null">report_time = #{reportTime},</if>
94
+            <if test="reportDept != null">report_dept = #{reportDept},</if>
90 95
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
91 96
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
92 97
             <if test="managerTime != null">manager_time = #{managerTime},</if>

Loading…
Cancel
Save