lamphua před 1 rokem
rodič
revize
4fcfd471e2

+ 4
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBorrowController.java Zobrazit soubor

@@ -100,6 +100,10 @@ public class CmcBorrowController extends BaseController
100 100
             cmcBorrow.setZjlUserId(getLoginUser().getUserId());
101 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 107
         if (cmcBorrow.getLendTime() != null) {
104 108
             cmcBorrow.setCwUserId(getLoginUser().getUserId());
105 109
         }

+ 56
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrow.java Zobrazit soubor

@@ -57,6 +57,8 @@ public class CmcBorrow extends BaseEntity
57 57
 
58 58
     private SysUser zjlUser;
59 59
 
60
+    private SysUser unionUser;
61
+
60 62
     private SysUser cwUser;
61 63
 
62 64
     /** 借款日期 */
@@ -104,6 +106,14 @@ public class CmcBorrow extends BaseEntity
104 106
     @Excel(name = "总经理审批意见")
105 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 118
     @Excel(name = "财务部经办人")
109 119
     private Long cwUserId;
@@ -132,6 +142,11 @@ public class CmcBorrow extends BaseEntity
132 142
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
133 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 151
     @JsonFormat(pattern = "yyyy-MM-dd")
137 152
     @Excel(name = "借款支付时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -254,6 +269,15 @@ public class CmcBorrow extends BaseEntity
254 269
     {
255 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 281
     public void setCwUser(SysUser cwUser)
258 282
     {
259 283
         this.cwUser = cwUser;
@@ -362,6 +386,24 @@ public class CmcBorrow extends BaseEntity
362 386
     {
363 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 407
     public void setCwUserId(Long cwUserId) 
366 408
     {
367 409
         this.cwUserId = cwUserId;
@@ -416,12 +458,21 @@ public class CmcBorrow extends BaseEntity
416 458
     {
417 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 472
         this.lendTime = lendTime;
422 473
     }
423 474
 
424
-    public Date getLendTime() 
475
+    public Date getLendTime()
425 476
     {
426 477
         return lendTime;
427 478
     }
@@ -445,12 +496,15 @@ public class CmcBorrow extends BaseEntity
445 496
             .append("managerUserId", getManagerUserId())
446 497
             .append("zjlUserId", getZjlUserId())
447 498
             .append("zjlComment", getZjlComment())
499
+            .append("unionUserId", getUnionUserId())
500
+            .append("unionComment", getUnionComment())
448 501
             .append("cwUserId", getCwUserId())
449 502
             .append("cwComment", getCwComment())
450 503
             .append("deptTime", getDeptTime())
451 504
             .append("xmTime", getXmTime())
452 505
             .append("managerTime", getManagerTime())
453 506
             .append("zjlTime", getZjlTime())
507
+            .append("unionTime", getUnionTime())
454 508
             .append("lendTime", getLendTime())
455 509
             .toString();
456 510
     }

+ 0
- 13
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java Zobrazit soubor

@@ -25,10 +25,6 @@ public class CmcContractComment extends BaseEntity
25 25
     @Excel(name = "合同id")
26 26
     private String contractId;
27 27
 
28
-    /** 分包合同id */
29
-    @Excel(name = "分包合同id")
30
-    private String subContractId;
31
-
32 28
     /** 会审部门 */
33 29
     @Excel(name = "会审部门")
34 30
     private Long deptId;
@@ -70,15 +66,6 @@ public class CmcContractComment extends BaseEntity
70 66
     {
71 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 69
     public void setDeptId(Long deptId)
83 70
     {
84 71
         this.deptId = deptId;

+ 0
- 13
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java Zobrazit soubor

@@ -24,10 +24,6 @@ public class CmcContractMeeting extends BaseEntity
24 24
     @Excel(name = "合同id")
25 25
     private String contractId;
26 26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31 27
     /** 评审时间 */
32 28
     @JsonFormat(pattern = "yyyy-MM-dd")
33 29
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -76,15 +72,6 @@ public class CmcContractMeeting extends BaseEntity
76 72
     {
77 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 75
     public void setMeetingTime(Date meetingTime)
89 76
     {
90 77
         this.meetingTime = meetingTime;

+ 0
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java Zobrazit soubor

@@ -24,10 +24,6 @@ public class CmcContractPayment extends BaseEntity
24 24
     @Excel(name = "合同id")
25 25
     private String contractId;
26 26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31 27
     /** 回款条件 */
32 28
     @Excel(name = "回款条件")
33 29
     private String paymentCondition;
@@ -63,15 +59,6 @@ public class CmcContractPayment extends BaseEntity
63 59
     {
64 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 62
     public void setPaymentCondition(String paymentCondition) 
76 63
     {
77 64
         this.paymentCondition = paymentCondition;
@@ -114,7 +101,6 @@ public class CmcContractPayment extends BaseEntity
114 101
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115 102
             .append("paymentId", getPaymentId())
116 103
             .append("contractId", getContractId())
117
-            .append("subContractId", getSubContractId())
118 104
             .append("paymentCondition", getPaymentCondition())
119 105
             .append("paymentPercentage", getPaymentPercentage())
120 106
             .append("paymentAmount", getPaymentAmount())

+ 0
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java Zobrazit soubor

@@ -24,10 +24,6 @@ public class CmcContractWork extends BaseEntity
24 24
     @Excel(name = "合同id")
25 25
     private String contractId;
26 26
 
27
-    /** 分包合同id */
28
-    @Excel(name = "分包合同id")
29
-    private String subContractId;
30
-
31 27
     /** 工作内容 */
32 28
     @Excel(name = "工作内容")
33 29
     private String content;
@@ -67,15 +63,6 @@ public class CmcContractWork extends BaseEntity
67 63
     {
68 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 66
     public void setContent(String content) 
80 67
     {
81 68
         this.content = content;
@@ -127,7 +114,6 @@ public class CmcContractWork extends BaseEntity
127 114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
128 115
             .append("workId", getWorkId())
129 116
             .append("contractId", getContractId())
130
-            .append("subContractId", getSubContractId())
131 117
             .append("content", getContent())
132 118
             .append("scale", getScale())
133 119
             .append("unit", getUnit())

+ 25
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml Zobrazit soubor

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

+ 1
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml Zobrazit soubor

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

+ 1
- 5
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml Zobrazit soubor

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

+ 1
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml Zobrazit soubor

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

+ 1
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml Zobrazit soubor

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

+ 4
- 5
oa-back/sql/sql.sql Zobrazit soubor

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

+ 44
- 8
oa-ui/src/views/flowable/form/contractForm.vue Zobrazit soubor

@@ -155,10 +155,10 @@
155 155
             <el-radio-group v-model="form.commentType" @change="changeCommentType" :disabled="taskName != '合同拟稿'">
156 156
               <el-radio :label="'0'">无须评审</el-radio>
157 157
               <el-radio :label="'1'">会议评审</el-radio>
158
-              <el-radio :label="'2'">线上审</el-radio>
158
+              <el-radio :label="'2'">线上审</el-radio>
159 159
             </el-radio-group>
160 160
           </el-form-item>
161
-          <el-form-item label="线上审:" v-if="commentOpen">
161
+          <el-form-item label="线上审:" v-if="commentOpen">
162 162
             <table border="1">
163 163
               <tr>
164 164
                 <td>序号</td>
@@ -188,14 +188,15 @@
188 188
                   </el-select>
189 189
                 </td>
190 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 193
                 </td>
194 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 197
                 </td>
197 198
                 <td>
198
-                  <span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : commentUser }} </span>
199
+                  <span class="auditor"> {{ comment.commentUser ? comment.commentUser.nickName : '' }} </span>
199 200
                 </td>
200 201
                 <td>
201 202
                   <span> {{ comment.commentTime }} </span>
@@ -314,7 +315,7 @@ import { listUser } from '@/api/system/user'
314 315
 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
315 316
 import { getContractWork, addContractWork } from "@/api/oa/contract/contractWork";
316 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 319
 import { getContractMeeting, addContractMeeting } from "@/api/oa/contract/contractMeeting";
319 320
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
320 321
 import { listTender, getTender } from "@/api/oa/tender/tender";
@@ -506,7 +507,6 @@ export default {
506 507
               else
507 508
                 comment.commentTime = parseTime(new Date(), '{y}-{m}-{d}');
508 509
             }
509
-            console.log(this.commentList);
510 510
           });
511 511
           getContractMeeting(this.taskForm.formId).then(res => {
512 512
             if (res.data)
@@ -749,6 +749,42 @@ export default {
749 749
               this.open = false;
750 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 788
           } else {
753 789
             this.form.contractId = this.taskForm.formId;
754 790
             addContract(this.form).then(response => {

Loading…
Zrušit
Uložit