IBIZBOOKDTO.java 12.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package cn.ibizlab.demoapi.dto;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;
23 24
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
25 26 27 28 29

/**
 * 服务DTO对象[IBIZBOOKDTO]
 */
@Data
30
@ApiModel("图书")
31 32 33 34 35 36 37 38 39 40 41
public class IBIZBOOKDTO extends DTOBase implements Serializable {

	private static final long serialVersionUID = 1L;

    /**
     * 属性 [CREATEMAN]
     *
     */
    @JSONField(name = "createman")
    @JsonProperty("createman")
    @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
42
    @ApiModelProperty("建立人")
43 44 45 46 47 48 49 50
    private String createman;

    /**
     * 属性 [IBIZBOOKNAME]
     *
     */
    @JSONField(name = "ibizbookname")
    @JsonProperty("ibizbookname")
51
    @NotBlank(message = "[图书名称]不允许为空!")
52
    @Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
53
    @ApiModelProperty("图书名称")
54 55 56 57 58 59 60 61 62
    private String ibizbookname;

    /**
     * 属性 [IBIZBOOKID]
     *
     */
    @JSONField(name = "ibizbookid")
    @JsonProperty("ibizbookid")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
63
    @ApiModelProperty("图书标识")
64 65 66 67 68 69 70 71 72
    private String ibizbookid;

    /**
     * 属性 [CREATEDATE]
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
    @JsonProperty("createdate")
73
    @ApiModelProperty("建立时间")
74 75 76 77 78 79 80 81 82
    private Timestamp createdate;

    /**
     * 属性 [UPDATEMAN]
     *
     */
    @JSONField(name = "updateman")
    @JsonProperty("updateman")
    @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
83
    @ApiModelProperty("更新人")
84 85 86 87 88 89 90 91 92
    private String updateman;

    /**
     * 属性 [UPDATEDATE]
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
    @JsonProperty("updatedate")
93
    @ApiModelProperty("更新时间")
94 95 96 97 98 99 100 101 102
    private Timestamp updatedate;

    /**
     * 属性 [AUTHOR]
     *
     */
    @JSONField(name = "author")
    @JsonProperty("author")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
103
    @ApiModelProperty("图书作者")
104 105 106 107 108 109 110 111
    private String author;

    /**
     * 属性 [PRICE]
     *
     */
    @JSONField(name = "price")
    @JsonProperty("price")
112
    @ApiModelProperty("图书价格")
113
    private Double price;
114 115 116 117 118 119 120 121

    /**
     * 属性 [PRESS]
     *
     */
    @JSONField(name = "press")
    @JsonProperty("press")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
122
    @ApiModelProperty("图书出版社")
123 124 125 126 127 128 129 130 131
    private String press;

    /**
     * 属性 [TYPE]
     *
     */
    @JSONField(name = "type")
    @JsonProperty("type")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
132
    @ApiModelProperty("图书类型")
133 134
    private String type;

135 136 137 138 139 140
    /**
     * 属性 [BOOKNUMBER]
     *
     */
    @JSONField(name = "booknumber")
    @JsonProperty("booknumber")
141
    @ApiModelProperty("图书数量")
142 143
    private Integer booknumber;

144 145 146 147 148 149 150
    /**
     * 属性 [SUBTEXT]
     *
     */
    @JSONField(name = "subtext")
    @JsonProperty("subtext")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
151
    @ApiModelProperty("图书描述")
152 153
    private String subtext;

154 155 156 157 158 159 160 161
    /**
     * 属性 [LENDOUTTIME]
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "lendouttime" , format="yyyy-MM-dd")
    @JsonProperty("lendouttime")
    @NotNull(message = "[借出日期]不允许为空!")
162
    @ApiModelProperty("借出日期")
163 164 165 166 167 168 169 170 171 172
    private Timestamp lendouttime;

    /**
     * 属性 [RETURNTIME]
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd", locale = "zh" , timezone="GMT+8")
    @JSONField(name = "returntime" , format="yyyy-MM-dd")
    @JsonProperty("returntime")
    @NotNull(message = "[归还日期]不允许为空!")
173
    @ApiModelProperty("归还日期")
174 175
    private Timestamp returntime;

176 177 178 179 180 181
    /**
     * 属性 [ICON]
     *
     */
    @JSONField(name = "icon")
    @JsonProperty("icon")
182
    @Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
183
    @ApiModelProperty("图标")
184 185
    private String icon;

186 187 188 189 190 191 192
    /**
     * 属性 [SAILSTATE]
     *
     */
    @JSONField(name = "sailstate")
    @JsonProperty("sailstate")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
193
    @ApiModelProperty("图书销售状态")
194 195
    private String sailstate;

196 197 198 199 200 201
    /**
     * 属性 [BORROWSTATUS]
     *
     */
    @JSONField(name = "borrowstatus")
    @JsonProperty("borrowstatus")
202
    @ApiModelProperty("图书借阅状态")
203 204
    private Integer borrowstatus;

205 206 207 208 209 210 211
    /**
     * 属性 [STEPSTATUS]
     *
     */
    @JSONField(name = "stepstatus")
    @JsonProperty("stepstatus")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
212
    @ApiModelProperty("步骤")
213 214
    private String stepstatus;

215 216 217 218 219 220 221
    /**
     * 属性 [BORROWER]
     *
     */
    @JSONField(name = "borrower")
    @JsonProperty("borrower")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
222
    @ApiModelProperty("借阅人")
223 224
    private String borrower;

225 226 227 228 229 230 231
    /**
     * 属性 [BORROWWAY]
     *
     */
    @JSONField(name = "borrowway")
    @JsonProperty("borrowway")
    @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
232
    @ApiModelProperty("借阅方式")
233 234
    private String borrowway;

235 236 237 238 239 240 241
    /**
     * 属性 [RETURNLIB]
     *
     */
    @JSONField(name = "returnlib")
    @JsonProperty("returnlib")
    @Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
242
    @ApiModelProperty("归还图馆")
243 244
    private String returnlib;

245 246 247 248 249 250 251
    /**
     * 属性 [BORROWERID]
     *
     */
    @JSONField(name = "borrowerid")
    @JsonProperty("borrowerid")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
252
    @ApiModelProperty("借阅人ID")
253 254
    private String borrowerid;

255 256 257 258 259 260
    /**
     * 属性 [BORROWER1]
     *
     */
    @JSONField(name = "borrower1")
    @JsonProperty("borrower1")
261
    @Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
262
    @ApiModelProperty("借阅人1")
263 264 265 266 267 268 269 270 271
    private String borrower1;

    /**
     * 属性 [BORROWER1_ID]
     *
     */
    @JSONField(name = "borrower1_id")
    @JsonProperty("borrower1_id")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
272
    @ApiModelProperty("借阅人1_ID")
273 274 275 276 277 278 279 280 281
    private String borrower1Id;

    /**
     * 属性 [BORROWER2]
     *
     */
    @JSONField(name = "borrower2")
    @JsonProperty("borrower2")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
282
    @ApiModelProperty("借阅人2")
283 284 285 286 287 288 289 290 291
    private String borrower2;

    /**
     * 属性 [BORROWER2_ID]
     *
     */
    @JSONField(name = "borrower2_id")
    @JsonProperty("borrower2_id")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
292
    @ApiModelProperty("借阅人2_ID")
293 294 295 296 297 298 299 300
    private String borrower2Id;

    /**
     * 属性 [BORROWER3]
     *
     */
    @JSONField(name = "borrower3")
    @JsonProperty("borrower3")
301
    @Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
302
    @ApiModelProperty("借阅人3")
303 304
    private String borrower3;

305 306 307 308 309 310 311
    /**
     * 属性 [BORROWER3_ID]
     *
     */
    @JSONField(name = "borrower3_id")
    @JsonProperty("borrower3_id")
    @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
312
    @ApiModelProperty("借阅人3_ID")
313 314
    private String borrower3Id;

315 316 317 318 319 320 321
    /**
     * 属性 [TAG]
     *
     */
    @JSONField(name = "tag")
    @JsonProperty("tag")
    @Size(min = 0, max = 1048576, message = "内容长度必须小于等于[1048576]")
322
    @ApiModelProperty("标签")
323 324
    private String tag;

325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344

    /**
     * 设置 [IBIZBOOKNAME]
     */
    public void setIbizbookname(String  ibizbookname){
        this.ibizbookname = ibizbookname ;
        this.modify("ibizbookname",ibizbookname);
    }

    /**
     * 设置 [AUTHOR]
     */
    public void setAuthor(String  author){
        this.author = author ;
        this.modify("author",author);
    }

    /**
     * 设置 [PRICE]
     */
345
    public void setPrice(Double  price){
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
        this.price = price ;
        this.modify("price",price);
    }

    /**
     * 设置 [PRESS]
     */
    public void setPress(String  press){
        this.press = press ;
        this.modify("press",press);
    }

    /**
     * 设置 [TYPE]
     */
    public void setType(String  type){
        this.type = type ;
        this.modify("type",type);
    }

366 367 368 369 370 371 372 373
    /**
     * 设置 [BOOKNUMBER]
     */
    public void setBooknumber(Integer  booknumber){
        this.booknumber = booknumber ;
        this.modify("booknumber",booknumber);
    }

374 375 376 377 378 379 380 381
    /**
     * 设置 [SUBTEXT]
     */
    public void setSubtext(String  subtext){
        this.subtext = subtext ;
        this.modify("subtext",subtext);
    }

382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397
    /**
     * 设置 [LENDOUTTIME]
     */
    public void setLendouttime(Timestamp  lendouttime){
        this.lendouttime = lendouttime ;
        this.modify("lendouttime",lendouttime);
    }

    /**
     * 设置 [RETURNTIME]
     */
    public void setReturntime(Timestamp  returntime){
        this.returntime = returntime ;
        this.modify("returntime",returntime);
    }

398 399 400 401 402 403 404 405
    /**
     * 设置 [ICON]
     */
    public void setIcon(String  icon){
        this.icon = icon ;
        this.modify("icon",icon);
    }

406 407 408 409 410 411 412 413
    /**
     * 设置 [SAILSTATE]
     */
    public void setSailstate(String  sailstate){
        this.sailstate = sailstate ;
        this.modify("sailstate",sailstate);
    }

414 415 416 417 418 419 420 421
    /**
     * 设置 [BORROWSTATUS]
     */
    public void setBorrowstatus(Integer  borrowstatus){
        this.borrowstatus = borrowstatus ;
        this.modify("borrowstatus",borrowstatus);
    }

422 423 424 425 426 427 428 429
    /**
     * 设置 [STEPSTATUS]
     */
    public void setStepstatus(String  stepstatus){
        this.stepstatus = stepstatus ;
        this.modify("stepstatus",stepstatus);
    }

430 431 432 433 434 435 436 437
    /**
     * 设置 [BORROWER]
     */
    public void setBorrower(String  borrower){
        this.borrower = borrower ;
        this.modify("borrower",borrower);
    }

438 439 440 441 442 443 444 445
    /**
     * 设置 [BORROWWAY]
     */
    public void setBorrowway(String  borrowway){
        this.borrowway = borrowway ;
        this.modify("borrowway",borrowway);
    }

446 447 448 449 450 451 452 453
    /**
     * 设置 [RETURNLIB]
     */
    public void setReturnlib(String  returnlib){
        this.returnlib = returnlib ;
        this.modify("returnlib",returnlib);
    }

454 455 456 457 458 459 460 461
    /**
     * 设置 [BORROWERID]
     */
    public void setBorrowerid(String  borrowerid){
        this.borrowerid = borrowerid ;
        this.modify("borrowerid",borrowerid);
    }

462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
    /**
     * 设置 [BORROWER1]
     */
    public void setBorrower1(String  borrower1){
        this.borrower1 = borrower1 ;
        this.modify("borrower1",borrower1);
    }

    /**
     * 设置 [BORROWER1_ID]
     */
    public void setBorrower1Id(String  borrower1Id){
        this.borrower1Id = borrower1Id ;
        this.modify("borrower1_id",borrower1Id);
    }

    /**
     * 设置 [BORROWER2]
     */
    public void setBorrower2(String  borrower2){
        this.borrower2 = borrower2 ;
        this.modify("borrower2",borrower2);
    }

    /**
     * 设置 [BORROWER2_ID]
     */
    public void setBorrower2Id(String  borrower2Id){
        this.borrower2Id = borrower2Id ;
        this.modify("borrower2_id",borrower2Id);
    }

    /**
     * 设置 [BORROWER3]
     */
    public void setBorrower3(String  borrower3){
        this.borrower3 = borrower3 ;
        this.modify("borrower3",borrower3);
    }

502 503 504 505 506 507 508 509
    /**
     * 设置 [BORROWER3_ID]
     */
    public void setBorrower3Id(String  borrower3Id){
        this.borrower3Id = borrower3Id ;
        this.modify("borrower3_id",borrower3Id);
    }

510 511 512 513 514 515 516 517
    /**
     * 设置 [TAG]
     */
    public void setTag(String  tag){
        this.tag = tag ;
        this.modify("tag",tag);
    }

518 519 520 521

}