|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+package com.huimv.employment.service.draft.dto;
|
|
|
2
|
+
|
|
|
3
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
4
|
+
|
|
|
5
|
+import javax.validation.Valid;
|
|
|
6
|
+import javax.validation.constraints.DecimalMin;
|
|
|
7
|
+import javax.validation.constraints.Max;
|
|
|
8
|
+import javax.validation.constraints.Min;
|
|
|
9
|
+import javax.validation.constraints.NotBlank;
|
|
|
10
|
+import javax.validation.constraints.NotNull;
|
|
|
11
|
+import javax.validation.constraints.Size;
|
|
|
12
|
+import java.math.BigDecimal;
|
|
|
13
|
+import java.time.LocalDate;
|
|
|
14
|
+import java.util.List;
|
|
|
15
|
+
|
|
|
16
|
+/**
|
|
|
17
|
+ * AI 内网创建用工草稿请求。
|
|
|
18
|
+ */
|
|
|
19
|
+@Schema(description = "AI 创建用工草稿请求")
|
|
|
20
|
+public class DraftCreateRequest {
|
|
|
21
|
+
|
|
|
22
|
+ @Schema(description = "所属企业 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
|
|
23
|
+ @NotNull(message = "enterpriseId 不能为空")
|
|
|
24
|
+ private Long enterpriseId;
|
|
|
25
|
+
|
|
|
26
|
+ @Schema(description = "来源会话 ID(可选)", example = "1")
|
|
|
27
|
+ private Long conversationId;
|
|
|
28
|
+
|
|
|
29
|
+ @Schema(description = "场景:existing_worker_regularization / new_demand",
|
|
|
30
|
+ requiredMode = Schema.RequiredMode.REQUIRED, example = "new_demand")
|
|
|
31
|
+ @NotBlank(message = "scenario 不能为空")
|
|
|
32
|
+ private String scenario;
|
|
|
33
|
+
|
|
|
34
|
+ @Schema(description = "自定义草稿编号(可选,须全局唯一;不传则自动生成)", example = "draft_001")
|
|
|
35
|
+ @Size(max = 32, message = "draftNo 不能超过 32 字符")
|
|
|
36
|
+ private String draftNo;
|
|
|
37
|
+
|
|
|
38
|
+ @Schema(description = "标题")
|
|
|
39
|
+ @Size(max = 200, message = "标题不能超过 200 字")
|
|
|
40
|
+ private String title;
|
|
|
41
|
+
|
|
|
42
|
+ @Schema(description = "计划用工人数")
|
|
|
43
|
+ @Min(value = 1, message = "用工人数至少为 1")
|
|
|
44
|
+ private Integer workerCount;
|
|
|
45
|
+
|
|
|
46
|
+ @Schema(description = "计划工作天数")
|
|
|
47
|
+ @Min(value = 1, message = "工作天数至少为 1")
|
|
|
48
|
+ private Integer workDays;
|
|
|
49
|
+
|
|
|
50
|
+ @Schema(description = "岗位/工种")
|
|
|
51
|
+ @Size(max = 100)
|
|
|
52
|
+ private String workType;
|
|
|
53
|
+
|
|
|
54
|
+ @Schema(description = "工作内容")
|
|
|
55
|
+ private String workContent;
|
|
|
56
|
+
|
|
|
57
|
+ @Schema(description = "工作地点")
|
|
|
58
|
+ @Size(max = 500)
|
|
|
59
|
+ private String workLocation;
|
|
|
60
|
+
|
|
|
61
|
+ @Schema(description = "工作地点来源:enterprise_registered_address / user_input / ai_inferred")
|
|
|
62
|
+ private String workLocationSource;
|
|
|
63
|
+
|
|
|
64
|
+ @Schema(description = "结算方式:daily / piece / monthly")
|
|
|
65
|
+ private String settlementMode;
|
|
|
66
|
+
|
|
|
67
|
+ @Schema(description = "日薪(元)")
|
|
|
68
|
+ @DecimalMin(value = "0.01", message = "日薪必须大于 0")
|
|
|
69
|
+ private BigDecimal dailyWage;
|
|
|
70
|
+
|
|
|
71
|
+ @Schema(description = "是否购买保险,默认 true")
|
|
|
72
|
+ private Boolean insuranceRequired;
|
|
|
73
|
+
|
|
|
74
|
+ @Schema(description = "保险档次:basic / standard / premium")
|
|
|
75
|
+ private String insuranceLevel;
|
|
|
76
|
+
|
|
|
77
|
+ @Schema(description = "是否要求打卡,默认 false")
|
|
|
78
|
+ private Boolean checkInRequired;
|
|
|
79
|
+
|
|
|
80
|
+ @Schema(description = "登记二维码有效天数,默认 7")
|
|
|
81
|
+ @Min(value = 1, message = "二维码有效天数至少为 1")
|
|
|
82
|
+ @Max(value = 90, message = "二维码有效天数不能超过 90")
|
|
|
83
|
+ private Integer qrValidDays;
|
|
|
84
|
+
|
|
|
85
|
+ @Schema(description = "计划开工日期")
|
|
|
86
|
+ private LocalDate workStartDate;
|
|
|
87
|
+
|
|
|
88
|
+ @Schema(description = "计划结束日期")
|
|
|
89
|
+ private LocalDate workEndDate;
|
|
|
90
|
+
|
|
|
91
|
+ @Schema(description = "岗位要求")
|
|
|
92
|
+ private String jobRequirements;
|
|
|
93
|
+
|
|
|
94
|
+ @Schema(description = "待补充字段名列表", example = "[\"daily_wage\",\"work_location\"]")
|
|
|
95
|
+ private List<String> missingFields;
|
|
|
96
|
+
|
|
|
97
|
+ @Schema(description = "风险提示", example = "[\"未签劳动合同存在用工风险\"]")
|
|
|
98
|
+ private List<String> riskPrompts;
|
|
|
99
|
+
|
|
|
100
|
+ @Schema(description = "预估总支出(元)")
|
|
|
101
|
+ private BigDecimal estimatedTotal;
|
|
|
102
|
+
|
|
|
103
|
+ @Schema(description = "预估人均成本(元)")
|
|
|
104
|
+ private BigDecimal estimatedPerCapita;
|
|
|
105
|
+
|
|
|
106
|
+ @Schema(description = "字段级明细(来源、可编辑性)")
|
|
|
107
|
+ @Valid
|
|
|
108
|
+ private List<DraftFieldCreateRequest> fields;
|
|
|
109
|
+
|
|
|
110
|
+ public Long getEnterpriseId() {
|
|
|
111
|
+ return enterpriseId;
|
|
|
112
|
+ }
|
|
|
113
|
+
|
|
|
114
|
+ public void setEnterpriseId(Long enterpriseId) {
|
|
|
115
|
+ this.enterpriseId = enterpriseId;
|
|
|
116
|
+ }
|
|
|
117
|
+
|
|
|
118
|
+ public Long getConversationId() {
|
|
|
119
|
+ return conversationId;
|
|
|
120
|
+ }
|
|
|
121
|
+
|
|
|
122
|
+ public void setConversationId(Long conversationId) {
|
|
|
123
|
+ this.conversationId = conversationId;
|
|
|
124
|
+ }
|
|
|
125
|
+
|
|
|
126
|
+ public String getScenario() {
|
|
|
127
|
+ return scenario;
|
|
|
128
|
+ }
|
|
|
129
|
+
|
|
|
130
|
+ public void setScenario(String scenario) {
|
|
|
131
|
+ this.scenario = scenario;
|
|
|
132
|
+ }
|
|
|
133
|
+
|
|
|
134
|
+ public String getDraftNo() {
|
|
|
135
|
+ return draftNo;
|
|
|
136
|
+ }
|
|
|
137
|
+
|
|
|
138
|
+ public void setDraftNo(String draftNo) {
|
|
|
139
|
+ this.draftNo = draftNo;
|
|
|
140
|
+ }
|
|
|
141
|
+
|
|
|
142
|
+ public String getTitle() {
|
|
|
143
|
+ return title;
|
|
|
144
|
+ }
|
|
|
145
|
+
|
|
|
146
|
+ public void setTitle(String title) {
|
|
|
147
|
+ this.title = title;
|
|
|
148
|
+ }
|
|
|
149
|
+
|
|
|
150
|
+ public Integer getWorkerCount() {
|
|
|
151
|
+ return workerCount;
|
|
|
152
|
+ }
|
|
|
153
|
+
|
|
|
154
|
+ public void setWorkerCount(Integer workerCount) {
|
|
|
155
|
+ this.workerCount = workerCount;
|
|
|
156
|
+ }
|
|
|
157
|
+
|
|
|
158
|
+ public Integer getWorkDays() {
|
|
|
159
|
+ return workDays;
|
|
|
160
|
+ }
|
|
|
161
|
+
|
|
|
162
|
+ public void setWorkDays(Integer workDays) {
|
|
|
163
|
+ this.workDays = workDays;
|
|
|
164
|
+ }
|
|
|
165
|
+
|
|
|
166
|
+ public String getWorkType() {
|
|
|
167
|
+ return workType;
|
|
|
168
|
+ }
|
|
|
169
|
+
|
|
|
170
|
+ public void setWorkType(String workType) {
|
|
|
171
|
+ this.workType = workType;
|
|
|
172
|
+ }
|
|
|
173
|
+
|
|
|
174
|
+ public String getWorkContent() {
|
|
|
175
|
+ return workContent;
|
|
|
176
|
+ }
|
|
|
177
|
+
|
|
|
178
|
+ public void setWorkContent(String workContent) {
|
|
|
179
|
+ this.workContent = workContent;
|
|
|
180
|
+ }
|
|
|
181
|
+
|
|
|
182
|
+ public String getWorkLocation() {
|
|
|
183
|
+ return workLocation;
|
|
|
184
|
+ }
|
|
|
185
|
+
|
|
|
186
|
+ public void setWorkLocation(String workLocation) {
|
|
|
187
|
+ this.workLocation = workLocation;
|
|
|
188
|
+ }
|
|
|
189
|
+
|
|
|
190
|
+ public String getWorkLocationSource() {
|
|
|
191
|
+ return workLocationSource;
|
|
|
192
|
+ }
|
|
|
193
|
+
|
|
|
194
|
+ public void setWorkLocationSource(String workLocationSource) {
|
|
|
195
|
+ this.workLocationSource = workLocationSource;
|
|
|
196
|
+ }
|
|
|
197
|
+
|
|
|
198
|
+ public String getSettlementMode() {
|
|
|
199
|
+ return settlementMode;
|
|
|
200
|
+ }
|
|
|
201
|
+
|
|
|
202
|
+ public void setSettlementMode(String settlementMode) {
|
|
|
203
|
+ this.settlementMode = settlementMode;
|
|
|
204
|
+ }
|
|
|
205
|
+
|
|
|
206
|
+ public BigDecimal getDailyWage() {
|
|
|
207
|
+ return dailyWage;
|
|
|
208
|
+ }
|
|
|
209
|
+
|
|
|
210
|
+ public void setDailyWage(BigDecimal dailyWage) {
|
|
|
211
|
+ this.dailyWage = dailyWage;
|
|
|
212
|
+ }
|
|
|
213
|
+
|
|
|
214
|
+ public Boolean getInsuranceRequired() {
|
|
|
215
|
+ return insuranceRequired;
|
|
|
216
|
+ }
|
|
|
217
|
+
|
|
|
218
|
+ public void setInsuranceRequired(Boolean insuranceRequired) {
|
|
|
219
|
+ this.insuranceRequired = insuranceRequired;
|
|
|
220
|
+ }
|
|
|
221
|
+
|
|
|
222
|
+ public String getInsuranceLevel() {
|
|
|
223
|
+ return insuranceLevel;
|
|
|
224
|
+ }
|
|
|
225
|
+
|
|
|
226
|
+ public void setInsuranceLevel(String insuranceLevel) {
|
|
|
227
|
+ this.insuranceLevel = insuranceLevel;
|
|
|
228
|
+ }
|
|
|
229
|
+
|
|
|
230
|
+ public Boolean getCheckInRequired() {
|
|
|
231
|
+ return checkInRequired;
|
|
|
232
|
+ }
|
|
|
233
|
+
|
|
|
234
|
+ public void setCheckInRequired(Boolean checkInRequired) {
|
|
|
235
|
+ this.checkInRequired = checkInRequired;
|
|
|
236
|
+ }
|
|
|
237
|
+
|
|
|
238
|
+ public Integer getQrValidDays() {
|
|
|
239
|
+ return qrValidDays;
|
|
|
240
|
+ }
|
|
|
241
|
+
|
|
|
242
|
+ public void setQrValidDays(Integer qrValidDays) {
|
|
|
243
|
+ this.qrValidDays = qrValidDays;
|
|
|
244
|
+ }
|
|
|
245
|
+
|
|
|
246
|
+ public LocalDate getWorkStartDate() {
|
|
|
247
|
+ return workStartDate;
|
|
|
248
|
+ }
|
|
|
249
|
+
|
|
|
250
|
+ public void setWorkStartDate(LocalDate workStartDate) {
|
|
|
251
|
+ this.workStartDate = workStartDate;
|
|
|
252
|
+ }
|
|
|
253
|
+
|
|
|
254
|
+ public LocalDate getWorkEndDate() {
|
|
|
255
|
+ return workEndDate;
|
|
|
256
|
+ }
|
|
|
257
|
+
|
|
|
258
|
+ public void setWorkEndDate(LocalDate workEndDate) {
|
|
|
259
|
+ this.workEndDate = workEndDate;
|
|
|
260
|
+ }
|
|
|
261
|
+
|
|
|
262
|
+ public String getJobRequirements() {
|
|
|
263
|
+ return jobRequirements;
|
|
|
264
|
+ }
|
|
|
265
|
+
|
|
|
266
|
+ public void setJobRequirements(String jobRequirements) {
|
|
|
267
|
+ this.jobRequirements = jobRequirements;
|
|
|
268
|
+ }
|
|
|
269
|
+
|
|
|
270
|
+ public List<String> getMissingFields() {
|
|
|
271
|
+ return missingFields;
|
|
|
272
|
+ }
|
|
|
273
|
+
|
|
|
274
|
+ public void setMissingFields(List<String> missingFields) {
|
|
|
275
|
+ this.missingFields = missingFields;
|
|
|
276
|
+ }
|
|
|
277
|
+
|
|
|
278
|
+ public List<String> getRiskPrompts() {
|
|
|
279
|
+ return riskPrompts;
|
|
|
280
|
+ }
|
|
|
281
|
+
|
|
|
282
|
+ public void setRiskPrompts(List<String> riskPrompts) {
|
|
|
283
|
+ this.riskPrompts = riskPrompts;
|
|
|
284
|
+ }
|
|
|
285
|
+
|
|
|
286
|
+ public BigDecimal getEstimatedTotal() {
|
|
|
287
|
+ return estimatedTotal;
|
|
|
288
|
+ }
|
|
|
289
|
+
|
|
|
290
|
+ public void setEstimatedTotal(BigDecimal estimatedTotal) {
|
|
|
291
|
+ this.estimatedTotal = estimatedTotal;
|
|
|
292
|
+ }
|
|
|
293
|
+
|
|
|
294
|
+ public BigDecimal getEstimatedPerCapita() {
|
|
|
295
|
+ return estimatedPerCapita;
|
|
|
296
|
+ }
|
|
|
297
|
+
|
|
|
298
|
+ public void setEstimatedPerCapita(BigDecimal estimatedPerCapita) {
|
|
|
299
|
+ this.estimatedPerCapita = estimatedPerCapita;
|
|
|
300
|
+ }
|
|
|
301
|
+
|
|
|
302
|
+ public List<DraftFieldCreateRequest> getFields() {
|
|
|
303
|
+ return fields;
|
|
|
304
|
+ }
|
|
|
305
|
+
|
|
|
306
|
+ public void setFields(List<DraftFieldCreateRequest> fields) {
|
|
|
307
|
+ this.fields = fields;
|
|
|
308
|
+ }
|
|
|
309
|
+}
|