ソースを参照

新增职称评审表及流程

lamphua 2週間前
コミット
7b0df3ea00

+ 97
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTitleEvalController.java ファイルの表示

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

+ 338
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTitleEval.java ファイルの表示

@@ -0,0 +1,338 @@
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_title_eval
12
+ * 
13
+ * @author cmc
14
+ * @date 2025-08-18
15
+ */
16
+public class CmcTitleEval extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 职称评审id */
21
+    private String titleEvalId;
22
+
23
+    /** 申请人 */
24
+    @Excel(name = "申请人")
25
+    private Long userId;
26
+
27
+    /** 评审年度 */
28
+    @Excel(name = "评审年度")
29
+    private String annual;
30
+
31
+    /** 评审单位 */
32
+    @Excel(name = "评审单位")
33
+    private String institude;
34
+
35
+    /** 职称类型 */
36
+    @Excel(name = "职称类型")
37
+    private String type;
38
+
39
+    /** 职称级别 */
40
+    @Excel(name = "职称级别")
41
+    private String level;
42
+
43
+    /** 职称专业名称 */
44
+    @Excel(name = "职称专业名称")
45
+    private String titleProfession;
46
+
47
+    /** 评审表(盖章前) */
48
+    @Excel(name = "评审表盖章前")
49
+    private String sheet;
50
+
51
+    /** 评审表(盖章后) */
52
+    @Excel(name = "评审表盖章后")
53
+    private String sheetStamp;
54
+
55
+    /** 其他材料 */
56
+    @Excel(name = "其他材料")
57
+    private String material;
58
+
59
+    /** 是否通过 */
60
+    @Excel(name = "是否通过")
61
+    private String isApproved;
62
+
63
+    /** 公示红头文件 */
64
+    @Excel(name = "公示红头文件")
65
+    private String publicityFile;
66
+
67
+    /** 证书扫描件 */
68
+    @Excel(name = "证书扫描件")
69
+    private String scanFile;
70
+
71
+    /** 证书取得时间 */
72
+    @JsonFormat(pattern = "yyyy-MM-dd")
73
+    @Excel(name = "证书取得时间", width = 30, dateFormat = "yyyy-MM-dd")
74
+    private Date obtainTime;
75
+
76
+    /** 申请时间 */
77
+    @JsonFormat(pattern = "yyyy-MM-dd")
78
+    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
79
+    private Date applyTime;
80
+
81
+    /** 职称管理员 */
82
+    @Excel(name = "职称管理员")
83
+    private Long titleUserId;
84
+
85
+    /** 职称管理员审核时间 */
86
+    @JsonFormat(pattern = "yyyy-MM-dd")
87
+    @Excel(name = "职称管理员审核时间", width = 30, dateFormat = "yyyy-MM-dd")
88
+    private Date titleTime;
89
+
90
+    /** 职称管理员审核意见 */
91
+    @Excel(name = "职称管理员审核意见")
92
+    private String titleComment;
93
+
94
+    /** 盖章材料上传时间 */
95
+    @JsonFormat(pattern = "yyyy-MM-dd")
96
+    @Excel(name = "盖章材料上传时间", width = 30, dateFormat = "yyyy-MM-dd")
97
+    private Date materialUploadTime;
98
+
99
+    /** 确认人 */
100
+    @Excel(name = "确认人")
101
+    private Long confirmer;
102
+
103
+    /** 确认时间 */
104
+    @JsonFormat(pattern = "yyyy-MM-dd")
105
+    @Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd")
106
+    private Date confirmTime;
107
+
108
+    /** 确认状态 */
109
+    @Excel(name = "确认状态")
110
+    private String confirmStatus;
111
+
112
+    public void setTitleEvalId(String titleEvalId) 
113
+    {
114
+        this.titleEvalId = titleEvalId;
115
+    }
116
+
117
+    public String getTitleEvalId() 
118
+    {
119
+        return titleEvalId;
120
+    }
121
+    public void setUserId(Long userId) 
122
+    {
123
+        this.userId = userId;
124
+    }
125
+
126
+    public Long getUserId() 
127
+    {
128
+        return userId;
129
+    }
130
+    public void setAnnual(String annual) 
131
+    {
132
+        this.annual = annual;
133
+    }
134
+
135
+    public String getAnnual() 
136
+    {
137
+        return annual;
138
+    }
139
+    public void setInstitude(String institude) 
140
+    {
141
+        this.institude = institude;
142
+    }
143
+
144
+    public String getInstitude() 
145
+    {
146
+        return institude;
147
+    }
148
+    public void setType(String type) 
149
+    {
150
+        this.type = type;
151
+    }
152
+
153
+    public String getType() 
154
+    {
155
+        return type;
156
+    }
157
+    public void setLevel(String level) 
158
+    {
159
+        this.level = level;
160
+    }
161
+
162
+    public String getLevel() 
163
+    {
164
+        return level;
165
+    }
166
+    public void setTitleProfession(String titleProfession) 
167
+    {
168
+        this.titleProfession = titleProfession;
169
+    }
170
+
171
+    public String getTitleProfession() 
172
+    {
173
+        return titleProfession;
174
+    }
175
+    public void setSheet(String sheet) 
176
+    {
177
+        this.sheet = sheet;
178
+    }
179
+
180
+    public String getSheet() 
181
+    {
182
+        return sheet;
183
+    }
184
+    public void setSheetStamp(String sheetStamp) 
185
+    {
186
+        this.sheetStamp = sheetStamp;
187
+    }
188
+
189
+    public String getSheetStamp() 
190
+    {
191
+        return sheetStamp;
192
+    }
193
+    public void setMaterial(String material) 
194
+    {
195
+        this.material = material;
196
+    }
197
+
198
+    public String getMaterial() 
199
+    {
200
+        return material;
201
+    }
202
+    public void setIsApproved(String isApproved) 
203
+    {
204
+        this.isApproved = isApproved;
205
+    }
206
+
207
+    public String getIsApproved() 
208
+    {
209
+        return isApproved;
210
+    }
211
+    public void setPublicityFile(String publicityFile) 
212
+    {
213
+        this.publicityFile = publicityFile;
214
+    }
215
+
216
+    public String getPublicityFile() 
217
+    {
218
+        return publicityFile;
219
+    }
220
+    public void setScanFile(String scanFile) 
221
+    {
222
+        this.scanFile = scanFile;
223
+    }
224
+
225
+    public String getScanFile() 
226
+    {
227
+        return scanFile;
228
+    }
229
+    public void setObtainTime(Date obtainTime) 
230
+    {
231
+        this.obtainTime = obtainTime;
232
+    }
233
+
234
+    public Date getObtainTime() 
235
+    {
236
+        return obtainTime;
237
+    }
238
+    public void setApplyTime(Date applyTime) 
239
+    {
240
+        this.applyTime = applyTime;
241
+    }
242
+
243
+    public Date getApplyTime() 
244
+    {
245
+        return applyTime;
246
+    }
247
+    public void setTitleUserId(Long titleUserId) 
248
+    {
249
+        this.titleUserId = titleUserId;
250
+    }
251
+
252
+    public Long getTitleUserId() 
253
+    {
254
+        return titleUserId;
255
+    }
256
+    public void setTitleTime(Date titleTime) 
257
+    {
258
+        this.titleTime = titleTime;
259
+    }
260
+
261
+    public Date getTitleTime() 
262
+    {
263
+        return titleTime;
264
+    }
265
+    public void setTitleComment(String titleComment) 
266
+    {
267
+        this.titleComment = titleComment;
268
+    }
269
+
270
+    public String getTitleComment() 
271
+    {
272
+        return titleComment;
273
+    }
274
+    public void setMaterialUploadTime(Date materialUploadTime) 
275
+    {
276
+        this.materialUploadTime = materialUploadTime;
277
+    }
278
+
279
+    public Date getMaterialUploadTime() 
280
+    {
281
+        return materialUploadTime;
282
+    }
283
+    public void setConfirmer(Long confirmer) 
284
+    {
285
+        this.confirmer = confirmer;
286
+    }
287
+
288
+    public Long getConfirmer() 
289
+    {
290
+        return confirmer;
291
+    }
292
+    public void setConfirmTime(Date confirmTime) 
293
+    {
294
+        this.confirmTime = confirmTime;
295
+    }
296
+
297
+    public Date getConfirmTime() 
298
+    {
299
+        return confirmTime;
300
+    }
301
+    public void setConfirmStatus(String confirmStatus) 
302
+    {
303
+        this.confirmStatus = confirmStatus;
304
+    }
305
+
306
+    public String getConfirmStatus() 
307
+    {
308
+        return confirmStatus;
309
+    }
310
+
311
+    @Override
312
+    public String toString() {
313
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
314
+            .append("titleEvalId", getTitleEvalId())
315
+            .append("userId", getUserId())
316
+            .append("annual", getAnnual())
317
+            .append("institude", getInstitude())
318
+            .append("type", getType())
319
+            .append("level", getLevel())
320
+            .append("titleProfession", getTitleProfession())
321
+            .append("sheet", getSheet())
322
+            .append("sheetStamp", getSheetStamp())
323
+            .append("material", getMaterial())
324
+            .append("isApproved", getIsApproved())
325
+            .append("publicityFile", getPublicityFile())
326
+            .append("scanFile", getScanFile())
327
+            .append("obtainTime", getObtainTime())
328
+            .append("applyTime", getApplyTime())
329
+            .append("titleUserId", getTitleUserId())
330
+            .append("titleTime", getTitleTime())
331
+            .append("titleComment", getTitleComment())
332
+            .append("materialUploadTime", getMaterialUploadTime())
333
+            .append("confirmer", getConfirmer())
334
+            .append("confirmTime", getConfirmTime())
335
+            .append("confirmStatus", getConfirmStatus())
336
+            .toString();
337
+    }
338
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcTitleEvalMapper.java ファイルの表示

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcTitleEvalService.java ファイルの表示

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

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcTitleEvalServiceImpl.java ファイルの表示

@@ -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.CmcTitleEvalMapper;
7
+import com.ruoyi.oa.domain.CmcTitleEval;
8
+import com.ruoyi.oa.service.ICmcTitleEvalService;
9
+
10
+/**
11
+ * 职称评审Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2025-08-18
15
+ */
16
+@Service
17
+public class CmcTitleEvalServiceImpl implements ICmcTitleEvalService 
18
+{
19
+    @Autowired
20
+    private CmcTitleEvalMapper cmcTitleEvalMapper;
21
+
22
+    /**
23
+     * 查询职称评审
24
+     * 
25
+     * @param titleEvalId 职称评审主键
26
+     * @return 职称评审
27
+     */
28
+    @Override
29
+    public CmcTitleEval selectCmcTitleEvalByTitleEvalId(String titleEvalId)
30
+    {
31
+        return cmcTitleEvalMapper.selectCmcTitleEvalByTitleEvalId(titleEvalId);
32
+    }
33
+
34
+    /**
35
+     * 查询职称评审列表
36
+     * 
37
+     * @param cmcTitleEval 职称评审
38
+     * @return 职称评审
39
+     */
40
+    @Override
41
+    public List<CmcTitleEval> selectCmcTitleEvalList(CmcTitleEval cmcTitleEval)
42
+    {
43
+        return cmcTitleEvalMapper.selectCmcTitleEvalList(cmcTitleEval);
44
+    }
45
+
46
+    /**
47
+     * 新增职称评审
48
+     * 
49
+     * @param cmcTitleEval 职称评审
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcTitleEval(CmcTitleEval cmcTitleEval)
54
+    {
55
+        return cmcTitleEvalMapper.insertCmcTitleEval(cmcTitleEval);
56
+    }
57
+
58
+    /**
59
+     * 修改职称评审
60
+     * 
61
+     * @param cmcTitleEval 职称评审
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcTitleEval(CmcTitleEval cmcTitleEval)
66
+    {
67
+        return cmcTitleEvalMapper.updateCmcTitleEval(cmcTitleEval);
68
+    }
69
+
70
+    /**
71
+     * 批量删除职称评审
72
+     * 
73
+     * @param titleEvalIds 需要删除的职称评审主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcTitleEvalByTitleEvalIds(String[] titleEvalIds)
78
+    {
79
+        return cmcTitleEvalMapper.deleteCmcTitleEvalByTitleEvalIds(titleEvalIds);
80
+    }
81
+
82
+    /**
83
+     * 删除职称评审信息
84
+     * 
85
+     * @param titleEvalId 职称评审主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcTitleEvalByTitleEvalId(String titleEvalId)
90
+    {
91
+        return cmcTitleEvalMapper.deleteCmcTitleEvalByTitleEvalId(titleEvalId);
92
+    }
93
+}

+ 158
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTitleEvalMapper.xml ファイルの表示

@@ -0,0 +1,158 @@
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.CmcTitleEvalMapper">
6
+    
7
+    <resultMap type="CmcTitleEval" id="CmcTitleEvalResult">
8
+        <result property="titleEvalId"    column="title_eval_id"    />
9
+        <result property="userId"    column="user_id"    />
10
+        <result property="annual"    column="annual"    />
11
+        <result property="institude"    column="institude"    />
12
+        <result property="type"    column="type"    />
13
+        <result property="level"    column="level"    />
14
+        <result property="titleProfession"    column="title_profession"    />
15
+        <result property="sheet"    column="sheet"    />
16
+        <result property="sheetStamp"    column="sheet_stamp"    />
17
+        <result property="material"    column="material"    />
18
+        <result property="isApproved"    column="is_approved"    />
19
+        <result property="publicityFile"    column="publicity_file"    />
20
+        <result property="scanFile"    column="scan_file"    />
21
+        <result property="obtainTime"    column="obtain_time"    />
22
+        <result property="applyTime"    column="apply_time"    />
23
+        <result property="titleUserId"    column="title_user_id"    />
24
+        <result property="titleTime"    column="title_time"    />
25
+        <result property="titleComment"    column="title_comment"    />
26
+        <result property="materialUploadTime"    column="material_upload_time"    />
27
+        <result property="confirmer"    column="confirmer"    />
28
+        <result property="confirmTime"    column="confirm_time"    />
29
+        <result property="confirmStatus"    column="confirm_status"    />
30
+    </resultMap>
31
+
32
+    <sql id="selectCmcTitleEvalVo">
33
+        select title_eval_id, user_id, annual, institude, type, level, title_profession, sheet, sheet_stamp, material, is_approved, publicity_file, scan_file, obtain_time, apply_time, title_user_id, title_time, title_comment, material_upload_time, confirmer, confirm_time, confirm_status from cmc_title_eval
34
+    </sql>
35
+
36
+    <select id="selectCmcTitleEvalList" parameterType="CmcTitleEval" resultMap="CmcTitleEvalResult">
37
+        <include refid="selectCmcTitleEvalVo"/>
38
+        <where>  
39
+            <if test="userId != null "> and user_id = #{userId}</if>
40
+            <if test="annual != null  and annual != ''"> and annual = #{annual}</if>
41
+            <if test="institude != null  and institude != ''"> and institude = #{institude}</if>
42
+            <if test="type != null  and type != ''"> and type = #{type}</if>
43
+            <if test="level != null  and level != ''"> and level = #{level}</if>
44
+            <if test="titleProfession != null  and titleProfession != ''"> and title_profession = #{titleProfession}</if>
45
+            <if test="sheet != null  and sheet != ''"> and sheet = #{sheet}</if>
46
+            <if test="sheetStamp != null  and sheetStamp != ''"> and sheet_stamp = #{sheetStamp}</if>
47
+            <if test="material != null  and material != ''"> and material = #{material}</if>
48
+            <if test="isApproved != null  and isApproved != ''"> and is_approved = #{isApproved}</if>
49
+            <if test="publicityFile != null  and publicityFile != ''"> and publicity_file = #{publicityFile}</if>
50
+            <if test="scanFile != null  and scanFile != ''"> and scan_file = #{scanFile}</if>
51
+            <if test="obtainTime != null "> and obtain_time = #{obtainTime}</if>
52
+            <if test="applyTime != null "> and apply_time = #{applyTime}</if>
53
+            <if test="titleUserId != null "> and title_user_id = #{titleUserId}</if>
54
+            <if test="titleTime != null "> and title_time = #{titleTime}</if>
55
+            <if test="titleComment != null  and titleComment != ''"> and title_comment = #{titleComment}</if>
56
+            <if test="materialUploadTime != null "> and material_upload_time = #{materialUploadTime}</if>
57
+            <if test="confirmer != null "> and confirmer = #{confirmer}</if>
58
+            <if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>
59
+            <if test="confirmStatus != null  and confirmStatus != ''"> and confirm_status = #{confirmStatus}</if>
60
+        </where>
61
+    </select>
62
+    
63
+    <select id="selectCmcTitleEvalByTitleEvalId" parameterType="String" resultMap="CmcTitleEvalResult">
64
+        <include refid="selectCmcTitleEvalVo"/>
65
+        where title_eval_id = #{titleEvalId}
66
+    </select>
67
+        
68
+    <insert id="insertCmcTitleEval" parameterType="CmcTitleEval">
69
+        insert into cmc_title_eval
70
+        <trim prefix="(" suffix=")" suffixOverrides=",">
71
+            <if test="titleEvalId != null">title_eval_id,</if>
72
+            <if test="userId != null">user_id,</if>
73
+            <if test="annual != null">annual,</if>
74
+            <if test="institude != null">institude,</if>
75
+            <if test="type != null">type,</if>
76
+            <if test="level != null">level,</if>
77
+            <if test="titleProfession != null">title_profession,</if>
78
+            <if test="sheet != null">sheet,</if>
79
+            <if test="sheetStamp != null">sheet_stamp,</if>
80
+            <if test="material != null">material,</if>
81
+            <if test="isApproved != null">is_approved,</if>
82
+            <if test="publicityFile != null">publicity_file,</if>
83
+            <if test="scanFile != null">scan_file,</if>
84
+            <if test="obtainTime != null">obtain_time,</if>
85
+            <if test="applyTime != null">apply_time,</if>
86
+            <if test="titleUserId != null">title_user_id,</if>
87
+            <if test="titleTime != null">title_time,</if>
88
+            <if test="titleComment != null">title_comment,</if>
89
+            <if test="materialUploadTime != null">material_upload_time,</if>
90
+            <if test="confirmer != null">confirmer,</if>
91
+            <if test="confirmTime != null">confirm_time,</if>
92
+            <if test="confirmStatus != null">confirm_status,</if>
93
+         </trim>
94
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
95
+            <if test="titleEvalId != null">#{titleEvalId},</if>
96
+            <if test="userId != null">#{userId},</if>
97
+            <if test="annual != null">#{annual},</if>
98
+            <if test="institude != null">#{institude},</if>
99
+            <if test="type != null">#{type},</if>
100
+            <if test="level != null">#{level},</if>
101
+            <if test="titleProfession != null">#{titleProfession},</if>
102
+            <if test="sheet != null">#{sheet},</if>
103
+            <if test="sheetStamp != null">#{sheetStamp},</if>
104
+            <if test="material != null">#{material},</if>
105
+            <if test="isApproved != null">#{isApproved},</if>
106
+            <if test="publicityFile != null">#{publicityFile},</if>
107
+            <if test="scanFile != null">#{scanFile},</if>
108
+            <if test="obtainTime != null">#{obtainTime},</if>
109
+            <if test="applyTime != null">#{applyTime},</if>
110
+            <if test="titleUserId != null">#{titleUserId},</if>
111
+            <if test="titleTime != null">#{titleTime},</if>
112
+            <if test="titleComment != null">#{titleComment},</if>
113
+            <if test="materialUploadTime != null">#{materialUploadTime},</if>
114
+            <if test="confirmer != null">#{confirmer},</if>
115
+            <if test="confirmTime != null">#{confirmTime},</if>
116
+            <if test="confirmStatus != null">#{confirmStatus},</if>
117
+         </trim>
118
+    </insert>
119
+
120
+    <update id="updateCmcTitleEval" parameterType="CmcTitleEval">
121
+        update cmc_title_eval
122
+        <trim prefix="SET" suffixOverrides=",">
123
+            <if test="userId != null">user_id = #{userId},</if>
124
+            <if test="annual != null">annual = #{annual},</if>
125
+            <if test="institude != null">institude = #{institude},</if>
126
+            <if test="type != null">type = #{type},</if>
127
+            <if test="level != null">level = #{level},</if>
128
+            <if test="titleProfession != null">title_profession = #{titleProfession},</if>
129
+            <if test="sheet != null">sheet = #{sheet},</if>
130
+            <if test="sheetStamp != null">sheet_stamp = #{sheetStamp},</if>
131
+            <if test="material != null">material = #{material},</if>
132
+            <if test="isApproved != null">is_approved = #{isApproved},</if>
133
+            <if test="publicityFile != null">publicity_file = #{publicityFile},</if>
134
+            <if test="scanFile != null">scan_file = #{scanFile},</if>
135
+            <if test="obtainTime != null">obtain_time = #{obtainTime},</if>
136
+            <if test="applyTime != null">apply_time = #{applyTime},</if>
137
+            <if test="titleUserId != null">title_user_id = #{titleUserId},</if>
138
+            <if test="titleTime != null">title_time = #{titleTime},</if>
139
+            <if test="titleComment != null">title_comment = #{titleComment},</if>
140
+            <if test="materialUploadTime != null">material_upload_time = #{materialUploadTime},</if>
141
+            <if test="confirmer != null">confirmer = #{confirmer},</if>
142
+            <if test="confirmTime != null">confirm_time = #{confirmTime},</if>
143
+            <if test="confirmStatus != null">confirm_status = #{confirmStatus},</if>
144
+        </trim>
145
+        where title_eval_id = #{titleEvalId}
146
+    </update>
147
+
148
+    <delete id="deleteCmcTitleEvalByTitleEvalId" parameterType="String">
149
+        delete from cmc_title_eval where title_eval_id = #{titleEvalId}
150
+    </delete>
151
+
152
+    <delete id="deleteCmcTitleEvalByTitleEvalIds" parameterType="String">
153
+        delete from cmc_title_eval where title_eval_id in 
154
+        <foreach item="titleEvalId" collection="array" open="(" separator="," close=")">
155
+            #{titleEvalId}
156
+        </foreach>
157
+    </delete>
158
+</mapper>

+ 58
- 22
oa-back/sql/sq.sql
ファイル差分が大きすぎるため省略します
ファイルの表示


読み込み中…
キャンセル
保存