Bläddra i källkod

用车申请表单设计

lamphua 1 år sedan
förälder
incheckning
26b5fa2b79

+ 0
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcAssessController.java Visa fil

@@ -114,7 +114,6 @@ public class CmcAssessController extends BaseController
114 114
                 formData.put("projectNumber", cmcProjectService.selectCmcProjectByProjectId(cmcAssess.getProjectId()).getProjectNumber());
115 115
                 formData.put("projectName", cmcProjectService.selectCmcProjectByProjectId(cmcAssess.getProjectId()).getProjectName());
116 116
             }
117
-
118 117
             formData.put("otherWork", cmcAssess.getOtherWork());
119 118
             formData.put("selfAssess", cmcAssess.getSelfAssess());
120 119
             formData.put("deptAssesser", cmcAssess.getDeptAssesser());

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java Visa fil

@@ -0,0 +1,104 @@
1
+package com.ruoyi.oa.controller;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcCarApproval;
20
+import com.ruoyi.oa.service.ICmcCarApprovalService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc用车审批Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-02-23
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/approval")
32
+public class CmcCarApprovalController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcCarApprovalService cmcCarApprovalService;
36
+
37
+    /**
38
+     * 查询cmc用车审批列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:approval:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcCarApproval cmcCarApproval)
43
+    {
44
+        startPage();
45
+        List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc用车审批列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:approval:export')")
53
+    @Log(title = "cmc用车审批", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcCarApproval cmcCarApproval)
56
+    {
57
+        List<CmcCarApproval> list = cmcCarApprovalService.selectCmcCarApprovalList(cmcCarApproval);
58
+        ExcelUtil<CmcCarApproval> util = new ExcelUtil<CmcCarApproval>(CmcCarApproval.class);
59
+        util.exportExcel(response, list, "cmc用车审批数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc用车审批详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:approval:query')")
66
+    @GetMapping(value = "/{carApplyId}")
67
+    public AjaxResult getInfo(@PathVariable("carApplyId") String carApplyId)
68
+    {
69
+        return success(cmcCarApprovalService.selectCmcCarApprovalByCarApplyId(carApplyId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc用车审批
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:approval:add')")
76
+    @Log(title = "cmc用车审批", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcCarApproval cmcCarApproval)
79
+    {
80
+        return toAjax(cmcCarApprovalService.insertCmcCarApproval(cmcCarApproval));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc用车审批
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:approval:edit')")
87
+    @Log(title = "cmc用车审批", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcCarApproval cmcCarApproval)
90
+    {
91
+        return toAjax(cmcCarApprovalService.updateCmcCarApproval(cmcCarApproval));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc用车审批
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:approval:remove')")
98
+    @Log(title = "cmc用车审批", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{carApplyIds}")
100
+    public AjaxResult remove(@PathVariable String[] carApplyIds)
101
+    {
102
+        return toAjax(cmcCarApprovalService.deleteCmcCarApprovalByCarApplyIds(carApplyIds));
103
+    }
104
+}

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarController.java Visa fil

@@ -0,0 +1,104 @@
1
+package com.ruoyi.oa.controller;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcCar;
20
+import com.ruoyi.oa.service.ICmcCarService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc车辆信息Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-02-23
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/car")
32
+public class CmcCarController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcCarService cmcCarService;
36
+
37
+    /**
38
+     * 查询cmc车辆信息列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:car:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcCar cmcCar)
43
+    {
44
+        startPage();
45
+        List<CmcCar> list = cmcCarService.selectCmcCarList(cmcCar);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc车辆信息列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:car:export')")
53
+    @Log(title = "cmc车辆信息", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcCar cmcCar)
56
+    {
57
+        List<CmcCar> list = cmcCarService.selectCmcCarList(cmcCar);
58
+        ExcelUtil<CmcCar> util = new ExcelUtil<CmcCar>(CmcCar.class);
59
+        util.exportExcel(response, list, "cmc车辆信息数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc车辆信息详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:car:query')")
66
+    @GetMapping(value = "/{carId}")
67
+    public AjaxResult getInfo(@PathVariable("carId") Long carId)
68
+    {
69
+        return success(cmcCarService.selectCmcCarByCarId(carId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc车辆信息
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:car:add')")
76
+    @Log(title = "cmc车辆信息", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcCar cmcCar)
79
+    {
80
+        return toAjax(cmcCarService.insertCmcCar(cmcCar));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc车辆信息
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:car:edit')")
87
+    @Log(title = "cmc车辆信息", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcCar cmcCar)
90
+    {
91
+        return toAjax(cmcCarService.updateCmcCar(cmcCar));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc车辆信息
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:car:remove')")
98
+    @Log(title = "cmc车辆信息", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{carIds}")
100
+    public AjaxResult remove(@PathVariable Long[] carIds)
101
+    {
102
+        return toAjax(cmcCarService.deleteCmcCarByCarIds(carIds));
103
+    }
104
+}

+ 59
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCar.java Visa fil

@@ -0,0 +1,59 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.ruoyi.common.annotation.Excel;
6
+import com.ruoyi.common.core.domain.BaseEntity;
7
+
8
+/**
9
+ * cmc车辆信息对象 cmc_car
10
+ * 
11
+ * @author cmc
12
+ * @date 2024-02-23
13
+ */
14
+public class CmcCar extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 车辆id */
19
+    private Long carId;
20
+
21
+    /** 车牌号 */
22
+    @Excel(name = "车牌号")
23
+    private String licensePlate;
24
+
25
+    /** 驾驶员(常用) */
26
+    @Excel(name = "驾驶员", readConverterExp = "常=用")
27
+    private Long driver;
28
+
29
+    public void setCarId(Long carId) 
30
+    {
31
+        this.carId = carId;
32
+    }
33
+
34
+    public Long getCarId() 
35
+    {
36
+        return carId;
37
+    }
38
+    public void setLicensePlate(String licensePlate) { this.licensePlate = licensePlate; }
39
+
40
+    public String getLicensePlate() { return licensePlate; }
41
+    public void setDriver(Long driver) 
42
+    {
43
+        this.driver = driver;
44
+    }
45
+
46
+    public Long getDriver() 
47
+    {
48
+        return driver;
49
+    }
50
+
51
+    @Override
52
+    public String toString() {
53
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
54
+            .append("carId", getCarId())
55
+            .append("license plate", getLicensePlate())
56
+            .append("driver", getDriver())
57
+            .toString();
58
+    }
59
+}

+ 307
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcCarApproval.java Visa fil

@@ -0,0 +1,307 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.util.Date;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import org.apache.commons.lang3.builder.ToStringBuilder;
6
+import org.apache.commons.lang3.builder.ToStringStyle;
7
+import com.ruoyi.common.annotation.Excel;
8
+import com.ruoyi.common.core.domain.BaseEntity;
9
+
10
+/**
11
+ * cmc用车审批对象 cmc_car_approval
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-02-23
15
+ */
16
+public class CmcCarApproval extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 用车申请id */
21
+    private String carApplyId;
22
+
23
+    /** 申请人 */
24
+    @Excel(name = "申请人")
25
+    private Long applier;
26
+
27
+    /** 车辆id */
28
+    @Excel(name = "车辆id")
29
+    private String cars;
30
+
31
+    /** 驾驶员id */
32
+    @Excel(name = "驾驶员id")
33
+    private String drivers;
34
+
35
+    /** 项目编号 */
36
+    @Excel(name = "项目编号")
37
+    private String projectNumber;
38
+
39
+    /** 用车事由 */
40
+    @Excel(name = "用车事由")
41
+    private String applyReason;
42
+
43
+    /** 人数 */
44
+    @Excel(name = "人数")
45
+    private Long passengers;
46
+
47
+    /** 开始日期 */
48
+    @JsonFormat(pattern = "yyyy-MM-dd")
49
+    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
50
+    private Date beginDate;
51
+
52
+    /** 开始日期上/下午 */
53
+    @Excel(name = "开始日期上/下午")
54
+    private String beginHalfday;
55
+
56
+    /** 结束日期 */
57
+    @JsonFormat(pattern = "yyyy-MM-dd")
58
+    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
59
+    private Date endDate;
60
+
61
+    /** 结束日期上/下午 */
62
+    @Excel(name = "结束日期上/下午")
63
+    private String endHalfday;
64
+
65
+    /** 天数 */
66
+    @Excel(name = "天数")
67
+    private Long days;
68
+
69
+    /** 部门审批人 */
70
+    @Excel(name = "部门审批人")
71
+    private Long deptUserId;
72
+
73
+    /** 部门审批意见 */
74
+    @Excel(name = "部门审批意见")
75
+    private String deptComment;
76
+
77
+    /** 分管审批人 */
78
+    @Excel(name = "分管审批人")
79
+    private Long managerUserId;
80
+
81
+    /** 分管审批意见 */
82
+    @Excel(name = "分管审批意见")
83
+    private String managerComment;
84
+
85
+    /** 工会审批人 */
86
+    @Excel(name = "工会审批人")
87
+    private Long unionUserId;
88
+
89
+    /** 工会审批意见 */
90
+    @Excel(name = "工会审批意见")
91
+    private String unionComment;
92
+
93
+    /** 调度员 */
94
+    @Excel(name = "调度员")
95
+    private Long dispatcher;
96
+
97
+    /** 调度审批意见 */
98
+    @Excel(name = "调度审批意见")
99
+    private String dispatchComment;
100
+
101
+    public void setCarApplyId(String carApplyId) 
102
+    {
103
+        this.carApplyId = carApplyId;
104
+    }
105
+
106
+    public String getCarApplyId() 
107
+    {
108
+        return carApplyId;
109
+    }
110
+    public void setApplier(Long applier) 
111
+    {
112
+        this.applier = applier;
113
+    }
114
+
115
+    public Long getApplier() 
116
+    {
117
+        return applier;
118
+    }
119
+    public void setCars(String cars) 
120
+    {
121
+        this.cars = cars;
122
+    }
123
+
124
+    public String getCars() 
125
+    {
126
+        return cars;
127
+    }
128
+    public void setDrivers(String drivers) 
129
+    {
130
+        this.drivers = drivers;
131
+    }
132
+
133
+    public String getDrivers() 
134
+    {
135
+        return drivers;
136
+    }
137
+    public void setProjectNumber(String projectNumber) 
138
+    {
139
+        this.projectNumber = projectNumber;
140
+    }
141
+
142
+    public String getProjectNumber() 
143
+    {
144
+        return projectNumber;
145
+    }
146
+    public void setApplyReason(String applyReason) 
147
+    {
148
+        this.applyReason = applyReason;
149
+    }
150
+
151
+    public String getApplyReason() 
152
+    {
153
+        return applyReason;
154
+    }
155
+    public void setPassengers(Long passengers) 
156
+    {
157
+        this.passengers = passengers;
158
+    }
159
+
160
+    public Long getPassengers() 
161
+    {
162
+        return passengers;
163
+    }
164
+    public void setBeginDate(Date beginDate) 
165
+    {
166
+        this.beginDate = beginDate;
167
+    }
168
+
169
+    public Date getBeginDate() 
170
+    {
171
+        return beginDate;
172
+    }
173
+    public void setBeginHalfday(String beginHalfday) 
174
+    {
175
+        this.beginHalfday = beginHalfday;
176
+    }
177
+
178
+    public String getBeginHalfday() 
179
+    {
180
+        return beginHalfday;
181
+    }
182
+    public void setEndDate(Date endDate) 
183
+    {
184
+        this.endDate = endDate;
185
+    }
186
+
187
+    public Date getEndDate() 
188
+    {
189
+        return endDate;
190
+    }
191
+    public void setEndHalfday(String endHalfday) 
192
+    {
193
+        this.endHalfday = endHalfday;
194
+    }
195
+
196
+    public String getEndHalfday() 
197
+    {
198
+        return endHalfday;
199
+    }
200
+    public void setDays(Long days) 
201
+    {
202
+        this.days = days;
203
+    }
204
+
205
+    public Long getDays() 
206
+    {
207
+        return days;
208
+    }
209
+    public void setDeptUserId(Long deptUserId) 
210
+    {
211
+        this.deptUserId = deptUserId;
212
+    }
213
+
214
+    public Long getDeptUserId() 
215
+    {
216
+        return deptUserId;
217
+    }
218
+    public void setDeptComment(String deptComment) 
219
+    {
220
+        this.deptComment = deptComment;
221
+    }
222
+
223
+    public String getDeptComment() 
224
+    {
225
+        return deptComment;
226
+    }
227
+    public void setManagerUserId(Long managerUserId) 
228
+    {
229
+        this.managerUserId = managerUserId;
230
+    }
231
+
232
+    public Long getManagerUserId() 
233
+    {
234
+        return managerUserId;
235
+    }
236
+    public void setManagerComment(String managerComment) 
237
+    {
238
+        this.managerComment = managerComment;
239
+    }
240
+
241
+    public String getManagerComment() 
242
+    {
243
+        return managerComment;
244
+    }
245
+    public void setUnionUserId(Long unionUserId) 
246
+    {
247
+        this.unionUserId = unionUserId;
248
+    }
249
+
250
+    public Long getUnionUserId() 
251
+    {
252
+        return unionUserId;
253
+    }
254
+    public void setUnionComment(String unionComment) 
255
+    {
256
+        this.unionComment = unionComment;
257
+    }
258
+
259
+    public String getUnionComment() 
260
+    {
261
+        return unionComment;
262
+    }
263
+    public void setDispatcher(Long dispatcher) 
264
+    {
265
+        this.dispatcher = dispatcher;
266
+    }
267
+
268
+    public Long getDispatcher() 
269
+    {
270
+        return dispatcher;
271
+    }
272
+    public void setDispatchComment(String dispatchComment) 
273
+    {
274
+        this.dispatchComment = dispatchComment;
275
+    }
276
+
277
+    public String getDispatchComment() 
278
+    {
279
+        return dispatchComment;
280
+    }
281
+
282
+    @Override
283
+    public String toString() {
284
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
285
+            .append("carApplyId", getCarApplyId())
286
+            .append("applier", getApplier())
287
+            .append("cars", getCars())
288
+            .append("drivers", getDrivers())
289
+            .append("projectNumber", getProjectNumber())
290
+            .append("applyReason", getApplyReason())
291
+            .append("passengers", getPassengers())
292
+            .append("beginDate", getBeginDate())
293
+            .append("beginHalfday", getBeginHalfday())
294
+            .append("endDate", getEndDate())
295
+            .append("endHalfday", getEndHalfday())
296
+            .append("days", getDays())
297
+            .append("deptUserId", getDeptUserId())
298
+            .append("deptComment", getDeptComment())
299
+            .append("managerUserId", getManagerUserId())
300
+            .append("managerComment", getManagerComment())
301
+            .append("unionUserId", getUnionUserId())
302
+            .append("unionComment", getUnionComment())
303
+            .append("dispatcher", getDispatcher())
304
+            .append("dispatchComment", getDispatchComment())
305
+            .toString();
306
+    }
307
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcCarApprovalMapper.java Visa fil

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcCarApproval;
5
+
6
+/**
7
+ * cmc用车审批Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-02-23
11
+ */
12
+public interface CmcCarApprovalMapper 
13
+{
14
+    /**
15
+     * 查询cmc用车审批
16
+     * 
17
+     * @param carApplyId cmc用车审批主键
18
+     * @return cmc用车审批
19
+     */
20
+    public CmcCarApproval selectCmcCarApprovalByCarApplyId(String carApplyId);
21
+
22
+    /**
23
+     * 查询cmc用车审批列表
24
+     * 
25
+     * @param cmcCarApproval cmc用车审批
26
+     * @return cmc用车审批集合
27
+     */
28
+    public List<CmcCarApproval> selectCmcCarApprovalList(CmcCarApproval cmcCarApproval);
29
+
30
+    /**
31
+     * 新增cmc用车审批
32
+     * 
33
+     * @param cmcCarApproval cmc用车审批
34
+     * @return 结果
35
+     */
36
+    public int insertCmcCarApproval(CmcCarApproval cmcCarApproval);
37
+
38
+    /**
39
+     * 修改cmc用车审批
40
+     * 
41
+     * @param cmcCarApproval cmc用车审批
42
+     * @return 结果
43
+     */
44
+    public int updateCmcCarApproval(CmcCarApproval cmcCarApproval);
45
+
46
+    /**
47
+     * 删除cmc用车审批
48
+     * 
49
+     * @param carApplyId cmc用车审批主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcCarApprovalByCarApplyId(String carApplyId);
53
+
54
+    /**
55
+     * 批量删除cmc用车审批
56
+     * 
57
+     * @param carApplyIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcCarApprovalByCarApplyIds(String[] carApplyIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcCarMapper.java Visa fil

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcCar;
5
+
6
+/**
7
+ * cmc车辆信息Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-02-23
11
+ */
12
+public interface CmcCarMapper 
13
+{
14
+    /**
15
+     * 查询cmc车辆信息
16
+     * 
17
+     * @param carId cmc车辆信息主键
18
+     * @return cmc车辆信息
19
+     */
20
+    public CmcCar selectCmcCarByCarId(Long carId);
21
+
22
+    /**
23
+     * 查询cmc车辆信息列表
24
+     * 
25
+     * @param cmcCar cmc车辆信息
26
+     * @return cmc车辆信息集合
27
+     */
28
+    public List<CmcCar> selectCmcCarList(CmcCar cmcCar);
29
+
30
+    /**
31
+     * 新增cmc车辆信息
32
+     * 
33
+     * @param cmcCar cmc车辆信息
34
+     * @return 结果
35
+     */
36
+    public int insertCmcCar(CmcCar cmcCar);
37
+
38
+    /**
39
+     * 修改cmc车辆信息
40
+     * 
41
+     * @param cmcCar cmc车辆信息
42
+     * @return 结果
43
+     */
44
+    public int updateCmcCar(CmcCar cmcCar);
45
+
46
+    /**
47
+     * 删除cmc车辆信息
48
+     * 
49
+     * @param carId cmc车辆信息主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcCarByCarId(Long carId);
53
+
54
+    /**
55
+     * 批量删除cmc车辆信息
56
+     * 
57
+     * @param carIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcCarByCarIds(Long[] carIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcCarApprovalService.java Visa fil

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcCarApproval;
5
+
6
+/**
7
+ * cmc用车审批Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-02-23
11
+ */
12
+public interface ICmcCarApprovalService 
13
+{
14
+    /**
15
+     * 查询cmc用车审批
16
+     * 
17
+     * @param carApplyId cmc用车审批主键
18
+     * @return cmc用车审批
19
+     */
20
+    public CmcCarApproval selectCmcCarApprovalByCarApplyId(String carApplyId);
21
+
22
+    /**
23
+     * 查询cmc用车审批列表
24
+     * 
25
+     * @param cmcCarApproval cmc用车审批
26
+     * @return cmc用车审批集合
27
+     */
28
+    public List<CmcCarApproval> selectCmcCarApprovalList(CmcCarApproval cmcCarApproval);
29
+
30
+    /**
31
+     * 新增cmc用车审批
32
+     * 
33
+     * @param cmcCarApproval cmc用车审批
34
+     * @return 结果
35
+     */
36
+    public int insertCmcCarApproval(CmcCarApproval cmcCarApproval);
37
+
38
+    /**
39
+     * 修改cmc用车审批
40
+     * 
41
+     * @param cmcCarApproval cmc用车审批
42
+     * @return 结果
43
+     */
44
+    public int updateCmcCarApproval(CmcCarApproval cmcCarApproval);
45
+
46
+    /**
47
+     * 批量删除cmc用车审批
48
+     * 
49
+     * @param carApplyIds 需要删除的cmc用车审批主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcCarApprovalByCarApplyIds(String[] carApplyIds);
53
+
54
+    /**
55
+     * 删除cmc用车审批信息
56
+     * 
57
+     * @param carApplyId cmc用车审批主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcCarApprovalByCarApplyId(String carApplyId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcCarService.java Visa fil

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcCar;
5
+
6
+/**
7
+ * cmc车辆信息Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-02-23
11
+ */
12
+public interface ICmcCarService 
13
+{
14
+    /**
15
+     * 查询cmc车辆信息
16
+     * 
17
+     * @param carId cmc车辆信息主键
18
+     * @return cmc车辆信息
19
+     */
20
+    public CmcCar selectCmcCarByCarId(Long carId);
21
+
22
+    /**
23
+     * 查询cmc车辆信息列表
24
+     * 
25
+     * @param cmcCar cmc车辆信息
26
+     * @return cmc车辆信息集合
27
+     */
28
+    public List<CmcCar> selectCmcCarList(CmcCar cmcCar);
29
+
30
+    /**
31
+     * 新增cmc车辆信息
32
+     * 
33
+     * @param cmcCar cmc车辆信息
34
+     * @return 结果
35
+     */
36
+    public int insertCmcCar(CmcCar cmcCar);
37
+
38
+    /**
39
+     * 修改cmc车辆信息
40
+     * 
41
+     * @param cmcCar cmc车辆信息
42
+     * @return 结果
43
+     */
44
+    public int updateCmcCar(CmcCar cmcCar);
45
+
46
+    /**
47
+     * 批量删除cmc车辆信息
48
+     * 
49
+     * @param carIds 需要删除的cmc车辆信息主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcCarByCarIds(Long[] carIds);
53
+
54
+    /**
55
+     * 删除cmc车辆信息信息
56
+     * 
57
+     * @param carId cmc车辆信息主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcCarByCarId(Long carId);
61
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcCarApprovalServiceImpl.java Visa fil

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcCarApprovalMapper;
7
+import com.ruoyi.oa.domain.CmcCarApproval;
8
+import com.ruoyi.oa.service.ICmcCarApprovalService;
9
+
10
+/**
11
+ * cmc用车审批Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-02-23
15
+ */
16
+@Service
17
+public class CmcCarApprovalServiceImpl implements ICmcCarApprovalService 
18
+{
19
+    @Autowired
20
+    private CmcCarApprovalMapper cmcCarApprovalMapper;
21
+
22
+    /**
23
+     * 查询cmc用车审批
24
+     * 
25
+     * @param carApplyId cmc用车审批主键
26
+     * @return cmc用车审批
27
+     */
28
+    @Override
29
+    public CmcCarApproval selectCmcCarApprovalByCarApplyId(String carApplyId)
30
+    {
31
+        return cmcCarApprovalMapper.selectCmcCarApprovalByCarApplyId(carApplyId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc用车审批列表
36
+     * 
37
+     * @param cmcCarApproval cmc用车审批
38
+     * @return cmc用车审批
39
+     */
40
+    @Override
41
+    public List<CmcCarApproval> selectCmcCarApprovalList(CmcCarApproval cmcCarApproval)
42
+    {
43
+        return cmcCarApprovalMapper.selectCmcCarApprovalList(cmcCarApproval);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc用车审批
48
+     * 
49
+     * @param cmcCarApproval cmc用车审批
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcCarApproval(CmcCarApproval cmcCarApproval)
54
+    {
55
+        return cmcCarApprovalMapper.insertCmcCarApproval(cmcCarApproval);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc用车审批
60
+     * 
61
+     * @param cmcCarApproval cmc用车审批
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcCarApproval(CmcCarApproval cmcCarApproval)
66
+    {
67
+        return cmcCarApprovalMapper.updateCmcCarApproval(cmcCarApproval);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc用车审批
72
+     * 
73
+     * @param carApplyIds 需要删除的cmc用车审批主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcCarApprovalByCarApplyIds(String[] carApplyIds)
78
+    {
79
+        return cmcCarApprovalMapper.deleteCmcCarApprovalByCarApplyIds(carApplyIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc用车审批信息
84
+     * 
85
+     * @param carApplyId cmc用车审批主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcCarApprovalByCarApplyId(String carApplyId)
90
+    {
91
+        return cmcCarApprovalMapper.deleteCmcCarApprovalByCarApplyId(carApplyId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcCarServiceImpl.java Visa fil

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcCarMapper;
7
+import com.ruoyi.oa.domain.CmcCar;
8
+import com.ruoyi.oa.service.ICmcCarService;
9
+
10
+/**
11
+ * cmc车辆信息Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-02-23
15
+ */
16
+@Service
17
+public class CmcCarServiceImpl implements ICmcCarService 
18
+{
19
+    @Autowired
20
+    private CmcCarMapper cmcCarMapper;
21
+
22
+    /**
23
+     * 查询cmc车辆信息
24
+     * 
25
+     * @param carId cmc车辆信息主键
26
+     * @return cmc车辆信息
27
+     */
28
+    @Override
29
+    public CmcCar selectCmcCarByCarId(Long carId)
30
+    {
31
+        return cmcCarMapper.selectCmcCarByCarId(carId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc车辆信息列表
36
+     * 
37
+     * @param cmcCar cmc车辆信息
38
+     * @return cmc车辆信息
39
+     */
40
+    @Override
41
+    public List<CmcCar> selectCmcCarList(CmcCar cmcCar)
42
+    {
43
+        return cmcCarMapper.selectCmcCarList(cmcCar);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc车辆信息
48
+     * 
49
+     * @param cmcCar cmc车辆信息
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcCar(CmcCar cmcCar)
54
+    {
55
+        return cmcCarMapper.insertCmcCar(cmcCar);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc车辆信息
60
+     * 
61
+     * @param cmcCar cmc车辆信息
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcCar(CmcCar cmcCar)
66
+    {
67
+        return cmcCarMapper.updateCmcCar(cmcCar);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc车辆信息
72
+     * 
73
+     * @param carIds 需要删除的cmc车辆信息主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcCarByCarIds(Long[] carIds)
78
+    {
79
+        return cmcCarMapper.deleteCmcCarByCarIds(carIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc车辆信息信息
84
+     * 
85
+     * @param carId cmc车辆信息主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcCarByCarId(Long carId)
90
+    {
91
+        return cmcCarMapper.deleteCmcCarByCarId(carId);
92
+    }
93
+}

+ 148
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarApprovalMapper.xml Visa fil

@@ -0,0 +1,148 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcCarApprovalMapper">
6
+    
7
+    <resultMap type="CmcCarApproval" id="CmcCarApprovalResult">
8
+        <result property="carApplyId"    column="car_apply_id"    />
9
+        <result property="applier"    column="applier"    />
10
+        <result property="cars"    column="cars"    />
11
+        <result property="drivers"    column="drivers"    />
12
+        <result property="projectNumber"    column="project_number"    />
13
+        <result property="applyReason"    column="apply_reason"    />
14
+        <result property="passengers"    column="passengers"    />
15
+        <result property="beginDate"    column="begin_date"    />
16
+        <result property="beginHalfday"    column="begin_halfday"    />
17
+        <result property="endDate"    column="end_date"    />
18
+        <result property="endHalfday"    column="end_halfday"    />
19
+        <result property="days"    column="days"    />
20
+        <result property="deptUserId"    column="dept_user_id"    />
21
+        <result property="deptComment"    column="dept_comment"    />
22
+        <result property="managerUserId"    column="manager_user_id"    />
23
+        <result property="managerComment"    column="manager_comment"    />
24
+        <result property="unionUserId"    column="union_user_id"    />
25
+        <result property="unionComment"    column="union_comment"    />
26
+        <result property="dispatcher"    column="dispatcher"    />
27
+        <result property="dispatchComment"    column="dispatch_comment"    />
28
+    </resultMap>
29
+
30
+    <sql id="selectCmcCarApprovalVo">
31
+        select car_apply_id, applier, cars, drivers, project_number, apply_reason, passengers, begin_date, begin_halfday, end_date, end_halfday, days, dept_user_id, dept_comment, manager_user_id, manager_comment, union_user_id, union_comment, dispatcher, dispatch_comment from cmc_car_approval
32
+    </sql>
33
+
34
+    <select id="selectCmcCarApprovalList" parameterType="CmcCarApproval" resultMap="CmcCarApprovalResult">
35
+        <include refid="selectCmcCarApprovalVo"/>
36
+        <where>  
37
+            <if test="applier != null "> and applier = #{applier}</if>
38
+            <if test="cars != null  and cars != ''"> and cars = #{cars}</if>
39
+            <if test="drivers != null  and drivers != ''"> and drivers = #{drivers}</if>
40
+            <if test="projectNumber != null  and projectNumber != ''"> and project_number = #{projectNumber}</if>
41
+            <if test="applyReason != null  and applyReason != ''"> and apply_reason = #{applyReason}</if>
42
+            <if test="passengers != null "> and passengers = #{passengers}</if>
43
+            <if test="beginDate != null "> and begin_date = #{beginDate}</if>
44
+            <if test="beginHalfday != null  and beginHalfday != ''"> and begin_halfday = #{beginHalfday}</if>
45
+            <if test="endDate != null "> and end_date = #{endDate}</if>
46
+            <if test="endHalfday != null  and endHalfday != ''"> and end_halfday = #{endHalfday}</if>
47
+            <if test="days != null "> and days = #{days}</if>
48
+            <if test="deptUserId != null "> and dept_user_id = #{deptUserId}</if>
49
+            <if test="deptComment != null  and deptComment != ''"> and dept_comment = #{deptComment}</if>
50
+            <if test="managerUserId != null "> and manager_user_id = #{managerUserId}</if>
51
+            <if test="managerComment != null  and managerComment != ''"> and manager_comment = #{managerComment}</if>
52
+            <if test="unionUserId != null "> and union_user_id = #{unionUserId}</if>
53
+            <if test="unionComment != null  and unionComment != ''"> and union_comment = #{unionComment}</if>
54
+            <if test="dispatcher != null "> and dispatcher = #{dispatcher}</if>
55
+            <if test="dispatchComment != null  and dispatchComment != ''"> and dispatch_comment = #{dispatchComment}</if>
56
+        </where>
57
+    </select>
58
+    
59
+    <select id="selectCmcCarApprovalByCarApplyId" parameterType="String" resultMap="CmcCarApprovalResult">
60
+        <include refid="selectCmcCarApprovalVo"/>
61
+        where car_apply_id = #{carApplyId}
62
+    </select>
63
+        
64
+    <insert id="insertCmcCarApproval" parameterType="CmcCarApproval">
65
+        insert into cmc_car_approval
66
+        <trim prefix="(" suffix=")" suffixOverrides=",">
67
+            <if test="carApplyId != null">car_apply_id,</if>
68
+            <if test="applier != null">applier,</if>
69
+            <if test="cars != null">cars,</if>
70
+            <if test="drivers != null">drivers,</if>
71
+            <if test="projectNumber != null">project_number,</if>
72
+            <if test="applyReason != null">apply_reason,</if>
73
+            <if test="passengers != null">passengers,</if>
74
+            <if test="beginDate != null">begin_date,</if>
75
+            <if test="beginHalfday != null">begin_halfday,</if>
76
+            <if test="endDate != null">end_date,</if>
77
+            <if test="endHalfday != null">end_halfday,</if>
78
+            <if test="days != null">days,</if>
79
+            <if test="deptUserId != null">dept_user_id,</if>
80
+            <if test="deptComment != null">dept_comment,</if>
81
+            <if test="managerUserId != null">manager_user_id,</if>
82
+            <if test="managerComment != null">manager_comment,</if>
83
+            <if test="unionUserId != null">union_user_id,</if>
84
+            <if test="unionComment != null">union_comment,</if>
85
+            <if test="dispatcher != null">dispatcher,</if>
86
+            <if test="dispatchComment != null">dispatch_comment,</if>
87
+         </trim>
88
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
89
+            <if test="carApplyId != null">#{carApplyId},</if>
90
+            <if test="applier != null">#{applier},</if>
91
+            <if test="cars != null">#{cars},</if>
92
+            <if test="drivers != null">#{drivers},</if>
93
+            <if test="projectNumber != null">#{projectNumber},</if>
94
+            <if test="applyReason != null">#{applyReason},</if>
95
+            <if test="passengers != null">#{passengers},</if>
96
+            <if test="beginDate != null">#{beginDate},</if>
97
+            <if test="beginHalfday != null">#{beginHalfday},</if>
98
+            <if test="endDate != null">#{endDate},</if>
99
+            <if test="endHalfday != null">#{endHalfday},</if>
100
+            <if test="days != null">#{days},</if>
101
+            <if test="deptUserId != null">#{deptUserId},</if>
102
+            <if test="deptComment != null">#{deptComment},</if>
103
+            <if test="managerUserId != null">#{managerUserId},</if>
104
+            <if test="managerComment != null">#{managerComment},</if>
105
+            <if test="unionUserId != null">#{unionUserId},</if>
106
+            <if test="unionComment != null">#{unionComment},</if>
107
+            <if test="dispatcher != null">#{dispatcher},</if>
108
+            <if test="dispatchComment != null">#{dispatchComment},</if>
109
+         </trim>
110
+    </insert>
111
+
112
+    <update id="updateCmcCarApproval" parameterType="CmcCarApproval">
113
+        update cmc_car_approval
114
+        <trim prefix="SET" suffixOverrides=",">
115
+            <if test="applier != null">applier = #{applier},</if>
116
+            <if test="cars != null">cars = #{cars},</if>
117
+            <if test="drivers != null">drivers = #{drivers},</if>
118
+            <if test="projectNumber != null">project_number = #{projectNumber},</if>
119
+            <if test="applyReason != null">apply_reason = #{applyReason},</if>
120
+            <if test="passengers != null">passengers = #{passengers},</if>
121
+            <if test="beginDate != null">begin_date = #{beginDate},</if>
122
+            <if test="beginHalfday != null">begin_halfday = #{beginHalfday},</if>
123
+            <if test="endDate != null">end_date = #{endDate},</if>
124
+            <if test="endHalfday != null">end_halfday = #{endHalfday},</if>
125
+            <if test="days != null">days = #{days},</if>
126
+            <if test="deptUserId != null">dept_user_id = #{deptUserId},</if>
127
+            <if test="deptComment != null">dept_comment = #{deptComment},</if>
128
+            <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
129
+            <if test="managerComment != null">manager_comment = #{managerComment},</if>
130
+            <if test="unionUserId != null">union_user_id = #{unionUserId},</if>
131
+            <if test="unionComment != null">union_comment = #{unionComment},</if>
132
+            <if test="dispatcher != null">dispatcher = #{dispatcher},</if>
133
+            <if test="dispatchComment != null">dispatch_comment = #{dispatchComment},</if>
134
+        </trim>
135
+        where car_apply_id = #{carApplyId}
136
+    </update>
137
+
138
+    <delete id="deleteCmcCarApprovalByCarApplyId" parameterType="String">
139
+        delete from cmc_car_approval where car_apply_id = #{carApplyId}
140
+    </delete>
141
+
142
+    <delete id="deleteCmcCarApprovalByCarApplyIds" parameterType="String">
143
+        delete from cmc_car_approval where car_apply_id in 
144
+        <foreach item="carApplyId" collection="array" open="(" separator="," close=")">
145
+            #{carApplyId}
146
+        </foreach>
147
+    </delete>
148
+</mapper>

+ 61
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcCarMapper.xml Visa fil

@@ -0,0 +1,61 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcCarMapper">
6
+    
7
+    <resultMap type="CmcCar" id="CmcCarResult">
8
+        <result property="carId"    column="car_id"    />
9
+        <result property="licensePlate"    column="license_plate"    />
10
+        <result property="driver"    column="driver"    />
11
+    </resultMap>
12
+
13
+    <sql id="selectCmcCarVo">
14
+        select car_id, license_plate, driver from cmc_car
15
+    </sql>
16
+
17
+    <select id="selectCmcCarList" parameterType="CmcCar" resultMap="CmcCarResult">
18
+        <include refid="selectCmcCarVo"/>
19
+        <where>  
20
+            <if test="licensePlate != null  and licensePlate != ''"> and license_plate = #{licensePlate}</if>
21
+            <if test="driver != null "> and driver = #{driver}</if>
22
+        </where>
23
+    </select>
24
+    
25
+    <select id="selectCmcCarByCarId" parameterType="Long" resultMap="CmcCarResult">
26
+        <include refid="selectCmcCarVo"/>
27
+        where car_id = #{carId}
28
+    </select>
29
+        
30
+    <insert id="insertCmcCar" parameterType="CmcCar" useGeneratedKeys="true" keyProperty="carId">
31
+        insert into cmc_car
32
+        <trim prefix="(" suffix=")" suffixOverrides=",">
33
+            <if test="licensePlate != null">license_plate,</if>
34
+            <if test="driver != null">driver,</if>
35
+         </trim>
36
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
37
+            <if test="licensePlate != null">#{licensePlate},</if>
38
+            <if test="driver != null">#{driver},</if>
39
+         </trim>
40
+    </insert>
41
+
42
+    <update id="updateCmcCar" parameterType="CmcCar">
43
+        update cmc_car
44
+        <trim prefix="SET" suffixOverrides=",">
45
+            <if test="licensePlate != null">license_plate = #{licensePlate},</if>
46
+            <if test="driver != null">driver = #{driver},</if>
47
+        </trim>
48
+        where car_id = #{carId}
49
+    </update>
50
+
51
+    <delete id="deleteCmcCarByCarId" parameterType="Long">
52
+        delete from cmc_car where car_id = #{carId}
53
+    </delete>
54
+
55
+    <delete id="deleteCmcCarByCarIds" parameterType="String">
56
+        delete from cmc_car where car_id in 
57
+        <foreach item="carId" collection="array" open="(" separator="," close=")">
58
+            #{carId}
59
+        </foreach>
60
+    </delete>
61
+</mapper>

+ 4
- 4
oa-back/sql/ry_20231130.sql Visa fil

@@ -1327,7 +1327,7 @@ insert into cmc_project values ('1741422566360219650', '2023C96', '藏东南(
1327 1327
 drop table if exists `cmc_car`;
1328 1328
 create table `cmc_car`  (
1329 1329
   `car_id`			int			not null auto_increment		comment '车辆id',
1330
-  `license plate`	char(8)		default null				comment '车牌号',
1330
+  `license_plate`	char(8)		default null				comment '车牌号',
1331 1331
   `driver`			bigint		default null				comment '驾驶员(常用)',
1332 1332
   primary key (`car_id`)
1333 1333
 ) engine = innodb comment = 'cmc车辆信息表';
@@ -1343,9 +1343,9 @@ drop table if exists `cmc_car_approval`;
1343 1343
 create table `cmc_car_approval`  (
1344 1344
   `car_apply_id`		char(19)		not null		comment '用车申请id',
1345 1345
   `applier`				bigint			default null	comment '申请人',
1346
-  `car_id`				int				default null	comment '车辆id',
1347
-  `driver_id`			bigint			default null	comment '驾驶员',
1348
-  `project_id`			char(19)		default null	comment '项目id',
1346
+  `cars`				varchar(10)		default null	comment '车辆id',
1347
+  `drivers`				varchar(20)		default null	comment '驾驶员id',
1348
+  `project_number`		varchar(10)		default null	comment '项目编号',
1349 1349
   `apply_reason`		varchar(255)	default null 	comment '用车事由',
1350 1350
   `passengers`			int				default null 	comment '人数',
1351 1351
   `begin_date`			date			default null 	comment '开始日期',

+ 16
- 13
oa-back/sql/tony-flowable.sql
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


Loading…
Avbryt
Spara