Selaa lähdekoodia

董事会用车、借款董事长审批

lamphua 11 kuukautta sitten
vanhempi
commit
d1cc49e887

+ 45
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java Näytä tiedosto

@@ -46,6 +46,10 @@ public class CmcCarApproval extends BaseEntity
46 46
     private String gmUserName;
47 47
     private SysUser gmUser;
48 48
 
49
+    @Excel(name = "董事长")
50
+    private String dszUserName;
51
+    private SysUser dszUser;
52
+
49 53
     @Excel(name = "车辆管理员")
50 54
     private String dispatchUserName;
51 55
     private SysUser dispatchUser;
@@ -124,10 +128,17 @@ public class CmcCarApproval extends BaseEntity
124 128
     /** 总经理审批人 */
125 129
     private Long gmUserId;
126 130
 
131
+    /** 董事长审批人 */
132
+    private Long dszUserId;
133
+
127 134
     /** 总经理审批意见 */
128 135
     @Excel(name = "总经理审批意见")
129 136
     private String gmComment;
130 137
 
138
+    /** 董事长审批意见 */
139
+    @Excel(name = "董事长审批意见")
140
+    private String dszComment;
141
+
131 142
     /** 调度员 */
132 143
     private Long dispatcher;
133 144
 
@@ -164,6 +175,11 @@ public class CmcCarApproval extends BaseEntity
164 175
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
165 176
     private Date gmTime;
166 177
 
178
+    /** 董事长审批时间 */
179
+    @JsonFormat(pattern = "yyyy-MM-dd")
180
+    @Excel(name = "董事长审批时间", width = 30, dateFormat = "yyyy-MM-dd")
181
+    private Date dszTime;
182
+
167 183
     /** 派车审批时间 */
168 184
     @JsonFormat(pattern = "yyyy-MM-dd")
169 185
     @Excel(name = "派车审批时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -236,6 +252,16 @@ public class CmcCarApproval extends BaseEntity
236 252
     {
237 253
         return gmUser;
238 254
     }
255
+    public void setDszUser(SysUser dszUser)
256
+    {
257
+        this.dszUser = dszUser;
258
+        this.dszUserName = dszUser == null ? "" : dszUser.getNickName();
259
+    }
260
+
261
+    public SysUser getDszUser()
262
+    {
263
+        return dszUser;
264
+    }
239 265
     public void setDispatchUser(SysUser dispatchUser)
240 266
     {
241 267
         this.dispatchUser = dispatchUser;
@@ -448,6 +474,15 @@ public class CmcCarApproval extends BaseEntity
448 474
     {
449 475
         return gmComment;
450 476
     }
477
+    public void setDszComment(String dszComment)
478
+    {
479
+        this.dszComment = dszComment;
480
+    }
481
+
482
+    public String getDszComment()
483
+    {
484
+        return dszComment;
485
+    }
451 486
     public void setDispatcher(Long dispatcher)
452 487
     {
453 488
         this.dispatcher = dispatcher;
@@ -525,6 +560,16 @@ public class CmcCarApproval extends BaseEntity
525 560
         return gmTime;
526 561
     }
527 562
 
563
+    public void setDszTime(Date dszTime)
564
+    {
565
+        this.dszTime = dszTime;
566
+    }
567
+
568
+    public Date getDszTime()
569
+    {
570
+        return dszTime;
571
+    }
572
+
528 573
     public void setDispatchTime(Date dispatchTime)
529 574
     {
530 575
         this.dispatchTime = dispatchTime;

+ 18
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml Näytä tiedosto

@@ -33,6 +33,7 @@
33 33
         <result property="managerTime"    column="manager_time"    />
34 34
         <result property="unionTime"    column="union_time"    />
35 35
         <result property="gmTime"    column="gm_time"    />
36
+        <result property="dszTime"    column="dsz_time"    />
36 37
         <result property="dispatchTime"    column="dispatch_time"    />
37 38
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
38 39
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
@@ -41,6 +42,7 @@
41 42
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
42 43
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
43 44
         <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
45
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
44 46
         <association property="dispatchUser"    javaType="SysUser"         resultMap="DispatchUserResult" />
45 47
     </resultMap>
46 48
 
@@ -69,6 +71,11 @@
69 71
         <result property="nickName"    column="gm_nick_name"    />
70 72
     </resultMap>
71 73
 
74
+    <resultMap type="SysUser" id="DszUserResult">
75
+        <result property="userId"    column="user_id"    />
76
+        <result property="nickName"    column="dsz_nick_name"    />
77
+    </resultMap>
78
+
72 79
     <resultMap type="SysUser" id="DispatchUserResult">
73 80
         <result property="userId"    column="user_id"    />
74 81
         <result property="nickName"    column="dispatch_nick_name"    />
@@ -89,13 +96,15 @@
89 96
         select ca.car_apply_id, ca.applier, u.nick_name as applier_nick_name, ca.use_dept, d.dept_name, ca.cars, ca.drivers, ca.project_id, p.project_number, p.project_name,
90 97
                ca.apply_reason, ca.passengers, ca.apply_date, ca.begin_date, ca.end_date, ca.days, ca.dept_user_id, u1.nick_name as dept_nick_name, ca.dept_comment, ca.manager_user_id,
91 98
                u2.nick_name as manager_nick_name, ca.manager_comment, ca.car_usage, ca.union_user_id, u3.nick_name as union_nick_name, ca.union_comment, ca.gm_user_id, u4.nick_name as gm_nick_name,
92
-               ca.gm_comment, ca.dispatcher, u5.nick_name as dispatch_nick_name, ca.dispatch_comment, ca.estimate_cost, ca.dept_time, ca.manager_time, ca.union_time, ca.gm_time, ca.dispatch_time from cmc_car_approval as ca
99
+               ca.dsz_user_id, u5.nick_name as dsz_nick_name, ca.gm_comment, ca.dsz_comment, ca.dispatcher, u6.nick_name as dispatch_nick_name, ca.dispatch_comment, ca.estimate_cost, ca.dept_time,
100
+               ca.manager_time, ca.union_time, ca.gm_time, ca.dsz_time, ca.dispatch_time from cmc_car_approval as ca
93 101
             left join sys_user as u on u.user_id = ca.applier
94 102
             left join sys_user as u1 on u1.user_id = ca.dept_user_id
95 103
             left join sys_user as u2 on u2.user_id = ca.manager_user_id
96 104
             left join sys_user as u3 on u3.user_id = ca.union_user_id
97 105
             left join sys_user as u4 on u4.user_id = ca.gm_user_id
98
-            left join sys_user as u5 on u5.user_id = ca.dispatcher
106
+            left join sys_user as u5 on u5.user_id = ca.dsz_user_id
107
+            left join sys_user as u6 on u6.user_id = ca.dispatcher
99 108
             left join sys_dept as d on d.dept_id = ca.use_dept
100 109
             left join cmc_project as p on ca.project_id = p.project_id
101 110
     </sql>
@@ -159,6 +168,8 @@
159 168
             <if test="unionComment != null">union_comment,</if>
160 169
             <if test="gmUserId != null">gm_user_id,</if>
161 170
             <if test="gmComment != null">gm_comment,</if>
171
+            <if test="dszUserId != null">dsz_user_id,</if>
172
+            <if test="dszComment != null">dsz_comment,</if>
162 173
             <if test="dispatcher != null">dispatcher,</if>
163 174
             <if test="dispatchComment != null">dispatch_comment,</if>
164 175
             <if test="estimateCost != null">estimate_cost,</if>
@@ -185,6 +196,8 @@
185 196
             <if test="unionComment != null">#{unionComment},</if>
186 197
             <if test="gmUserId != null">#{gmUserId},</if>
187 198
             <if test="gmComment != null">#{gmComment},</if>
199
+            <if test="dszUserId != null">#{dszUserId},</if>
200
+            <if test="dszComment != null">#{dszComment},</if>
188 201
             <if test="dispatcher != null">#{dispatcher},</if>
189 202
             <if test="dispatchComment != null">#{dispatchComment},</if>
190 203
             <if test="estimateCost != null">#{estimateCost},</if>
@@ -214,6 +227,8 @@
214 227
             <if test="unionComment != null">union_comment = #{unionComment},</if>
215 228
             <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
216 229
             <if test="gmComment != null">gm_comment = #{gmComment},</if>
230
+            <if test="dszUserId != null">dsz_user_id = #{dszUserId},</if>
231
+            <if test="dszComment != null">dsz_comment = #{dszComment},</if>
217 232
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
218 233
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
219 234
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
@@ -221,6 +236,7 @@
221 236
             <if test="managerTime != null ">manager_time = #{managerTime},</if>
222 237
             <if test="unionTime != null ">union_time = #{unionTime},</if>
223 238
             <if test="gmTime != null ">gm_time = #{gmTime},</if>
239
+            <if test="dszTime != null ">dsz_time = #{dszTime}</if>
224 240
             <if test="dispatchTime != null ">dispatch_time = #{dispatchTime}</if>
225 241
         </trim>
226 242
         where car_apply_id = #{carApplyId}

+ 30
- 5
oa-back/sql/sql.sql
File diff suppressed because it is too large
Näytä tiedosto


Loading…
Peruuta
Tallenna