Browse Source

借款、预算加董事长相关字段;修改子流程发起设置

lamphua 11 months ago
parent
commit
d03e8bcdd8

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallBudgetActivityExecutionListener.java View File

13
     public void notify(DelegateExecution delegateExecution) {
13
     public void notify(DelegateExecution delegateExecution) {
14
         Map<String, Object> variables = delegateExecution.getVariables();
14
         Map<String, Object> variables = delegateExecution.getVariables();
15
         Authentication.setAuthenticatedUserId(variables.get("budgetInitiator").toString());
15
         Authentication.setAuthenticatedUserId(variables.get("budgetInitiator").toString());
16
-        delegateExecution.setVariable("approval", variables.get("budgetInitiator").toString());
16
+        delegateExecution.setVariableLocal("approval", variables.get("budgetInitiator"));
17
     }
17
     }
18
 }
18
 }

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallPlanActivityExecutionListener.java View File

15
     public void notify(DelegateExecution delegateExecution) {
15
     public void notify(DelegateExecution delegateExecution) {
16
         Map<String, Object> variables = delegateExecution.getVariables();
16
         Map<String, Object> variables = delegateExecution.getVariables();
17
         Authentication.setAuthenticatedUserId(variables.get("planInitiator").toString());
17
         Authentication.setAuthenticatedUserId(variables.get("planInitiator").toString());
18
-        delegateExecution.setVariable("approval", variables.get("planInitiator").toString());
18
+        delegateExecution.setVariableLocal("approval", variables.get("planInitiator"));
19
     }
19
     }
20
 }
20
 }

+ 3
- 3
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallSafeActivityExecutionListener.java View File

13
     @Override
13
     @Override
14
     public void notify(DelegateExecution delegateExecution) {
14
     public void notify(DelegateExecution delegateExecution) {
15
         SysUserPostMapper userPostMapper = SpringUtils.getBean(SysUserPostMapper.class);
15
         SysUserPostMapper userPostMapper = SpringUtils.getBean(SysUserPostMapper.class);
16
-        String userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId().toString();
17
-        Authentication.setAuthenticatedUserId(userId);
18
-        delegateExecution.setVariable("approval", userId);
16
+        Long userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId();
17
+        Authentication.setAuthenticatedUserId(userId.toString());
18
+        delegateExecution.setVariableLocal("approval", userId);
19
     }
19
     }
20
 }
20
 }

+ 1
- 1
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallTechActivityExecutionListener.java View File

13
     public void notify(DelegateExecution delegateExecution) {
13
     public void notify(DelegateExecution delegateExecution) {
14
         Map<String, Object> variables = delegateExecution.getVariables();
14
         Map<String, Object> variables = delegateExecution.getVariables();
15
         Authentication.setAuthenticatedUserId(variables.get("techInitiator").toString());
15
         Authentication.setAuthenticatedUserId(variables.get("techInitiator").toString());
16
-        delegateExecution.setVariable("approval", variables.get("techInitiator").toString());
16
+        delegateExecution.setVariableLocal("approval", variables.get("techInitiator"));
17
     }
17
     }
18
 }
18
 }

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

68
     private String zjlUserName;
68
     private String zjlUserName;
69
     private SysUser zjlUser;
69
     private SysUser zjlUser;
70
 
70
 
71
+    @Excel(name = "董事长")
72
+    private String dszUserName;
73
+    private SysUser dszUser;
74
+
71
     @Excel(name = "党工团审批人")
75
     @Excel(name = "党工团审批人")
72
     private String unionUserName;
76
     private String unionUserName;
73
     private SysUser unionUser;
77
     private SysUser unionUser;
113
     /** 总经理审批人 */
117
     /** 总经理审批人 */
114
     private Long zjlUserId;
118
     private Long zjlUserId;
115
 
119
 
120
+    /** 董事长审批人 */
121
+    private Long dszUserId;
122
+
116
     /** 总经理审批意见 */
123
     /** 总经理审批意见 */
117
     @Excel(name = "总经理审批意见")
124
     @Excel(name = "总经理审批意见")
118
     private String zjlComment;
125
     private String zjlComment;
119
 
126
 
127
+    /** 董事长审批意见 */
128
+    @Excel(name = "董事长审批意见")
129
+    private String dszComment;
130
+
120
     /** 工会审批人 */
131
     /** 工会审批人 */
121
     private Long unionUserId;
132
     private Long unionUserId;
122
 
133
 
159
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
170
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
160
     private Date zjlTime;
171
     private Date zjlTime;
161
 
172
 
173
+    /** 董事长审批时间 */
174
+    @JsonFormat(pattern = "yyyy-MM-dd")
175
+    @Excel(name = "董事长审批时间", width = 30, dateFormat = "yyyy-MM-dd")
176
+    private Date dszTime;
177
+
162
     /** 工会审批时间 */
178
     /** 工会审批时间 */
163
     @JsonFormat(pattern = "yyyy-MM-dd")
179
     @JsonFormat(pattern = "yyyy-MM-dd")
164
     @Excel(name = "工会审批时间", width = 30, dateFormat = "yyyy-MM-dd")
180
     @Excel(name = "工会审批时间", width = 30, dateFormat = "yyyy-MM-dd")
293
     {
309
     {
294
         return zjlUser;
310
         return zjlUser;
295
     }
311
     }
312
+    public void setDszUser(SysUser dszUser)
313
+    {
314
+        this.dszUser = dszUser;
315
+        this.dszUserName = dszUser == null ? "" : dszUser.getNickName();
316
+    }
317
+
318
+    public SysUser getDszUser()
319
+    {
320
+        return dszUser;
321
+    }
296
     public void setUnionUser(SysUser unionUser)
322
     public void setUnionUser(SysUser unionUser)
297
     {
323
     {
298
         this.unionUser = unionUser;
324
         this.unionUser = unionUser;
403
     {
429
     {
404
         return zjlUserId;
430
         return zjlUserId;
405
     }
431
     }
432
+    public void setDszUserId(Long dszUserId)
433
+    {
434
+        this.dszUserId = dszUserId;
435
+    }
436
+
437
+    public Long getDszUserId()
438
+    {
439
+        return dszUserId;
440
+    }
406
     public void setZjlComment(String zjlComment) 
441
     public void setZjlComment(String zjlComment) 
407
     {
442
     {
408
         this.zjlComment = zjlComment;
443
         this.zjlComment = zjlComment;
412
     {
447
     {
413
         return zjlComment;
448
         return zjlComment;
414
     }
449
     }
450
+    public void setDszComment(String dszComment)
451
+    {
452
+        this.dszComment = dszComment;
453
+    }
454
+
455
+    public String getDszComment()
456
+    {
457
+        return dszComment;
458
+    }
415
     public void setUnionUserId(Long unionUserId)
459
     public void setUnionUserId(Long unionUserId)
416
     {
460
     {
417
         this.unionUserId = unionUserId;
461
         this.unionUserId = unionUserId;
484
     {
528
     {
485
         return zjlTime;
529
         return zjlTime;
486
     }
530
     }
531
+    public void setDszTime(Date dszTime)
532
+    {
533
+        this.dszTime = dszTime;
534
+    }
535
+
536
+    public Date getDszTime()
537
+    {
538
+        return dszTime;
539
+    }
487
     public void setUnionTime(Date unionTime)
540
     public void setUnionTime(Date unionTime)
488
     {
541
     {
489
         this.unionTime = unionTime;
542
         this.unionTime = unionTime;

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

101
     /** 编制人 */
101
     /** 编制人 */
102
     private Long compiler;
102
     private Long compiler;
103
 
103
 
104
+    /** 批准人 */
105
+    private Long approver;
106
+
104
     @Excel(name = "编制人")
107
     @Excel(name = "编制人")
105
     private String compilerUserName;
108
     private String compilerUserName;
106
     private SysUser compilerUser;
109
     private SysUser compilerUser;
109
     private String auditorUserName;
112
     private String auditorUserName;
110
     private SysUser auditorUser;
113
     private SysUser auditorUser;
111
 
114
 
115
+    @Excel(name = "批准人")
116
+    private String approverUserName;
117
+    private SysUser approverUser;
118
+
112
     /** 审核人 */
119
     /** 审核人 */
113
     private Long auditor;
120
     private Long auditor;
114
 
121
 
332
     {
339
     {
333
         return auditor;
340
         return auditor;
334
     }
341
     }
342
+    public void setApprover(Long approver)
343
+    {
344
+        this.approver = approver;
345
+    }
346
+
347
+    public Long getApprover()
348
+    {
349
+        return approver;
350
+    }
351
+    public void setApproverUser(SysUser approverUser)
352
+    {
353
+        this.approverUser = approverUser;
354
+        this.approverUserName = approverUser == null ? "" : approverUser.getNickName();
355
+    }
356
+
357
+    public SysUser getApproverUser()
358
+    {
359
+        return approverUser;
360
+    }
335
 
361
 
336
     @Override
362
     @Override
337
     public String toString() {
363
     public String toString() {

+ 22
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml View File

40
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
40
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
41
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
41
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
42
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
42
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
43
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
43
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
44
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
44
         <association property="cwUser"    javaType="SysUser"         resultMap="CwUserResult" />
45
         <association property="cwUser"    javaType="SysUser"         resultMap="CwUserResult" />
45
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
46
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
71
         <result property="nickName"    column="zjl_nick_name"    />
72
         <result property="nickName"    column="zjl_nick_name"    />
72
     </resultMap>
73
     </resultMap>
73
 
74
 
75
+    <resultMap type="SysUser" id="DszUserResult">
76
+        <result property="userId"    column="user_id"    />
77
+        <result property="nickName"    column="dsz_nick_name"    />
78
+    </resultMap>
79
+
74
     <resultMap type="SysUser" id="UnionUserResult">
80
     <resultMap type="SysUser" id="UnionUserResult">
75
         <result property="userId"    column="user_id"    />
81
         <result property="userId"    column="user_id"    />
76
         <result property="nickName"    column="union_nick_name"    />
82
         <result property="nickName"    column="union_nick_name"    />
95
     <sql id="selectCmcBorrowVo">
101
     <sql id="selectCmcBorrowVo">
96
         select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
102
         select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
97
                b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.xm_user_id, u2.nick_name as xm_nick_name, b.xm_comment,
103
                b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.xm_user_id, u2.nick_name as xm_nick_name, b.xm_comment,
98
-               b.manager_comment, b.manager_user_id, u3.nick_name as manager_nick_name, b.zjl_user_id, u4.nick_name as zjl_nick_name, b.zjl_comment,  b.union_user_id, u5.nick_name as zjl_nick_name,
99
-               b.union_comment, b.cw_user_id, u6.nick_name as cw_nick_name, b.cw_comment, b.dept_time, b.xm_time, b.manager_time, b.zjl_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
104
+               b.manager_comment, b.manager_user_id, u3.nick_name as manager_nick_name, b.zjl_user_id, u4.nick_name as zjl_nick_name, b.zjl_comment, b.dsz_comment,  b.union_user_id, 
105
+               u5.nick_name as zjl_nick_name, b.union_comment, b.cw_user_id, u6.nick_name as cw_nick_name, b.dsz_user_id, u7.nick_name as dsz_nick_name, b.cw_comment, b.dept_time, b.xm_time,
106
+               b.manager_time, b.zjl_time, b.dsz_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
100
         left join sys_user as u on u.user_id = b.applier
107
         left join sys_user as u on u.user_id = b.applier
101
         left join sys_user as u1 on u1.user_id = b.dept_user_id
108
         left join sys_user as u1 on u1.user_id = b.dept_user_id
102
         left join sys_user as u2 on u2.user_id = b.xm_user_id
109
         left join sys_user as u2 on u2.user_id = b.xm_user_id
104
         left join sys_user as u4 on u4.user_id = b.zjl_user_id
111
         left join sys_user as u4 on u4.user_id = b.zjl_user_id
105
         left join sys_user as u5 on u5.user_id = b.union_user_id
112
         left join sys_user as u5 on u5.user_id = b.union_user_id
106
         left join sys_user as u6 on u6.user_id = b.cw_user_id
113
         left join sys_user as u6 on u6.user_id = b.cw_user_id
114
+        left join sys_user as u7 on u7.user_id = b.dsz_user_id
107
         left join sys_dept as d on d.dept_id = b.apply_dept
115
         left join sys_dept as d on d.dept_id = b.apply_dept
108
         left join cmc_project as p on b.project_id = p.project_id
116
         left join cmc_project as p on b.project_id = p.project_id
109
     </sql>
117
     </sql>
128
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
136
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
129
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
137
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
130
             <if test="zjlComment != null  and zjlComment != ''"> and b.zjl_comment = #{zjlComment}</if>
138
             <if test="zjlComment != null  and zjlComment != ''"> and b.zjl_comment = #{zjlComment}</if>
139
+            <if test="dszUserId != null "> and b.dsz_user_id = #{dszUserId}</if>
140
+            <if test="dszComment != null  and dszComment != ''"> and b.dsz_comment = #{dszComment}</if>
131
             <if test="unionUserId != null "> and b.union_user_id = #{unionUserId}</if>
141
             <if test="unionUserId != null "> and b.union_user_id = #{unionUserId}</if>
132
             <if test="unionComment != null  and unionComment != ''"> and b.union_comment = #{unionComment}</if>
142
             <if test="unionComment != null  and unionComment != ''"> and b.union_comment = #{unionComment}</if>
133
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
143
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
136
             <if test="xmTime != null "> and b.xm_time = #{xmTime}</if>
146
             <if test="xmTime != null "> and b.xm_time = #{xmTime}</if>
137
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
147
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
138
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
148
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
149
+            <if test="dszTime != null "> and b.dsz_time = #{dszTime}</if>
139
             <if test="lendTime != null "> and b.lend_time = #{lendTime}</if>
150
             <if test="lendTime != null "> and b.lend_time = #{lendTime}</if>
140
             <if test="unionTime != null "> and b.union_time = #{unionTime}</if>
151
             <if test="unionTime != null "> and b.union_time = #{unionTime}</if>
141
         </where>
152
         </where>
168
             <if test="managerUserId != null">manager_user_id,</if>
179
             <if test="managerUserId != null">manager_user_id,</if>
169
             <if test="zjlUserId != null">zjl_user_id,</if>
180
             <if test="zjlUserId != null">zjl_user_id,</if>
170
             <if test="zjlComment != null">zjl_comment,</if>
181
             <if test="zjlComment != null">zjl_comment,</if>
182
+            <if test="dszUserId != null">dsz_user_id,</if>
183
+            <if test="dszComment != null">dsz_comment,</if>
171
             <if test="unionUserId != null">union_user_id,</if>
184
             <if test="unionUserId != null">union_user_id,</if>
172
             <if test="unionComment != null">union_comment,</if>
185
             <if test="unionComment != null">union_comment,</if>
173
             <if test="cwUserId != null">cw_user_id,</if>
186
             <if test="cwUserId != null">cw_user_id,</if>
176
             <if test="xmTime != null">xm_time,</if>
189
             <if test="xmTime != null">xm_time,</if>
177
             <if test="managerTime != null">manager_time,</if>
190
             <if test="managerTime != null">manager_time,</if>
178
             <if test="zjlTime != null">zjl_time,</if>
191
             <if test="zjlTime != null">zjl_time,</if>
192
+            <if test="dszTime != null">dsz_time,</if>
179
             <if test="lendTime != null">lend_time,</if>
193
             <if test="lendTime != null">lend_time,</if>
180
             <if test="unionTime != null">union_time,</if>
194
             <if test="unionTime != null">union_time,</if>
181
             <if test="lendDocument != null">lend_document,</if>
195
             <if test="lendDocument != null">lend_document,</if>
200
             <if test="managerUserId != null">#{managerUserId},</if>
214
             <if test="managerUserId != null">#{managerUserId},</if>
201
             <if test="zjlUserId != null">#{zjlUserId},</if>
215
             <if test="zjlUserId != null">#{zjlUserId},</if>
202
             <if test="zjlComment != null">#{zjlComment},</if>
216
             <if test="zjlComment != null">#{zjlComment},</if>
217
+            <if test="dszUserId != null">#{dszUserId},</if>
218
+            <if test="dszComment != null">#{dszComment},</if>
203
             <if test="unionUserId != null">#{unionUserId},</if>
219
             <if test="unionUserId != null">#{unionUserId},</if>
204
             <if test="unionComment != null">#{unionComment},</if>
220
             <if test="unionComment != null">#{unionComment},</if>
205
             <if test="cwUserId != null">#{cwUserId},</if>
221
             <if test="cwUserId != null">#{cwUserId},</if>
208
             <if test="xmTime != null">#{xmTime},</if>
224
             <if test="xmTime != null">#{xmTime},</if>
209
             <if test="managerTime != null">#{managerTime},</if>
225
             <if test="managerTime != null">#{managerTime},</if>
210
             <if test="zjlTime != null">#{zjlTime},</if>
226
             <if test="zjlTime != null">#{zjlTime},</if>
227
+            <if test="dszTime != null">#{dszTime},</if>
211
             <if test="unionTime != null">#{unionTime},</if>
228
             <if test="unionTime != null">#{unionTime},</if>
212
             <if test="lendTime != null">#{lendTime},</if>
229
             <if test="lendTime != null">#{lendTime},</if>
213
             <if test="lendDocument != null">#{lendDocument},</if>
230
             <if test="lendDocument != null">#{lendDocument},</if>
235
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
252
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
236
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
253
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
237
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
254
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
255
+            <if test="dszUserId != null">dsz_user_id = #{dszUserId},</if>
256
+            <if test="dszComment != null">dsz_comment = #{dszComment},</if>
238
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
257
             <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
239
             <if test="unionComment != null">zjl_comment = #{unionComment},</if>
258
             <if test="unionComment != null">zjl_comment = #{unionComment},</if>
240
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
259
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
243
             <if test="xmTime != null">xm_time = #{xmTime},</if>
262
             <if test="xmTime != null">xm_time = #{xmTime},</if>
244
             <if test="managerTime != null">manager_time = #{managerTime},</if>
263
             <if test="managerTime != null">manager_time = #{managerTime},</if>
245
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
264
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
265
+            <if test="dszTime != null">dsz_time = #{dszTime},</if>
246
             <if test="unionTime != null">union_time = #{unionTime},</if>
266
             <if test="unionTime != null">union_time = #{unionTime},</if>
247
             <if test="lendTime != null">lend_time = #{lendTime},</if>
267
             <if test="lendTime != null">lend_time = #{lendTime},</if>
248
             <if test="lendDocument != null">lend_document = #{lendDocument},</if>
268
             <if test="lendDocument != null">lend_document = #{lendDocument},</if>

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

26
         <result property="totalBudget"    column="total_budget"    />
26
         <result property="totalBudget"    column="total_budget"    />
27
         <result property="compiler"    column="compiler"    />
27
         <result property="compiler"    column="compiler"    />
28
         <result property="auditor"    column="auditor"    />
28
         <result property="auditor"    column="auditor"    />
29
+        <result property="approver"    column="approver"    />
30
+        <result property="auditComment"    column="auditor_comment"    />
31
+        <result property="approveComment"    column="approve_comment"    />
32
+        <result property="auditTime"    column="audit_time"    />
33
+        <result property="approveTime"    column="approve_time"    />
29
         <result property="createTime"    column="create_time"    />
34
         <result property="createTime"    column="create_time"    />
30
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
35
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
31
         <association property="auditorUser"    javaType="SysUser"         resultMap="AuditorResult" />
36
         <association property="auditorUser"    javaType="SysUser"         resultMap="AuditorResult" />
37
+        <association property="approverUser"    javaType="SysUser"         resultMap="ApproverResult" />
32
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
38
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
33
     </resultMap>
39
     </resultMap>
34
 
40
 
42
         <result property="nickName"    column="auditor_nick_name"    />
48
         <result property="nickName"    column="auditor_nick_name"    />
43
     </resultMap>
49
     </resultMap>
44
 
50
 
51
+    <resultMap type="SysUser" id="ApproverResult">
52
+        <result property="userId"    column="user_id"    />
53
+        <result property="nickName"    column="approver_nick_name"    />
54
+    </resultMap>
55
+
45
     <resultMap type="CmcProject" id="CmcProjectResult">
56
     <resultMap type="CmcProject" id="CmcProjectResult">
46
         <result property="projectId"    column="project_id"    />
57
         <result property="projectId"    column="project_id"    />
47
         <result property="projectNumber"    column="project_number"    />
58
         <result property="projectNumber"    column="project_number"    />
51
     <sql id="selectCmcBudgetVo">
62
     <sql id="selectCmcBudgetVo">
52
         select b.budget_id, b.project_id, p.project_number, p.project_name, b.staff_cost, b.car_cost, b.device_cost, b.fix_cost, b.settle_expense, b.out_expense, b.business_expense, b.tax_expense,
63
         select b.budget_id, b.project_id, p.project_number, p.project_name, b.staff_cost, b.car_cost, b.device_cost, b.fix_cost, b.settle_expense, b.out_expense, b.business_expense, b.tax_expense,
53
                b.rent_expense, b.other_expense, b.out_remark, b.business_remark, b.tax_remark, b.rent_remark, b.other_remark, b.direct_expense, b.total_budget, b.compiler,
64
                b.rent_expense, b.other_expense, b.out_remark, b.business_remark, b.tax_remark, b.rent_remark, b.other_remark, b.direct_expense, b.total_budget, b.compiler,
54
-               u.nick_name as compiler_nick_name, b.auditor, u1.nick_name as auditor_nick_name, b.create_time from cmc_budget as b
65
+               u.nick_name as compiler_nick_name, b.auditor, u1.nick_name as auditor_nick_name, b.appover, u2.nick_name as appover_nick_name, b.create_time, b.audit_time, b.approve_time,
66
+               b.audit_comment, b.approve_comment from cmc_budget as b
55
             left join sys_user as u on u.user_id = b.compiler
67
             left join sys_user as u on u.user_id = b.compiler
56
             left join sys_user as u1 on u1.user_id = b.auditor
68
             left join sys_user as u1 on u1.user_id = b.auditor
69
+            left join sys_user as u2 on u2.user_id = b.appover
57
             left join cmc_project as p on b.project_id = p.project_id
70
             left join cmc_project as p on b.project_id = p.project_id
58
     </sql>
71
     </sql>
59
 
72
 
107
             <if test="totalBudget != null">total_budget,</if>
120
             <if test="totalBudget != null">total_budget,</if>
108
             <if test="compiler != null">compiler,</if>
121
             <if test="compiler != null">compiler,</if>
109
             <if test="auditor != null">auditor,</if>
122
             <if test="auditor != null">auditor,</if>
123
+            <if test="approver != null">approver,</if>
124
+            <if test="auditTime != null">audit_time,</if>
125
+            <if test="approveTime != null">approve_time,</if>
126
+            <if test="auditComment != null">audit_comment,</if>
127
+            <if test="approveComment != null">approve_comment,</if>
110
             create_time
128
             create_time
111
         </trim>
129
         </trim>
112
         <trim prefix="values (" suffix=")" suffixOverrides=",">
130
         <trim prefix="values (" suffix=")" suffixOverrides=",">
131
             <if test="totalBudget != null">#{totalBudget},</if>
149
             <if test="totalBudget != null">#{totalBudget},</if>
132
             <if test="compiler != null">#{compiler},</if>
150
             <if test="compiler != null">#{compiler},</if>
133
             <if test="auditor != null">#{auditor},</if>
151
             <if test="auditor != null">#{auditor},</if>
152
+            <if test="approver != null">#{approver},</if>
153
+            <if test="auditTime != null">#{auditTime},</if>
154
+            <if test="approveTime != null">#{approveTime},</if>
155
+            <if test="auditComment != null">#{auditComment},</if>
156
+            <if test="approveComment != null">#{approveComment},</if>
134
             sysdate()
157
             sysdate()
135
         </trim>
158
         </trim>
136
     </insert>
159
     </insert>
158
             <if test="totalBudget != null">total_budget = #{totalBudget},</if>
181
             <if test="totalBudget != null">total_budget = #{totalBudget},</if>
159
             <if test="compiler != null">compiler = #{compiler},</if>
182
             <if test="compiler != null">compiler = #{compiler},</if>
160
             <if test="auditor != null">auditor = #{auditor},</if>
183
             <if test="auditor != null">auditor = #{auditor},</if>
184
+            <if test="approver != null">approver = #{approver},</if>
185
+            <if test="auditTime != null">audit_time = #{auditTime},</if>
186
+            <if test="approveTime != null">approve_time = #{approveTime},</if>
187
+            <if test="auditComment != null">audit_comment = #{auditComment},</if>
188
+            <if test="approveComment != null">approve_comment = #{approveComment},</if>
161
             <if test="createTime != null">create_time = #{createTime},</if>
189
             <if test="createTime != null">create_time = #{createTime},</if>
162
         </trim>
190
         </trim>
163
         where budget_id = #{budgetId}
191
         where budget_id = #{budgetId}

+ 8
- 0
oa-back/sql/sql.sql View File

6347
   `total_budget` 		decimal(10, 2) 	default null 	comment '预算总额',
6347
   `total_budget` 		decimal(10, 2) 	default null 	comment '预算总额',
6348
   `compiler` 			bigint 			default null 	comment '编制人',
6348
   `compiler` 			bigint 			default null 	comment '编制人',
6349
   `auditor` 			bigint 			default null 	comment '审核人',
6349
   `auditor` 			bigint 			default null 	comment '审核人',
6350
+  `approver` 			bigint 			default null 	comment '批准人',
6351
+  `audit_comment` 		varchar(255)	default null 	comment '审核人意见',
6352
+  `approve_comment` 	varchar(255)	default null 	comment '批准人意见',
6350
   `create_time` 		date 			default null 	comment '创建时间',
6353
   `create_time` 		date 			default null 	comment '创建时间',
6354
+  `audit_time` 			date			default null 	comment '审核时间',
6355
+  `approve_time` 		date			default null 	comment '批准时间',
6351
   primary key (`budget_id`)
6356
   primary key (`budget_id`)
6352
 ) engine = innodb comment = 'cmc预算管理表';
6357
 ) engine = innodb comment = 'cmc预算管理表';
6353
 
6358
 
8571
   `manager_user_id` bigint 			default null comment '分管审批人',
8576
   `manager_user_id` bigint 			default null comment '分管审批人',
8572
   `zjl_user_id` 	bigint 			default null comment '总经理审批人',
8577
   `zjl_user_id` 	bigint 			default null comment '总经理审批人',
8573
   `zjl_comment` 	varchar(255)  	default null comment '总经理审批意见',
8578
   `zjl_comment` 	varchar(255)  	default null comment '总经理审批意见',
8579
+  `dsz_user_id` 	bigint 			default null comment '董事长审批人',
8580
+  `dsz_comment` 	varchar(255)  	default null comment '董事长审批意见',
8574
   `union_user_id` 	bigint 			default null comment '工会审批人',
8581
   `union_user_id` 	bigint 			default null comment '工会审批人',
8575
   `union_comment` 	varchar(255)  	default null comment '工会审批意见',
8582
   `union_comment` 	varchar(255)  	default null comment '工会审批意见',
8576
   `cw_user_id` 		bigint 			default null comment '财务部经办人',
8583
   `cw_user_id` 		bigint 			default null comment '财务部经办人',
8580
   `xm_time` 		date 			default null comment '项目部审批时间',
8587
   `xm_time` 		date 			default null comment '项目部审批时间',
8581
   `manager_time` 	date 			default null comment '分管审批时间',
8588
   `manager_time` 	date 			default null comment '分管审批时间',
8582
   `zjl_time` 		date 			default null comment '总经理审批时间',
8589
   `zjl_time` 		date 			default null comment '总经理审批时间',
8590
+  `dsz_time` 		date 			default null comment '董事长审批时间',
8583
   `union_time` 		date 			default null comment '工会审批时间',
8591
   `union_time` 		date 			default null comment '工会审批时间',
8584
   `lend_time` 		date 			default null comment '借款支付时间',
8592
   `lend_time` 		date 			default null comment '借款支付时间',
8585
   primary key (`borrow_id`)
8593
   primary key (`borrow_id`)

+ 5
- 5
oa-ui/src/views/flowable/form/projectProcess/arrangeProject.vue View File

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-03-19 09:24:06
3
  * @Date: 2024-03-19 09:24:06
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-09 09:28:51
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-09 21:30:44
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
109
 <script>
109
 <script>
110
 import { listDept } from '@/api/system/dept'
110
 import { listDept } from '@/api/system/dept'
111
 import { listUser } from '@/api/system/user'
111
 import { listUser } from '@/api/system/user'
112
-import { getUsersDeptLeaderByDept, getDeptLeadersByDeptId } from '@/api/system/post'
112
+import { getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept } from '@/api/system/post'
113
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
113
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
114
 import { listProject, getProject, addProject, updateProject, delProject, submitProject, modifyProject } from "@/api/oa/project/project";
114
 import { listProject, getProject, addProject, updateProject, delProject, submitProject, modifyProject } from "@/api/oa/project/project";
115
 export default {
115
 export default {
253
         type: 'warning'
253
         type: 'warning'
254
       }).then(async () => {
254
       }).then(async () => {
255
         this.save();
255
         this.save();
256
-        let resData = await getUsersDeptLeaderByDept({ deptId: 105 });
256
+        let resData = await getUsersManageLeaderByDept({ deptId: 105 });
257
         let approvalId;
257
         let approvalId;
258
         if (resData.data) {
258
         if (resData.data) {
259
-          approvalId = resData.data.userId;
259
+          approvalId = resData.data[0].userId;
260
         }
260
         }
261
         console.log(approvalId);
261
         console.log(approvalId);
262
         const params = { taskId: this.taskForm.taskId };
262
         const params = { taskId: this.taskForm.taskId };

Loading…
Cancel
Save