Browse Source

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

lamphua 11 months ago
parent
commit
d1cc49e887

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

46
     private String gmUserName;
46
     private String gmUserName;
47
     private SysUser gmUser;
47
     private SysUser gmUser;
48
 
48
 
49
+    @Excel(name = "董事长")
50
+    private String dszUserName;
51
+    private SysUser dszUser;
52
+
49
     @Excel(name = "车辆管理员")
53
     @Excel(name = "车辆管理员")
50
     private String dispatchUserName;
54
     private String dispatchUserName;
51
     private SysUser dispatchUser;
55
     private SysUser dispatchUser;
124
     /** 总经理审批人 */
128
     /** 总经理审批人 */
125
     private Long gmUserId;
129
     private Long gmUserId;
126
 
130
 
131
+    /** 董事长审批人 */
132
+    private Long dszUserId;
133
+
127
     /** 总经理审批意见 */
134
     /** 总经理审批意见 */
128
     @Excel(name = "总经理审批意见")
135
     @Excel(name = "总经理审批意见")
129
     private String gmComment;
136
     private String gmComment;
130
 
137
 
138
+    /** 董事长审批意见 */
139
+    @Excel(name = "董事长审批意见")
140
+    private String dszComment;
141
+
131
     /** 调度员 */
142
     /** 调度员 */
132
     private Long dispatcher;
143
     private Long dispatcher;
133
 
144
 
164
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
175
     @Excel(name = "总经理审批时间", width = 30, dateFormat = "yyyy-MM-dd")
165
     private Date gmTime;
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
     @JsonFormat(pattern = "yyyy-MM-dd")
184
     @JsonFormat(pattern = "yyyy-MM-dd")
169
     @Excel(name = "派车审批时间", width = 30, dateFormat = "yyyy-MM-dd")
185
     @Excel(name = "派车审批时间", width = 30, dateFormat = "yyyy-MM-dd")
236
     {
252
     {
237
         return gmUser;
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
     public void setDispatchUser(SysUser dispatchUser)
265
     public void setDispatchUser(SysUser dispatchUser)
240
     {
266
     {
241
         this.dispatchUser = dispatchUser;
267
         this.dispatchUser = dispatchUser;
448
     {
474
     {
449
         return gmComment;
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
     public void setDispatcher(Long dispatcher)
486
     public void setDispatcher(Long dispatcher)
452
     {
487
     {
453
         this.dispatcher = dispatcher;
488
         this.dispatcher = dispatcher;
525
         return gmTime;
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
     public void setDispatchTime(Date dispatchTime)
573
     public void setDispatchTime(Date dispatchTime)
529
     {
574
     {
530
         this.dispatchTime = dispatchTime;
575
         this.dispatchTime = dispatchTime;

+ 18
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml View File

33
         <result property="managerTime"    column="manager_time"    />
33
         <result property="managerTime"    column="manager_time"    />
34
         <result property="unionTime"    column="union_time"    />
34
         <result property="unionTime"    column="union_time"    />
35
         <result property="gmTime"    column="gm_time"    />
35
         <result property="gmTime"    column="gm_time"    />
36
+        <result property="dszTime"    column="dsz_time"    />
36
         <result property="dispatchTime"    column="dispatch_time"    />
37
         <result property="dispatchTime"    column="dispatch_time"    />
37
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
38
         <association property="applierUser"    javaType="SysUser"         resultMap="ApplierUserResult" />
38
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
39
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
41
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
42
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
42
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
43
         <association property="unionUser"    javaType="SysUser"         resultMap="UnionUserResult" />
43
         <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
44
         <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
45
+        <association property="dszUser"    javaType="SysUser"         resultMap="DszUserResult" />
44
         <association property="dispatchUser"    javaType="SysUser"         resultMap="DispatchUserResult" />
46
         <association property="dispatchUser"    javaType="SysUser"         resultMap="DispatchUserResult" />
45
     </resultMap>
47
     </resultMap>
46
 
48
 
69
         <result property="nickName"    column="gm_nick_name"    />
71
         <result property="nickName"    column="gm_nick_name"    />
70
     </resultMap>
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
     <resultMap type="SysUser" id="DispatchUserResult">
79
     <resultMap type="SysUser" id="DispatchUserResult">
73
         <result property="userId"    column="user_id"    />
80
         <result property="userId"    column="user_id"    />
74
         <result property="nickName"    column="dispatch_nick_name"    />
81
         <result property="nickName"    column="dispatch_nick_name"    />
89
         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,
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
                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,
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
                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,
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
             left join sys_user as u on u.user_id = ca.applier
101
             left join sys_user as u on u.user_id = ca.applier
94
             left join sys_user as u1 on u1.user_id = ca.dept_user_id
102
             left join sys_user as u1 on u1.user_id = ca.dept_user_id
95
             left join sys_user as u2 on u2.user_id = ca.manager_user_id
103
             left join sys_user as u2 on u2.user_id = ca.manager_user_id
96
             left join sys_user as u3 on u3.user_id = ca.union_user_id
104
             left join sys_user as u3 on u3.user_id = ca.union_user_id
97
             left join sys_user as u4 on u4.user_id = ca.gm_user_id
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
             left join sys_dept as d on d.dept_id = ca.use_dept
108
             left join sys_dept as d on d.dept_id = ca.use_dept
100
             left join cmc_project as p on ca.project_id = p.project_id
109
             left join cmc_project as p on ca.project_id = p.project_id
101
     </sql>
110
     </sql>
159
             <if test="unionComment != null">union_comment,</if>
168
             <if test="unionComment != null">union_comment,</if>
160
             <if test="gmUserId != null">gm_user_id,</if>
169
             <if test="gmUserId != null">gm_user_id,</if>
161
             <if test="gmComment != null">gm_comment,</if>
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
             <if test="dispatcher != null">dispatcher,</if>
173
             <if test="dispatcher != null">dispatcher,</if>
163
             <if test="dispatchComment != null">dispatch_comment,</if>
174
             <if test="dispatchComment != null">dispatch_comment,</if>
164
             <if test="estimateCost != null">estimate_cost,</if>
175
             <if test="estimateCost != null">estimate_cost,</if>
185
             <if test="unionComment != null">#{unionComment},</if>
196
             <if test="unionComment != null">#{unionComment},</if>
186
             <if test="gmUserId != null">#{gmUserId},</if>
197
             <if test="gmUserId != null">#{gmUserId},</if>
187
             <if test="gmComment != null">#{gmComment},</if>
198
             <if test="gmComment != null">#{gmComment},</if>
199
+            <if test="dszUserId != null">#{dszUserId},</if>
200
+            <if test="dszComment != null">#{dszComment},</if>
188
             <if test="dispatcher != null">#{dispatcher},</if>
201
             <if test="dispatcher != null">#{dispatcher},</if>
189
             <if test="dispatchComment != null">#{dispatchComment},</if>
202
             <if test="dispatchComment != null">#{dispatchComment},</if>
190
             <if test="estimateCost != null">#{estimateCost},</if>
203
             <if test="estimateCost != null">#{estimateCost},</if>
214
             <if test="unionComment != null">union_comment = #{unionComment},</if>
227
             <if test="unionComment != null">union_comment = #{unionComment},</if>
215
             <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
228
             <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
216
             <if test="gmComment != null">gm_comment = #{gmComment},</if>
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
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
232
             <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
218
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
233
             <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
219
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
234
             <if test="estimateCost != null">estimate_cost = #{estimateCost},</if>
221
             <if test="managerTime != null ">manager_time = #{managerTime},</if>
236
             <if test="managerTime != null ">manager_time = #{managerTime},</if>
222
             <if test="unionTime != null ">union_time = #{unionTime},</if>
237
             <if test="unionTime != null ">union_time = #{unionTime},</if>
223
             <if test="gmTime != null ">gm_time = #{gmTime},</if>
238
             <if test="gmTime != null ">gm_time = #{gmTime},</if>
239
+            <if test="dszTime != null ">dsz_time = #{dszTime}</if>
224
             <if test="dispatchTime != null ">dispatch_time = #{dispatchTime}</if>
240
             <if test="dispatchTime != null ">dispatch_time = #{dispatchTime}</if>
225
         </trim>
241
         </trim>
226
         where car_apply_id = #{carApplyId}
242
         where car_apply_id = #{carApplyId}

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


Loading…
Cancel
Save