SoOrdermasterEntity.java 13.5 KB
Newer Older
412743165@qq.com committed
1 2 3 4 5 6 7 8 9 10 11
package com.jarvis.dataCenter.entity.prod;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jarvis.lib.common.mybatisplus.entity.AbstractEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
12

412743165@qq.com committed
13 14
/**
 * <p>
15
 * ENTITY
412743165@qq.com committed
16 17 18 19 20 21 22 23 24 25
 * </p>
 *
 * @author jinzhaopo
 * @since 2019-10-22
 */
@Data
@TableName("so_ordermaster")
public class SoOrdermasterEntity extends AbstractEntity {

    private static final long serialVersionUID = 1L;
26

412743165@qq.com committed
27 28 29 30 31
    /**
     * 自增长
     */
    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;
32

412743165@qq.com committed
33 34 35 36 37
    /**
     * 销售订单编号
     */
    @TableField(ORDERMASTERCODE)
    private String orderMasterCode;
38

412743165@qq.com committed
39 40 41 42 43
    /**
     * 上级采购主订单code
     */
    @TableField(POORDERMASTERCODE)
    private String poOrderMasterCode;
44

412743165@qq.com committed
45 46 47 48 49
    /**
     * 供应商机构id
     */
    @TableField(SUPLIERID)
    private Integer suplierId;
50

412743165@qq.com committed
51 52 53 54 55
    /**
     * 收货机构id
     */
    @TableField(RECEIVEAGENCYID)
    private Integer receiveAgencyId;
56

412743165@qq.com committed
57 58 59 60 61
    /**
     * 下单机构id
     */
    @TableField(AGENCYID)
    private Integer agencyId;
62

412743165@qq.com committed
63 64 65 66 67
    /**
     * 20待支付、30待处理、35取消、40待发货、60已发货、70已完成、80缺货
     */
    @TableField(ORDERSTATUS)
    private Integer orderStatus;
68

412743165@qq.com committed
69 70 71 72 73
    /**
     * 处理状态 0未处理、40已处理
     */
    @TableField(PROCESSSTATUS)
    private Integer processStatus;
74

412743165@qq.com committed
75 76 77 78 79
    /**
     * 挂起状态:0正常, 1挂起
     */
    @TableField(LOCKSTATUS)
    private Integer lockStatus;
80

412743165@qq.com committed
81 82 83 84 85
    /**
     * 0:未支付,30:已支付,31部分支付,35已取消
     */
    @TableField(PAYSTATUS)
    private Integer payStatus;
86

412743165@qq.com committed
87 88 89 90 91
    /**
     * 销售订单主状态 0未发货、51部分发货、50全部发货
     */
    @TableField(ISSUANCESTATUS)
    private Integer issuanceStatus;
92

412743165@qq.com committed
93 94 95 96 97
    /**
     * 0未收货、61部分收货、70全部收货
     */
    @TableField(RECEIVESTATUS)
    private Integer receiveStatus;
98

412743165@qq.com committed
99 100 101 102 103
    /**
     * 收款信息
     */
    @TableField(RECEIVABLESINFO)
    private String receivablesInfo;
104

412743165@qq.com committed
105 106 107 108 109
    /**
     * 收款时间 收款时间=客户付款时间,界面显示为【销售订单生成时间】
     */
    @TableField(RECEIVABLESTIME)
    private Date receivablesTime;
110

412743165@qq.com committed
111 112 113 114 115
    /**
     * 处理时间
     */
    @TableField(PROCESSTIME)
    private Date processTime;
116

412743165@qq.com committed
117 118 119 120 121
    /**
     * 处理人
     */
    @TableField(PROCESSER)
    private String processer;
122

412743165@qq.com committed
123 124 125 126 127
    /**
     * 销售订单金额 整笔销售订单,金额总计
     */
    @TableField(TOTALAMOUNT)
    private BigDecimal totalAmount;
128

412743165@qq.com committed
129 130 131 132 133
    /**
     * 商品种类 整笔销售订单,sku的计数,不重复
     */
    @TableField(SKUKINDCNT)
    private Integer skuKindCnt;
134

412743165@qq.com committed
135 136 137 138 139
    /**
     * 商品数量 整笔销售订单,订货数量汇总
     */
    @TableField(SKUCNT)
    private Integer skuCnt;
140

412743165@qq.com committed
141 142 143 144 145
    /**
     * 备注
     */
    @TableField(MEMO)
    private String memo;
146

412743165@qq.com committed
147 148 149 150 151
    /**
     * 收发票地址id
     */
    @TableField(AGENCYADDRESSID)
    private Integer agencyAddressId;
152

412743165@qq.com committed
153 154 155 156 157
    /**
     * 国家ID
     */
    @TableField(COUNTRYID)
    private Integer countryId;
158

412743165@qq.com committed
159 160 161 162 163
    /**
     * 国家名称
     */
    @TableField(COUNTRYNAME)
    private String countryName;
164

412743165@qq.com committed
165 166 167 168 169
    /**
     * 省份ID
     */
    @TableField(PROVINCEID)
    private Integer provinceId;
170

412743165@qq.com committed
171 172 173 174 175
    /**
     * 省份名称
     */
    @TableField(PROVINCENAME)
    private String provinceName;
176

412743165@qq.com committed
177 178 179 180 181
    /**
     * 城市ID
     */
    @TableField(CITYID)
    private Integer cityId;
182

412743165@qq.com committed
183 184 185 186 187
    /**
     * 城市名称
     */
    @TableField(CITYNAME)
    private String cityName;
188

412743165@qq.com committed
189 190 191 192 193
    /**
     * 区ID
     */
    @TableField(COUNTYID)
    private Integer countyId;
194

412743165@qq.com committed
195 196 197 198 199
    /**
     * 区名称
     */
    @TableField(COUNTYNAME)
    private String countyName;
200

412743165@qq.com committed
201 202 203 204 205
    /**
     * 详细地址
     */
    @TableField(ADDRESS)
    private String address;
206

412743165@qq.com committed
207 208 209 210 211
    /**
     * 收件人姓名
     */
    @TableField(DELIVERNAME)
    private String deliverName;
212

412743165@qq.com committed
213 214 215 216 217
    /**
     * 收件人手机
     */
    @TableField(DELIVERMOBILE)
    private String deliverMobile;
218

412743165@qq.com committed
219 220 221 222 223
    /**
     * 固定电话
     */
    @TableField(DELIVERPHONE)
    private String deliverPhone;
224

412743165@qq.com committed
225 226 227 228 229
    /**
     * 邮编
     */
    @TableField(POSTCODE)
    private String postCode;
230

412743165@qq.com committed
231 232 233 234 235
    /**
     * 经度
     */
    @TableField(LONGITUDE)
    private String longitude;
236

412743165@qq.com committed
237 238 239 240 241
    /**
     * 纬度
     */
    @TableField(LATITUDE)
    private String latitude;
242

412743165@qq.com committed
243 244 245 246 247
    /**
     * 支付人,支付时记录
     */
    @TableField(PAYER)
    private String payer;
248

412743165@qq.com committed
249 250 251 252 253
    /**
     * 支付时记录
     */
    @TableField(PAYTIME)
    private Date payTime;
254

412743165@qq.com committed
255 256 257 258 259
    /**
     * 创建人
     */
    @TableField(CREATOR)
    private String creator;
260

412743165@qq.com committed
261 262 263 264 265
    /**
     * 修改人
     */
    @TableField(EDITOR)
    private String editor;
266

412743165@qq.com committed
267 268 269 270 271
    /**
     * 创建时间
     */
    @TableField(CREATEDTIME)
    private Date createdTime;
272

412743165@qq.com committed
273 274 275 276 277
    /**
     * 更新时间
     */
    @TableField(UPDATEDTIME)
    private Date updatedTime;
278

412743165@qq.com committed
279 280 281 282 283
    /**
     * 是否紧急 0:否 1:是
     */
    @TableField(ISURGENT)
    private Integer isUrgent;
284

412743165@qq.com committed
285 286 287 288 289
    /**
     * 0:线下支付,1:线上, 2:无
     */
    @TableField(PAYSTYLE)
    private Integer paystyle;
290

412743165@qq.com committed
291 292 293 294 295
    /**
     * 0线下支付;1联动支付;2银行卡;3微信;4支付宝;5账户余额; 6.无
     */
    @TableField(PAY_TYPE)
    private Integer payType;
296

412743165@qq.com committed
297 298 299 300 301
    /**
     * 订单来源类型: 1.人工创建 2.下级机构上推 3.智能柜订单4.寄售订单
     */
    @TableField(SOURCETYPE)
    private Integer sourceType;
302

412743165@qq.com committed
303 304 305 306 307
    /**
     * 优惠金额
     */
    @TableField(PROMOTIONPRICE)
    private BigDecimal promotionPrice;
308

412743165@qq.com committed
309 310 311 312 313
    /**
     * 异常状态 0无异常,1申请缺货
     */
    @TableField(ERRORSTATUS)
    private Integer errorStatus;
314

412743165@qq.com committed
315 316 317 318 319
    /**
     * 申诉状态 0无申诉,1申诉申请,2申诉回复,3申诉完成
     */
    @TableField(APPEALSTATUS)
    private Integer appealStatus;
320

412743165@qq.com committed
321 322 323 324 325
    /**
     * 自营状态 0非自营,1自营
     */
    @TableField(SELFSUPPORT)
    private Integer selfSupport;
326

412743165@qq.com committed
327 328 329 330 331
    /**
     * 是否关闭:0不关闭;1关闭
     */
    @TableField(IS_CLOSE)
    private Integer isClose;
332

412743165@qq.com committed
333 334 335 336 337
    /**
     * 补货订单和采购订单互相关联的销售单号
     */
    @TableField(RELATION_SO_CODE)
    private String relationSoCode;
338

412743165@qq.com committed
339 340 341 342 343
    /**
     * 关联关闭的销售单
     */
    @TableField(RELATION_CLOSE_SO)
    private String relationCloseSo;
344

412743165@qq.com committed
345 346 347 348 349
    /**
     * 是否生成发货单:0不生成;1生成
     */
    @TableField(CREATE_DO)
    private Integer createDo;
350

412743165@qq.com committed
351 352 353 354 355
    /**
     * 订单类型:0采购订单;1补货订单
     */
    @TableField(ORDER_TYPE)
    private Integer orderType;
356

412743165@qq.com committed
357 358 359 360 361
    /**
     * 新发货数据处理标识历史订单;1:历史订单,0非历史订单
     */
    @TableField(HISTORY_CLOSE)
    private Integer historyClose;
362

412743165@qq.com committed
363 364 365 366 367
    /**
     * 数据迁移标记字段(新增拆出来的发货单)
     */
    @TableField(CREATE_FLAG)
    private String createFlag;
368

412743165@qq.com committed
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 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 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
    /**
     * 是否余额支付限制
     */
    @TableField(HAS_PAY_LIMIT)
    private Integer hasPayLimit;


    /**
     * 自增长
     */
    public static final String ID = "id";

    /**
     * 销售订单编号
     */
    public static final String ORDERMASTERCODE = "orderMasterCode";

    /**
     * 上级采购主订单code
     */
    public static final String POORDERMASTERCODE = "poOrderMasterCode";

    /**
     * 供应商机构id
     */
    public static final String SUPLIERID = "suplierId";

    /**
     * 收货机构id
     */
    public static final String RECEIVEAGENCYID = "receiveAgencyId";

    /**
     * 下单机构id
     */
    public static final String AGENCYID = "agencyId";

    /**
     * 20待支付、30待处理、35取消、40待发货、60已发货、70已完成、80缺货
     */
    public static final String ORDERSTATUS = "orderStatus";

    /**
     * 处理状态 0未处理、40已处理
     */
    public static final String PROCESSSTATUS = "processStatus";

    /**
     * 挂起状态:0正常, 1挂起
     */
    public static final String LOCKSTATUS = "lockStatus";

    /**
     * 0:未支付,30:已支付,31部分支付,35已取消
     */
    public static final String PAYSTATUS = "payStatus";

    /**
     * 销售订单主状态 0未发货、51部分发货、50全部发货
     */
    public static final String ISSUANCESTATUS = "issuanceStatus";

    /**
     * 0未收货、61部分收货、70全部收货
     */
    public static final String RECEIVESTATUS = "receiveStatus";

    /**
     * 收款信息
     */
    public static final String RECEIVABLESINFO = "receivablesInfo";

    /**
     * 收款时间 收款时间=客户付款时间,界面显示为【销售订单生成时间】
     */
    public static final String RECEIVABLESTIME = "receivablesTime";

    /**
     * 处理时间
     */
    public static final String PROCESSTIME = "processTime";

    /**
     * 处理人
     */
    public static final String PROCESSER = "processer";

    /**
     * 销售订单金额 整笔销售订单,金额总计
     */
    public static final String TOTALAMOUNT = "totalAmount";

    /**
     * 商品种类 整笔销售订单,sku的计数,不重复
     */
    public static final String SKUKINDCNT = "skuKindCnt";

    /**
     * 商品数量 整笔销售订单,订货数量汇总
     */
    public static final String SKUCNT = "skuCnt";

    /**
     * 备注
     */
    public static final String MEMO = "memo";

    /**
     * 收发票地址id
     */
    public static final String AGENCYADDRESSID = "agencyAddressId";

    /**
     * 国家ID
     */
    public static final String COUNTRYID = "countryId";

    /**
     * 国家名称
     */
    public static final String COUNTRYNAME = "countryName";

    /**
     * 省份ID
     */
    public static final String PROVINCEID = "provinceId";

    /**
     * 省份名称
     */
    public static final String PROVINCENAME = "provinceName";

    /**
     * 城市ID
     */
    public static final String CITYID = "cityId";

    /**
     * 城市名称
     */
    public static final String CITYNAME = "cityName";

    /**
     * 区ID
     */
    public static final String COUNTYID = "countyId";

    /**
     * 区名称
     */
    public static final String COUNTYNAME = "countyName";

    /**
     * 详细地址
     */
    public static final String ADDRESS = "address";

    /**
     * 收件人姓名
     */
    public static final String DELIVERNAME = "deliverName";

    /**
     * 收件人手机
     */
    public static final String DELIVERMOBILE = "deliverMobile";

    /**
     * 固定电话
     */
    public static final String DELIVERPHONE = "deliverPhone";

    /**
     * 邮编
     */
    public static final String POSTCODE = "postCode";

    /**
     * 经度
     */
    public static final String LONGITUDE = "longitude";

    /**
     * 纬度
     */
    public static final String LATITUDE = "latitude";

    /**
     * 支付人,支付时记录
     */
    public static final String PAYER = "payer";

    /**
     * 支付时记录
     */
    public static final String PAYTIME = "payTime";

    /**
     * 创建人
     */
    public static final String CREATOR = "creator";

    /**
     * 修改人
     */
    public static final String EDITOR = "editor";

    /**
     * 创建时间
     */
    public static final String CREATEDTIME = "createdTime";

    /**
     * 更新时间
     */
    public static final String UPDATEDTIME = "updatedTime";

    /**
     * 是否紧急 0:否 1:是
     */
    public static final String ISURGENT = "isUrgent";

    /**
     * 0:线下支付,1:线上, 2:无
     */
    public static final String PAYSTYLE = "paystyle";

    /**
     * 0线下支付;1联动支付;2银行卡;3微信;4支付宝;5账户余额; 6.无
     */
    public static final String PAY_TYPE = "pay_type";

    /**
     * 订单来源类型: 1.人工创建 2.下级机构上推 3.智能柜订单4.寄售订单
     */
    public static final String SOURCETYPE = "sourceType";

    /**
     * 优惠金额
     */
    public static final String PROMOTIONPRICE = "promotionPrice";

    /**
     * 异常状态 0无异常,1申请缺货
     */
    public static final String ERRORSTATUS = "errorStatus";

    /**
     * 申诉状态 0无申诉,1申诉申请,2申诉回复,3申诉完成
     */
    public static final String APPEALSTATUS = "appealStatus";

    /**
     * 自营状态 0非自营,1自营
     */
    public static final String SELFSUPPORT = "selfSupport";

    /**
     * 是否关闭:0不关闭;1关闭
     */
    public static final String IS_CLOSE = "is_close";

    /**
     * 补货订单和采购订单互相关联的销售单号
     */
    public static final String RELATION_SO_CODE = "relation_so_code";

    /**
     * 关联关闭的销售单
     */
    public static final String RELATION_CLOSE_SO = "relation_close_so";

    /**
     * 是否生成发货单:0不生成;1生成
     */
    public static final String CREATE_DO = "create_do";

    /**
     * 订单类型:0采购订单;1补货订单
     */
    public static final String ORDER_TYPE = "order_type";

    /**
     * 新发货数据处理标识历史订单;1:历史订单,0非历史订单
     */
    public static final String HISTORY_CLOSE = "history_close";

    /**
     * 数据迁移标记字段(新增拆出来的发货单)
     */
    public static final String CREATE_FLAG = "create_flag";

    /**
     * 是否余额支付限制
     */
    public static final String HAS_PAY_LIMIT = "has_pay_limit";


}