Browse Source

结算驾驶班审核

lamphua 4 months ago
parent
commit
ee688e9fa0

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

@@ -83,6 +83,20 @@ public class CmcSettle extends BaseEntity
83 83
     @Excel(name = "综合事务部审核日期", width = 30, dateFormat = "yyyy-MM-dd")
84 84
     private Date zhTime;
85 85
 
86
+    /** 综合事务部驾驶班审核意见 */
87
+    @Excel(name = "综合事务部驾驶班审核意见")
88
+    private String jsbComment;
89
+
90
+    /** 综合事务部驾驶班审核人 */
91
+    @Excel(name = "综合事务部驾驶班审核人")
92
+    private String jsbUserName;
93
+    private Long jsbUserId;
94
+
95
+    /** 综合事务部驾驶班审核日期 */
96
+    @JsonFormat(pattern = "yyyy-MM-dd")
97
+    @Excel(name = "综合事务部驾驶班审核日期", width = 30, dateFormat = "yyyy-MM-dd")
98
+    private Date jsbTime;
99
+
86 100
     /** 技术质量与安全部审核意见 */
87 101
     @Excel(name = "技术质量与安全部审核意见")
88 102
     private String jsComment;
@@ -169,6 +183,8 @@ public class CmcSettle extends BaseEntity
169 183
 
170 184
     private SysUser zhUser;
171 185
 
186
+    private SysUser jsbUser;
187
+
172 188
     private SysUser jsUser;
173 189
 
174 190
     private SysUser jyUser;
@@ -321,6 +337,34 @@ public class CmcSettle extends BaseEntity
321 337
     {
322 338
         return zhComment;
323 339
     }
340
+
341
+    public void setJsbUserId(Long jsbUserId)
342
+    {
343
+        this.jsbUserId = jsbUserId;
344
+    }
345
+
346
+    public Long getJsbUserId()
347
+    {
348
+        return jsbUserId;
349
+    }
350
+    public void setJsbTime(Date jsbTime)
351
+    {
352
+        this.jsbTime = jsbTime;
353
+    }
354
+
355
+    public Date getJsbTime()
356
+    {
357
+        return jsbTime;
358
+    }
359
+    public void setJsbComment(String jsbComment)
360
+    {
361
+        this.jsbComment = jsbComment;
362
+    }
363
+
364
+    public String getJsbComment()
365
+    {
366
+        return jsbComment;
367
+    }
324 368
     public void setJsUserId(Long jsUserId) 
325 369
     {
326 370
         this.jsUserId = jsUserId;
@@ -503,6 +547,17 @@ public class CmcSettle extends BaseEntity
503 547
     {
504 548
         return zhUser;
505 549
     }
550
+
551
+    public void setJsbUser(SysUser jsbUser)
552
+    {
553
+        this.jsbUser = jsbUser;
554
+        this.jsbUserName = jsbUser == null ? "" : jsbUser.getNickName();
555
+    }
556
+
557
+    public SysUser getJsbUser()
558
+    {
559
+        return jsbUser;
560
+    }
506 561
     public void setJyUser(SysUser jyUser)
507 562
     {
508 563
         this.jyUser = jyUser;
@@ -576,6 +631,9 @@ public class CmcSettle extends BaseEntity
576 631
             .append("zhUserId", getZhUserId())
577 632
             .append("zhTime", getZhTime())
578 633
             .append("zhComment", getZhComment())
634
+            .append("jsbUserId", getJsbUserId())
635
+            .append("jsbTime", getJsbTime())
636
+            .append("jsbComment", getJsbComment())
579 637
             .append("jsUserId", getJsUserId())
580 638
             .append("jsTime", getJsTime())
581 639
             .append("jsComment", getJsComment())

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

@@ -18,6 +18,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
         <result property="zhUserId"    column="zh_user_id"    />
19 19
         <result property="zhTime"    column="zh_time"    />
20 20
         <result property="zhComment"    column="zh_comment"    />
21
+        <result property="jsbUserId"    column="jsb_user_id"    />
22
+        <result property="jsbTime"    column="jsb_time"    />
23
+        <result property="jsbComment"    column="jsb_comment"    />
21 24
         <result property="jsUserId"    column="js_user_id"    />
22 25
         <result property="jsTime"    column="js_time"    />
23 26
         <result property="jsComment"    column="js_comment"    />
@@ -39,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
39 42
         <result property="amount"    column="amount"    />
40 43
         <association property="reportUser"    javaType="SysUser"         resultMap="ReportUserResult" />
41 44
         <association property="zhUser"    javaType="SysUser"         resultMap="ZhUserResult" />
45
+        <association property="jsbUser"    javaType="SysUser"         resultMap="jsbUserResult" />
42 46
         <association property="jsUser"    javaType="SysUser"         resultMap="JsUserResult" />
43 47
         <association property="jyUser"    javaType="SysUser"         resultMap="JyUserResult" />
44 48
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
@@ -58,6 +62,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
58 62
         <result property="nickName"    column="zh_nick_name"    />
59 63
     </resultMap>
60 64
 
65
+    <resultMap type="SysUser" id="jsbUserResult">
66
+        <result property="userId"    column="user_id"    />
67
+        <result property="nickName"    column="jsb_nick_name"    />
68
+    </resultMap>
69
+
61 70
     <resultMap type="SysUser" id="JsUserResult">
62 71
         <result property="userId"    column="user_id"    />
63 72
         <result property="nickName"    column="js_nick_name"    />
@@ -96,17 +105,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
96 105
     </resultMap>
97 106
 
98 107
     <sql id="selectCmcSettleVo">
99
-        select distinct s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as report_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
100
-               s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u3.nick_name as jy_nick_name, s.jy_time, s.jy_comment, ss.amount,
101
-               s.manager_user_id, u4.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u5.nick_name as gm_nick_name, s.gm_time, s.gm_comment, ss.content,
102
-               s.dsz_user_id, u6.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept, d.dept_name from cmc_settle as s
108
+        select distinct s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as report_nick_name, s.report_time,
109
+               s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,s.zh_time, s.zh_comment, s.jsb_user_id, u2.nick_name as jsb_nick_name,s.jsb_time, s.jsb_comment, 
110
+               s.js_user_id, u3.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u4.nick_name as jy_nick_name, s.jy_time, s.jy_comment, ss.amount,
111
+               s.manager_user_id, u5.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u6.nick_name as gm_nick_name, s.gm_time, s.gm_comment, ss.content,
112
+               s.dsz_user_id, u7.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document, s.report_dept, d.dept_name from cmc_settle as s
103 113
         left join sys_user as u on u.user_id = s.reporter
104 114
         left join sys_user as u1 on u1.user_id = s.zh_user_id
105
-        left join sys_user as u2 on u2.user_id = s.js_user_id
106
-        left join sys_user as u3 on u3.user_id = s.jy_user_id
107
-        left join sys_user as u4 on u4.user_id = s.manager_user_id
108
-        left join sys_user as u5 on u5.user_id = s.gm_user_id
109
-        left join sys_user as u6 on u6.user_id = s.dsz_user_id
115
+        left join sys_user as u2 on u2.user_id = s.jsb_user_id
116
+        left join sys_user as u3 on u3.user_id = s.js_user_id
117
+        left join sys_user as u4 on u4.user_id = s.jy_user_id
118
+        left join sys_user as u5 on u5.user_id = s.manager_user_id
119
+        left join sys_user as u6 on u6.user_id = s.gm_user_id
120
+        left join sys_user as u7 on u7.user_id = s.dsz_user_id
110 121
         left join cmc_project as p on p.project_id = s.project_id
111 122
         left join sys_dept as d on d.dept_id = s.report_dept
112 123
         left join cmc_settle_summary as ss on ss.settle_id = s.settle_id
@@ -129,6 +140,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
129 140
             <if test="zhUserId != null "> and s.zh_user_id = #{zhUserId}</if>
130 141
             <if test="zhTime != null "> and s.zh_time = #{zhTime}</if>
131 142
             <if test="zhComment != null  and zhComment != ''"> and s.zh_comment = #{zhComment}</if>
143
+            <if test="jsbUserId != null "> and s.jsb_user_id = #{jsbUserId}</if>
144
+            <if test="jsbTime != null "> and s.jsb_time = #{jsbTime}</if>
145
+            <if test="jsbComment != null  and jsbComment != ''"> and s.jsb_comment = #{jsbComment}</if>
132 146
             <if test="jsUserId != null "> and s.js_user_id = #{jsUserId}</if>
133 147
             <if test="jsTime != null "> and s.js_time = #{jsTime}</if>
134 148
             <if test="jsComment != null  and jsComment != ''"> and s.js_comment = #{jsComment}</if>
@@ -166,6 +180,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
166 180
             <if test="zhUserId != null">zh_user_id,</if>
167 181
             <if test="zhTime != null">zh_time,</if>
168 182
             <if test="zhComment != null">zh_comment,</if>
183
+            <if test="jsbUserId != null">jsb_user_id,</if>
184
+            <if test="jsbTime != null">jsb_time,</if>
185
+            <if test="jsbComment != null">jsb_comment,</if>
169 186
             <if test="jsUserId != null">js_user_id,</if>
170 187
             <if test="jsTime != null">js_time,</if>
171 188
             <if test="jsComment != null">js_comment,</if>
@@ -197,6 +214,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
197 214
             <if test="zhUserId != null">#{zhUserId},</if>
198 215
             <if test="zhTime != null">#{zhTime},</if>
199 216
             <if test="zhComment != null">#{zhComment},</if>
217
+            <if test="jsbUserId != null">#{jsbUserId},</if>
218
+            <if test="jsbTime != null">#{jsbTime},</if>
219
+            <if test="jsbComment != null">#{jsbComment},</if>
200 220
             <if test="jsUserId != null">#{jsUserId},</if>
201 221
             <if test="jsTime != null">#{jsTime},</if>
202 222
             <if test="jsComment != null">#{jsComment},</if>
@@ -231,6 +251,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
231 251
             <if test="zhUserId != null">zh_user_id = #{zhUserId},</if>
232 252
             <if test="zhTime != null">zh_time = #{zhTime},</if>
233 253
             <if test="zhComment != null">zh_comment = #{zhComment},</if>
254
+            <if test="jsbUserId != null">jsb_user_id = #{jsbUserId},</if>
255
+            <if test="jsbTime != null">jsb_time = #{jsbTime},</if>
256
+            <if test="jsbComment != null">jsb_comment = #{jsbComment},</if>
234 257
             <if test="jsUserId != null">js_user_id = #{jsUserId},</if>
235 258
             <if test="jsTime != null">js_time = #{jsTime},</if>
236 259
             <if test="jsComment != null">js_comment = #{jsComment},</if>

+ 6
- 3
oa-back/sql/sq.sql
File diff suppressed because it is too large
View File


+ 1
- 1
oa-ui/src/views/oa/price/index.vue View File

@@ -68,7 +68,7 @@
68 68
 
69 69
     <el-table v-loading="loading" :data="priceList" @selection-change="handleSelectionChange">
70 70
       <el-table-column type="selection" width="55" align="center" />
71
-      <el-table-column label="结算单价id" align="center" prop="id" />
71
+      <!-- <el-table-column label="结算单价id" align="center" prop="id" /> -->
72 72
       <el-table-column label="工作类别" align="center" prop="workType" />
73 73
       <el-table-column label="工作内容" align="center" prop="workItem" />
74 74
       <el-table-column label="等级或比例尺" align="center" prop="scaleGrade" />

Loading…
Cancel
Save