Browse Source

预算、借款、结算字段修改

lamphua 11 months ago
parent
commit
4a49938ac0

+ 1
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBorrowController.java View File

@@ -84,14 +84,10 @@ public class CmcBorrowController extends BaseController
84 84
     @PutMapping
85 85
     public AjaxResult edit(@RequestBody CmcBorrow cmcBorrow)
86 86
     {
87
-        if (cmcBorrow.getDeptComment() != null && cmcBorrow.getXmComment() == null) {
87
+        if (cmcBorrow.getDeptComment() != null && cmcBorrow.getManagerComment() == null) {
88 88
             cmcBorrow.setDeptUserId(getLoginUser().getUserId());
89 89
             cmcBorrow.setDeptTime(new Date());
90 90
         }
91
-        if (cmcBorrow.getXmComment() != null && cmcBorrow.getManagerComment() == null) {
92
-            cmcBorrow.setXmUserId(getLoginUser().getUserId());
93
-            cmcBorrow.setXmTime(new Date());
94
-        }
95 91
         if (cmcBorrow.getManagerComment() != null && cmcBorrow.getZjlComment() == null) {
96 92
             cmcBorrow.setManagerUserId(getLoginUser().getUserId());
97 93
             cmcBorrow.setManagerTime(new Date());

+ 8
- 4
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetController.java View File

@@ -79,13 +79,17 @@ public class CmcBudgetController extends BaseController
79 79
     @PutMapping
80 80
     public AjaxResult edit(@RequestBody CmcBudget cmcBudget)
81 81
     {
82
-        if (cmcBudget.getAuditComment() != null && cmcBudget.getApproveComment() == null) {
82
+        if (cmcBudget.getManagerComment() != null && cmcBudget.getZjlComment() == null) {
83
+            cmcBudget.setManager(getLoginUser().getUserId());
84
+            cmcBudget.setManagerTime(new Date());
85
+        }
86
+        if (cmcBudget.getZjlComment() != null && cmcBudget.getDszComment() == null) {
83 87
             cmcBudget.setAuditor(getLoginUser().getUserId());
84
-            cmcBudget.setAuditTime(new Date());
88
+            cmcBudget.setZjlTime(new Date());
85 89
         }
86
-        if (cmcBudget.getApproveComment() != null) {
90
+        if (cmcBudget.getDszComment() != null) {
87 91
             cmcBudget.setApprover(getLoginUser().getUserId());
88
-            cmcBudget.setApproveTime(new Date());
92
+            cmcBudget.setDszTime(new Date());
89 93
         }
90 94
         return toAjax(cmcBudgetService.updateCmcBudget(cmcBudget));
91 95
     }

+ 2
- 2
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/listener/FlowSkipListener.java View File

@@ -7,7 +7,7 @@ import org.springframework.stereotype.Component;
7 7
 /**
8 8
  * 自动跳过流程任务监听
9 9
  * @author cmc
10
- * @date 2023-02-18
10
+ * @date 2024-07-10
11 11
  */
12 12
 
13 13
 @Component
@@ -16,6 +16,6 @@ public class FlowSkipListener implements ExecutionListener {
16 16
     public void notify(DelegateExecution execution) {
17 17
         //通过设置流程变量_FLOWABLE_SKIP_EXPRESSION_ENABLED为true启动skipExpression属性,
18 18
         //必须是true而非字符串"true",若不启动是不生效的
19
-        execution.setVariable("_FLOWABLE_SKIP_EXPRESSION_ENABLED",true);
19
+        execution.setVariable("_FLOWABLE_SKIP_EXPRESSION_ENABLED", true);
20 20
     }
21 21
 }

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

@@ -56,10 +56,6 @@ public class CmcBorrow extends BaseEntity
56 56
     private String deptUserName;
57 57
     private SysUser deptUser;
58 58
 
59
-    @Excel(name = "项目部审批人")
60
-    private String xmUserName;
61
-    private SysUser xmUser;
62
-
63 59
     @Excel(name = "分管审批人")
64 60
     private String managerUserName;
65 61
     private SysUser managerUser;
@@ -100,13 +96,6 @@ public class CmcBorrow extends BaseEntity
100 96
     /** 部门审批人 */
101 97
     private Long deptUserId;
102 98
 
103
-    /** 项目部审批人 */
104
-    private Long xmUserId;
105
-
106
-    /** 项目部审批意见 */
107
-    @Excel(name = "项目部审批意见")
108
-    private String xmComment;
109
-
110 99
     /** 分管审批意见 */
111 100
     @Excel(name = "分管审批意见")
112 101
     private String managerComment;
@@ -155,11 +144,6 @@ public class CmcBorrow extends BaseEntity
155 144
     @Excel(name = "部门审批时间", width = 30, dateFormat = "yyyy-MM-dd")
156 145
     private Date deptTime;
157 146
 
158
-    /** 项目部审批时间 */
159
-    @JsonFormat(pattern = "yyyy-MM-dd")
160
-    @Excel(name = "项目部审批时间", width = 30, dateFormat = "yyyy-MM-dd")
161
-    private Date xmTime;
162
-
163 147
     /** 分管审批时间 */
164 148
     @JsonFormat(pattern = "yyyy-MM-dd")
165 149
     @Excel(name = "分管审批时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -279,16 +263,6 @@ public class CmcBorrow extends BaseEntity
279 263
     {
280 264
         return deptUser;
281 265
     }
282
-    public void setXmUser(SysUser xmUser)
283
-    {
284
-        this.xmUser = xmUser;
285
-        this.xmUserName = xmUser == null ? "" : xmUser.getNickName();
286
-    }
287
-
288
-    public SysUser getXmUser()
289
-    {
290
-        return xmUser;
291
-    }
292 266
     public void setManagerUser(SysUser managerUser)
293 267
     {
294 268
         this.managerUser = managerUser;
@@ -384,24 +358,6 @@ public class CmcBorrow extends BaseEntity
384 358
     {
385 359
         return deptUserId;
386 360
     }
387
-    public void setXmUserId(Long xmUserId) 
388
-    {
389
-        this.xmUserId = xmUserId;
390
-    }
391
-
392
-    public Long getXmUserId() 
393
-    {
394
-        return xmUserId;
395
-    }
396
-    public void setXmComment(String xmComment) 
397
-    {
398
-        this.xmComment = xmComment;
399
-    }
400
-
401
-    public String getXmComment() 
402
-    {
403
-        return xmComment;
404
-    }
405 361
     public void setManagerComment(String managerComment) 
406 362
     {
407 363
         this.managerComment = managerComment;
@@ -501,15 +457,6 @@ public class CmcBorrow extends BaseEntity
501 457
     {
502 458
         return deptTime;
503 459
     }
504
-    public void setXmTime(Date xmTime) 
505
-    {
506
-        this.xmTime = xmTime;
507
-    }
508
-
509
-    public Date getXmTime() 
510
-    {
511
-        return xmTime;
512
-    }
513 460
     public void setManagerTime(Date managerTime) 
514 461
     {
515 462
         this.managerTime = managerTime;
@@ -587,8 +534,6 @@ public class CmcBorrow extends BaseEntity
587 534
             .append("managerAmount", getManagerAmount())
588 535
             .append("deptComment", getDeptComment())
589 536
             .append("deptUserId", getDeptUserId())
590
-            .append("xmUserId", getXmUserId())
591
-            .append("xmComment", getXmComment())
592 537
             .append("managerComment", getManagerComment())
593 538
             .append("managerUserId", getManagerUserId())
594 539
             .append("zjlUserId", getZjlUserId())
@@ -598,7 +543,6 @@ public class CmcBorrow extends BaseEntity
598 543
             .append("cwUserId", getCwUserId())
599 544
             .append("cwComment", getCwComment())
600 545
             .append("deptTime", getDeptTime())
601
-            .append("xmTime", getXmTime())
602 546
             .append("managerTime", getManagerTime())
603 547
             .append("zjlTime", getZjlTime())
604 548
             .append("unionTime", getUnionTime())

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

@@ -43,10 +43,6 @@ public class CmcBorrowDetail extends BaseEntity
43 43
     @Excel(name = "申请金额")
44 44
     private BigDecimal applyAmount;
45 45
 
46
-    /** 项目部校核金额 */
47
-    @Excel(name = "项目部校核金额")
48
-    private BigDecimal xmAmount;
49
-
50 46
     /** 分管审核金额 */
51 47
     @Excel(name = "分管审核金额")
52 48
     private BigDecimal managerAmount;
@@ -114,15 +110,6 @@ public class CmcBorrowDetail extends BaseEntity
114 110
     {
115 111
         return applyAmount;
116 112
     }
117
-    public void setXmAmount(BigDecimal xmAmount) 
118
-    {
119
-        this.xmAmount = xmAmount;
120
-    }
121
-
122
-    public BigDecimal getXmAmount() 
123
-    {
124
-        return xmAmount;
125
-    }
126 113
     public void setManagerAmount(BigDecimal managerAmount) 
127 114
     {
128 115
         this.managerAmount = managerAmount;
@@ -143,7 +130,6 @@ public class CmcBorrowDetail extends BaseEntity
143 130
             .append("price", getPrice())
144 131
             .append("quantity", getQuantity())
145 132
             .append("applyAmount", getApplyAmount())
146
-            .append("xmAmount", getXmAmount())
147 133
             .append("managerAmount", getManagerAmount())
148 134
             .toString();
149 135
     }

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

@@ -103,39 +103,54 @@ public class CmcBudget extends BaseEntity
103 103
     /** 编制人 */
104 104
     private Long compiler;
105 105
 
106
-    /** 批准人 */
106
+    /** 董事长 */
107 107
     private Long approver;
108 108
 
109
+    /** 分管审核人 */
110
+    private Long manager;
111
+
109 112
     @Excel(name = "编制人")
110 113
     private String compilerUserName;
111 114
     private SysUser compilerUser;
112 115
 
113
-    @Excel(name = "审核人")
114
-    private String auditorUserName;
115
-    private SysUser auditorUser;
116
+    @Excel(name = "分管审核人")
117
+    private String managerUserName;
118
+    private SysUser managerUser;
119
+
120
+    @Excel(name = "总经理")
121
+    private String zjlUserName;
122
+    private SysUser zjlUser;
116 123
 
117
-    @Excel(name = "批准人")
118
-    private String approverUserName;
119
-    private SysUser approverUser;
124
+    @Excel(name = "董事长")
125
+    private String dszUserName;
126
+    private SysUser dszUser;
120 127
 
121
-    /** 审核人 */
128
+    /** 总经理 */
122 129
     private Long auditor;
123 130
 
124
-    /** 审批时间 */
131
+    /** 总经理审批时间 */
132
+    @JsonFormat(pattern = "yyyy-MM-dd")
133
+    @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
134
+    private Date zjlTime;
135
+
136
+    /** 分管审核时间 */
125 137
     @JsonFormat(pattern = "yyyy-MM-dd")
126
-    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
127
-    private Date auditTime;
138
+    @Excel(name = "分管审核时间", width = 30, dateFormat = "yyyy-MM-dd")
139
+    private Date managerTime;
128 140
 
129
-    /** 批准时间 */
141
+    /** 董事长批准时间 */
130 142
     @JsonFormat(pattern = "yyyy-MM-dd")
131
-    @Excel(name = "批准时间", width = 30, dateFormat = "yyyy-MM-dd")
132
-    private Date approveTime;
143
+    @Excel(name = "董事长批准时间", width = 30, dateFormat = "yyyy-MM-dd")
144
+    private Date dszTime;
133 145
 
134
-    @Excel(name = "审批意见")
135
-    private String auditComment;
146
+    @Excel(name = "分管审核意见")
147
+    private String managerComment;
136 148
 
137
-    @Excel(name = "批准意见")
138
-    private String approveComment;
149
+    @Excel(name = "总经理审批意见")
150
+    private String zjlComment;
151
+
152
+    @Excel(name = "董事长批准意见")
153
+    private String dszComment;
139 154
 
140 155
     public void setBudgetId(String budgetId)
141 156
     {
@@ -328,6 +343,15 @@ public class CmcBudget extends BaseEntity
328 343
     {
329 344
         return compiler;
330 345
     }
346
+    public void setManager(Long manager)
347
+    {
348
+        this.manager = manager;
349
+    }
350
+
351
+    public Long getManager()
352
+    {
353
+        return manager;
354
+    }
331 355
     public void setCompilerUser(SysUser compilerUser)
332 356
     {
333 357
         this.compilerUser = compilerUser;
@@ -338,15 +362,26 @@ public class CmcBudget extends BaseEntity
338 362
     {
339 363
         return compilerUser;
340 364
     }
341
-    public void setAuditorUser(SysUser auditorUser)
365
+
366
+    public void setManagerUser(SysUser managerUser)
367
+    {
368
+        this.managerUser = managerUser;
369
+        this.managerUserName = managerUser == null ? "" : managerUser.getNickName();
370
+    }
371
+
372
+    public SysUser getManagerUser()
373
+    {
374
+        return managerUser;
375
+    }
376
+    public void setZjlUser(SysUser zjlUser)
342 377
     {
343
-        this.auditorUser = auditorUser;
344
-        this.auditorUserName = auditorUser == null ? "" : auditorUser.getNickName();
378
+        this.zjlUser = zjlUser;
379
+        this.zjlUserName = zjlUser == null ? "" : zjlUser.getNickName();
345 380
     }
346 381
 
347
-    public SysUser getAuditorUser()
382
+    public SysUser getZjlUser()
348 383
     {
349
-        return auditorUser;
384
+        return zjlUser;
350 385
     }
351 386
     public void setAuditor(Long auditor)
352 387
     {
@@ -366,51 +401,69 @@ public class CmcBudget extends BaseEntity
366 401
     {
367 402
         return approver;
368 403
     }
369
-    public void setApproverUser(SysUser approverUser)
404
+    public void setDszUser(SysUser dszUser)
405
+    {
406
+        this.dszUser = dszUser;
407
+        this.dszUserName = dszUser == null ? "" : dszUser.getNickName();
408
+    }
409
+
410
+    public SysUser getDszUser()
411
+    {
412
+        return dszUser;
413
+    }
414
+    public void setManagerTime(Date managerTime)
415
+    {
416
+        this.managerTime = managerTime;
417
+    }
418
+
419
+    public Date getManagerTime()
420
+    {
421
+        return managerTime;
422
+    }
423
+    public void setZjlTime(Date zjlTime)
370 424
     {
371
-        this.approverUser = approverUser;
372
-        this.approverUserName = approverUser == null ? "" : approverUser.getNickName();
425
+        this.zjlTime = zjlTime;
373 426
     }
374 427
 
375
-    public SysUser getApproverUser()
428
+    public Date getZjlTime()
376 429
     {
377
-        return approverUser;
430
+        return zjlTime;
378 431
     }
379
-    public void setAuditTime(Date auditTime)
432
+    public void setDszTime(Date dszTime)
380 433
     {
381
-        this.auditTime = auditTime;
434
+        this.dszTime = dszTime;
382 435
     }
383 436
 
384
-    public Date getAuditTime()
437
+    public Date getDszTime()
385 438
     {
386
-        return auditTime;
439
+        return dszTime;
387 440
     }
388
-    public void setApproveTime(Date approveTime)
441
+    public void setManagerComment(String managerComment)
389 442
     {
390
-        this.approveTime = approveTime;
443
+        this.managerComment = managerComment;
391 444
     }
392 445
 
393
-    public Date getApproveTime()
446
+    public String getManagerComment()
394 447
     {
395
-        return approveTime;
448
+        return managerComment;
396 449
     }
397
-    public void setAuditComment(String auditComment)
450
+    public void setZjlComment(String zjlComment)
398 451
     {
399
-        this.auditComment = auditComment;
452
+        this.zjlComment = zjlComment;
400 453
     }
401 454
 
402
-    public String getAuditComment()
455
+    public String getZjlComment()
403 456
     {
404
-        return auditComment;
457
+        return zjlComment;
405 458
     }
406
-    public void setApproveComment(String approveComment)
459
+    public void setDszComment(String dszComment)
407 460
     {
408
-        this.approveComment = approveComment;
461
+        this.dszComment = dszComment;
409 462
     }
410 463
 
411
-    public String getApproveComment()
464
+    public String getDszComment()
412 465
     {
413
-        return approveComment;
466
+        return dszComment;
414 467
     }
415 468
 
416 469
     @Override

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

@@ -48,14 +48,6 @@ public class CmcSettle extends BaseEntity
48 48
     private String jsUserName;
49 49
     private SysUser jsUser;
50 50
 
51
-    @Excel(name = "项目管理部审核人")
52
-    private String xmUserName;
53
-    private SysUser xmUser;
54
-
55
-    @Excel(name = "承担部门审核人")
56
-    private String deptUserName;
57
-    private SysUser deptUser;
58
-
59 51
     @Excel(name = "经营发展部审核人")
60 52
     private String jyUserName;
61 53
     private SysUser jyUser;
@@ -68,6 +60,10 @@ public class CmcSettle extends BaseEntity
68 60
     private String gmUserName;
69 61
     private SysUser gmUser;
70 62
 
63
+    @Excel(name = "董事长")
64
+    private String dszUserName;
65
+    private SysUser dszUser;
66
+
71 67
     /** 上报日期 */
72 68
     @JsonFormat(pattern = "yyyy-MM-dd")
73 69
     @Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
@@ -101,30 +97,6 @@ public class CmcSettle extends BaseEntity
101 97
     @Excel(name = "技术质量部审核意见")
102 98
     private String jsComment;
103 99
 
104
-    /** 项目管理部审核人 */
105
-    private Long xmUserId;
106
-
107
-    /** 项目管理部审核日期 */
108
-    @JsonFormat(pattern = "yyyy-MM-dd")
109
-    @Excel(name = "项目管理部审核日期", width = 30, dateFormat = "yyyy-MM-dd")
110
-    private Date xmTime;
111
-
112
-    /** 项目管理部审核意见 */
113
-    @Excel(name = "项目管理部审核意见")
114
-    private String xmComment;
115
-
116
-    /** 承担部门审核人 */
117
-    private Long deptUserId;
118
-
119
-    /** 承担部门审核日期 */
120
-    @JsonFormat(pattern = "yyyy-MM-dd")
121
-    @Excel(name = "承担部门审核日期", width = 30, dateFormat = "yyyy-MM-dd")
122
-    private Date deptTime;
123
-
124
-    /** 承担部门审核意见 */
125
-    @Excel(name = "承担部门审核意见")
126
-    private String deptComment;
127
-
128 100
     /** 经营发展部审核人 */
129 101
     private Long jyUserId;
130 102
 
@@ -161,6 +133,18 @@ public class CmcSettle extends BaseEntity
161 133
     @Excel(name = "总经理审核意见")
162 134
     private String gmComment;
163 135
 
136
+    /** 董事长审核人 */
137
+    private Long dszUserId;
138
+
139
+    /** 董事长审核日期 */
140
+    @JsonFormat(pattern = "yyyy-MM-dd")
141
+    @Excel(name = "董事长审核日期", width = 30, dateFormat = "yyyy-MM-dd")
142
+    private Date dszTime;
143
+
144
+    /** 董事长审核意见 */
145
+    @Excel(name = "董事长审核意见")
146
+    private String dszComment;
147
+
164 148
     /** 原始结算表 */
165 149
     @Excel(name = "原始结算表")
166 150
     private String settleDocument;
@@ -292,60 +276,6 @@ public class CmcSettle extends BaseEntity
292 276
     {
293 277
         return jsComment;
294 278
     }
295
-    public void setXmUserId(Long xmUserId) 
296
-    {
297
-        this.xmUserId = xmUserId;
298
-    }
299
-
300
-    public Long getXmUserId() 
301
-    {
302
-        return xmUserId;
303
-    }
304
-    public void setXmTime(Date xmTime) 
305
-    {
306
-        this.xmTime = xmTime;
307
-    }
308
-
309
-    public Date getXmTime() 
310
-    {
311
-        return xmTime;
312
-    }
313
-    public void setXmComment(String xmComment) 
314
-    {
315
-        this.xmComment = xmComment;
316
-    }
317
-
318
-    public String getXmComment() 
319
-    {
320
-        return xmComment;
321
-    }
322
-    public void setDeptUserId(Long deptUserId) 
323
-    {
324
-        this.deptUserId = deptUserId;
325
-    }
326
-
327
-    public Long getDeptUserId() 
328
-    {
329
-        return deptUserId;
330
-    }
331
-    public void setDeptTime(Date deptTime) 
332
-    {
333
-        this.deptTime = deptTime;
334
-    }
335
-
336
-    public Date getDeptTime() 
337
-    {
338
-        return deptTime;
339
-    }
340
-    public void setDeptComment(String deptComment) 
341
-    {
342
-        this.deptComment = deptComment;
343
-    }
344
-
345
-    public String getDeptComment() 
346
-    {
347
-        return deptComment;
348
-    }
349 279
     public void setJyUserId(Long jyUserId) 
350 280
     {
351 281
         this.jyUserId = jyUserId;
@@ -427,6 +357,33 @@ public class CmcSettle extends BaseEntity
427 357
     {
428 358
         return gmComment;
429 359
     }
360
+    public void setDszUserId(Long dszUserId)
361
+    {
362
+        this.dszUserId = dszUserId;
363
+    }
364
+
365
+    public Long getDszUserId()
366
+    {
367
+        return dszUserId;
368
+    }
369
+    public void setDszTime(Date dszTime)
370
+    {
371
+        this.dszTime = dszTime;
372
+    }
373
+
374
+    public Date getDszTime()
375
+    {
376
+        return dszTime;
377
+    }
378
+    public void setDszComment(String dszComment) 
379
+    {
380
+        this.dszComment = dszComment;
381
+    }
382
+
383
+    public String getDszComment() 
384
+    {
385
+        return dszComment;
386
+    }
430 387
     public void setSettleDocument(String settleDocument)
431 388
     {
432 389
         this.settleDocument = settleDocument;
@@ -464,16 +421,6 @@ public class CmcSettle extends BaseEntity
464 421
     {
465 422
         return reporterUser;
466 423
     }
467
-    public void setDeptUser(SysUser deptUser)
468
-    {
469
-        this.deptUser = deptUser;
470
-        this.deptUserName = deptUser == null ? "" : deptUser.getNickName();
471
-    }
472
-
473
-    public SysUser getDeptUser()
474
-    {
475
-        return deptUser;
476
-    }
477 424
     public void setZhUser(SysUser zhUser)
478 425
     {
479 426
         this.zhUser = zhUser;
@@ -504,16 +451,6 @@ public class CmcSettle extends BaseEntity
504 451
     {
505 452
         return jsUser;
506 453
     }
507
-    public void setXmUser(SysUser xmUser)
508
-    {
509
-        this.xmUser = xmUser;
510
-        this.xmUserName = xmUser == null ? "" : xmUser.getNickName();
511
-    }
512
-
513
-    public SysUser getXmUser()
514
-    {
515
-        return xmUser;
516
-    }
517 454
     public void setManagerUser(SysUser managerUser)
518 455
     {
519 456
         this.managerUser = managerUser;
@@ -534,6 +471,16 @@ public class CmcSettle extends BaseEntity
534 471
     {
535 472
         return gmUser;
536 473
     }
474
+    public void setDszUser(SysUser dszUser)
475
+    {
476
+        this.dszUser = dszUser;
477
+        this.dszUserName = dszUser == null ? "" : dszUser.getNickName();
478
+    }
479
+
480
+    public SysUser getDszUser()
481
+    {
482
+        return dszUser;
483
+    }
537 484
 
538 485
     @Override
539 486
     public String toString() {
@@ -550,12 +497,6 @@ public class CmcSettle extends BaseEntity
550 497
             .append("jsUserId", getJsUserId())
551 498
             .append("jsTime", getJsTime())
552 499
             .append("jsComment", getJsComment())
553
-            .append("xmUserId", getXmUserId())
554
-            .append("xmTime", getXmTime())
555
-            .append("xmComment", getXmComment())
556
-            .append("deptUserId", getDeptUserId())
557
-            .append("deptTime", getDeptTime())
558
-            .append("deptComment", getDeptComment())
559 500
             .append("jyUserId", getJyUserId())
560 501
             .append("jyTime", getJyTime())
561 502
             .append("jyComment", getJyComment())

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

@@ -12,12 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
12 12
         <result property="price"    column="price"    />
13 13
         <result property="quantity"    column="quantity"    />
14 14
         <result property="applyAmount"    column="apply_amount"    />
15
-        <result property="xmAmount"    column="xm_amount"    />
16 15
         <result property="managerAmount"    column="manager_amount"    />
17 16
     </resultMap>
18 17
 
19 18
     <sql id="selectCmcBorrowDetailVo">
20
-        select borrow_detail_id, borrow_id, borrow_item, unit, price, quantity, apply_amount, xm_amount, manager_amount from cmc_borrow_detail
19
+        select borrow_detail_id, borrow_id, borrow_item, unit, price, quantity, apply_amount, manager_amount from cmc_borrow_detail
21 20
     </sql>
22 21
 
23 22
     <select id="selectCmcBorrowDetailList" parameterType="CmcBorrowDetail" resultMap="CmcBorrowDetailResult">
@@ -29,7 +28,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
29 28
             <if test="price != null "> and price = #{price}</if>
30 29
             <if test="quantity != null "> and quantity = #{quantity}</if>
31 30
             <if test="applyAmount != null "> and apply_amount = #{applyAmount}</if>
32
-            <if test="xmAmount != null "> and xm_amount = #{xmAmount}</if>
33 31
             <if test="managerAmount != null "> and manager_amount = #{managerAmount}</if>
34 32
         </where>
35 33
     </select>
@@ -49,7 +47,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 47
             <if test="price != null">price,</if>
50 48
             <if test="quantity != null">quantity,</if>
51 49
             <if test="applyAmount != null">apply_amount,</if>
52
-            <if test="xmAmount != null">xm_amount,</if>
53 50
             <if test="managerAmount != null">manager_amount,</if>
54 51
          </trim>
55 52
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -60,7 +57,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
60 57
             <if test="price != null">#{price},</if>
61 58
             <if test="quantity != null">#{quantity},</if>
62 59
             <if test="applyAmount != null">#{applyAmount},</if>
63
-            <if test="xmAmount != null">#{xmAmount},</if>
64 60
             <if test="managerAmount != null">#{managerAmount},</if>
65 61
          </trim>
66 62
     </insert>
@@ -74,7 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
74 70
             <if test="price != null">price = #{price},</if>
75 71
             <if test="quantity != null">quantity = #{quantity},</if>
76 72
             <if test="applyAmount != null">apply_amount = #{applyAmount},</if>
77
-            <if test="xmAmount != null">xm_amount = #{xmAmount},</if>
78 73
             <if test="managerAmount != null">manager_amount = #{managerAmount},</if>
79 74
         </trim>
80 75
         where borrow_detail_id = #{borrowDetailId}

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

@@ -17,20 +17,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
17 17
         <result property="managerAmount"    column="manager_amount"    />
18 18
         <result property="deptComment"    column="dept_comment"    />
19 19
         <result property="deptUserId"    column="dept_user_id"    />
20
-        <result property="xmUserId"    column="xm_user_id"    />
21
-        <result property="xmComment"    column="xm_comment"    />
22 20
         <result property="managerComment"    column="manager_comment"    />
23 21
         <result property="managerUserId"    column="manager_user_id"    />
24 22
         <result property="zjlUserId"    column="zjl_user_id"    />
25 23
         <result property="zjlComment"    column="zjl_comment"    />
24
+        <result property="dszUserId"    column="dsz_user_id"    />
25
+        <result property="dszComment"    column="dsz_comment"    />
26 26
         <result property="unionUserId"    column="union_user_id"    />
27 27
         <result property="unionComment"    column="union_comment"    />
28 28
         <result property="cwUserId"    column="cw_user_id"    />
29 29
         <result property="cwComment"    column="cw_comment"    />
30 30
         <result property="deptTime"    column="dept_time"    />
31
-        <result property="xmTime"    column="xm_time"    />
32 31
         <result property="managerTime"    column="manager_time"    />
33 32
         <result property="zjlTime"    column="zjl_time"    />
33
+        <result property="dszTime"    column="dsz_time"    />
34 34
         <result property="lendTime"    column="lend_time"    />
35 35
         <result property="lendDocument"    column="lend_document"    />
36 36
         <result property="borrowDocument"    column="borrow_document"    />
@@ -38,7 +38,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
38 38
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
39 39
         <association property="deptUser"    javaType="SysUser"         resultMap="DeptUserResult" />
40 40
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
41
-        <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
42 41
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
43 42
         <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
44 43
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
@@ -62,11 +61,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
62 61
         <result property="nickName"    column="manager_nick_name"    />
63 62
     </resultMap>
64 63
 
65
-    <resultMap type="SysUser" id="XmUserResult">
66
-        <result property="userId"    column="user_id"    />
67
-        <result property="nickName"    column="xm_nick_name"    />
68
-    </resultMap>
69
-
70 64
     <resultMap type="SysUser" id="ZjlUserResult">
71 65
         <result property="userId"    column="user_id"    />
72 66
         <result property="nickName"    column="zjl_nick_name"    />
@@ -100,18 +94,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
100 94
 
101 95
     <sql id="selectCmcBorrowVo">
102 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,
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,
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
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.manager_comment, b.manager_user_id, u2.nick_name as manager_nick_name,
98
+               b.zjl_user_id, u3.nick_name as zjl_nick_name, b.zjl_comment, b.dsz_comment,  b.union_user_id, u4.nick_name as union_nick_name, b.union_comment, b.cw_user_id, u5.nick_name as cw_nick_name,
99
+               b.dsz_user_id, u6.nick_name as dsz_nick_name, b.cw_comment, b.dept_time, 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
107 100
         left join sys_user as u on u.user_id = b.applier
108 101
         left join sys_user as u1 on u1.user_id = b.dept_user_id
109
-        left join sys_user as u2 on u2.user_id = b.xm_user_id
110
-        left join sys_user as u3 on u3.user_id = b.manager_user_id
111
-        left join sys_user as u4 on u4.user_id = b.zjl_user_id
112
-        left join sys_user as u5 on u5.user_id = b.union_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
102
+        left join sys_user as u2 on u2.user_id = b.manager_user_id
103
+        left join sys_user as u3 on u3.user_id = b.zjl_user_id
104
+        left join sys_user as u4 on u4.user_id = b.union_user_id
105
+        left join sys_user as u5 on u5.user_id = b.cw_user_id
106
+        left join sys_user as u6 on u6.user_id = b.dsz_user_id
115 107
         left join sys_dept as d on d.dept_id = b.apply_dept
116 108
         left join cmc_project as p on b.project_id = p.project_id
117 109
     </sql>
@@ -130,8 +122,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
130 122
             <if test="managerAmount != null "> and b.manager_amount = #{managerAmount}</if>
131 123
             <if test="deptComment != null  and deptComment != ''"> and b.dept_comment = #{deptComment}</if>
132 124
             <if test="deptUserId != null "> and b.dept_user_id = #{deptUserId}</if>
133
-            <if test="xmUserId != null "> and b.xm_user_id = #{xmUserId}</if>
134
-            <if test="xmComment != null  and xmComment != ''"> and b.xm_comment = #{xmComment}</if>
135 125
             <if test="managerComment != null  and managerComment != ''"> and b.manager_comment = #{managerComment}</if>
136 126
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
137 127
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
@@ -143,7 +133,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
143 133
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
144 134
             <if test="cwComment != null  and cwComment != ''"> and b.cw_comment = #{cwComment}</if>
145 135
             <if test="deptTime != null "> and b.dept_time = #{deptTime}</if>
146
-            <if test="xmTime != null "> and b.xm_time = #{xmTime}</if>
147 136
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
148 137
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
149 138
             <if test="dszTime != null "> and b.dsz_time = #{dszTime}</if>
@@ -173,8 +162,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
173 162
             <if test="managerAmount != null">manager_amount,</if>
174 163
             <if test="deptComment != null">dept_comment,</if>
175 164
             <if test="deptUserId != null">dept_user_id,</if>
176
-            <if test="xmUserId != null">xm_user_id,</if>
177
-            <if test="xmComment != null">xm_comment,</if>
178 165
             <if test="managerComment != null">manager_comment,</if>
179 166
             <if test="managerUserId != null">manager_user_id,</if>
180 167
             <if test="zjlUserId != null">zjl_user_id,</if>
@@ -186,7 +173,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
186 173
             <if test="cwUserId != null">cw_user_id,</if>
187 174
             <if test="cwComment != null">cw_comment,</if>
188 175
             <if test="deptTime != null">dept_time,</if>
189
-            <if test="xmTime != null">xm_time,</if>
190 176
             <if test="managerTime != null">manager_time,</if>
191 177
             <if test="zjlTime != null">zjl_time,</if>
192 178
             <if test="dszTime != null">dsz_time,</if>
@@ -208,8 +194,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
208 194
             <if test="managerAmount != null">#{managerAmount},</if>
209 195
             <if test="deptComment != null">#{deptComment},</if>
210 196
             <if test="deptUserId != null">#{deptUserId},</if>
211
-            <if test="xmUserId != null">#{xmUserId},</if>
212
-            <if test="xmComment != null">#{xmComment},</if>
213 197
             <if test="managerComment != null">#{managerComment},</if>
214 198
             <if test="managerUserId != null">#{managerUserId},</if>
215 199
             <if test="zjlUserId != null">#{zjlUserId},</if>
@@ -221,7 +205,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
221 205
             <if test="cwUserId != null">#{cwUserId},</if>
222 206
             <if test="cwComment != null">#{cwComment},</if>
223 207
             <if test="deptTime != null">#{deptTime},</if>
224
-            <if test="xmTime != null">#{xmTime},</if>
225 208
             <if test="managerTime != null">#{managerTime},</if>
226 209
             <if test="zjlTime != null">#{zjlTime},</if>
227 210
             <if test="dszTime != null">#{dszTime},</if>
@@ -246,8 +229,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
246 229
             <if test="managerAmount != null">manager_amount = #{managerAmount},</if>
247 230
             <if test="deptComment != null">dept_comment = #{deptComment},</if>
248 231
             <if test="deptUserId != null">dept_user_id = #{deptUserId},</if>
249
-            <if test="xmUserId != null">xm_user_id = #{xmUserId},</if>
250
-            <if test="xmComment != null">xm_comment = #{xmComment},</if>
251 232
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
252 233
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
253 234
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
@@ -259,7 +240,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
259 240
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
260 241
             <if test="cwComment != null">cw_comment = #{cwComment},</if>
261 242
             <if test="deptTime != null">dept_time = #{deptTime},</if>
262
-            <if test="xmTime != null">xm_time = #{xmTime},</if>
263 243
             <if test="managerTime != null">manager_time = #{managerTime},</if>
264 244
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
265 245
             <if test="dszTime != null">dsz_time = #{dszTime},</if>

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

@@ -25,16 +25,18 @@
25 25
         <result property="directExpense"    column="direct_expense"    />
26 26
         <result property="totalBudget"    column="total_budget"    />
27 27
         <result property="compiler"    column="compiler"    />
28
+        <result property="manager"    column="manager"    />
28 29
         <result property="auditor"    column="auditor"    />
29 30
         <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"    />
31
+        <result property="zjlComment"    column="zjl_comment"    />
32
+        <result property="dszComment"    column="dsz_comment"    />
33
+        <result property="zjlTime"    column="zjl_time"    />
34
+        <result property="dszTime"    column="dsz_time"    />
34 35
         <result property="createTime"    column="create_time"    />
35 36
         <association property="compilerUser"    javaType="SysUser"         resultMap="CompilerResult" />
36
-        <association property="auditorUser"    javaType="SysUser"         resultMap="AuditorResult" />
37
-        <association property="approverUser"    javaType="SysUser"         resultMap="ApproverResult" />
37
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerResult" />
38
+        <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlResult" />
39
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszResult" />
38 40
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
39 41
     </resultMap>
40 42
 
@@ -43,14 +45,19 @@
43 45
         <result property="nickName"    column="compiler_nick_name"    />
44 46
     </resultMap>
45 47
 
46
-    <resultMap type="SysUser" id="AuditorResult">
48
+    <resultMap type="SysUser" id="ManagerResult">
47 49
         <result property="userId"    column="user_id"    />
48
-        <result property="nickName"    column="auditor_nick_name"    />
50
+        <result property="nickName"    column="manager_nick_name"    />
49 51
     </resultMap>
50 52
 
51
-    <resultMap type="SysUser" id="ApproverResult">
53
+    <resultMap type="SysUser" id="ZjlResult">
52 54
         <result property="userId"    column="user_id"    />
53
-        <result property="nickName"    column="approver_nick_name"    />
55
+        <result property="nickName"    column="zjl_nick_name"    />
56
+    </resultMap>
57
+
58
+    <resultMap type="SysUser" id="DszResult">
59
+        <result property="userId"    column="user_id"    />
60
+        <result property="nickName"    column="dsz_nick_name"    />
54 61
     </resultMap>
55 62
 
56 63
     <resultMap type="CmcProject" id="CmcProjectResult">
@@ -62,11 +69,12 @@
62 69
     <sql id="selectCmcBudgetVo">
63 70
         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,
64 71
                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,
65
-               u.nick_name as compiler_nick_name, b.auditor, u1.nick_name as auditor_nick_name, b.approver, u2.nick_name as approver_nick_name, b.create_time, b.audit_time, b.approve_time,
66
-               b.audit_comment, b.approve_comment from cmc_budget as b
72
+               u.nick_name as compiler_nick_name, b.manager, u2.nick_name as manager_nick_name, b.auditor, u3.nick_name as zjl_nick_name, b.approver, u4.nick_name as dsz_nick_name, b.create_time, b.manager_time, b.zjl_time, b.dsz_time,
73
+               b.manager_comment, b.zjl_comment, b.dsz_comment from cmc_budget as b
67 74
             left join sys_user as u on u.user_id = b.compiler
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.approver
75
+            left join sys_user as u1 on u1.user_id = b.manager
76
+            left join sys_user as u2 on u2.user_id = b.auditor
77
+            left join sys_user as u3 on u3.user_id = b.approver
70 78
             left join cmc_project as p on b.project_id = p.project_id
71 79
     </sql>
72 80
 
@@ -119,12 +127,15 @@
119 127
             <if test="directExpense != null">direct_expense,</if>
120 128
             <if test="totalBudget != null">total_budget,</if>
121 129
             <if test="compiler != null">compiler,</if>
130
+            <if test="manager != null">manager,</if>
122 131
             <if test="auditor != null">auditor,</if>
123 132
             <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>
133
+            <if test="managerTime != null">manager_time,</if>
134
+            <if test="zjlTime != null">zjl_time,</if>
135
+            <if test="dszTime != null">dsz_time,</if>
136
+            <if test="managerComment != null">manager_comment,</if>
137
+            <if test="zjlComment != null">zjl_comment,</if>
138
+            <if test="dszComment != null">dsz_comment,</if>
128 139
             create_time
129 140
         </trim>
130 141
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -148,12 +159,15 @@
148 159
             <if test="directExpense != null">#{directExpense},</if>
149 160
             <if test="totalBudget != null">#{totalBudget},</if>
150 161
             <if test="compiler != null">#{compiler},</if>
162
+            <if test="manager != null">#{manager},</if>
151 163
             <if test="auditor != null">#{auditor},</if>
152 164
             <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>
165
+            <if test="managerTime != null">#{managerTime},</if>
166
+            <if test="zjlTime != null">#{zjlTime},</if>
167
+            <if test="dszTime != null">#{dszTime},</if>
168
+            <if test="managerComment != null">#{managerComment},</if>
169
+            <if test="zjlComment != null">#{zjlComment},</if>
170
+            <if test="dszComment != null">#{dszComment},</if>
157 171
             sysdate()
158 172
         </trim>
159 173
     </insert>
@@ -180,12 +194,15 @@
180 194
             <if test="directExpense != null">direct_expense = #{directExpense},</if>
181 195
             <if test="totalBudget != null">total_budget = #{totalBudget},</if>
182 196
             <if test="compiler != null">compiler = #{compiler},</if>
197
+            <if test="manager != null">manager = #{manager},</if>
183 198
             <if test="auditor != null">auditor = #{auditor},</if>
184 199
             <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>
200
+            <if test="managerTime != null">manager_time = #{managerTime},</if>
201
+            <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
202
+            <if test="dszTime != null">dsz_time = #{dszTime},</if>
203
+            <if test="managerComment != null">manager_comment = #{managerComment},</if>
204
+            <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
205
+            <if test="dszComment != null">dsz_comment = #{dszComment},</if>
189 206
             <if test="createTime != null">create_time = #{createTime},</if>
190 207
         </trim>
191 208
         where budget_id = #{budgetId}

+ 25
- 41
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml View File

@@ -20,9 +20,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
20 20
         <result property="xmUserId"    column="xm_user_id"    />
21 21
         <result property="xmTime"    column="xm_time"    />
22 22
         <result property="xmComment"    column="xm_comment"    />
23
-        <result property="deptUserId"    column="dept_user_id"    />
24
-        <result property="deptTime"    column="dept_time"    />
25
-        <result property="deptComment"    column="dept_comment"    />
26 23
         <result property="jyUserId"    column="jy_user_id"    />
27 24
         <result property="jyTime"    column="jy_time"    />
28 25
         <result property="jyComment"    column="jy_comment"    />
@@ -32,6 +29,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
32 29
         <result property="gmUserId"    column="gm_user_id"    />
33 30
         <result property="gmTime"    column="gm_time"    />
34 31
         <result property="gmComment"    column="gm_comment"    />
32
+        <result property="dszUserId"    column="dsz_user_id"    />
33
+        <result property="dszTime"    column="dsz_time"    />
34
+        <result property="dszComment"    column="dsz_comment"    />
35 35
         <result property="settleDocument"    column="settle_document"    />
36 36
         <result property="modifyDocument"    column="modify_document"    />
37 37
         <result property="finalDocument"    column="final_document"    />
@@ -39,10 +39,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
39 39
         <association property="zhUser"    javaType="SysUser"         resultMap="ZhUserResult" />
40 40
         <association property="jsUser"    javaType="SysUser"         resultMap="JsUserResult" />
41 41
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
42
-        <association property="deptUser"    javaType="SysUser"         resultMap="DeptUserResult" />
43 42
         <association property="jyUser"    javaType="SysUser"         resultMap="JyUserResult" />
44 43
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
45 44
         <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
45
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
46 46
     </resultMap>
47 47
 
48 48
     <resultMap type="SysUser" id="ReporterUserResult">
@@ -65,11 +65,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
65 65
         <result property="nickName"    column="xm_nick_name"    />
66 66
     </resultMap>
67 67
 
68
-    <resultMap type="SysUser" id="DeptUserResult">
69
-        <result property="userId"    column="user_id"    />
70
-        <result property="nickName"    column="dept_nick_name"    />
71
-    </resultMap>
72
-
73 68
     <resultMap type="SysUser" id="JyUserResult">
74 69
         <result property="userId"    column="user_id"    />
75 70
         <result property="nickName"    column="jy_nick_name"    />
@@ -85,19 +80,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 80
         <result property="nickName"    column="gm_nick_name"    />
86 81
     </resultMap>
87 82
 
83
+    <resultMap type="SysUser" id="DszUserResult">
84
+        <result property="userId"    column="user_id"    />
85
+        <result property="nickName"    column="dsz_nick_name"    />
86
+    </resultMap>
87
+
88 88
     <sql id="selectCmcSettleVo">
89 89
         select s.settle_id, s.project_id, 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, 
90
-               s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.xm_user_id, u3.nick_name as xm_nick_name, s.xm_time, s.xm_comment, s.dept_user_id,
91
-               u4.nick_name as dept_nick_name, s.dept_time, s.dept_comment, s.jy_user_id, u5.nick_name as jy_nick_name, s.jy_time, s.jy_comment, s.manager_user_id, u6.nick_name as manager_nick_name, 
92
-               s.manager_time, s.manager_comment, s.gm_user_id, u7.nick_name as gm_nick_name, s.gm_time, s.gm_comment, s.settle_document, s.modify_document, s.final_document from cmc_settle as s
90
+               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, 
91
+               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,
92
+               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 from cmc_settle as s
93 93
         left join sys_user as u on u.user_id = s.reporter
94 94
         left join sys_user as u1 on u1.user_id = s.zh_user_id
95 95
         left join sys_user as u2 on u2.user_id = s.js_user_id
96
-        left join sys_user as u3 on u3.user_id = s.xm_user_id
97
-        left join sys_user as u4 on u4.user_id = s.dept_user_id
98
-        left join sys_user as u5 on u5.user_id = s.jy_user_id
99
-        left join sys_user as u6 on u6.user_id = s.manager_user_id
100
-        left join sys_user as u7 on u7.user_id = s.gm_user_id
96
+        left join sys_user as u3 on u3.user_id = s.jy_user_id
97
+        left join sys_user as u4 on u4.user_id = s.manager_user_id
98
+        left join sys_user as u5 on u5.user_id = s.gm_user_id
99
+        left join sys_user as u6 on u6.user_id = s.dsz_user_id
101 100
     </sql>
102 101
 
103 102
     <select id="selectCmcSettleList" parameterType="CmcSettle" resultMap="CmcSettleResult">
@@ -115,12 +114,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
115 114
             <if test="jsUserId != null "> and s.js_user_id = #{jsUserId}</if>
116 115
             <if test="jsTime != null "> and s.js_time = #{jsTime}</if>
117 116
             <if test="jsComment != null  and jsComment != ''"> and s.js_comment = #{jsComment}</if>
118
-            <if test="xmUserId != null "> and s.xm_user_id = #{xmUserId}</if>
119
-            <if test="xmTime != null "> and s.xm_time = #{xmTime}</if>
120
-            <if test="xmComment != null  and xmComment != ''"> and s.xm_comment = #{xmComment}</if>
121
-            <if test="deptUserId != null "> and s.dept_user_id = #{deptUserId}</if>
122
-            <if test="deptTime != null "> and s.dept_time = #{deptTime}</if>
123
-            <if test="deptComment != null  and deptComment != ''"> and s.dept_comment = #{deptComment}</if>
124 117
             <if test="jyUserId != null "> and s.jy_user_id = #{jyUserId}</if>
125 118
             <if test="jyTime != null "> and s.jy_time = #{jyTime}</if>
126 119
             <if test="jyComment != null  and jyComment != ''"> and s.jy_comment = #{jyComment}</if>
@@ -154,12 +147,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
154 147
             <if test="jsUserId != null">js_user_id,</if>
155 148
             <if test="jsTime != null">js_time,</if>
156 149
             <if test="jsComment != null">js_comment,</if>
157
-            <if test="xmUserId != null">xm_user_id,</if>
158
-            <if test="xmTime != null">xm_time,</if>
159
-            <if test="xmComment != null">xm_comment,</if>
160
-            <if test="deptUserId != null">dept_user_id,</if>
161
-            <if test="deptTime != null">dept_time,</if>
162
-            <if test="deptComment != null">dept_comment,</if>
163 150
             <if test="jyUserId != null">jy_user_id,</if>
164 151
             <if test="jyTime != null">jy_time,</if>
165 152
             <if test="jyComment != null">jy_comment,</if>
@@ -169,6 +156,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
169 156
             <if test="gmUserId != null">gm_user_id,</if>
170 157
             <if test="gmTime != null">gm_time,</if>
171 158
             <if test="gmComment != null">gm_comment,</if>
159
+            <if test="dszUserId != null">dsz_user_id,</if>
160
+            <if test="dszTime != null">dsz_time,</if>
161
+            <if test="dszComment != null">dsz_comment,</if>
172 162
             <if test="settleDocument != null">settle_document,</if>
173 163
             <if test="modifyDocument != null">modify_document,</if>
174 164
             <if test="finalDocument != null">final_document,</if>
@@ -186,12 +176,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
186 176
             <if test="jsUserId != null">#{jsUserId},</if>
187 177
             <if test="jsTime != null">#{jsTime},</if>
188 178
             <if test="jsComment != null">#{jsComment},</if>
189
-            <if test="xmUserId != null">#{xmUserId},</if>
190
-            <if test="xmTime != null">#{xmTime},</if>
191
-            <if test="xmComment != null">#{xmComment},</if>
192
-            <if test="deptUserId != null">#{deptUserId},</if>
193
-            <if test="deptTime != null">#{deptTime},</if>
194
-            <if test="deptComment != null">#{deptComment},</if>
195 179
             <if test="jyUserId != null">#{jyUserId},</if>
196 180
             <if test="jyTime != null">#{jyTime},</if>
197 181
             <if test="jyComment != null">#{jyComment},</if>
@@ -201,6 +185,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
201 185
             <if test="gmUserId != null">#{gmUserId},</if>
202 186
             <if test="gmTime != null">#{gmTime},</if>
203 187
             <if test="gmComment != null">#{gmComment},</if>
188
+            <if test="dszUserId != null">#{dszUserId},</if>
189
+            <if test="dszTime != null">#{dszTime},</if>
190
+            <if test="dszComment != null">#{dszComment},</if>
204 191
             <if test="settleDocument != null">#{settleDocument},</if>
205 192
             <if test="modifyDocument != null">#{modifyDocument},</if>
206 193
             <if test="finalDocument != null">#{finalDocument},</if>
@@ -221,12 +208,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
221 208
             <if test="jsUserId != null">js_user_id = #{jsUserId},</if>
222 209
             <if test="jsTime != null">js_time = #{jsTime},</if>
223 210
             <if test="jsComment != null">js_comment = #{jsComment},</if>
224
-            <if test="xmUserId != null">xm_user_id = #{xmUserId},</if>
225
-            <if test="xmTime != null">xm_time = #{xmTime},</if>
226
-            <if test="xmComment != null">xm_comment = #{xmComment},</if>
227
-            <if test="deptUserId != null">dept_user_id = #{deptUserId},</if>
228
-            <if test="deptTime != null">dept_time = #{deptTime},</if>
229
-            <if test="deptComment != null">dept_comment = #{deptComment},</if>
230 211
             <if test="jyUserId != null">jy_user_id = #{jyUserId},</if>
231 212
             <if test="jyTime != null">jy_time = #{jyTime},</if>
232 213
             <if test="jyComment != null">jy_comment = #{jyComment},</if>
@@ -236,6 +217,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
236 217
             <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
237 218
             <if test="gmTime != null">gm_time = #{gmTime},</if>
238 219
             <if test="gmComment != null">gm_comment = #{gmComment},</if>
220
+            <if test="dszUserId != null">dsz_user_id = #{dszUserId},</if>
221
+            <if test="dszTime != null">dsz_time = #{dszTime},</if>
222
+            <if test="dszComment != null">dsz_comment = #{dszComment},</if>
239 223
             <if test="settleDocument != null">settle_document = #{settleDocument},</if>
240 224
             <if test="modifyDocument != null">modify_document = #{modifyDocument},</if>
241 225
             <if test="finalDocument != null">final_document = #{finalDocument},</if>

+ 14
- 18
oa-back/sql/sql.sql
File diff suppressed because it is too large
View File


+ 5
- 2
oa-ui/src/views/flowable/form/settleForm.vue View File

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-30 09:03:14
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-09 17:01:08
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-10 17:20:43
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container" v-loading="loading">
@@ -955,6 +955,9 @@ export default {
955 955
         work.remark = '不足600,按600算'
956 956
         sum = 600
957 957
       }
958
+      else {
959
+        work.remark = ''
960
+      }
958 961
       work.settle = Number(sum).toFixed(2);
959 962
       this.calculateSumSettle();
960 963
       this.calculateActualSumSettle();

+ 7
- 6
oa-ui/src/views/oa/project/index.vue View File

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-27 14:49:15
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-07-09 15:26:58
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-07-10 15:09:11
6 6
 -->
7 7
 <template>
8 8
   <div class="project-wrapper">
@@ -244,7 +244,8 @@ import { listProjectProgress, getProjectProgress } from "@/api/oa/project/projec
244 244
 import { listDept } from '@/api/system/dept';
245 245
 import { listUser, getUser } from '@/api/system/user';
246 246
 import { mapGetters } from 'vuex';
247
-import { getIsDeptLeader } from '@/api/system/post.js'
247
+import { checkPermi } from '@/utils/permission';
248
+
248 249
 export default {
249 250
   computed: {
250 251
     ...mapGetters(['deptId', 'userId'])
@@ -297,9 +298,9 @@ export default {
297 298
     // 查询项目列表
298 299
     async getList() {
299 300
       this.loading = true
300
-      if (this.deptId > 107) {
301
-        let response = await getIsDeptLeader({ deptId: this.deptId })
302
-        if (response.data == false) {
301
+      if (this.deptId > 107 && this.deptId != 109) {
302
+        let response = await checkPermi(['oa:allproject:query'])
303
+        if (response == false) {
303 304
           this.queryParams.undertakingDept = this.deptId
304 305
         }
305 306
       }

Loading…
Cancel
Save