Bladeren bron

导出绩效表,增加绩效备注字段

lamphua 6 maanden geleden
bovenliggende
commit
9224e3f8a8

+ 54
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcPerformance.java Bestand weergeven

@@ -2,6 +2,8 @@ package com.ruoyi.oa.domain;
2 2
 
3 3
 import java.util.Date;
4 4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
+import com.ruoyi.common.core.domain.entity.SysDept;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
5 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
6 8
 import org.apache.commons.lang3.builder.ToStringStyle;
7 9
 import com.ruoyi.common.annotation.Excel;
@@ -22,10 +24,12 @@ public class CmcPerformance extends BaseEntity
22 24
 
23 25
     /** 上报人 */
24 26
     @Excel(name = "上报人")
27
+    private String reportUserName;
25 28
     private Long reporter;
26 29
 
27 30
     /** 上报部门 */
28 31
     @Excel(name = "上报部门")
32
+    private String deptName;
29 33
     private Long reportDept;
30 34
 
31 35
     /** 附件 */
@@ -43,6 +47,7 @@ public class CmcPerformance extends BaseEntity
43 47
 
44 48
     /** 分管审核人 */
45 49
     @Excel(name = "分管审核人")
50
+    private String managerUserName;
46 51
     private Long managerUserId;
47 52
 
48 53
     /** 分管审核时间 */
@@ -56,6 +61,7 @@ public class CmcPerformance extends BaseEntity
56 61
 
57 62
     /** 总经理审批人 */
58 63
     @Excel(name = "总经理审批人")
64
+    private String zjlUserName;
59 65
     private Long zjlUserId;
60 66
 
61 67
     /** 总经理审批时间 */
@@ -72,6 +78,14 @@ public class CmcPerformance extends BaseEntity
72 78
     @Excel(name = "制单日期", width = 30, dateFormat = "yyyy-MM-dd")
73 79
     private Date zhTime;
74 80
 
81
+    private SysUser reportUser;
82
+
83
+    private SysUser managerUser;
84
+
85
+    private SysUser zjlUser;
86
+
87
+    private SysDept dept;
88
+
75 89
     public void setPerformanceId(String performanceId)
76 90
     {
77 91
         this.performanceId = performanceId;
@@ -90,6 +104,16 @@ public class CmcPerformance extends BaseEntity
90 104
     {
91 105
         return reporter;
92 106
     }
107
+    public void setReportUser(SysUser reportUser)
108
+    {
109
+        this.reportUser = reportUser;
110
+        this.reportUserName = reportUser == null ? "" : reportUser.getNickName();
111
+    }
112
+
113
+    public SysUser getReportUser()
114
+    {
115
+        return reportUser;
116
+    }
93 117
     public void setReportDept(Long reportDept)
94 118
     {
95 119
         this.reportDept = reportDept;
@@ -99,6 +123,16 @@ public class CmcPerformance extends BaseEntity
99 123
     {
100 124
         return reportDept;
101 125
     }
126
+    public void setDept(SysDept dept)
127
+    {
128
+        this.dept = dept;
129
+        this.deptName = dept == null ? "" : dept.getDeptName();
130
+    }
131
+
132
+    public SysDept getDept()
133
+    {
134
+        return dept;
135
+    }
102 136
     public void setDocument(String document)
103 137
     {
104 138
         this.document = document;
@@ -126,6 +160,16 @@ public class CmcPerformance extends BaseEntity
126 160
     {
127 161
         return managerUserId;
128 162
     }
163
+    public void setManagerUser(SysUser managerUser)
164
+    {
165
+        this.managerUser = managerUser;
166
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
167
+    }
168
+
169
+    public SysUser getManagerUser()
170
+    {
171
+        return managerUser;
172
+    }
129 173
     public void setManagerComment(String managerComment)
130 174
     {
131 175
         this.managerComment = managerComment;
@@ -153,6 +197,16 @@ public class CmcPerformance extends BaseEntity
153 197
     {
154 198
         return zjlUserId;
155 199
     }
200
+    public void setZjlUser(SysUser zjlUser)
201
+    {
202
+        this.zjlUser = zjlUser;
203
+        this.zjlUserName = zjlUser == null ? "" : zjlUser.getNickName();
204
+    }
205
+
206
+    public SysUser getZjlUser()
207
+    {
208
+        return zjlUser;
209
+    }
156 210
     public void setZjlComment(String zjlComment)
157 211
     {
158 212
         this.zjlComment = zjlComment;

+ 22
- 8
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java Bestand weergeven

@@ -2,6 +2,7 @@ package com.ruoyi.oa.domain;
2 2
 
3 3
 import java.util.Date;
4 4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
+import com.ruoyi.common.core.domain.entity.SysDept;
5 6
 import com.ruoyi.common.core.domain.entity.SysUser;
6 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 8
 import org.apache.commons.lang3.builder.ToStringStyle;
@@ -27,7 +28,7 @@ public class CmcSettle extends BaseEntity
27 28
     private String projectNumber;
28 29
     @Excel(name = "项目名称")
29 30
     private String projectName;
30
-    @Excel(name = "承担部门")
31
+//    @Excel(name = "承担部门")
31 32
     private String undertakingDept;
32 33
 
33 34
     /** 其他项目名称 */
@@ -44,11 +45,12 @@ public class CmcSettle extends BaseEntity
44 45
 
45 46
     /** 上报人 */
46 47
     @Excel(name = "项目负责人")
47
-    private String reporterUserName;
48
+    private String reportUserName;
48 49
     private Long reporter;
49 50
 
50 51
     /** 上报部门 */
51 52
     @Excel(name = "上报部门")
53
+    private String deptName;
52 54
     private Long reportDept;
53 55
 
54 56
     /** 上报日期 */
@@ -152,7 +154,7 @@ public class CmcSettle extends BaseEntity
152 154
 //    @Excel(name = "最终结算表")
153 155
     private String finalDocument;
154 156
 
155
-    private SysUser reporterUser;
157
+    private SysUser reportUser;
156 158
 
157 159
     private SysUser zhUser;
158 160
 
@@ -168,6 +170,8 @@ public class CmcSettle extends BaseEntity
168 170
 
169 171
     private CmcProject project;
170 172
 
173
+    private SysDept dept;
174
+
171 175
     public void setSettleId(String settleId) 
172 176
     {
173 177
         this.settleId = settleId;
@@ -242,6 +246,16 @@ public class CmcSettle extends BaseEntity
242 246
     {
243 247
         return reporter;
244 248
     }
249
+    public void setDept(SysDept dept)
250
+    {
251
+        this.dept = dept;
252
+        this.deptName = dept == null ? "" : dept.getDeptName();
253
+    }
254
+
255
+    public SysDept getDept()
256
+    {
257
+        return dept;
258
+    }
245 259
     public void setReportTime(Date reportTime) 
246 260
     {
247 261
         this.reportTime = reportTime;
@@ -449,15 +463,15 @@ public class CmcSettle extends BaseEntity
449 463
     {
450 464
         return finalDocument;
451 465
     }
452
-    public void setReporterUser(SysUser reporterUser)
466
+    public void setReportUser(SysUser reportUser)
453 467
     {
454
-        this.reporterUser = reporterUser;
455
-        this.reporterUserName = reporterUser == null ? "" : reporterUser.getNickName();
468
+        this.reportUser = reportUser;
469
+        this.reportUserName = reportUser == null ? "" : reportUser.getNickName();
456 470
     }
457 471
 
458
-    public SysUser getReporterUser()
472
+    public SysUser getReportUser()
459 473
     {
460
-        return reporterUser;
474
+        return reportUser;
461 475
     }
462 476
     public void setZhUser(SysUser zhUser)
463 477
     {

+ 44
- 14
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPerformanceMapper.xml Bestand weergeven

@@ -19,33 +19,63 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
19 19
         <result property="zjlTime"    column="zjl_time"    />
20 20
         <result property="zhUserId"    column="zh_user_id"    />
21 21
         <result property="zhTime"    column="zh_time"    />
22
+        <association property="reportUser"    javaType="SysUser"         resultMap="ReportUserResult" />
23
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
24
+        <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
25
+        <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
26
+    </resultMap>
27
+
28
+    <resultMap type="SysUser" id="ReportUserResult">
29
+        <result property="userId"    column="user_id"    />
30
+        <result property="nickName"    column="report_nick_name"    />
31
+    </resultMap>
32
+
33
+    <resultMap type="SysUser" id="ManagerUserResult">
34
+        <result property="userId"    column="user_id"    />
35
+        <result property="nickName"    column="manager_nick_name"    />
36
+    </resultMap>
37
+
38
+    <resultMap type="SysUser" id="ZjlUserResult">
39
+        <result property="userId"    column="user_id"    />
40
+        <result property="nickName"    column="zjl_nick_name"    />
41
+    </resultMap>
42
+
43
+    <resultMap type="SysDept" id="SysDeptResult">
44
+        <result property="deptId"    column="dept_id"    />
45
+        <result property="deptName"    column="dept_name"    />
22 46
     </resultMap>
23 47
 
24 48
     <sql id="selectCmcPerformanceVo">
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
49
+        select p.performance_id, p.reporter, u.nick_name as report_nick_name, p.document, p.remark, p.report_time, p.report_dept, d.dept_name,
50
+               p.manager_user_id, u1.nick_name as manager_nick_name,p.manager_comment, p.manager_time, p.zjl_user_id, u2.nick_name as zjl_nick_name,
51
+               p.zjl_comment, p.zjl_time, p.zh_user_id, p.zh_time from cmc_performance as p
52
+        left join sys_user as u on u.user_id = o.reporter
53
+        left join sys_user as u1 on u1.user_id = o.manager_user_id
54
+        left join sys_user as u2 on u2.user_id = o.zjl_user_id
55
+        left join sys_dept as d on d.dept_id = o.apply_dept
26 56
     </sql>
27 57
 
28 58
     <select id="selectCmcPerformanceList" parameterType="CmcPerformance" resultMap="CmcPerformanceResult">
29 59
         <include refid="selectCmcPerformanceVo"/>
30 60
         <where>  
31
-            <if test="reporter != null "> and reporter = #{reporter}</if>
32
-            <if test="document != null  and document != ''"> and document = #{document}</if>
33
-            <if test="reportTime != null "> and report_time = #{reportTime}</if>
34
-            <if test="reportDept != null "> and report_dept = #{reportDept}</if>
35
-            <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
36
-            <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
37
-            <if test="managerTime != null "> and manager_time = #{managerTime}</if>
38
-            <if test="zjlUserId != null "> and zjl_user_id = #{zjlUserId}</if>
39
-            <if test="zjlComment != null  and zjlComment != ''"> and zjl_comment = #{zjlComment}</if>
40
-            <if test="zjlTime != null "> and zjl_time = #{zjlTime}</if>
41
-            <if test="zhUserId != null "> and zh_user_id = #{zhUserId}</if>
42
-            <if test="zhTime != null "> and zh_time = #{zhTime}</if>
61
+            <if test="reporter != null "> and p.reporter = #{reporter}</if>
62
+            <if test="document != null  and document != ''"> and p.document = #{document}</if>
63
+            <if test="reportTime != null "> and p.report_time = #{reportTime}</if>
64
+            <if test="reportDept != null "> and p.report_dept = #{reportDept}</if>
65
+            <if test="managerUserId != null "> and p.manager_user_id = #{managerUserId}</if>
66
+            <if test="managerComment != null  and managerComment != ''"> and p.manager_comment = #{managerComment}</if>
67
+            <if test="managerTime != null "> and p.manager_time = #{managerTime}</if>
68
+            <if test="zjlUserId != null "> and p.zjl_user_id = #{zjlUserId}</if>
69
+            <if test="zjlComment != null  and zjlComment != ''"> and p.zjl_comment = #{zjlComment}</if>
70
+            <if test="zjlTime != null "> and p.zjl_time = #{zjlTime}</if>
71
+            <if test="zhUserId != null "> and p.zh_user_id = #{zhUserId}</if>
72
+            <if test="zhTime != null "> and p.zh_time = #{zhTime}</if>
43 73
         </where>
44 74
     </select>
45 75
     
46 76
     <select id="selectCmcPerformanceByPerformanceId" parameterType="String" resultMap="CmcPerformanceResult">
47 77
         <include refid="selectCmcPerformanceVo"/>
48
-        where performance_id = #{performanceId}
78
+        where p.performance_id = #{performanceId}
49 79
     </select>
50 80
         
51 81
     <insert id="insertCmcPerformance" parameterType="CmcPerformance">

+ 12
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml Bestand weergeven

@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35 35
         <result property="settleDocument"    column="settle_document"    />
36 36
         <result property="modifyDocument"    column="modify_document"    />
37 37
         <result property="finalDocument"    column="final_document"    />
38
-        <association property="reporterUser"    javaType="SysUser"         resultMap="ReporterUserResult" />
38
+        <association property="reportUser"    javaType="SysUser"         resultMap="ReportUserResult" />
39 39
         <association property="zhUser"    javaType="SysUser"         resultMap="ZhUserResult" />
40 40
         <association property="jsUser"    javaType="SysUser"         resultMap="JsUserResult" />
41 41
         <association property="jyUser"    javaType="SysUser"         resultMap="JyUserResult" />
@@ -43,11 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
43 43
         <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
44 44
         <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
45 45
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
46
+        <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
46 47
     </resultMap>
47 48
 
48
-    <resultMap type="SysUser" id="ReporterUserResult">
49
+    <resultMap type="SysUser" id="ReportUserResult">
49 50
         <result property="userId"    column="user_id"    />
50
-        <result property="nickName"    column="reporter_nick_name"    />
51
+        <result property="nickName"    column="report_nick_name"    />
51 52
     </resultMap>
52 53
 
53 54
     <resultMap type="SysUser" id="ZhUserResult">
@@ -87,11 +88,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
87 88
         <result property="undertakingDept"    column="undertaking_dept"    />
88 89
     </resultMap>
89 90
 
91
+    <resultMap type="SysDept" id="SysDeptResult">
92
+        <result property="deptId"    column="dept_id"    />
93
+        <result property="deptName"    column="dept_name"    />
94
+    </resultMap>
95
+
90 96
     <sql id="selectCmcSettleVo">
91
-        select s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as reporter_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
97
+        select s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as report_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
92 98
                s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u3.nick_name as jy_nick_name, s.jy_time, s.jy_comment, 
93 99
                s.manager_user_id, u4.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u5.nick_name as gm_nick_name, s.gm_time, s.gm_comment,
94
-               s.dsz_user_id, u6.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept from cmc_settle as s
100
+               s.dsz_user_id, u6.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept, d.dept_name from cmc_settle as s
95 101
         left join sys_user as u on u.user_id = s.reporter
96 102
         left join sys_user as u1 on u1.user_id = s.zh_user_id
97 103
         left join sys_user as u2 on u2.user_id = s.js_user_id
@@ -100,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
100 106
         left join sys_user as u5 on u5.user_id = s.gm_user_id
101 107
         left join sys_user as u6 on u6.user_id = s.dsz_user_id
102 108
         left join cmc_project as p on p.project_id = s.project_id
109
+        left join sys_dept as d on d.dept_id = s.report_dept
103 110
     </sql>
104 111
 
105 112
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcWageMapper.xml Bestand weergeven

@@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
28 28
         <result property="paidWage"    column="paid_wage"    />
29 29
         <result property="payDay"    column="pay_day"    />
30 30
         <result property="payMonth"    column="pay_month"    />
31
+        <result property="remark"    column="remark"    />
31 32
     </resultMap>
32 33
 
33 34
     <sql id="selectCmcWageVo">
34
-        select wage_id, user_id, base_salary, year_salary, post_salary, performance_salary, certificates_subsidy, festival_subsidy, post_stable_subsidy, high_temperature_subsidy, attendance_deduct, payable_wage, house_fund, endowment_insurance, unemployment_insurance, medical_insurance, property_fee, deduct_total, social_security_unit, individual_income_tax, paid_wage, pay_day, pay_month from cmc_wage
35
+        select wage_id, user_id, base_salary, year_salary, post_salary, performance_salary, certificates_subsidy, festival_subsidy, post_stable_subsidy, high_temperature_subsidy, attendance_deduct, payable_wage, house_fund, endowment_insurance, unemployment_insurance, medical_insurance, property_fee, deduct_total, social_security_unit, individual_income_tax, paid_wage, pay_day, pay_month, remark from cmc_wage
35 36
     </sql>
36 37
 
37 38
     <select id="selectCmcWageList" parameterType="CmcWage" resultMap="CmcWageResult">
@@ -93,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
93 94
             <if test="paidWage != null">paid_wage,</if>
94 95
             <if test="payDay != null">pay_day,</if>
95 96
             <if test="payMonth != null">pay_month,</if>
97
+            <if test="remark != null">remark,</if>
96 98
          </trim>
97 99
         <trim prefix="values (" suffix=")" suffixOverrides=",">
98 100
             <if test="wageId != null">#{wageId},</if>
@@ -118,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
118 120
             <if test="paidWage != null">#{paidWage},</if>
119 121
             <if test="payDay != null">#{payDay},</if>
120 122
             <if test="payMonth != null">#{payMonth},</if>
123
+            <if test="remark != null">#{remark},</if>
121 124
          </trim>
122 125
     </insert>
123 126
 
@@ -146,6 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
146 149
             <if test="paidWage != null">paid_wage = #{paidWage},</if>
147 150
             <if test="payDay != null">pay_day = #{payDay},</if>
148 151
             <if test="payMonth != null">pay_month = #{payMonth},</if>
152
+            <if test="remark != null">remark = #{remark},</if>
149 153
         </trim>
150 154
         where wage_id = #{wageId}
151 155
     </update>

+ 2
- 2
oa-ui/src/views/flowable/form/procure/procureForm.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-09-19 13:45:43
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-09-24 11:32:36
5
+ * @LastEditTime: 2024-09-24 11:44:34
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -202,7 +202,7 @@ export default {
202 202
       const planList = this.$refs.planRef.itemList;
203 203
       const isAdd = this.$refs.planRef.formTotal;
204 204
       const procureApplyId = this.taskForm.formId;
205
-      if (isAdd)
205
+      if (isAdd != 0)
206 206
         await delProcurePlan(procureApplyId)
207 207
       for (let plan of planList) {
208 208
         plan.procureApplyId = procureApplyId

Laden…
Annuleren
Opslaan