Pārlūkot izejas kodu

党工团借款

lamphua 1 gadu atpakaļ
vecāks
revīzija
4fcfd471e2

+ 4
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBorrowController.java Parādīt failu

100
             cmcBorrow.setZjlUserId(getLoginUser().getUserId());
100
             cmcBorrow.setZjlUserId(getLoginUser().getUserId());
101
             cmcBorrow.setZjlTime(new Date());
101
             cmcBorrow.setZjlTime(new Date());
102
         }
102
         }
103
+        if (cmcBorrow.getUnionComment() != null && cmcBorrow.getCwComment() == null) {
104
+            cmcBorrow.setUnionUserId(getLoginUser().getUserId());
105
+            cmcBorrow.setUnionTime(new Date());
106
+        }
103
         if (cmcBorrow.getLendTime() != null) {
107
         if (cmcBorrow.getLendTime() != null) {
104
             cmcBorrow.setCwUserId(getLoginUser().getUserId());
108
             cmcBorrow.setCwUserId(getLoginUser().getUserId());
105
         }
109
         }

+ 56
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrow.java Parādīt failu

57
 
57
 
58
     private SysUser zjlUser;
58
     private SysUser zjlUser;
59
 
59
 
60
+    private SysUser unionUser;
61
+
60
     private SysUser cwUser;
62
     private SysUser cwUser;
61
 
63
 
62
     /** 借款日期 */
64
     /** 借款日期 */
104
     @Excel(name = "总经理审批意见")
106
     @Excel(name = "总经理审批意见")
105
     private String zjlComment;
107
     private String zjlComment;
106
 
108
 
109
+    /** 工会审批人 */
110
+    @Excel(name = "工会审批人")
111
+    private Long unionUserId;
112
+
113
+    /** 工会审批意见 */
114
+    @Excel(name = "工会审批意见")
115
+    private String unionComment;
116
+
107
     /** 财务部经办人 */
117
     /** 财务部经办人 */
108
     @Excel(name = "财务部经办人")
118
     @Excel(name = "财务部经办人")
109
     private Long cwUserId;
119
     private Long cwUserId;
132
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
142
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
133
     private Date zjlTime;
143
     private Date zjlTime;
134
 
144
 
145
+    /** 工会审批时间 */
146
+    @JsonFormat(pattern = "yyyy-MM-dd")
147
+    @Excel(name = "工会审批时间", width = 30, dateFormat = "yyyy-MM-dd")
148
+    private Date unionTime;
149
+
135
     /** 借款支付时间 */
150
     /** 借款支付时间 */
136
     @JsonFormat(pattern = "yyyy-MM-dd")
151
     @JsonFormat(pattern = "yyyy-MM-dd")
137
     @Excel(name = "借款支付时间", width = 30, dateFormat = "yyyy-MM-dd")
152
     @Excel(name = "借款支付时间", width = 30, dateFormat = "yyyy-MM-dd")
254
     {
269
     {
255
         return zjlUser;
270
         return zjlUser;
256
     }
271
     }
272
+    public void setUnionUser(SysUser unionUser)
273
+    {
274
+        this.unionUser = unionUser;
275
+    }
276
+
277
+    public SysUser getUnionUser()
278
+    {
279
+        return unionUser;
280
+    }
257
     public void setCwUser(SysUser cwUser)
281
     public void setCwUser(SysUser cwUser)
258
     {
282
     {
259
         this.cwUser = cwUser;
283
         this.cwUser = cwUser;
362
     {
386
     {
363
         return zjlComment;
387
         return zjlComment;
364
     }
388
     }
389
+    public void setUnionUserId(Long unionUserId)
390
+    {
391
+        this.unionUserId = unionUserId;
392
+    }
393
+
394
+    public Long getUnionUserId()
395
+    {
396
+        return unionUserId;
397
+    }
398
+    public void setUnionComment(String unionComment)
399
+    {
400
+        this.unionComment = unionComment;
401
+    }
402
+
403
+    public String getUnionComment()
404
+    {
405
+        return unionComment;
406
+    }
365
     public void setCwUserId(Long cwUserId) 
407
     public void setCwUserId(Long cwUserId) 
366
     {
408
     {
367
         this.cwUserId = cwUserId;
409
         this.cwUserId = cwUserId;
416
     {
458
     {
417
         return zjlTime;
459
         return zjlTime;
418
     }
460
     }
419
-    public void setLendTime(Date lendTime) 
461
+    public void setUnionTime(Date unionTime)
462
+    {
463
+        this.unionTime = unionTime;
464
+    }
465
+
466
+    public Date getUnionTime()
467
+    {
468
+        return unionTime;
469
+    }
470
+    public void setLendTime(Date lendTime)
420
     {
471
     {
421
         this.lendTime = lendTime;
472
         this.lendTime = lendTime;
422
     }
473
     }
423
 
474
 
424
-    public Date getLendTime() 
475
+    public Date getLendTime()
425
     {
476
     {
426
         return lendTime;
477
         return lendTime;
427
     }
478
     }
445
             .append("managerUserId", getManagerUserId())
496
             .append("managerUserId", getManagerUserId())
446
             .append("zjlUserId", getZjlUserId())
497
             .append("zjlUserId", getZjlUserId())
447
             .append("zjlComment", getZjlComment())
498
             .append("zjlComment", getZjlComment())
499
+            .append("unionUserId", getUnionUserId())
500
+            .append("unionComment", getUnionComment())
448
             .append("cwUserId", getCwUserId())
501
             .append("cwUserId", getCwUserId())
449
             .append("cwComment", getCwComment())
502
             .append("cwComment", getCwComment())
450
             .append("deptTime", getDeptTime())
503
             .append("deptTime", getDeptTime())
451
             .append("xmTime", getXmTime())
504
             .append("xmTime", getXmTime())
452
             .append("managerTime", getManagerTime())
505
             .append("managerTime", getManagerTime())
453
             .append("zjlTime", getZjlTime())
506
             .append("zjlTime", getZjlTime())
507
+            .append("unionTime", getUnionTime())
454
             .append("lendTime", getLendTime())
508
             .append("lendTime", getLendTime())
455
             .toString();
509
             .toString();
456
     }
510
     }

+ 0
- 13
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java Parādīt failu

25
     @Excel(name = "合同id")
25
     @Excel(name = "合同id")
26
     private String contractId;
26
     private String contractId;
27
 
27
 
28
-    /** 分包合同id */
29
-    @Excel(name = "分包合同id")
30
-    private String subContractId;
31
-
32
     /** 会审部门 */
28
     /** 会审部门 */
33
     @Excel(name = "会审部门")
29
     @Excel(name = "会审部门")
34
     private Long deptId;
30
     private Long deptId;
70
     {
66
     {
71
         return contractId;
67
         return contractId;
72
     }
68
     }
73
-    public void setSubContractId(String subContractId)
74
-    {
75
-        this.subContractId = subContractId;
76
-    }
77
-
78
-    public String getSubContractId()
79
-    {
80
-        return subContractId;
81
-    }
82
     public void setDeptId(Long deptId)
69
     public void setDeptId(Long deptId)
83
     {
70
     {
84
         this.deptId = deptId;
71
         this.deptId = deptId;

+ 0
- 13
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java Parādīt failu

24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31
     /** 评审时间 */
27
     /** 评审时间 */
32
     @JsonFormat(pattern = "yyyy-MM-dd")
28
     @JsonFormat(pattern = "yyyy-MM-dd")
33
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
29
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
76
     {
72
     {
77
         return contractId;
73
         return contractId;
78
     }
74
     }
79
-    public void setSubContractId(String subContractId)
80
-    {
81
-        this.subContractId = subContractId;
82
-    }
83
-
84
-    public String getSubContractId()
85
-    {
86
-        return subContractId;
87
-    }
88
     public void setMeetingTime(Date meetingTime)
75
     public void setMeetingTime(Date meetingTime)
89
     {
76
     {
90
         this.meetingTime = meetingTime;
77
         this.meetingTime = meetingTime;

+ 0
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java Parādīt failu

24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31
     /** 回款条件 */
27
     /** 回款条件 */
32
     @Excel(name = "回款条件")
28
     @Excel(name = "回款条件")
33
     private String paymentCondition;
29
     private String paymentCondition;
63
     {
59
     {
64
         return contractId;
60
         return contractId;
65
     }
61
     }
66
-    public void setSubContractId(String subContractId) 
67
-    {
68
-        this.subContractId = subContractId;
69
-    }
70
-
71
-    public String getSubContractId() 
72
-    {
73
-        return subContractId;
74
-    }
75
     public void setPaymentCondition(String paymentCondition) 
62
     public void setPaymentCondition(String paymentCondition) 
76
     {
63
     {
77
         this.paymentCondition = paymentCondition;
64
         this.paymentCondition = paymentCondition;
114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
101
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115
             .append("paymentId", getPaymentId())
102
             .append("paymentId", getPaymentId())
116
             .append("contractId", getContractId())
103
             .append("contractId", getContractId())
117
-            .append("subContractId", getSubContractId())
118
             .append("paymentCondition", getPaymentCondition())
104
             .append("paymentCondition", getPaymentCondition())
119
             .append("paymentPercentage", getPaymentPercentage())
105
             .append("paymentPercentage", getPaymentPercentage())
120
             .append("paymentAmount", getPaymentAmount())
106
             .append("paymentAmount", getPaymentAmount())

+ 0
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java Parādīt failu

24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31
     /** 工作内容 */
27
     /** 工作内容 */
32
     @Excel(name = "工作内容")
28
     @Excel(name = "工作内容")
33
     private String content;
29
     private String content;
67
     {
63
     {
68
         return contractId;
64
         return contractId;
69
     }
65
     }
70
-    public void setSubContractId(String subContractId) 
71
-    {
72
-        this.subContractId = subContractId;
73
-    }
74
-
75
-    public String getSubContractId() 
76
-    {
77
-        return subContractId;
78
-    }
79
     public void setContent(String content) 
66
     public void setContent(String content) 
80
     {
67
     {
81
         this.content = content;
68
         this.content = content;
127
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
128
             .append("workId", getWorkId())
115
             .append("workId", getWorkId())
129
             .append("contractId", getContractId())
116
             .append("contractId", getContractId())
130
-            .append("subContractId", getSubContractId())
131
             .append("content", getContent())
117
             .append("content", getContent())
132
             .append("scale", getScale())
118
             .append("scale", getScale())
133
             .append("unit", getUnit())
119
             .append("unit", getUnit())

+ 25
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml Parādīt failu

23
         <result property="managerUserId"    column="manager_user_id"    />
23
         <result property="managerUserId"    column="manager_user_id"    />
24
         <result property="zjlUserId"    column="zjl_user_id"    />
24
         <result property="zjlUserId"    column="zjl_user_id"    />
25
         <result property="zjlComment"    column="zjl_comment"    />
25
         <result property="zjlComment"    column="zjl_comment"    />
26
+        <result property="unionUserId"    column="union_user_id"    />
27
+        <result property="unionComment"    column="union_comment"    />
26
         <result property="cwUserId"    column="cw_user_id"    />
28
         <result property="cwUserId"    column="cw_user_id"    />
27
         <result property="cwComment"    column="cw_comment"    />
29
         <result property="cwComment"    column="cw_comment"    />
28
         <result property="deptTime"    column="dept_time"    />
30
         <result property="deptTime"    column="dept_time"    />
30
         <result property="managerTime"    column="manager_time"    />
32
         <result property="managerTime"    column="manager_time"    />
31
         <result property="zjlTime"    column="zjl_time"    />
33
         <result property="zjlTime"    column="zjl_time"    />
32
         <result property="lendTime"    column="lend_time"    />
34
         <result property="lendTime"    column="lend_time"    />
35
+        <result property="unionTime"    column="union_time"    />
33
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
36
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
34
         <association property="deptUser"    javaType="SysUser"         resultMap="DeptUserResult" />
37
         <association property="deptUser"    javaType="SysUser"         resultMap="DeptUserResult" />
35
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
38
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
36
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
39
         <association property="xmUser"    javaType="SysUser"         resultMap="XmUserResult" />
37
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
40
         <association property="zjlUser"    javaType="SysUser"         resultMap="ZjlUserResult" />
41
+        <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
38
         <association property="cwUser"    javaType="SysUser"         resultMap="CwUserResult" />
42
         <association property="cwUser"    javaType="SysUser"         resultMap="CwUserResult" />
39
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
43
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
40
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
44
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
65
         <result property="nickName"    column="zjl_nick_name"    />
69
         <result property="nickName"    column="zjl_nick_name"    />
66
     </resultMap>
70
     </resultMap>
67
 
71
 
72
+    <resultMap type="SysUser" id="UnionUserResult">
73
+        <result property="userId"    column="user_id"    />
74
+        <result property="nickName"    column="union_nick_name"    />
75
+    </resultMap>
76
+
68
     <resultMap type="SysUser" id="CwUserResult">
77
     <resultMap type="SysUser" id="CwUserResult">
69
         <result property="userId"    column="user_id"    />
78
         <result property="userId"    column="user_id"    />
70
         <result property="nickName"    column="cw_nick_name"    />
79
         <result property="nickName"    column="cw_nick_name"    />
84
     <sql id="selectCmcBorrowVo">
93
     <sql id="selectCmcBorrowVo">
85
         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,
94
         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,
86
                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,
95
                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,
87
-               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.cw_user_id, u5.nick_name as cw_nick_name,
88
-               b.cw_comment, b.dept_time, b.xm_time, b.manager_time, b.zjl_time, b.lend_time from cmc_borrow as b
96
+               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,
97
+               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.union_time from cmc_borrow as b
89
         left join sys_user as u on u.user_id = b.applier
98
         left join sys_user as u on u.user_id = b.applier
90
         left join sys_user as u1 on u1.user_id = b.dept_user_id
99
         left join sys_user as u1 on u1.user_id = b.dept_user_id
91
         left join sys_user as u2 on u2.user_id = b.xm_user_id
100
         left join sys_user as u2 on u2.user_id = b.xm_user_id
92
         left join sys_user as u3 on u3.user_id = b.manager_user_id
101
         left join sys_user as u3 on u3.user_id = b.manager_user_id
93
         left join sys_user as u4 on u4.user_id = b.zjl_user_id
102
         left join sys_user as u4 on u4.user_id = b.zjl_user_id
94
-        left join sys_user as u5 on u5.user_id = b.cw_user_id
103
+        left join sys_user as u5 on u5.user_id = b.union_user_id
104
+        left join sys_user as u6 on u6.user_id = b.cw_user_id
95
         left join sys_dept as d on d.dept_id = b.apply_dept
105
         left join sys_dept as d on d.dept_id = b.apply_dept
96
         left join cmc_project as p on b.project_id = p.project_id
106
         left join cmc_project as p on b.project_id = p.project_id
97
     </sql>
107
     </sql>
116
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
126
             <if test="managerUserId != null "> and b.manager_user_id = #{managerUserId}</if>
117
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
127
             <if test="zjlUserId != null "> and b.zjl_user_id = #{zjlUserId}</if>
118
             <if test="zjlComment != null  and zjlComment != ''"> and b.zjl_comment = #{zjlComment}</if>
128
             <if test="zjlComment != null  and zjlComment != ''"> and b.zjl_comment = #{zjlComment}</if>
129
+            <if test="unionUserId != null "> and b.union_user_id = #{unionUserId}</if>
130
+            <if test="unionComment != null  and unionComment != ''"> and b.union_comment = #{unionComment}</if>
119
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
131
             <if test="cwUserId != null "> and b.cw_user_id = #{cwUserId}</if>
120
             <if test="cwComment != null  and cwComment != ''"> and b.cw_comment = #{cwComment}</if>
132
             <if test="cwComment != null  and cwComment != ''"> and b.cw_comment = #{cwComment}</if>
121
             <if test="deptTime != null "> and b.dept_time = #{deptTime}</if>
133
             <if test="deptTime != null "> and b.dept_time = #{deptTime}</if>
123
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
135
             <if test="managerTime != null "> and b.manager_time = #{managerTime}</if>
124
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
136
             <if test="zjlTime != null "> and b.zjl_time = #{zjlTime}</if>
125
             <if test="lendTime != null "> and b.lend_time = #{lendTime}</if>
137
             <if test="lendTime != null "> and b.lend_time = #{lendTime}</if>
138
+            <if test="unionTime != null "> and b.union_time = #{unionTime}</if>
126
         </where>
139
         </where>
127
     </select>
140
     </select>
128
     
141
     
152
             <if test="managerUserId != null">manager_user_id,</if>
165
             <if test="managerUserId != null">manager_user_id,</if>
153
             <if test="zjlUserId != null">zjl_user_id,</if>
166
             <if test="zjlUserId != null">zjl_user_id,</if>
154
             <if test="zjlComment != null">zjl_comment,</if>
167
             <if test="zjlComment != null">zjl_comment,</if>
168
+            <if test="unionUserId != null">union_user_id,</if>
169
+            <if test="unionComment != null">union_comment,</if>
155
             <if test="cwUserId != null">cw_user_id,</if>
170
             <if test="cwUserId != null">cw_user_id,</if>
156
             <if test="cwComment != null">cw_comment,</if>
171
             <if test="cwComment != null">cw_comment,</if>
157
             <if test="deptTime != null">dept_time,</if>
172
             <if test="deptTime != null">dept_time,</if>
159
             <if test="managerTime != null">manager_time,</if>
174
             <if test="managerTime != null">manager_time,</if>
160
             <if test="zjlTime != null">zjl_time,</if>
175
             <if test="zjlTime != null">zjl_time,</if>
161
             <if test="lendTime != null">lend_time,</if>
176
             <if test="lendTime != null">lend_time,</if>
177
+            <if test="unionTime != null">union_time,</if>
162
          </trim>
178
          </trim>
163
         <trim prefix="values (" suffix=")" suffixOverrides=",">
179
         <trim prefix="values (" suffix=")" suffixOverrides=",">
164
             <if test="borrowId != null">#{borrowId},</if>
180
             <if test="borrowId != null">#{borrowId},</if>
179
             <if test="managerUserId != null">#{managerUserId},</if>
195
             <if test="managerUserId != null">#{managerUserId},</if>
180
             <if test="zjlUserId != null">#{zjlUserId},</if>
196
             <if test="zjlUserId != null">#{zjlUserId},</if>
181
             <if test="zjlComment != null">#{zjlComment},</if>
197
             <if test="zjlComment != null">#{zjlComment},</if>
198
+            <if test="unionUserId != null">#{unionUserId},</if>
199
+            <if test="unionComment != null">#{unionComment},</if>
182
             <if test="cwUserId != null">#{cwUserId},</if>
200
             <if test="cwUserId != null">#{cwUserId},</if>
183
             <if test="cwComment != null">#{cwComment},</if>
201
             <if test="cwComment != null">#{cwComment},</if>
184
             <if test="deptTime != null">#{deptTime},</if>
202
             <if test="deptTime != null">#{deptTime},</if>
185
             <if test="xmTime != null">#{xmTime},</if>
203
             <if test="xmTime != null">#{xmTime},</if>
186
             <if test="managerTime != null">#{managerTime},</if>
204
             <if test="managerTime != null">#{managerTime},</if>
187
             <if test="zjlTime != null">#{zjlTime},</if>
205
             <if test="zjlTime != null">#{zjlTime},</if>
206
+            <if test="unionTime != null">#{unionTime},</if>
188
             <if test="lendTime != null">#{lendTime},</if>
207
             <if test="lendTime != null">#{lendTime},</if>
189
          </trim>
208
          </trim>
190
     </insert>
209
     </insert>
209
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
228
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
210
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
229
             <if test="zjlUserId != null">zjl_user_id = #{zjlUserId},</if>
211
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
230
             <if test="zjlComment != null">zjl_comment = #{zjlComment},</if>
231
+            <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
232
+            <if test="unionComment != null">zjl_comment = #{unionComment},</if>
212
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
233
             <if test="cwUserId != null">cw_user_id = #{cwUserId},</if>
213
             <if test="cwComment != null">cw_comment = #{cwComment},</if>
234
             <if test="cwComment != null">cw_comment = #{cwComment},</if>
214
             <if test="deptTime != null">dept_time = #{deptTime},</if>
235
             <if test="deptTime != null">dept_time = #{deptTime},</if>
215
             <if test="xmTime != null">xm_time = #{xmTime},</if>
236
             <if test="xmTime != null">xm_time = #{xmTime},</if>
216
             <if test="managerTime != null">manager_time = #{managerTime},</if>
237
             <if test="managerTime != null">manager_time = #{managerTime},</if>
217
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
238
             <if test="zjlTime != null">zjl_time = #{zjlTime},</if>
239
+            <if test="unionTime != null">union_time = #{unionTime},</if>
218
             <if test="lendTime != null">lend_time = #{lendTime},</if>
240
             <if test="lendTime != null">lend_time = #{lendTime},</if>
219
         </trim>
241
         </trim>
220
         where borrow_id = #{borrowId}
242
         where borrow_id = #{borrowId}

+ 1
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml Parādīt failu

7
     <resultMap type="CmcContractComment" id="CmcContractCommentResult">
7
     <resultMap type="CmcContractComment" id="CmcContractCommentResult">
8
         <result property="commentId"    column="comment_id"    />
8
         <result property="commentId"    column="comment_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
-        <result property="subContractId"    column="sub_contract_id"    />
11
         <result property="deptId"    column="dept_id"    />
10
         <result property="deptId"    column="dept_id"    />
12
         <result property="userId"    column="user_id"    />
11
         <result property="userId"    column="user_id"    />
13
         <result property="comment"    column="comment"    />
12
         <result property="comment"    column="comment"    />
22
     </resultMap>
21
     </resultMap>
23
 
22
 
24
     <sql id="selectCmcContractCommentVo">
23
     <sql id="selectCmcContractCommentVo">
25
-        select cc.comment_id, cc.contract_id, cc.sub_contract_id, cc.dept_id, cc.user_id, u.nick_name, cc.comment, cc.document, cc.comment_time from cmc_contract_comment as cc
24
+        select cc.comment_id, cc.contract_id, cc.dept_id, cc.user_id, u.nick_name, cc.comment, cc.document, cc.comment_time from cmc_contract_comment as cc
26
         left join sys_user as u on u.user_id = cc.user_id
25
         left join sys_user as u on u.user_id = cc.user_id
27
     </sql>
26
     </sql>
28
 
27
 
48
         <trim prefix="(" suffix=")" suffixOverrides=",">
47
         <trim prefix="(" suffix=")" suffixOverrides=",">
49
             <if test="commentId != null">comment_id,</if>
48
             <if test="commentId != null">comment_id,</if>
50
             <if test="contractId != null">contract_id,</if>
49
             <if test="contractId != null">contract_id,</if>
51
-            <if test="subContractId != null">sub_contract_id,</if>
52
             <if test="deptId != null">dept_id,</if>
50
             <if test="deptId != null">dept_id,</if>
53
             <if test="userId != null">user_id,</if>
51
             <if test="userId != null">user_id,</if>
54
             <if test="comment != null">comment,</if>
52
             <if test="comment != null">comment,</if>
58
         <trim prefix="values (" suffix=")" suffixOverrides=",">
56
         <trim prefix="values (" suffix=")" suffixOverrides=",">
59
             <if test="commentId != null">#{commentId},</if>
57
             <if test="commentId != null">#{commentId},</if>
60
             <if test="contractId != null">#{contractId},</if>
58
             <if test="contractId != null">#{contractId},</if>
61
-            <if test="subContractId != null">#{subContractId},</if>
62
             <if test="deptId != null">#{deptId},</if>
59
             <if test="deptId != null">#{deptId},</if>
63
             <if test="userId != null">#{userId},</if>
60
             <if test="userId != null">#{userId},</if>
64
             <if test="comment != null">#{comment},</if>
61
             <if test="comment != null">#{comment},</if>
71
         update cmc_contract_comment
68
         update cmc_contract_comment
72
         <trim prefix="SET" suffixOverrides=",">
69
         <trim prefix="SET" suffixOverrides=",">
73
             <if test="contractId != null">contract_id = #{contractId},</if>
70
             <if test="contractId != null">contract_id = #{contractId},</if>
74
-            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
75
             <if test="deptId != null">dept_id = #{deptId},</if>
71
             <if test="deptId != null">dept_id = #{deptId},</if>
76
             <if test="userId != null">user_id = #{userId},</if>
72
             <if test="userId != null">user_id = #{userId},</if>
77
             <if test="comment != null">comment = #{comment},</if>
73
             <if test="comment != null">comment = #{comment},</if>

+ 1
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml Parādīt failu

7
     <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
7
     <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
8
         <result property="meetingId"    column="meeting_id"    />
8
         <result property="meetingId"    column="meeting_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
-        <result property="subContractId"    column="sub_contract_id"    />
11
         <result property="meetingTime"    column="meeting_time"    />
10
         <result property="meetingTime"    column="meeting_time"    />
12
         <result property="hostId"    column="host_id"    />
11
         <result property="hostId"    column="host_id"    />
13
         <result property="place"    column="place"    />
12
         <result property="place"    column="place"    />
18
     </resultMap>
17
     </resultMap>
19
 
18
 
20
     <sql id="selectCmcContractMeetingVo">
19
     <sql id="selectCmcContractMeetingVo">
21
-        select meeting_id, contract_id, sub_contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
20
+        select meeting_id, contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
22
     </sql>
21
     </sql>
23
 
22
 
24
     <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
23
     <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
45
         <trim prefix="(" suffix=")" suffixOverrides=",">
44
         <trim prefix="(" suffix=")" suffixOverrides=",">
46
             <if test="meetingId != null">meeting_id,</if>
45
             <if test="meetingId != null">meeting_id,</if>
47
             <if test="contractId != null">contract_id,</if>
46
             <if test="contractId != null">contract_id,</if>
48
-            <if test="subContractId != null">sub_contract_id,</if>
49
             <if test="meetingTime != null">meeting_time,</if>
47
             <if test="meetingTime != null">meeting_time,</if>
50
             <if test="hostId != null">host_id,</if>
48
             <if test="hostId != null">host_id,</if>
51
             <if test="place != null">place,</if>
49
             <if test="place != null">place,</if>
57
         <trim prefix="values (" suffix=")" suffixOverrides=",">
55
         <trim prefix="values (" suffix=")" suffixOverrides=",">
58
             <if test="meetingId != null">#{meetingId},</if>
56
             <if test="meetingId != null">#{meetingId},</if>
59
             <if test="contractId != null">#{contractId},</if>
57
             <if test="contractId != null">#{contractId},</if>
60
-            <if test="subContractId != null">#{subContractId},</if>
61
             <if test="meetingTime != null">#{meetingTime},</if>
58
             <if test="meetingTime != null">#{meetingTime},</if>
62
             <if test="hostId != null">#{hostId},</if>
59
             <if test="hostId != null">#{hostId},</if>
63
             <if test="place != null">#{place},</if>
60
             <if test="place != null">#{place},</if>
72
         update cmc_contract_meeting
69
         update cmc_contract_meeting
73
         <trim prefix="SET" suffixOverrides=",">
70
         <trim prefix="SET" suffixOverrides=",">
74
             <if test="contractId != null">contract_id = #{contractId},</if>
71
             <if test="contractId != null">contract_id = #{contractId},</if>
75
-            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
76
             <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
72
             <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
77
             <if test="hostId != null">host_id = #{hostId},</if>
73
             <if test="hostId != null">host_id = #{hostId},</if>
78
             <if test="place != null">place = #{place},</if>
74
             <if test="place != null">place = #{place},</if>

+ 1
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml Parādīt failu

7
     <resultMap type="CmcContractPayment" id="CmcContractPaymentResult">
7
     <resultMap type="CmcContractPayment" id="CmcContractPaymentResult">
8
         <result property="paymentId"    column="payment_id"    />
8
         <result property="paymentId"    column="payment_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
-        <result property="subContractId"    column="sub_contract_id"    />
11
         <result property="paymentCondition"    column="payment_condition"    />
10
         <result property="paymentCondition"    column="payment_condition"    />
12
         <result property="paymentPercentage"    column="payment_percentage"    />
11
         <result property="paymentPercentage"    column="payment_percentage"    />
13
         <result property="paymentAmount"    column="payment_amount"    />
12
         <result property="paymentAmount"    column="payment_amount"    />
16
     </resultMap>
15
     </resultMap>
17
 
16
 
18
     <sql id="selectCmcContractPaymentVo">
17
     <sql id="selectCmcContractPaymentVo">
19
-        select payment_id, contract_id, sub_contract_id, payment_condition, payment_percentage, payment_amount, payment_time, remark from cmc_contract_payment
18
+        select payment_id, contract_id, payment_condition, payment_percentage, payment_amount, payment_time, remark from cmc_contract_payment
20
     </sql>
19
     </sql>
21
 
20
 
22
     <select id="selectCmcContractPaymentList" parameterType="CmcContractPayment" resultMap="CmcContractPaymentResult">
21
     <select id="selectCmcContractPaymentList" parameterType="CmcContractPayment" resultMap="CmcContractPaymentResult">
23
         <include refid="selectCmcContractPaymentVo"/>
22
         <include refid="selectCmcContractPaymentVo"/>
24
         <where>  
23
         <where>  
25
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
24
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
26
-            <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
27
             <if test="paymentCondition != null  and paymentCondition != ''"> and payment_condition = #{paymentCondition}</if>
25
             <if test="paymentCondition != null  and paymentCondition != ''"> and payment_condition = #{paymentCondition}</if>
28
             <if test="paymentPercentage != null  and paymentPercentage != ''"> and payment_percentage = #{paymentPercentage}</if>
26
             <if test="paymentPercentage != null  and paymentPercentage != ''"> and payment_percentage = #{paymentPercentage}</if>
29
             <if test="paymentAmount != null  and paymentAmount != ''"> and payment_amount = #{paymentAmount}</if>
27
             <if test="paymentAmount != null  and paymentAmount != ''"> and payment_amount = #{paymentAmount}</if>
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
39
         <trim prefix="(" suffix=")" suffixOverrides=",">
42
             <if test="paymentId != null">payment_id,</if>
40
             <if test="paymentId != null">payment_id,</if>
43
             <if test="contractId != null">contract_id,</if>
41
             <if test="contractId != null">contract_id,</if>
44
-            <if test="subContractId != null">sub_contract_id,</if>
45
             <if test="paymentCondition != null">payment_condition,</if>
42
             <if test="paymentCondition != null">payment_condition,</if>
46
             <if test="paymentPercentage != null">payment_percentage,</if>
43
             <if test="paymentPercentage != null">payment_percentage,</if>
47
             <if test="paymentAmount != null">payment_amount,</if>
44
             <if test="paymentAmount != null">payment_amount,</if>
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
48
         <trim prefix="values (" suffix=")" suffixOverrides=",">
52
             <if test="paymentId != null">#{paymentId},</if>
49
             <if test="paymentId != null">#{paymentId},</if>
53
             <if test="contractId != null">#{contractId},</if>
50
             <if test="contractId != null">#{contractId},</if>
54
-            <if test="subContractId != null">#{subContractId},</if>
55
             <if test="paymentCondition != null">#{paymentCondition},</if>
51
             <if test="paymentCondition != null">#{paymentCondition},</if>
56
             <if test="paymentPercentage != null">#{paymentPercentage},</if>
52
             <if test="paymentPercentage != null">#{paymentPercentage},</if>
57
             <if test="paymentAmount != null">#{paymentAmount},</if>
53
             <if test="paymentAmount != null">#{paymentAmount},</if>
64
         update cmc_contract_payment
60
         update cmc_contract_payment
65
         <trim prefix="SET" suffixOverrides=",">
61
         <trim prefix="SET" suffixOverrides=",">
66
             <if test="contractId != null">contract_id = #{contractId},</if>
62
             <if test="contractId != null">contract_id = #{contractId},</if>
67
-            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
68
             <if test="paymentCondition != null">payment_condition = #{paymentCondition},</if>
63
             <if test="paymentCondition != null">payment_condition = #{paymentCondition},</if>
69
             <if test="paymentPercentage != null">payment_percentage = #{paymentPercentage},</if>
64
             <if test="paymentPercentage != null">payment_percentage = #{paymentPercentage},</if>
70
             <if test="paymentAmount != null">payment_amount = #{paymentAmount},</if>
65
             <if test="paymentAmount != null">payment_amount = #{paymentAmount},</if>

+ 1
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml Parādīt failu

7
     <resultMap type="CmcContractWork" id="CmcContractWorkResult">
7
     <resultMap type="CmcContractWork" id="CmcContractWorkResult">
8
         <result property="workId"    column="work_id"    />
8
         <result property="workId"    column="work_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
-        <result property="subContractId"    column="sub_contract_id"    />
11
         <result property="content"    column="content"    />
10
         <result property="content"    column="content"    />
12
         <result property="scale"    column="scale"    />
11
         <result property="scale"    column="scale"    />
13
         <result property="unit"    column="unit"    />
12
         <result property="unit"    column="unit"    />
17
     </resultMap>
16
     </resultMap>
18
 
17
 
19
     <sql id="selectCmcContractWorkVo">
18
     <sql id="selectCmcContractWorkVo">
20
-        select work_id, contract_id, sub_contract_id, content, scale, unit, workload, deadline, remark from cmc_contract_work
19
+        select work_id, contract_id, content, scale, unit, workload, deadline, remark from cmc_contract_work
21
     </sql>
20
     </sql>
22
 
21
 
23
     <select id="selectCmcContractWorkList" parameterType="CmcContractWork" resultMap="CmcContractWorkResult">
22
     <select id="selectCmcContractWorkList" parameterType="CmcContractWork" resultMap="CmcContractWorkResult">
24
         <include refid="selectCmcContractWorkVo"/>
23
         <include refid="selectCmcContractWorkVo"/>
25
         <where>  
24
         <where>  
26
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
25
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
27
-            <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
28
             <if test="content != null  and content != ''"> and content = #{content}</if>
26
             <if test="content != null  and content != ''"> and content = #{content}</if>
29
             <if test="scale != null  and scale != ''"> and scale = #{scale}</if>
27
             <if test="scale != null  and scale != ''"> and scale = #{scale}</if>
30
             <if test="unit != null  and unit != ''"> and unit = #{unit}</if>
28
             <if test="unit != null  and unit != ''"> and unit = #{unit}</if>
43
         <trim prefix="(" suffix=")" suffixOverrides=",">
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
44
             <if test="workId != null">work_id,</if>
42
             <if test="workId != null">work_id,</if>
45
             <if test="contractId != null">contract_id,</if>
43
             <if test="contractId != null">contract_id,</if>
46
-            <if test="subContractId != null">sub_contract_id,</if>
47
             <if test="content != null">content,</if>
44
             <if test="content != null">content,</if>
48
             <if test="scale != null">scale,</if>
45
             <if test="scale != null">scale,</if>
49
             <if test="unit != null">unit,</if>
46
             <if test="unit != null">unit,</if>
54
         <trim prefix="values (" suffix=")" suffixOverrides=",">
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
55
             <if test="workId != null">#{workId},</if>
52
             <if test="workId != null">#{workId},</if>
56
             <if test="contractId != null">#{contractId},</if>
53
             <if test="contractId != null">#{contractId},</if>
57
-            <if test="subContractId != null">#{subContractId},</if>
58
             <if test="content != null">#{content},</if>
54
             <if test="content != null">#{content},</if>
59
             <if test="scale != null">#{scale},</if>
55
             <if test="scale != null">#{scale},</if>
60
             <if test="unit != null">#{unit},</if>
56
             <if test="unit != null">#{unit},</if>
68
         update cmc_contract_work
64
         update cmc_contract_work
69
         <trim prefix="SET" suffixOverrides=",">
65
         <trim prefix="SET" suffixOverrides=",">
70
             <if test="contractId != null">contract_id = #{contractId},</if>
66
             <if test="contractId != null">contract_id = #{contractId},</if>
71
-            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
72
             <if test="content != null">content = #{content},</if>
67
             <if test="content != null">content = #{content},</if>
73
             <if test="scale != null">scale = #{scale},</if>
68
             <if test="scale != null">scale = #{scale},</if>
74
             <if test="unit != null">unit = #{unit},</if>
69
             <if test="unit != null">unit = #{unit},</if>

+ 4
- 5
oa-back/sql/sql.sql Parādīt failu

3084
 create table `cmc_contract_comment`  (
3084
 create table `cmc_contract_comment`  (
3085
   `comment_id` 		char(19)  		not null 	 comment '合同会审意见id',
3085
   `comment_id` 		char(19)  		not null 	 comment '合同会审意见id',
3086
   `contract_id` 	char(19)  		default null comment '合同id',
3086
   `contract_id` 	char(19)  		default null comment '合同id',
3087
-  `sub_contract_id` char(19)  		default null comment '分包合同id',
3088
   `dept_id` 		bigint  		default null comment '会审部门',
3087
   `dept_id` 		bigint  		default null comment '会审部门',
3089
   `user_id` 		bigint 			default null comment '会审人',
3088
   `user_id` 		bigint 			default null comment '会审人',
3090
   `comment` 		varchar(255)  	default null comment '会审意见',
3089
   `comment` 		varchar(255)  	default null comment '会审意见',
3104
 create table `cmc_contract_meeting`  (
3103
 create table `cmc_contract_meeting`  (
3105
   `meeting_id` 		char(19)  		not null 	 comment '合同会审id',
3104
   `meeting_id` 		char(19)  		not null 	 comment '合同会审id',
3106
   `contract_id` 	char(19)  		default null comment '合同id',
3105
   `contract_id` 	char(19)  		default null comment '合同id',
3107
-  `sub_contract_id` char(19)  		default null comment '分包合同id',
3108
   `meeting_time` 	date  			default null comment '评审时间',
3106
   `meeting_time` 	date  			default null comment '评审时间',
3109
   `host_id` 		bigint 			default null comment '评审主持人',
3107
   `host_id` 		bigint 			default null comment '评审主持人',
3110
   `place` 			varchar(50)  	default null comment '评审地点',
3108
   `place` 			varchar(50)  	default null comment '评审地点',
3126
 create table `cmc_contract_payment`  (
3124
 create table `cmc_contract_payment`  (
3127
   `payment_id` 			char(19)  		not null 	 comment '合同回款id',
3125
   `payment_id` 			char(19)  		not null 	 comment '合同回款id',
3128
   `contract_id` 		char(19)  		default null comment '合同id',
3126
   `contract_id` 		char(19)  		default null comment '合同id',
3129
-  `sub_contract_id` 	char(19)  		default null comment '分包合同id',
3130
   `payment_condition` 	varchar(255)  	default null comment '回款条件',
3127
   `payment_condition` 	varchar(255)  	default null comment '回款条件',
3131
   `payment_percentage` 	varchar(5)  	default null comment '回款比例',
3128
   `payment_percentage` 	varchar(5)  	default null comment '回款比例',
3132
   `payment_amount` 		varchar(10)  	default null comment '回款金额',
3129
   `payment_amount` 		varchar(10)  	default null comment '回款金额',
3146
 create table `cmc_contract_work`  (
3143
 create table `cmc_contract_work`  (
3147
   `work_id` 			char(19)  		not null 	 comment '工作内容id',
3144
   `work_id` 			char(19)  		not null 	 comment '工作内容id',
3148
   `contract_id` 		char(19)  		default null comment '合同id',
3145
   `contract_id` 		char(19)  		default null comment '合同id',
3149
-  `sub_contract_id` 	char(19)  		default null comment '分包合同id',
3150
   `content` 			varchar(255)  	default null comment '工作内容',
3146
   `content` 			varchar(255)  	default null comment '工作内容',
3151
   `scale` 				varchar(10)  	default null comment '等级或比例尺',
3147
   `scale` 				varchar(10)  	default null comment '等级或比例尺',
3152
   `unit` 				varchar(10)  	default null comment '单位',
3148
   `unit` 				varchar(10)  	default null comment '单位',
3778
 create table `cmc_borrow`  (
3774
 create table `cmc_borrow`  (
3779
   `borrow_id` 		char(19)		not null 	comment '借款申请id',
3775
   `borrow_id` 		char(19)		not null 	comment '借款申请id',
3780
   `project_id` 		char(19)  		default null comment '项目id',
3776
   `project_id` 		char(19)  		default null comment '项目id',
3781
-  `borrow_usage` 	char(1  		default null comment '借款用途',
3777
+  `borrow_usage` 	char(1)  		default null comment '借款用途',
3782
   `apply_reason` 	varchar(255)  	default null comment '借款事由',
3778
   `apply_reason` 	varchar(255)  	default null comment '借款事由',
3783
   `applier` 		bigint 			default null comment '借款人',
3779
   `applier` 		bigint 			default null comment '借款人',
3784
   `apply_dept`		bigint			default null comment '申请部门',
3780
   `apply_dept`		bigint			default null comment '申请部门',
3794
   `manager_user_id` bigint 			default null comment '分管审批人',
3790
   `manager_user_id` bigint 			default null comment '分管审批人',
3795
   `zjl_user_id` 	bigint 			default null comment '总经理审批人',
3791
   `zjl_user_id` 	bigint 			default null comment '总经理审批人',
3796
   `zjl_comment` 	varchar(255)  	default null comment '总经理审批意见',
3792
   `zjl_comment` 	varchar(255)  	default null comment '总经理审批意见',
3793
+  `union_user_id` 	bigint 			default null comment '工会审批人',
3794
+  `union_comment` 	varchar(255)  	default null comment '工会审批意见',
3797
   `cw_user_id` 		bigint 			default null comment '财务部经办人',
3795
   `cw_user_id` 		bigint 			default null comment '财务部经办人',
3798
   `cw_comment` 		varchar(255)  	default null comment '财务部支付备注',
3796
   `cw_comment` 		varchar(255)  	default null comment '财务部支付备注',
3799
   `dept_time` 		date 			default null comment '部门审批时间',
3797
   `dept_time` 		date 			default null comment '部门审批时间',
3800
   `xm_time` 		date 			default null comment '项目部审批时间',
3798
   `xm_time` 		date 			default null comment '项目部审批时间',
3801
   `manager_time` 	date 			default null comment '分管审批时间',
3799
   `manager_time` 	date 			default null comment '分管审批时间',
3802
   `zjl_time` 		date 			default null comment '总经理审批时间',
3800
   `zjl_time` 		date 			default null comment '总经理审批时间',
3801
+  `union_time` 		date 			default null comment '工会审批时间',
3803
   `lend_time` 		date 			default null comment '借款支付时间',
3802
   `lend_time` 		date 			default null comment '借款支付时间',
3804
   primary key (`borrow_id`)
3803
   primary key (`borrow_id`)
3805
 ) engine = innodb comment = 'cmc借款申请表';
3804
 ) engine = innodb comment = 'cmc借款申请表';

+ 44
- 8
oa-ui/src/views/flowable/form/contractForm.vue Parādīt failu

155
             <el-radio-group v-model="form.commentType" @change="changeCommentType" :disabled="taskName != '合同拟稿'">
155
             <el-radio-group v-model="form.commentType" @change="changeCommentType" :disabled="taskName != '合同拟稿'">
156
               <el-radio :label="'0'">无须评审</el-radio>
156
               <el-radio :label="'0'">无须评审</el-radio>
157
               <el-radio :label="'1'">会议评审</el-radio>
157
               <el-radio :label="'1'">会议评审</el-radio>
158
-              <el-radio :label="'2'">线上审</el-radio>
158
+              <el-radio :label="'2'">线上审</el-radio>
159
             </el-radio-group>
159
             </el-radio-group>
160
           </el-form-item>
160
           </el-form-item>
161
-          <el-form-item label="线上审:" v-if="commentOpen">
161
+          <el-form-item label="线上审:" v-if="commentOpen">
162
             <table border="1">
162
             <table border="1">
163
               <tr>
163
               <tr>
164
                 <td>序号</td>
164
                 <td>序号</td>
188
                   </el-select>
188
                   </el-select>
189
                 </td>
189
                 </td>
190
                 <td>
190
                 <td>
191
-                  <el-input v-model="comment.comment" type="textarea" clearable
192
-                    :autosize="{ minRows: 4, maxRows: 10 }" :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
191
+                  <el-input v-model="comment.comment" type="textarea" clearable :autosize="{ minRows: 4, maxRows: 10 }"
192
+                    :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
193
                 </td>
193
                 </td>
194
                 <td>
194
                 <td>
195
-                  <el-input v-model="comment.document" clearable :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
195
+                  <el-input v-model="comment.document" clearable
196
+                    :disabled="taskName == '合同拟稿' || !comment.commentUser"></el-input>
196
                 </td>
197
                 </td>
197
                 <td>
198
                 <td>
198
-                  <span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : commentUser }} </span>
199
+                  <span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : '' }} </span>
199
                 </td>
200
                 </td>
200
                 <td>
201
                 <td>
201
                   <span> {{ comment.commentTime }} </span>
202
                   <span> {{ comment.commentTime }} </span>
314
 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
315
 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
315
 import { getContractWork, addContractWork } from "@/api/oa/contract/contractWork";
316
 import { getContractWork, addContractWork } from "@/api/oa/contract/contractWork";
316
 import { getContractPayment, addContractPayment } from "@/api/oa/contract/contractPayment";
317
 import { getContractPayment, addContractPayment } from "@/api/oa/contract/contractPayment";
317
-import { getContractComment, addContractComment } from "@/api/oa/contract/contractComment";
318
+import { getContractComment, addContractComment, delContractComment } from "@/api/oa/contract/contractComment";
318
 import { getContractMeeting, addContractMeeting } from "@/api/oa/contract/contractMeeting";
319
 import { getContractMeeting, addContractMeeting } from "@/api/oa/contract/contractMeeting";
319
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
320
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
320
 import { listTender, getTender } from "@/api/oa/tender/tender";
321
 import { listTender, getTender } from "@/api/oa/tender/tender";
506
               else
507
               else
507
                 comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
508
                 comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
508
             }
509
             }
509
-            console.log(this.commentList);
510
           });
510
           });
511
           getContractMeeting(this.taskForm.formId).then(res => {
511
           getContractMeeting(this.taskForm.formId).then(res => {
512
             if (res.data)
512
             if (res.data)
749
               this.open = false;
749
               this.open = false;
750
               this.getList();
750
               this.getList();
751
             });
751
             });
752
+            const params = { taskId: this.taskForm.taskId };
753
+            getNextFlowNode(params).then(res => {
754
+              updateContract(this.form);
755
+              if (this.taskName == '分管审核') {
756
+                complete(this.taskForm).then(response => {
757
+                  this.$modal.msgSuccess(response.msg);
758
+                  this.$emit('goBack')
759
+                });
760
+              }
761
+              else if (this.taskName == '线上会审') {
762
+                delContractComment([this.form.contractId]).then(res => {
763
+                  for (let comment of this.commentList) {
764
+                    commment.contractId = this.form.contractId
765
+                    addContractComment(comment);
766
+                  }
767
+                })
768
+                getUsersManageLeader({ userId: this.form.drafter }).then(res => {
769
+                  let userId = res.data.userId;
770
+                  this.$set(this.taskForm.variables, "approval", userId);
771
+                  complete(this.taskForm).then(response => {
772
+                    this.$modal.msgSuccess(response.msg);
773
+                    this.$emit('goBack')
774
+                  });
775
+                })
776
+              }
777
+              else if (this.taskName == '会议评审') {
778
+                this.meetingForm.contractId = this.form.contractId;
779
+                addContractMeeting(this.meetingForm);
780
+                this.$set(this.taskForm.variables, "approval", this.meetingForm.hostId);
781
+                this.$set(this.taskForm.variables, "commentType", '1');
782
+                complete(this.taskForm).then(response => {
783
+                  this.$modal.msgSuccess(response.msg);
784
+                  this.$emit('goBack')
785
+                });
786
+              }
787
+            })
752
           } else {
788
           } else {
753
             this.form.contractId = this.taskForm.formId;
789
             this.form.contractId = this.taskForm.formId;
754
             addContract(this.form).then(response => {
790
             addContract(this.form).then(response => {

Notiek ielāde…
Atcelt
Saglabāt