From f3e048d0700e0a5c2d38fa5afd42eec01b5fab14 Mon Sep 17 00:00:00 2001 From: Quzf Date: Thu, 14 Sep 2017 16:42:07 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=80=E5=94=AE?= =?UTF-8?q?=E7=AB=AF=E6=9F=A5=E8=AF=A2=E8=B5=B7=E7=82=B9=E7=BB=88=E7=82=B9?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=B8=8B=E5=8D=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E8=BF=90=E4=BB=B7=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=AD=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unlcn/ils/sales/api/dto/OrderSaveDTO.java | 125 +- .../unlcn/ils/sales/api/rest/AreaRest.java | 15 +- .../unlcn/ils/sales/backend/bo/OrderBO.java | 103 +- .../ils/sales/backend/bo/OrderSkuBO.java | 14 +- .../ils/sales/backend/bo/OrderToKyleBO.java | 76 + .../backend/constant/AutoConfConstant.java | 23 + .../backend/service/OrderAddrService.java | 7 +- .../backend/service/OrderAddrServiceImpl.java | 47 +- .../service/OrderAuditServiceImpl.java | 7 + .../backend/service/OrderServiceImpl.java | 23 +- .../backend/service/OrderSkuServiceImpl.java | 37 +- .../src/main/resources/constant.properties | 5 + .../lib/mybatis-page-plugin-1.0-SNAPSHOT.jar | Bin 0 -> 5256 bytes .../base/mapper/SaleOrderAddrMapper.java | 22 +- .../sales/base/mapper/SaleOrderMapper.java | 22 +- .../base/mapper/SaleOrderTicketMapper.java | 96 ++ .../ils/sales/base/model/OrderViewDAO.java | 78 + .../unlcn/ils/sales/base/model/SaleOrder.java | 349 +++- .../ils/sales/base/model/SaleOrderAddr.java | 160 +- .../base/model/SaleOrderAddrExample.java | 196 ++- .../sales/base/model/SaleOrderExample.java | 496 +++++- .../ils/sales/base/model/SaleOrderTicket.java | 558 ++++++ .../base/model/SaleOrderTicketExample.java | 1499 +++++++++++++++++ .../resources/mappers/SaleOrderAddrMapper.xml | 330 ++-- .../resources/mappers/SaleOrderMapper.xml | 168 +- .../mappers/SaleOrderTicketMapper.xml | 464 +++++ .../resources/mappers/SaleOrderViewMapper.xml | 49 +- .../resources/mybatis/generatorConfig.xml | 21 +- 28 files changed, 4549 insertions(+), 441 deletions(-) create mode 100644 ils-sales-base/lib/mybatis-page-plugin-1.0-SNAPSHOT.jar create mode 100644 ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderTicketMapper.java create mode 100644 ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicket.java create mode 100644 ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicketExample.java create mode 100644 ils-sales-base/src/main/resources/mappers/SaleOrderTicketMapper.xml diff --git a/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/dto/OrderSaveDTO.java b/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/dto/OrderSaveDTO.java index cbe40fa..7ff33b3 100644 --- a/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/dto/OrderSaveDTO.java +++ b/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/dto/OrderSaveDTO.java @@ -22,9 +22,35 @@ public class OrderSaveDTO { @NotNull(message = "下单人不能为空") private Integer userId; + @ApiModelProperty(value = "提车日期", required = true) + @NotBlank(message = "提车日期不能为空") + private String pickDate; + @ApiModelProperty(value = "提车时间", required = true) @NotBlank(message = "提车时间不能为空") - private String pickDate; + private String pickTime; + + @ApiModelProperty(value = "是否上门提车", required = true) + @NotNull(message = "是否上门提车不能为空") + private Integer isPick; + + @ApiModelProperty(value = "是否送车上门", required = true) + @NotNull(message = "是否送车上门不能为空") + private Integer isDeliv; + + @ApiModelProperty(value = "运输方式(10:大板,20:单板)", required = true) + @NotNull(message = "运输方式不能为空") + private Integer transportType; + + @ApiModelProperty(value = "是否开票(0:否,1:是)", required = true) + @NotNull(message = "是否开票不能为空") + private Integer isTicket; + + @ApiModelProperty(value = "发票抬头") + private String companyName; + + @ApiModelProperty(value = "纳税人识别码") + private String identifyNumber; @ApiModelProperty(value = "品牌数量", required = true) @NotNull(message = "品牌数量不能为空") @@ -74,12 +100,10 @@ public class OrderSaveDTO { @NotBlank(message = "起运地名称不能为空") private String departRegionName; - @ApiModelProperty(value = "发车联系人", required = true) - @NotBlank(message = "发车联系人不能为空") + @ApiModelProperty(value = "发车联系人") private String departContact; - @ApiModelProperty(value = "发车人联系电话", required = true) - @NotBlank(message = "发车人联系电话不能为空") + @ApiModelProperty(value = "发车人联系电话") private String departPhone; @ApiModelProperty(value = "目的地编码", required = true) @@ -90,12 +114,10 @@ public class OrderSaveDTO { @NotBlank(message = "目的地名称不能为空") private String destRegionName; - @ApiModelProperty(value = "收车联系人", required = true) - @NotBlank(message = "收车联系人不能为空") + @ApiModelProperty(value = "收车联系人") private String destContact; - @ApiModelProperty(value = "收车人联系电话", required = true) - @NotBlank(message = "收车人联系电话不能为空") + @ApiModelProperty(value = "收车人联系电话") private String destPhone; @ApiModelProperty(value = "里程", required = true) @@ -113,6 +135,10 @@ public class OrderSaveDTO { // 销售订单标签 private String orderTagBOS; + // 发车详细地址 + private String departAddr; + // 收车详细地址 + private String destAddr; public Integer getId() { return id; @@ -330,6 +356,78 @@ public class OrderSaveDTO { this.insuranceUnitPrice = insuranceUnitPrice; } + public String getPickTime() { + return pickTime; + } + + public void setPickTime(String pickTime) { + this.pickTime = pickTime; + } + + public Integer getIsPick() { + return isPick; + } + + public void setIsPick(Integer isPick) { + this.isPick = isPick; + } + + public Integer getIsDeliv() { + return isDeliv; + } + + public void setIsDeliv(Integer isDeliv) { + this.isDeliv = isDeliv; + } + + public Integer getTransportType() { + return transportType; + } + + public void setTransportType(Integer transportType) { + this.transportType = transportType; + } + + public Integer getIsTicket() { + return isTicket; + } + + public void setIsTicket(Integer isTicket) { + this.isTicket = isTicket; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public String getIdentifyNumber() { + return identifyNumber; + } + + public void setIdentifyNumber(String identifyNumber) { + this.identifyNumber = identifyNumber; + } + + public String getDepartAddr() { + return departAddr; + } + + public void setDepartAddr(String departAddr) { + this.departAddr = departAddr; + } + + public String getDestAddr() { + return destAddr; + } + + public void setDestAddr(String destAddr) { + this.destAddr = destAddr; + } + @Override public String toString() { return "OrderSaveDTO{" + @@ -337,6 +435,13 @@ public class OrderSaveDTO { ", code='" + code + '\'' + ", userId=" + userId + ", pickDate='" + pickDate + '\'' + + ", pickTime='" + pickTime + '\'' + + ", isPick='" + isPick + '\'' + + ", isDeliv='" + isDeliv + '\'' + + ", transportType='" + transportType + '\'' + + ", isTicket='" + isTicket + '\'' + + ", companyName='" + companyName + '\'' + + ", identifyNumber='" + identifyNumber + '\'' + ", brands=" + brands + ", seriesAmt=" + seriesAmt + ", standardSalePrice=" + standardSalePrice + @@ -360,6 +465,8 @@ public class OrderSaveDTO { ", lineId=" + lineId + ", orderSkuBOS='" + orderSkuBOS + '\'' + ", orderTagBOS='" + orderTagBOS + '\'' + + ", departAddr='" + departAddr + '\'' + + ", destAddr='" + destAddr + '\'' + '}'; } } diff --git a/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/rest/AreaRest.java b/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/rest/AreaRest.java index aa81853..3b5d105 100644 --- a/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/rest/AreaRest.java +++ b/ils-sales-api/src/main/java/com/unlcn/ils/sales/api/rest/AreaRest.java @@ -57,18 +57,17 @@ public class AreaRest { /** * 查询目的地 * - * @param departAreaId 起运地ID * @param provinceId 目的地省ID * @return */ - @RequestMapping(value = "/destarea/{departAreaId}/{provinceId}", method = RequestMethod.GET) + @RequestMapping(value = "/destarea/{provinceId}", method = RequestMethod.GET) @ApiOperation(value = "获取目的地区域信息", notes = "获取目的地区域信息", produces = MediaType.APPLICATION_JSON_VALUE) @ApiResponses(value = {@ApiResponse(code = 404, message = "destarea not found")}) public @ResponseBody - ResultDTO destArea(@ApiParam(value = "起运地ID", required = true) @PathVariable(value = "departAreaId") Integer departAreaId, @ApiParam(value = "目的地省ID", required = true) @PathVariable(value = "provinceId") Integer provinceId) { + ResultDTO destArea(@ApiParam(value = "目的地省ID", required = true) @PathVariable(value = "provinceId") Integer provinceId) { ResultDTO result = new ResultDTO(true, null, "查询目的地区域成功"); try { - result.setData(converAreaBOToAreaDTO(addrService.listAreaByCondition(departAreaId, provinceId))); + result.setData(converAreaBOToAreaDTO(addrService.listAreaByCondition(provinceId))); } catch (Exception e) { LOGGER.error("AreaRest destArea error: {}", e); throw new BusinessException(e.getMessage()); @@ -79,17 +78,17 @@ public class AreaRest { /** * 查询目的地省 * - * @param departAreaId 起运地ID + * @param * @return */ - @RequestMapping(value = "/provincearea/{departAreaId}", method = RequestMethod.GET) + @RequestMapping(value = "/provincearea", method = RequestMethod.GET) @ApiOperation(value = "获取目的地省信息", notes = "获取目的地省信息", produces = MediaType.APPLICATION_JSON_VALUE) @ApiResponses(value = {@ApiResponse(code = 404, message = "destarea not found")}) public @ResponseBody - ResultDTO provinceArea(@ApiParam(value = "起运地ID", required = true) @PathVariable(value = "departAreaId") Integer departAreaId) { + ResultDTO provinceArea() { ResultDTO result = new ResultDTO(true, null, "查询目的地省成功"); try { - result.setData(converAreaBOToAreaDTO(addrService.listAreaByCondition(departAreaId))); + result.setData(converAreaBOToAreaDTO(addrService.listAreaByCondition())); } catch (Exception e) { LOGGER.error("AreaRest provinceArea error: {}", e); throw new BusinessException(e.getMessage()); diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderBO.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderBO.java index 27c0c34..f232e34 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderBO.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderBO.java @@ -15,8 +15,24 @@ public class OrderBO { private Integer id; private String code; private Integer userId; - @NotNull(message = "提车时间不能为空") + @NotNull(message = "提车日期不能为空") private Date pickDate; + + @NotBlank(message = "提车时间不能为空") + private String pickTime; + @NotNull(message = "是否上门提车不能为空") + private Integer isPick; + @NotNull(message = "是否送车上门不能为空") + private Integer isDeliv; + @NotNull(message = "运输方式不能为空") + private Integer transportType; + @NotNull(message = "是否开票不能为空") + private Integer isTicket; + //"发票抬头" + private String companyName; + // "纳税人识别码" + private String identifyNumber; + @NotNull(message = "商品车品牌个数不能为空") private Integer brands; @NotNull(message = "商品车数量不能为空") @@ -64,6 +80,10 @@ public class OrderBO { // 销售订单标签 private String orderTagBOS; + // 发车详细地址 + private String departAddr; + // 收车详细地址 + private String destAddr; public Integer getId() { return id; @@ -281,6 +301,78 @@ public class OrderBO { this.insuranceUnitPrice = insuranceUnitPrice; } + public String getPickTime() { + return pickTime; + } + + public void setPickTime(String pickTime) { + this.pickTime = pickTime; + } + + public Integer getIsPick() { + return isPick; + } + + public void setIsPick(Integer isPick) { + this.isPick = isPick; + } + + public Integer getIsDeliv() { + return isDeliv; + } + + public void setIsDeliv(Integer isDeliv) { + this.isDeliv = isDeliv; + } + + public Integer getTransportType() { + return transportType; + } + + public void setTransportType(Integer transportType) { + this.transportType = transportType; + } + + public Integer getIsTicket() { + return isTicket; + } + + public void setIsTicket(Integer isTicket) { + this.isTicket = isTicket; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + public String getIdentifyNumber() { + return identifyNumber; + } + + public void setIdentifyNumber(String identifyNumber) { + this.identifyNumber = identifyNumber; + } + + public String getDepartAddr() { + return departAddr; + } + + public void setDepartAddr(String departAddr) { + this.departAddr = departAddr; + } + + public String getDestAddr() { + return destAddr; + } + + public void setDestAddr(String destAddr) { + this.destAddr = destAddr; + } + @Override public String toString() { return "OrderBO{" + @@ -288,6 +380,13 @@ public class OrderBO { ", code='" + code + '\'' + ", userId=" + userId + ", pickDate=" + pickDate + + ", pickTime='" + pickTime + '\'' + + ", isPick='" + isPick + '\'' + + ", isDeliv='" + isDeliv + '\'' + + ", transportType='" + transportType + '\'' + + ", isTicket='" + isTicket + '\'' + + ", companyName='" + companyName + '\'' + + ", identifyNumber='" + identifyNumber + '\'' + ", brands=" + brands + ", seriesAmt=" + seriesAmt + ", standardSalePrice=" + standardSalePrice + @@ -311,6 +410,8 @@ public class OrderBO { ", lineId=" + lineId + ", orderSkuBOS='" + orderSkuBOS + '\'' + ", orderTagBOS='" + orderTagBOS + '\'' + + ", departAddr='" + departAddr + '\'' + + ", destAddr='" + destAddr + '\'' + '}'; } } diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderSkuBO.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderSkuBO.java index b598da1..cfa4133 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderSkuBO.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderSkuBO.java @@ -1,5 +1,7 @@ package com.unlcn.ils.sales.backend.bo; +import java.util.List; + /** * Created by houjianhui on 2017/5/27. */ @@ -15,7 +17,7 @@ public class OrderSkuBO { private String modelCode; private String modelName; private Integer amt; - private String vin; + private List vinList; public Integer getBrandId() { return brandId; @@ -89,12 +91,12 @@ public class OrderSkuBO { this.modelName = modelName; } - public String getVin() { - return vin; + public List getVinList() { + return vinList; } - public void setVin(String vin) { - this.vin = vin; + public void setVinList(List vinList) { + this.vinList = vinList; } public Integer getSaleOrderId() { @@ -127,7 +129,7 @@ public class OrderSkuBO { ", modelCode='" + modelCode + '\'' + ", modelName='" + modelName + '\'' + ", amt=" + amt + - ", vin='" + vin + '\'' + + ", vinList='" + vinList + '\'' + '}'; } } diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderToKyleBO.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderToKyleBO.java index 9708283..b8490f0 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderToKyleBO.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/bo/OrderToKyleBO.java @@ -34,6 +34,21 @@ public class OrderToKyleBO { private String comment; + // 是否开票 + private Boolean isTicket; + // 运输方式 + private Integer transportType; + // 是否上门提车 + private Boolean isPick; + // 是否送车上门 + private Boolean isDeliv; + // 提车详细地址 + private String departAddr; + // 送车详细地址 + private String destAddr; + // 提车时间 + private String pickTime; + public Integer getUserId() { return userId; } @@ -217,7 +232,61 @@ public class OrderToKyleBO { public void setComment(String comment) { this.comment = comment; } + public Boolean getIsTicket() { + return isTicket; + } + + public void setIsTicket(Boolean isTicket) { + isTicket = isTicket; + } + + public Integer getTransportType() { + return transportType; + } + + public void setTransportType(Integer transportType) { + this.transportType = transportType; + } + + public Boolean getIsPick() { + return isPick; + } + + public void setIsPick(Boolean isPick) { + isPick = isPick; + } + + public Boolean getIsDeliv() { + return isDeliv; + } + public void setIsDeliv(Boolean isDeliv) { + isDeliv = isDeliv; + } + + public String getDepartAddr() { + return departAddr; + } + + public void setDepartAddr(String departAddr) { + this.departAddr = departAddr; + } + + public String getDestAddr() { + return destAddr; + } + + public void setDestAddr(String destAddr) { + this.destAddr = destAddr; + } + + public String getPickTime() { + return pickTime; + } + + public void setPickTime(String pickTime) { + this.pickTime = pickTime; + } @Override public String toString() { return "OrderToKyleBO{" + @@ -244,6 +313,13 @@ public class OrderToKyleBO { ", orderStatus=" + orderStatus + ", orderSku='" + orderSku + '\'' + ", comment='" + comment + '\'' + + ", isTicket=" + isTicket + + ", transportType=" + transportType + + ", isPick=" + isPick + + ", isDeliv=" + isDeliv + + ", departAddr=" + departAddr + + ", destAddr=" + destAddr + + ", pickTime=" + pickTime + '}'; } } diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/constant/AutoConfConstant.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/constant/AutoConfConstant.java index 6ffe1e4..0a969fc 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/constant/AutoConfConstant.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/constant/AutoConfConstant.java @@ -40,6 +40,13 @@ public class AutoConfConstant { @Value("${secure.bank.key}") private String bankSecureKey; + @Value("${hyc.operation.url}") + private String operation; + + @Value("${hyc.operation.url.timeout}") + private Integer operationTime; + + public String getSc() { return sc; } @@ -119,4 +126,20 @@ public class AutoConfConstant { public void setBankSecureKey(String bankSecureKey) { this.bankSecureKey = bankSecureKey; } + + public String getOperation() { + return operation; + } + + public void setOperation(String operation) { + this.operation = operation; + } + + public Integer getOperationTime() { + return operationTime; + } + + public void setOperationTime(Integer operationTime) { + this.operationTime = operationTime; + } } diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrService.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrService.java index 3e22499..7eeac79 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrService.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrService.java @@ -32,18 +32,17 @@ public interface OrderAddrService { /** * 查询目的地区域(省)信息 * - * @param startAreaId 启运地ID + * @param * @return * @throws Exception */ - List listAreaByCondition(Integer startAreaId) throws Exception; + List listAreaByCondition() throws Exception; /** * 根据起运地ID、目的地省ID查询区域信息 * - * @param startAreaId 起运地ID * @param endProvinceId 目的地省ID * @return */ - List listAreaByCondition(Integer startAreaId, Integer endProvinceId) throws Exception; + List listAreaByCondition(Integer endProvinceId) throws Exception; } diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrServiceImpl.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrServiceImpl.java index e1f03e0..5fb1f01 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrServiceImpl.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAddrServiceImpl.java @@ -66,24 +66,29 @@ public class OrderAddrServiceImpl implements OrderAddrService { } @Override - public List listAreaByCondition(Integer startAreaId) throws Exception { - return resolvAreaFormSCResult(null, startAreaId, null, province); + public List listAreaByCondition() throws Exception { + return resolvAreaFormSCResult(null, null, null, province); } @Override - public List listAreaByCondition(Integer startAreaId, Integer endProvinceId) throws Exception { - return resolvAreaFormSCResult(null, startAreaId, endProvinceId, endArea); + public List listAreaByCondition(Integer endProvinceId) throws Exception { + return resolvAreaFormSCResult(null, null, endProvinceId, endArea); } private List resolvAreaFormSCResult(String key, Integer startAreaId, Integer endProvinceId, String tag) throws Exception { - String url = autoConfConstant.getSc(); - Integer time = autoConfConstant.getScTime(); +// String url = autoConfConstant.getSc(); +// Integer time = autoConfConstant.getScTime(); + String url = autoConfConstant.getOperation(); + Integer time = autoConfConstant.getOperationTime(); if (startArea.equals(tag)) { - url = url + "/api/network/lnlines/queryStartArea/" + key; +// url = url + "/api/network/lnlines/queryStartArea/" + key; + url = url + "/api/line/queryStartArea/" + key; } else if (province.equals(tag)) { - url = url + "/api/network/lnlines/queryEndProvince/" + startAreaId ; +// url = url + "/api/network/lnlines/queryEndProvince/" + startAreaId ; + url = url + "/api/area/getAllProvince"; } else if (endArea.equals(tag)) { - url = url + "/api/network/lnlines/queryEndArea/" + startAreaId + "/" + endProvinceId; +// url = url + "/api/network/lnlines/queryEndArea/" + startAreaId + "/" + endProvinceId; + url = url + "/api/area/queryCityByPid/" + endProvinceId; } String result = HttpRequestUtil.sendHttpGet(url, null, time); if (!Objects.equals(result, null)) { @@ -109,24 +114,24 @@ public class OrderAddrServiceImpl implements OrderAddrService { } else if (Objects.equals(bo.getDepartRegionName(), null) || Objects.equals(bo.getDepartRegionName(), "")) { LOGGER.info("OrderAddrServiceImpl.save param DepartRegionName must not be null"); throw new IllegalArgumentException("起运地名称不能为空"); - } else if (Objects.equals(bo.getDepartContact(), null) || Objects.equals(bo.getDepartContact(), "")) { - LOGGER.info("OrderAddrServiceImpl.save param DepartContact must not be null"); - throw new IllegalArgumentException("发车联系人不能为空"); - } else if (Objects.equals(bo.getDepartPhone(), null) || Objects.equals(bo.getDepartPhone(), "")) { - LOGGER.info("OrderAddrServiceImpl.save param DepartPhone must not be null"); - throw new IllegalArgumentException("发车人联系电话不能为空"); +// } else if (Objects.equals(bo.getDepartContact(), null) || Objects.equals(bo.getDepartContact(), "")) { +// LOGGER.info("OrderAddrServiceImpl.save param DepartContact must not be null"); +// throw new IllegalArgumentException("发车联系人不能为空"); +// } else if (Objects.equals(bo.getDepartPhone(), null) || Objects.equals(bo.getDepartPhone(), "")) { +// LOGGER.info("OrderAddrServiceImpl.save param DepartPhone must not be null"); +// throw new IllegalArgumentException("发车人联系电话不能为空"); } else if (Objects.equals(bo.getDestRegionCode(), null) || Objects.equals(bo.getDestRegionCode(), "")) { LOGGER.info("OrderAddrServiceImpl.save param DestRegionCode must not be null"); throw new IllegalArgumentException("目的地编码不能为空"); } else if (Objects.equals(bo.getDestRegionName(), null) || Objects.equals(bo.getDestRegionName(), "")) { LOGGER.info("OrderAddrServiceImpl.save param DestRegionName must not be null"); throw new IllegalArgumentException("目的地名称不能为空"); - } else if (Objects.equals(bo.getDestContact(), null) || Objects.equals(bo.getDestContact(), "")) { - LOGGER.info("OrderAddrServiceImpl.save param DestContact must not be null"); - throw new IllegalArgumentException("收车联系人不能为空"); - } else if (Objects.equals(bo.getDestPhone(), null) || Objects.equals(bo.getDestPhone(), "")) { - LOGGER.info("OrderAddrServiceImpl.save param DestPhone must not be null"); - throw new IllegalArgumentException("收车联系人电话不能为空"); +// } else if (Objects.equals(bo.getDestContact(), null) || Objects.equals(bo.getDestContact(), "")) { +// LOGGER.info("OrderAddrServiceImpl.save param DestContact must not be null"); +// throw new IllegalArgumentException("收车联系人不能为空"); +// } else if (Objects.equals(bo.getDestPhone(), null) || Objects.equals(bo.getDestPhone(), "")) { +// LOGGER.info("OrderAddrServiceImpl.save param DestPhone must not be null"); +// throw new IllegalArgumentException("收车联系人电话不能为空"); } else if (Objects.equals(bo.getDistance(), null) || Objects.equals(bo.getDistance(), "")) { LOGGER.info("OrderAddrServiceImpl.save param Distance must not be null"); throw new IllegalArgumentException("里程不能为空"); diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAuditServiceImpl.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAuditServiceImpl.java index cf1a582..246f16a 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAuditServiceImpl.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderAuditServiceImpl.java @@ -162,6 +162,13 @@ public class OrderAuditServiceImpl implements OrderAuditService { bo.setBxCost(val.getInsuranceSalePrice().toString()); bo.setOrderSku(JSONArray.toJSONString(val.getOrderSkus())); bo.setComment(val.getComment()); + bo.setIsPick(val.getIsPick()); + bo.setIsDeliv(val.getIsDeliv()); + bo.setIsTicket(val.getIsTicket()); + bo.setTransportType(val.getTransportType()); + bo.setDepartAddr(val.getDepartAddr()); + bo.setDestAddr(val.getDestAddr()); + bo.setPickTime(val.getPickTime()); bos.add(bo); }); return bos; diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderServiceImpl.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderServiceImpl.java index e1fc7d0..449901b 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderServiceImpl.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderServiceImpl.java @@ -13,6 +13,7 @@ import com.unlcn.ils.sales.backend.enums.AttachAuditStatusEnum; import com.unlcn.ils.sales.backend.enums.OrderStatusEnum; import com.unlcn.ils.sales.backend.util.UniquenessUtil; import com.unlcn.ils.sales.base.mapper.SaleOrderMapper; +import com.unlcn.ils.sales.base.mapper.SaleOrderTicketMapper; import com.unlcn.ils.sales.base.mapper.SaleOrderViewMapper; import com.unlcn.ils.sales.base.model.*; import org.apache.commons.collections4.CollectionUtils; @@ -59,6 +60,9 @@ public class OrderServiceImpl implements OrderService { @Autowired private AutoConfConstant autoConfConstant; + @Autowired + private SaleOrderTicketMapper ticketMapper; + @Override public int save(OrderBO bo, BindingResult br) throws Exception { LOGGER.info("OrderServiceImpl.save params OrderBO: {}", bo); @@ -79,6 +83,10 @@ public class OrderServiceImpl implements OrderService { // 保存订单信息 SaleOrder order = new SaleOrder(); BeanUtils.copyProperties(bo, order); + if (bo.getIsPick() ==1){ order.setIsPick(true); }else if(bo.getIsPick() ==0){ order.setIsPick(false); } + if (bo.getIsTicket() ==1){ order.setIsTicket(true); }else if(bo.getIsTicket() ==0){ order.setIsTicket(false); } + if (bo.getIsDeliv() ==1){ order.setIsDeliv(true); }else if(bo.getIsDeliv() ==0){ order.setIsDeliv(false); } + try { orderMapper.insertSelective(order); } catch (Exception e) { @@ -96,6 +104,15 @@ public class OrderServiceImpl implements OrderService { // 保存销售订单审核信息 orderAuditService.save(saleOrderId, order.getCode()); + + // 保存发票信息 + if (bo.getIsTicket() == 1){ + SaleOrderTicket ticket = new SaleOrderTicket(); + ticket.setOrderId(saleOrderId); + ticket.setName(bo.getCompanyName()); + ticket.setIdentifyNumber(bo.getIdentifyNumber()); + ticketMapper.insertSelective(ticket); + } return order.getId(); } @@ -457,8 +474,10 @@ public class OrderServiceImpl implements OrderService { * @throws Exception */ private List resolvPriceFormSCResult(Integer departRegionId, Integer destRegionId) throws Exception { - String url = autoConfConstant.getSc() + "/api/price/channel/sale/queryPrice/" + departRegionId + "/" + destRegionId; - Integer time = autoConfConstant.getScTime(); +// String url = autoConfConstant.getSc() + "/api/price/channel/sale/queryPrice/" + departRegionId + "/" + destRegionId; + String url = autoConfConstant.getOperation() + "/api/price/querySalePrice/" + departRegionId + "/" + destRegionId; +// Integer time = autoConfConstant.getScTime(); + Integer time = autoConfConstant.getOperationTime(); String result = HttpRequestUtil.sendHttpGet(url, null, time); if (!Objects.equals(result, null)) { JSONObject jsonObject = JSONObject.parseObject(result); diff --git a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderSkuServiceImpl.java b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderSkuServiceImpl.java index 2070d07..0a0cb32 100644 --- a/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderSkuServiceImpl.java +++ b/ils-sales-backend/src/main/java/com/unlcn/ils/sales/backend/service/OrderSkuServiceImpl.java @@ -55,15 +55,28 @@ public class OrderSkuServiceImpl implements OrderSkuService { skuBOS.stream().forEach(val -> { val.setSaleOrderId(saleOrderId); - // 保存数据 - SaleOrderSku sku = new SaleOrderSku(); - BeanUtils.copyProperties(val, sku); - - try { - orderSkuMapper.insertSelective(sku); - } catch (Exception e) { - LOGGER.error("OrderSkuServiceImpl.save error: {}", e); - throw new BusinessException("保存销售订单商品车信息异常"); + if (val.getVinList() !=null && val.getVinList().size()>0) { + val.getVinList().stream().forEach(str -> { + // 保存数据 + SaleOrderSku sku = new SaleOrderSku(); + BeanUtils.copyProperties(val, sku); + sku.setVin(str); + try { + orderSkuMapper.insertSelective(sku); + } catch (Exception e) { + LOGGER.error("OrderSkuServiceImpl.save error: {}", e); + throw new BusinessException("保存销售订单商品车信息异常"); + } + }); + } else { + SaleOrderSku sku = new SaleOrderSku(); + BeanUtils.copyProperties(val, sku); + try { + orderSkuMapper.insertSelective(sku); + } catch (Exception e) { + LOGGER.error("OrderSkuServiceImpl.save error: {}", e); + throw new BusinessException("保存销售订单商品车信息异常"); + } } }); @@ -86,8 +99,10 @@ public class OrderSkuServiceImpl implements OrderSkuService { } private List resolvBrandFormSCResult(String key) throws Exception { - String url = autoConfConstant.getSc() + "/api/model/base/cv/queryModel/" + key; - Integer time = autoConfConstant.getScTime(); +// String url = autoConfConstant.getSc() + "/api/model/base/cv/queryModel/" + key; + String url = autoConfConstant.getOperation() + "/api/brandSeries/queryBrands/" + key; +// Integer time = autoConfConstant.getScTime(); + Integer time = autoConfConstant.getOperationTime(); String result = HttpRequestUtil.sendHttpGet(url, null, time); if (!Objects.equals(result, null)) { JSONObject jsonObject = JSONObject.parseObject(result); diff --git a/ils-sales-backend/src/main/resources/constant.properties b/ils-sales-backend/src/main/resources/constant.properties index 1c751de..9001ce8 100644 --- a/ils-sales-backend/src/main/resources/constant.properties +++ b/ils-sales-backend/src/main/resources/constant.properties @@ -73,3 +73,8 @@ ils.bms.url.timeout=7200 #整板数量配置 ils.sale.brands=10 + +#operation主数据地址 +hyc.operation.url=http://192.168.199.164:8080 +#operation主数据地址请求超时 +hyc.operation.url.timeout=7200 diff --git a/ils-sales-base/lib/mybatis-page-plugin-1.0-SNAPSHOT.jar b/ils-sales-base/lib/mybatis-page-plugin-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..5fcf5047804f31c2f388cf79904a043dbc98543e GIT binary patch literal 5256 zcmbVQ2{=@J7a!G(oe6^p$-Yar?3%1YmSl}=*~T_w#vWzKlC8p!CE3YNQ(Ej>jIAg; zg-Ak(j3qwmmG}EvzV~_0JonCho_l`3|2hBVoO6$^=HVk`fIS((Tu}b@@YjuW_g_mz zA0`CXRz0cvml_FRcvo#zxvdGa`#OC0qWim=7EBwis&YYJSWES@R!93eO(Efzl$t{P zT^-#I^h92Xy`4hycXsf-^eDjTwcc{(xfr0}AEr zVUKYA0VesjY`v~+jhVY1z@Y$u#6JLA?NaR8fOOUU#wL8(*$RVsXiVxyHwD?b*0#`P zBMLSnDI;MNxrKSaNs@3xw*nL{$i_)Tnm_OCNuz3K-`F8YBUqiCn3GrSFz-LmcwBEZ zK;Oxw@bysN(6cX(a>A-V^%-u~AU#iOc6FB4a@ThFJ-@QER^#Q5Ty7Ox8zD|lx|EyF zz++o=5yoTAG5OGMTZXhWaR~$@8sQ(079Hc9>?Ff4($}mQlIGb|Y1NyJ;NK(P3s&-Z z6OWn1c#V&4Ev2EW7(PwjT+<{3L{ak_M-4;V$CX4CI(S%bFP(>awGtTZcf6rDcCH8M zOlXtlLG&kWpb8<+2s5rgXw>pc=(d!=>YugG4~HgkZ@ACu%81(J z>9wh&IZK{|(n2MBl|msO`exwde1)chxKo1g*b@&X^AngQSM%>ncS(-+xOBdzrC7Qc zct;7k?5XFe%p}Q9+E5FV%~aXYYdrNe+?8zM5kg8vs9#&UaRU%Y-Z?z`MXbY(d>wkx z?qu9J`(-&vC2zxmTkENf)7mbNjZPz;_;WhNIZ>=x^3Okd?)gxbB{%JrP-WfO{%)I$ zEVx+3NrauWJ(2~!CIwBlY^f%C|EH)7HSBg+f2L%hM0V$?2o#s}2R-8AowJkPpN%;s!z(Kx?fi;kr`h=a1by zH(a=36$$E1QQ0s<)Xp2Ld4!W=pKf;lLrSN7t#`N_E)|f@09QLjb}X<w4RAJ;5b4w7E+LAP~8nVRXzr+GGG(`B2?<#TmjM`#()LxTA`HT0u}kW{BJ zM76q0np+VO(;a#nD_O4QwU9&i3pR33HBA~sKapnHd>mmh$p@*0nKd8{wy0_o7l|R) zn(pauL9g9jG=f}fd}FY6cqg?_j+QnhC2Vfvq+IdD8v->pxvQim#)U`HLQSM$X1GLVg$yyHs3Qns4P48D|LJd3>ks`_Y zhR&I_lGx$~A8fIm1b?Be2Y;bGM!gBlz&0quRcz1~QZKbo%v^)-=21 zvtr`~S(^7o#$1@-oyRjMBBx6>EL}#M+OIBz2*gLnxSeB=NAehGG6*!07?8WW)S?igZZFZAMr2lbhj|U%Vk|Xm0BT`o= zpNBK$)^}d$8+}k%$}!aM25B6!-UuQmQlDimPzVYC80lEoQoo2A(>-UBE9+`=+NUc$ zhPNK}_!=*vHHfbE)#lS=i8JIWxe{X(-c_YJ7kpl%M9Os2o!K&D#z&^BQ1$nqDA{GX z3oe&by=M62K&Dl2Y~m{3_0-%+ZMBz-T?+ysD;8qISBE}6uk;mi@}@6vLj(o}Cs&6g z-W=+ZnKgfZ)7C!T6GwEus(tiTniYOAe|qt1z9b%g_?VChCx)++htvPd!qj|TT#T$q zqfu;p+pLmz#jw?}bAwt_e$bh*-s2xR{h#h6wkB=h+bkyHmsH@bVkF_{AO{^TRl+q^ zUQWbxNWzCzy7fCUx^$jj#H{*Y2C8T;yIM87Dgqgoo1Hn@S6N^p$3X=a*f zEFpA7sw5ICMM{TfLnK#^`(F6&mBDE> zgjLyyAV@EgdX|`yAA0dC+m4CgI{~Nl@MDC{^2ZWjijYH4!M3*(7mVr5@I38J%A~-H z{*@f4%?H$Be$<&yVX5vui!`6I$8h}bIP8!rsqR2U#C<6QE&jukP(_s7BThT(RURJiC#77%l8Bed#6+TYVzU%>#VB3Md zveRW)j$`_$v~8&bie|HDedA3(t|xwd3o0I>DHdKto!WTJ+O>ot6{ZPtYP5-O7d1|- z-!S~ZESy*U9*1XJ7nihoaV+-1yL!n?QuuKz5Yu`~?$y|1$D5}qN*Fn+Vja{YJ?e#? zz^=pyXz;gX_ZXOQNe9Qk-`xmyW(gjaJYP~-?r%pZUt!KB05ff#7lM_E6D$P`t(jD2 zJn=Ky&ULRJACh&DP`&*$uIdGl_!)|3^f9HpcYtGkmOk)!p3LGApDFlRf3nRx)L)%} zUmk#%Ej#JhJRIi6+M=3c}HDqrQ0RWjm06^y75u%VT!rm^<#rj&96cKRsrjf|V z?K)T48)}9_nt69`q@26!?rUHfITg^P-r%|I-%lda;t|&s&xCxlQ1g}M**1R+~ zVwxCjY1}O)McXp)->7JS=gD`rhDxMdaceO%$JIOS@4DYdnPMJ`E6ee z$duPTM7Rq1_NbgSWef`z_{Orm{~Op)K#S4p-SXvCXo*`;DlqJe^-toes=OX-EY@=V?8tb&t z(yD}uAEE%;=!ffOukVpew_O2S>UQ13i4-c^_7C}AGjMp0+tHal@lO3Cmx)wxEsi-c z>kxLl`SMEKUBtMXTjLb6-xo)aU)=(9CD!nGIVo^l5M^=kuhe)SyA9`Qg9RQPNUju! z@x9ktdn~bJt?1VE4l3$aCNk)WuV8NP;qB(BTB7~q@ckQb>!@(qwcWiGynDg^{hmUh zktkcVJHi%28C^}*c!Ck&Rqq8B6&M=I2&Bk)aW6yBGW|hcDZ7h)6lnR2N7b|Or(#E1 zp9XN*ahd2KyeHX#JiGTFVc>6#ivxzAL&shp;k)b&+_C%ky{qthQ@=Z~huK3c{Ds)> zGW;I5*Jt=HdpP>tU~$l$*pE@aNAL9=4$#WKKp%7=e$TQOC=XbC|G@Gi%I%Z=x-YR$ zmmOI756FJmrTEk8>}7%P0tW2t6jA(befM+1zI{J0?cbf<*%|y9{Bw@@J=tECIIx7C z@+V9Fm+aR$V}Ae=z^}5#{t(%L_Wy2xzjDaIl>R!B9E|g9cZPo)neS8jPaN4B=OC`= UY63xfl$5)_!NUMR(zmVtA4nBMvH$=8 literal 0 HcmV?d00001 diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderAddrMapper.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderAddrMapper.java index b5eca20..536ae8e 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderAddrMapper.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderAddrMapper.java @@ -10,7 +10,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int countByExample(SaleOrderAddrExample example); @@ -18,7 +18,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int deleteByExample(SaleOrderAddrExample example); @@ -26,7 +26,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int deleteByPrimaryKey(Integer id); @@ -34,7 +34,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int insert(SaleOrderAddr record); @@ -42,7 +42,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int insertSelective(SaleOrderAddr record); @@ -50,7 +50,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ List selectByExample(SaleOrderAddrExample example); @@ -58,7 +58,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ SaleOrderAddr selectByPrimaryKey(Integer id); @@ -66,7 +66,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByExampleSelective(@Param("record") SaleOrderAddr record, @Param("example") SaleOrderAddrExample example); @@ -74,7 +74,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByExample(@Param("record") SaleOrderAddr record, @Param("example") SaleOrderAddrExample example); @@ -82,7 +82,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByPrimaryKeySelective(SaleOrderAddr record); @@ -90,7 +90,7 @@ public interface SaleOrderAddrMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByPrimaryKey(SaleOrderAddr record); } \ No newline at end of file diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderMapper.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderMapper.java index f430796..0657f34 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderMapper.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderMapper.java @@ -10,7 +10,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int countByExample(SaleOrderExample example); @@ -18,7 +18,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int deleteByExample(SaleOrderExample example); @@ -26,7 +26,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int deleteByPrimaryKey(Integer id); @@ -34,7 +34,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int insert(SaleOrder record); @@ -42,7 +42,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int insertSelective(SaleOrder record); @@ -50,7 +50,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ List selectByExample(SaleOrderExample example); @@ -58,7 +58,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ SaleOrder selectByPrimaryKey(Integer id); @@ -66,7 +66,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByExampleSelective(@Param("record") SaleOrder record, @Param("example") SaleOrderExample example); @@ -74,7 +74,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByExample(@Param("record") SaleOrder record, @Param("example") SaleOrderExample example); @@ -82,7 +82,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByPrimaryKeySelective(SaleOrder record); @@ -90,7 +90,7 @@ public interface SaleOrderMapper { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ int updateByPrimaryKey(SaleOrder record); } \ No newline at end of file diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderTicketMapper.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderTicketMapper.java new file mode 100644 index 0000000..9bbc4f6 --- /dev/null +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/mapper/SaleOrderTicketMapper.java @@ -0,0 +1,96 @@ +package com.unlcn.ils.sales.base.mapper; + +import com.unlcn.ils.sales.base.model.SaleOrderTicket; +import com.unlcn.ils.sales.base.model.SaleOrderTicketExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SaleOrderTicketMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int countByExample(SaleOrderTicketExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int deleteByExample(SaleOrderTicketExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int deleteByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int insert(SaleOrderTicket record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int insertSelective(SaleOrderTicket record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + List selectByExample(SaleOrderTicketExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + SaleOrderTicket selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int updateByExampleSelective(@Param("record") SaleOrderTicket record, @Param("example") SaleOrderTicketExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int updateByExample(@Param("record") SaleOrderTicket record, @Param("example") SaleOrderTicketExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int updateByPrimaryKeySelective(SaleOrderTicket record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + int updateByPrimaryKey(SaleOrderTicket record); +} \ No newline at end of file diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/OrderViewDAO.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/OrderViewDAO.java index c81ec16..d95dfd3 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/OrderViewDAO.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/OrderViewDAO.java @@ -50,6 +50,21 @@ public class OrderViewDAO { private List attachs; + // 是否开票 + private Boolean isTicket; + // 运输方式 + private Integer transportType; + // 是否上门提车 + private Boolean isPick; + // 是否送车上门 + private Boolean isDeliv; + // 提车详细地址 + private String departAddr; + // 送车详细地址 + private String destAddr; + // 提车时间 + private String pickTime; + public Integer getId() { return id; } @@ -314,6 +329,62 @@ public class OrderViewDAO { this.attachs = attachs; } + public Boolean getIsTicket() { + return isTicket; + } + + public void setIsTicket(Boolean isTicket) { + isTicket = isTicket; + } + + public Integer getTransportType() { + return transportType; + } + + public void setTransportType(Integer transportType) { + this.transportType = transportType; + } + + public Boolean getIsPick() { + return isPick; + } + + public void setIsPick(Boolean isPick) { + isPick = isPick; + } + + public Boolean getIsDeliv() { + return isDeliv; + } + + public void setIsDeliv(Boolean isDeliv) { + isDeliv = isDeliv; + } + + public String getDepartAddr() { + return departAddr; + } + + public void setDepartAddr(String departAddr) { + this.departAddr = departAddr; + } + + public String getDestAddr() { + return destAddr; + } + + public void setDestAddr(String destAddr) { + this.destAddr = destAddr; + } + + public String getPickTime() { + return pickTime; + } + + public void setPickTime(String pickTime) { + this.pickTime = pickTime; + } + @Override public String toString() { return "OrderViewDAO{" + @@ -350,6 +421,13 @@ public class OrderViewDAO { ", distance=" + distance + ", orderSkus=" + orderSkus + ", attachs=" + attachs + + ", isTicket=" + isTicket + + ", transportType=" + transportType + + ", isPick=" + isPick + + ", isDeliv=" + isDeliv + + ", departAddr=" + departAddr + + ", destAddr=" + destAddr + + ", pickTime=" + pickTime + '}'; } } diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrder.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrder.java index b6c4ca6..161d2c0 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrder.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrder.java @@ -9,7 +9,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer id; @@ -17,7 +17,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.code * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String code; @@ -25,7 +25,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.user_id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer userId; @@ -33,15 +33,23 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.pick_date * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Date pickDate; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.pick_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String pickTime; + /** * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.brands * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer brands; @@ -49,7 +57,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.series_amt * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer seriesAmt; @@ -57,7 +65,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.standard_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal standardSalePrice; @@ -65,7 +73,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.standard_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal standardUnitPrice; @@ -73,7 +81,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.suggest_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal suggestSalePrice; @@ -81,7 +89,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.final_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal finalSalePrice; @@ -89,7 +97,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.final_purchase_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal finalPurchasePrice; @@ -97,7 +105,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.insurance_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal insuranceSalePrice; @@ -105,7 +113,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.insurance_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal insuranceUnitPrice; @@ -113,7 +121,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.order_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer orderStatus; @@ -121,7 +129,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.attach_audit_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer attachAuditStatus; @@ -129,7 +137,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.comment * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String comment; @@ -137,7 +145,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.delete_mark * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Boolean deleteMark; @@ -145,7 +153,7 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.gmt_create * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Date gmtCreate; @@ -153,15 +161,63 @@ public class SaleOrder implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order.gmt_update * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Date gmtUpdate; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.is_pick + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Boolean isPick; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.is_deliv + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Boolean isDeliv; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.transport_type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Integer transportType; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.is_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Boolean isTicket; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.arrive_date + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Date arriveDate; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order.arrive_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String arriveTime; + /** * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private static final long serialVersionUID = 1L; @@ -171,7 +227,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getId() { return id; @@ -183,7 +239,7 @@ public class SaleOrder implements Serializable { * * @param id the value for sale_order.id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setId(Integer id) { this.id = id; @@ -195,7 +251,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.code * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getCode() { return code; @@ -207,7 +263,7 @@ public class SaleOrder implements Serializable { * * @param code the value for sale_order.code * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setCode(String code) { this.code = code == null ? null : code.trim(); @@ -219,7 +275,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.user_id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getUserId() { return userId; @@ -231,7 +287,7 @@ public class SaleOrder implements Serializable { * * @param userId the value for sale_order.user_id * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setUserId(Integer userId) { this.userId = userId; @@ -243,7 +299,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.pick_date * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Date getPickDate() { return pickDate; @@ -255,19 +311,43 @@ public class SaleOrder implements Serializable { * * @param pickDate the value for sale_order.pick_date * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setPickDate(Date pickDate) { this.pickDate = pickDate; } + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.pick_time + * + * @return the value of sale_order.pick_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getPickTime() { + return pickTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.pick_time + * + * @param pickTime the value for sale_order.pick_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setPickTime(String pickTime) { + this.pickTime = pickTime == null ? null : pickTime.trim(); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column sale_order.brands * * @return the value of sale_order.brands * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getBrands() { return brands; @@ -279,7 +359,7 @@ public class SaleOrder implements Serializable { * * @param brands the value for sale_order.brands * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setBrands(Integer brands) { this.brands = brands; @@ -291,7 +371,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.series_amt * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getSeriesAmt() { return seriesAmt; @@ -303,7 +383,7 @@ public class SaleOrder implements Serializable { * * @param seriesAmt the value for sale_order.series_amt * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setSeriesAmt(Integer seriesAmt) { this.seriesAmt = seriesAmt; @@ -315,7 +395,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.standard_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getStandardSalePrice() { return standardSalePrice; @@ -327,7 +407,7 @@ public class SaleOrder implements Serializable { * * @param standardSalePrice the value for sale_order.standard_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setStandardSalePrice(BigDecimal standardSalePrice) { this.standardSalePrice = standardSalePrice; @@ -339,7 +419,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.standard_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getStandardUnitPrice() { return standardUnitPrice; @@ -351,7 +431,7 @@ public class SaleOrder implements Serializable { * * @param standardUnitPrice the value for sale_order.standard_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setStandardUnitPrice(BigDecimal standardUnitPrice) { this.standardUnitPrice = standardUnitPrice; @@ -363,7 +443,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.suggest_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getSuggestSalePrice() { return suggestSalePrice; @@ -375,7 +455,7 @@ public class SaleOrder implements Serializable { * * @param suggestSalePrice the value for sale_order.suggest_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setSuggestSalePrice(BigDecimal suggestSalePrice) { this.suggestSalePrice = suggestSalePrice; @@ -387,7 +467,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.final_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getFinalSalePrice() { return finalSalePrice; @@ -399,7 +479,7 @@ public class SaleOrder implements Serializable { * * @param finalSalePrice the value for sale_order.final_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setFinalSalePrice(BigDecimal finalSalePrice) { this.finalSalePrice = finalSalePrice; @@ -411,7 +491,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.final_purchase_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getFinalPurchasePrice() { return finalPurchasePrice; @@ -423,7 +503,7 @@ public class SaleOrder implements Serializable { * * @param finalPurchasePrice the value for sale_order.final_purchase_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setFinalPurchasePrice(BigDecimal finalPurchasePrice) { this.finalPurchasePrice = finalPurchasePrice; @@ -435,7 +515,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.insurance_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getInsuranceSalePrice() { return insuranceSalePrice; @@ -447,7 +527,7 @@ public class SaleOrder implements Serializable { * * @param insuranceSalePrice the value for sale_order.insurance_sale_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setInsuranceSalePrice(BigDecimal insuranceSalePrice) { this.insuranceSalePrice = insuranceSalePrice; @@ -459,7 +539,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.insurance_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getInsuranceUnitPrice() { return insuranceUnitPrice; @@ -471,7 +551,7 @@ public class SaleOrder implements Serializable { * * @param insuranceUnitPrice the value for sale_order.insurance_unit_price * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setInsuranceUnitPrice(BigDecimal insuranceUnitPrice) { this.insuranceUnitPrice = insuranceUnitPrice; @@ -483,7 +563,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.order_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getOrderStatus() { return orderStatus; @@ -495,7 +575,7 @@ public class SaleOrder implements Serializable { * * @param orderStatus the value for sale_order.order_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setOrderStatus(Integer orderStatus) { this.orderStatus = orderStatus; @@ -507,7 +587,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.attach_audit_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getAttachAuditStatus() { return attachAuditStatus; @@ -519,7 +599,7 @@ public class SaleOrder implements Serializable { * * @param attachAuditStatus the value for sale_order.attach_audit_status * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setAttachAuditStatus(Integer attachAuditStatus) { this.attachAuditStatus = attachAuditStatus; @@ -531,7 +611,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.comment * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getComment() { return comment; @@ -543,7 +623,7 @@ public class SaleOrder implements Serializable { * * @param comment the value for sale_order.comment * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setComment(String comment) { this.comment = comment == null ? null : comment.trim(); @@ -555,7 +635,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.delete_mark * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Boolean getDeleteMark() { return deleteMark; @@ -567,7 +647,7 @@ public class SaleOrder implements Serializable { * * @param deleteMark the value for sale_order.delete_mark * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDeleteMark(Boolean deleteMark) { this.deleteMark = deleteMark; @@ -579,7 +659,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.gmt_create * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Date getGmtCreate() { return gmtCreate; @@ -591,7 +671,7 @@ public class SaleOrder implements Serializable { * * @param gmtCreate the value for sale_order.gmt_create * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; @@ -603,7 +683,7 @@ public class SaleOrder implements Serializable { * * @return the value of sale_order.gmt_update * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Date getGmtUpdate() { return gmtUpdate; @@ -615,17 +695,161 @@ public class SaleOrder implements Serializable { * * @param gmtUpdate the value for sale_order.gmt_update * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setGmtUpdate(Date gmtUpdate) { this.gmtUpdate = gmtUpdate; } + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.is_pick + * + * @return the value of sale_order.is_pick + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Boolean getIsPick() { + return isPick; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.is_pick + * + * @param isPick the value for sale_order.is_pick + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setIsPick(Boolean isPick) { + this.isPick = isPick; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.is_deliv + * + * @return the value of sale_order.is_deliv + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Boolean getIsDeliv() { + return isDeliv; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.is_deliv + * + * @param isDeliv the value for sale_order.is_deliv + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setIsDeliv(Boolean isDeliv) { + this.isDeliv = isDeliv; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.transport_type + * + * @return the value of sale_order.transport_type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Integer getTransportType() { + return transportType; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.transport_type + * + * @param transportType the value for sale_order.transport_type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setTransportType(Integer transportType) { + this.transportType = transportType; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.is_ticket + * + * @return the value of sale_order.is_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Boolean getIsTicket() { + return isTicket; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.is_ticket + * + * @param isTicket the value for sale_order.is_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setIsTicket(Boolean isTicket) { + this.isTicket = isTicket; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.arrive_date + * + * @return the value of sale_order.arrive_date + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Date getArriveDate() { + return arriveDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.arrive_date + * + * @param arriveDate the value for sale_order.arrive_date + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setArriveDate(Date arriveDate) { + this.arriveDate = arriveDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order.arrive_time + * + * @return the value of sale_order.arrive_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getArriveTime() { + return arriveTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order.arrive_time + * + * @param arriveTime the value for sale_order.arrive_time + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setArriveTime(String arriveTime) { + this.arriveTime = arriveTime == null ? null : arriveTime.trim(); + } + /** * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ @Override public String toString() { @@ -637,6 +861,7 @@ public class SaleOrder implements Serializable { sb.append(", code=").append(code); sb.append(", userId=").append(userId); sb.append(", pickDate=").append(pickDate); + sb.append(", pickTime=").append(pickTime); sb.append(", brands=").append(brands); sb.append(", seriesAmt=").append(seriesAmt); sb.append(", standardSalePrice=").append(standardSalePrice); @@ -652,6 +877,12 @@ public class SaleOrder implements Serializable { sb.append(", deleteMark=").append(deleteMark); sb.append(", gmtCreate=").append(gmtCreate); sb.append(", gmtUpdate=").append(gmtUpdate); + sb.append(", isPick=").append(isPick); + sb.append(", isDeliv=").append(isDeliv); + sb.append(", transportType=").append(transportType); + sb.append(", isTicket=").append(isTicket); + sb.append(", arriveDate=").append(arriveDate); + sb.append(", arriveTime=").append(arriveTime); sb.append("]"); return sb.toString(); } diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddr.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddr.java index 309a0c0..8694a32 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddr.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddr.java @@ -9,7 +9,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer id; @@ -17,7 +17,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.sale_order_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer saleOrderId; @@ -25,7 +25,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.line_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Integer lineId; @@ -33,7 +33,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.depart_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String departRegionCode; @@ -41,7 +41,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.depart_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String departRegionName; @@ -49,7 +49,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.depart_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String departContact; @@ -57,15 +57,23 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.depart_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String departPhone; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_addr.depart_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String departAddr; + /** * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.dest_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String destRegionCode; @@ -73,7 +81,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.dest_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String destRegionName; @@ -81,7 +89,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.dest_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String destContact; @@ -89,15 +97,23 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.dest_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private String destPhone; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_addr.dest_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String destAddr; + /** * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.distance * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private BigDecimal distance; @@ -105,7 +121,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.delete_mark * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Boolean deleteMark; @@ -113,7 +129,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.gmt_create * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Date gmtCreate; @@ -121,7 +137,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database column sale_order_addr.gmt_update * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private Date gmtUpdate; @@ -129,7 +145,7 @@ public class SaleOrderAddr implements Serializable { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ private static final long serialVersionUID = 1L; @@ -139,7 +155,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getId() { return id; @@ -151,7 +167,7 @@ public class SaleOrderAddr implements Serializable { * * @param id the value for sale_order_addr.id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setId(Integer id) { this.id = id; @@ -163,7 +179,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.sale_order_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getSaleOrderId() { return saleOrderId; @@ -175,7 +191,7 @@ public class SaleOrderAddr implements Serializable { * * @param saleOrderId the value for sale_order_addr.sale_order_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setSaleOrderId(Integer saleOrderId) { this.saleOrderId = saleOrderId; @@ -187,7 +203,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.line_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Integer getLineId() { return lineId; @@ -199,7 +215,7 @@ public class SaleOrderAddr implements Serializable { * * @param lineId the value for sale_order_addr.line_id * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setLineId(Integer lineId) { this.lineId = lineId; @@ -211,7 +227,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.depart_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDepartRegionCode() { return departRegionCode; @@ -223,7 +239,7 @@ public class SaleOrderAddr implements Serializable { * * @param departRegionCode the value for sale_order_addr.depart_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDepartRegionCode(String departRegionCode) { this.departRegionCode = departRegionCode == null ? null : departRegionCode.trim(); @@ -235,7 +251,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.depart_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDepartRegionName() { return departRegionName; @@ -247,7 +263,7 @@ public class SaleOrderAddr implements Serializable { * * @param departRegionName the value for sale_order_addr.depart_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDepartRegionName(String departRegionName) { this.departRegionName = departRegionName == null ? null : departRegionName.trim(); @@ -259,7 +275,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.depart_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDepartContact() { return departContact; @@ -271,7 +287,7 @@ public class SaleOrderAddr implements Serializable { * * @param departContact the value for sale_order_addr.depart_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDepartContact(String departContact) { this.departContact = departContact == null ? null : departContact.trim(); @@ -283,7 +299,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.depart_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDepartPhone() { return departPhone; @@ -295,19 +311,43 @@ public class SaleOrderAddr implements Serializable { * * @param departPhone the value for sale_order_addr.depart_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDepartPhone(String departPhone) { this.departPhone = departPhone == null ? null : departPhone.trim(); } + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_addr.depart_addr + * + * @return the value of sale_order_addr.depart_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getDepartAddr() { + return departAddr; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_addr.depart_addr + * + * @param departAddr the value for sale_order_addr.depart_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setDepartAddr(String departAddr) { + this.departAddr = departAddr == null ? null : departAddr.trim(); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column sale_order_addr.dest_region_code * * @return the value of sale_order_addr.dest_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDestRegionCode() { return destRegionCode; @@ -319,7 +359,7 @@ public class SaleOrderAddr implements Serializable { * * @param destRegionCode the value for sale_order_addr.dest_region_code * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDestRegionCode(String destRegionCode) { this.destRegionCode = destRegionCode == null ? null : destRegionCode.trim(); @@ -331,7 +371,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.dest_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDestRegionName() { return destRegionName; @@ -343,7 +383,7 @@ public class SaleOrderAddr implements Serializable { * * @param destRegionName the value for sale_order_addr.dest_region_name * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDestRegionName(String destRegionName) { this.destRegionName = destRegionName == null ? null : destRegionName.trim(); @@ -355,7 +395,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.dest_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDestContact() { return destContact; @@ -367,7 +407,7 @@ public class SaleOrderAddr implements Serializable { * * @param destContact the value for sale_order_addr.dest_contact * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDestContact(String destContact) { this.destContact = destContact == null ? null : destContact.trim(); @@ -379,7 +419,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.dest_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getDestPhone() { return destPhone; @@ -391,19 +431,43 @@ public class SaleOrderAddr implements Serializable { * * @param destPhone the value for sale_order_addr.dest_phone * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDestPhone(String destPhone) { this.destPhone = destPhone == null ? null : destPhone.trim(); } + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_addr.dest_addr + * + * @return the value of sale_order_addr.dest_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getDestAddr() { + return destAddr; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_addr.dest_addr + * + * @param destAddr the value for sale_order_addr.dest_addr + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setDestAddr(String destAddr) { + this.destAddr = destAddr == null ? null : destAddr.trim(); + } + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column sale_order_addr.distance * * @return the value of sale_order_addr.distance * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public BigDecimal getDistance() { return distance; @@ -415,7 +479,7 @@ public class SaleOrderAddr implements Serializable { * * @param distance the value for sale_order_addr.distance * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDistance(BigDecimal distance) { this.distance = distance; @@ -427,7 +491,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.delete_mark * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Boolean getDeleteMark() { return deleteMark; @@ -439,7 +503,7 @@ public class SaleOrderAddr implements Serializable { * * @param deleteMark the value for sale_order_addr.delete_mark * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDeleteMark(Boolean deleteMark) { this.deleteMark = deleteMark; @@ -451,7 +515,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.gmt_create * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Date getGmtCreate() { return gmtCreate; @@ -463,7 +527,7 @@ public class SaleOrderAddr implements Serializable { * * @param gmtCreate the value for sale_order_addr.gmt_create * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; @@ -475,7 +539,7 @@ public class SaleOrderAddr implements Serializable { * * @return the value of sale_order_addr.gmt_update * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Date getGmtUpdate() { return gmtUpdate; @@ -487,7 +551,7 @@ public class SaleOrderAddr implements Serializable { * * @param gmtUpdate the value for sale_order_addr.gmt_update * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setGmtUpdate(Date gmtUpdate) { this.gmtUpdate = gmtUpdate; @@ -497,7 +561,7 @@ public class SaleOrderAddr implements Serializable { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ @Override public String toString() { @@ -512,10 +576,12 @@ public class SaleOrderAddr implements Serializable { sb.append(", departRegionName=").append(departRegionName); sb.append(", departContact=").append(departContact); sb.append(", departPhone=").append(departPhone); + sb.append(", departAddr=").append(departAddr); sb.append(", destRegionCode=").append(destRegionCode); sb.append(", destRegionName=").append(destRegionName); sb.append(", destContact=").append(destContact); sb.append(", destPhone=").append(destPhone); + sb.append(", destAddr=").append(destAddr); sb.append(", distance=").append(distance); sb.append(", deleteMark=").append(deleteMark); sb.append(", gmtCreate=").append(gmtCreate); diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddrExample.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddrExample.java index 5fc015e..c5dfa98 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddrExample.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderAddrExample.java @@ -10,7 +10,7 @@ public class SaleOrderAddrExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected String orderByClause; @@ -18,7 +18,7 @@ public class SaleOrderAddrExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected boolean distinct; @@ -26,7 +26,7 @@ public class SaleOrderAddrExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected List oredCriteria; @@ -34,7 +34,7 @@ public class SaleOrderAddrExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected int limitStart = -1; @@ -42,7 +42,7 @@ public class SaleOrderAddrExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected int limitEnd = -1; @@ -50,7 +50,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public SaleOrderAddrExample() { oredCriteria = new ArrayList(); @@ -60,7 +60,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; @@ -70,7 +70,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getOrderByClause() { return orderByClause; @@ -80,7 +80,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDistinct(boolean distinct) { this.distinct = distinct; @@ -90,7 +90,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public boolean isDistinct() { return distinct; @@ -100,7 +100,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public List getOredCriteria() { return oredCriteria; @@ -110,7 +110,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void or(Criteria criteria) { oredCriteria.add(criteria); @@ -120,7 +120,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Criteria or() { Criteria criteria = createCriteriaInternal(); @@ -132,7 +132,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); @@ -146,7 +146,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); @@ -157,7 +157,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void clear() { oredCriteria.clear(); @@ -169,7 +169,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setLimitStart(int limitStart) { this.limitStart=limitStart; @@ -179,7 +179,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public int getLimitStart() { return limitStart; @@ -189,7 +189,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setLimitEnd(int limitEnd) { this.limitEnd=limitEnd; @@ -199,7 +199,7 @@ public class SaleOrderAddrExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public int getLimitEnd() { return limitEnd; @@ -209,7 +209,7 @@ public class SaleOrderAddrExample { * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected abstract static class GeneratedCriteria { protected List criteria; @@ -712,6 +712,76 @@ public class SaleOrderAddrExample { return (Criteria) this; } + public Criteria andDepartAddrIsNull() { + addCriterion("depart_addr is null"); + return (Criteria) this; + } + + public Criteria andDepartAddrIsNotNull() { + addCriterion("depart_addr is not null"); + return (Criteria) this; + } + + public Criteria andDepartAddrEqualTo(String value) { + addCriterion("depart_addr =", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrNotEqualTo(String value) { + addCriterion("depart_addr <>", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrGreaterThan(String value) { + addCriterion("depart_addr >", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrGreaterThanOrEqualTo(String value) { + addCriterion("depart_addr >=", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrLessThan(String value) { + addCriterion("depart_addr <", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrLessThanOrEqualTo(String value) { + addCriterion("depart_addr <=", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrLike(String value) { + addCriterion("depart_addr like", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrNotLike(String value) { + addCriterion("depart_addr not like", value, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrIn(List values) { + addCriterion("depart_addr in", values, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrNotIn(List values) { + addCriterion("depart_addr not in", values, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrBetween(String value1, String value2) { + addCriterion("depart_addr between", value1, value2, "departAddr"); + return (Criteria) this; + } + + public Criteria andDepartAddrNotBetween(String value1, String value2) { + addCriterion("depart_addr not between", value1, value2, "departAddr"); + return (Criteria) this; + } + public Criteria andDestRegionCodeIsNull() { addCriterion("dest_region_code is null"); return (Criteria) this; @@ -992,6 +1062,76 @@ public class SaleOrderAddrExample { return (Criteria) this; } + public Criteria andDestAddrIsNull() { + addCriterion("dest_addr is null"); + return (Criteria) this; + } + + public Criteria andDestAddrIsNotNull() { + addCriterion("dest_addr is not null"); + return (Criteria) this; + } + + public Criteria andDestAddrEqualTo(String value) { + addCriterion("dest_addr =", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrNotEqualTo(String value) { + addCriterion("dest_addr <>", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrGreaterThan(String value) { + addCriterion("dest_addr >", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrGreaterThanOrEqualTo(String value) { + addCriterion("dest_addr >=", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrLessThan(String value) { + addCriterion("dest_addr <", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrLessThanOrEqualTo(String value) { + addCriterion("dest_addr <=", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrLike(String value) { + addCriterion("dest_addr like", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrNotLike(String value) { + addCriterion("dest_addr not like", value, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrIn(List values) { + addCriterion("dest_addr in", values, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrNotIn(List values) { + addCriterion("dest_addr not in", values, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrBetween(String value1, String value2) { + addCriterion("dest_addr between", value1, value2, "destAddr"); + return (Criteria) this; + } + + public Criteria andDestAddrNotBetween(String value1, String value2) { + addCriterion("dest_addr not between", value1, value2, "destAddr"); + return (Criteria) this; + } + public Criteria andDistanceIsNull() { addCriterion("distance is null"); return (Criteria) this; @@ -1252,6 +1392,11 @@ public class SaleOrderAddrExample { return (Criteria) this; } + public Criteria andDepartAddrLikeInsensitive(String value) { + addCriterion("upper(depart_addr) like", value.toUpperCase(), "departAddr"); + return (Criteria) this; + } + public Criteria andDestRegionCodeLikeInsensitive(String value) { addCriterion("upper(dest_region_code) like", value.toUpperCase(), "destRegionCode"); return (Criteria) this; @@ -1271,13 +1416,18 @@ public class SaleOrderAddrExample { addCriterion("upper(dest_phone) like", value.toUpperCase(), "destPhone"); return (Criteria) this; } + + public Criteria andDestAddrLikeInsensitive(String value) { + addCriterion("upper(dest_addr) like", value.toUpperCase(), "destAddr"); + return (Criteria) this; + } } /** * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order_addr * - * @mbggenerated do_not_delete_during_merge Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated do_not_delete_during_merge Tue Sep 12 10:11:47 CST 2017 */ public static class Criteria extends GeneratedCriteria { @@ -1290,7 +1440,7 @@ public class SaleOrderAddrExample { * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order_addr * - * @mbggenerated Tue Jun 06 11:30:23 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public static class Criterion { private String condition; diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderExample.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderExample.java index 5046cb2..892d931 100644 --- a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderExample.java +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderExample.java @@ -11,7 +11,7 @@ public class SaleOrderExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected String orderByClause; @@ -19,7 +19,7 @@ public class SaleOrderExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected boolean distinct; @@ -27,7 +27,7 @@ public class SaleOrderExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected List oredCriteria; @@ -35,7 +35,7 @@ public class SaleOrderExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected int limitStart = -1; @@ -43,7 +43,7 @@ public class SaleOrderExample { * This field was generated by MyBatis Generator. * This field corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected int limitEnd = -1; @@ -51,7 +51,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public SaleOrderExample() { oredCriteria = new ArrayList(); @@ -61,7 +61,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; @@ -71,7 +71,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public String getOrderByClause() { return orderByClause; @@ -81,7 +81,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setDistinct(boolean distinct) { this.distinct = distinct; @@ -91,7 +91,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public boolean isDistinct() { return distinct; @@ -101,7 +101,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public List getOredCriteria() { return oredCriteria; @@ -111,7 +111,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void or(Criteria criteria) { oredCriteria.add(criteria); @@ -121,7 +121,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Criteria or() { Criteria criteria = createCriteriaInternal(); @@ -133,7 +133,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); @@ -147,7 +147,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); @@ -158,7 +158,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void clear() { oredCriteria.clear(); @@ -170,7 +170,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setLimitStart(int limitStart) { this.limitStart=limitStart; @@ -180,7 +180,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public int getLimitStart() { return limitStart; @@ -190,7 +190,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public void setLimitEnd(int limitEnd) { this.limitEnd=limitEnd; @@ -200,7 +200,7 @@ public class SaleOrderExample { * This method was generated by MyBatis Generator. * This method corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public int getLimitEnd() { return limitEnd; @@ -210,7 +210,7 @@ public class SaleOrderExample { * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ protected abstract static class GeneratedCriteria { protected List criteria; @@ -529,6 +529,76 @@ public class SaleOrderExample { return (Criteria) this; } + public Criteria andPickTimeIsNull() { + addCriterion("pick_time is null"); + return (Criteria) this; + } + + public Criteria andPickTimeIsNotNull() { + addCriterion("pick_time is not null"); + return (Criteria) this; + } + + public Criteria andPickTimeEqualTo(String value) { + addCriterion("pick_time =", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeNotEqualTo(String value) { + addCriterion("pick_time <>", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeGreaterThan(String value) { + addCriterion("pick_time >", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeGreaterThanOrEqualTo(String value) { + addCriterion("pick_time >=", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeLessThan(String value) { + addCriterion("pick_time <", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeLessThanOrEqualTo(String value) { + addCriterion("pick_time <=", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeLike(String value) { + addCriterion("pick_time like", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeNotLike(String value) { + addCriterion("pick_time not like", value, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeIn(List values) { + addCriterion("pick_time in", values, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeNotIn(List values) { + addCriterion("pick_time not in", values, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeBetween(String value1, String value2) { + addCriterion("pick_time between", value1, value2, "pickTime"); + return (Criteria) this; + } + + public Criteria andPickTimeNotBetween(String value1, String value2) { + addCriterion("pick_time not between", value1, value2, "pickTime"); + return (Criteria) this; + } + public Criteria andBrandsIsNull() { addCriterion("brands is null"); return (Criteria) this; @@ -1439,22 +1509,402 @@ public class SaleOrderExample { return (Criteria) this; } + public Criteria andIsPickIsNull() { + addCriterion("is_pick is null"); + return (Criteria) this; + } + + public Criteria andIsPickIsNotNull() { + addCriterion("is_pick is not null"); + return (Criteria) this; + } + + public Criteria andIsPickEqualTo(Boolean value) { + addCriterion("is_pick =", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickNotEqualTo(Boolean value) { + addCriterion("is_pick <>", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickGreaterThan(Boolean value) { + addCriterion("is_pick >", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_pick >=", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickLessThan(Boolean value) { + addCriterion("is_pick <", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickLessThanOrEqualTo(Boolean value) { + addCriterion("is_pick <=", value, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickIn(List values) { + addCriterion("is_pick in", values, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickNotIn(List values) { + addCriterion("is_pick not in", values, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickBetween(Boolean value1, Boolean value2) { + addCriterion("is_pick between", value1, value2, "isPick"); + return (Criteria) this; + } + + public Criteria andIsPickNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_pick not between", value1, value2, "isPick"); + return (Criteria) this; + } + + public Criteria andIsDelivIsNull() { + addCriterion("is_deliv is null"); + return (Criteria) this; + } + + public Criteria andIsDelivIsNotNull() { + addCriterion("is_deliv is not null"); + return (Criteria) this; + } + + public Criteria andIsDelivEqualTo(Boolean value) { + addCriterion("is_deliv =", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivNotEqualTo(Boolean value) { + addCriterion("is_deliv <>", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivGreaterThan(Boolean value) { + addCriterion("is_deliv >", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_deliv >=", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivLessThan(Boolean value) { + addCriterion("is_deliv <", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivLessThanOrEqualTo(Boolean value) { + addCriterion("is_deliv <=", value, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivIn(List values) { + addCriterion("is_deliv in", values, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivNotIn(List values) { + addCriterion("is_deliv not in", values, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivBetween(Boolean value1, Boolean value2) { + addCriterion("is_deliv between", value1, value2, "isDeliv"); + return (Criteria) this; + } + + public Criteria andIsDelivNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_deliv not between", value1, value2, "isDeliv"); + return (Criteria) this; + } + + public Criteria andTransportTypeIsNull() { + addCriterion("transport_type is null"); + return (Criteria) this; + } + + public Criteria andTransportTypeIsNotNull() { + addCriterion("transport_type is not null"); + return (Criteria) this; + } + + public Criteria andTransportTypeEqualTo(Integer value) { + addCriterion("transport_type =", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeNotEqualTo(Integer value) { + addCriterion("transport_type <>", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeGreaterThan(Integer value) { + addCriterion("transport_type >", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("transport_type >=", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeLessThan(Integer value) { + addCriterion("transport_type <", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeLessThanOrEqualTo(Integer value) { + addCriterion("transport_type <=", value, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeIn(List values) { + addCriterion("transport_type in", values, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeNotIn(List values) { + addCriterion("transport_type not in", values, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeBetween(Integer value1, Integer value2) { + addCriterion("transport_type between", value1, value2, "transportType"); + return (Criteria) this; + } + + public Criteria andTransportTypeNotBetween(Integer value1, Integer value2) { + addCriterion("transport_type not between", value1, value2, "transportType"); + return (Criteria) this; + } + + public Criteria andIsTicketIsNull() { + addCriterion("is_ticket is null"); + return (Criteria) this; + } + + public Criteria andIsTicketIsNotNull() { + addCriterion("is_ticket is not null"); + return (Criteria) this; + } + + public Criteria andIsTicketEqualTo(Boolean value) { + addCriterion("is_ticket =", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketNotEqualTo(Boolean value) { + addCriterion("is_ticket <>", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketGreaterThan(Boolean value) { + addCriterion("is_ticket >", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_ticket >=", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketLessThan(Boolean value) { + addCriterion("is_ticket <", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketLessThanOrEqualTo(Boolean value) { + addCriterion("is_ticket <=", value, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketIn(List values) { + addCriterion("is_ticket in", values, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketNotIn(List values) { + addCriterion("is_ticket not in", values, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketBetween(Boolean value1, Boolean value2) { + addCriterion("is_ticket between", value1, value2, "isTicket"); + return (Criteria) this; + } + + public Criteria andIsTicketNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_ticket not between", value1, value2, "isTicket"); + return (Criteria) this; + } + + public Criteria andArriveDateIsNull() { + addCriterion("arrive_date is null"); + return (Criteria) this; + } + + public Criteria andArriveDateIsNotNull() { + addCriterion("arrive_date is not null"); + return (Criteria) this; + } + + public Criteria andArriveDateEqualTo(Date value) { + addCriterionForJDBCDate("arrive_date =", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateNotEqualTo(Date value) { + addCriterionForJDBCDate("arrive_date <>", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateGreaterThan(Date value) { + addCriterionForJDBCDate("arrive_date >", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("arrive_date >=", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateLessThan(Date value) { + addCriterionForJDBCDate("arrive_date <", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("arrive_date <=", value, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateIn(List values) { + addCriterionForJDBCDate("arrive_date in", values, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateNotIn(List values) { + addCriterionForJDBCDate("arrive_date not in", values, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("arrive_date between", value1, value2, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveDateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("arrive_date not between", value1, value2, "arriveDate"); + return (Criteria) this; + } + + public Criteria andArriveTimeIsNull() { + addCriterion("arrive_time is null"); + return (Criteria) this; + } + + public Criteria andArriveTimeIsNotNull() { + addCriterion("arrive_time is not null"); + return (Criteria) this; + } + + public Criteria andArriveTimeEqualTo(String value) { + addCriterion("arrive_time =", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeNotEqualTo(String value) { + addCriterion("arrive_time <>", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeGreaterThan(String value) { + addCriterion("arrive_time >", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeGreaterThanOrEqualTo(String value) { + addCriterion("arrive_time >=", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeLessThan(String value) { + addCriterion("arrive_time <", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeLessThanOrEqualTo(String value) { + addCriterion("arrive_time <=", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeLike(String value) { + addCriterion("arrive_time like", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeNotLike(String value) { + addCriterion("arrive_time not like", value, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeIn(List values) { + addCriterion("arrive_time in", values, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeNotIn(List values) { + addCriterion("arrive_time not in", values, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeBetween(String value1, String value2) { + addCriterion("arrive_time between", value1, value2, "arriveTime"); + return (Criteria) this; + } + + public Criteria andArriveTimeNotBetween(String value1, String value2) { + addCriterion("arrive_time not between", value1, value2, "arriveTime"); + return (Criteria) this; + } + public Criteria andCodeLikeInsensitive(String value) { addCriterion("upper(code) like", value.toUpperCase(), "code"); return (Criteria) this; } + public Criteria andPickTimeLikeInsensitive(String value) { + addCriterion("upper(pick_time) like", value.toUpperCase(), "pickTime"); + return (Criteria) this; + } + public Criteria andCommentLikeInsensitive(String value) { addCriterion("upper(comment) like", value.toUpperCase(), "comment"); return (Criteria) this; } + + public Criteria andArriveTimeLikeInsensitive(String value) { + addCriterion("upper(arrive_time) like", value.toUpperCase(), "arriveTime"); + return (Criteria) this; + } } /** * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order * - * @mbggenerated do_not_delete_during_merge Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated do_not_delete_during_merge Tue Sep 12 10:11:47 CST 2017 */ public static class Criteria extends GeneratedCriteria { @@ -1467,7 +1917,7 @@ public class SaleOrderExample { * This class was generated by MyBatis Generator. * This class corresponds to the database table sale_order * - * @mbggenerated Mon Aug 14 16:47:17 CST 2017 + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 */ public static class Criterion { private String condition; diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicket.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicket.java new file mode 100644 index 0000000..72a45e1 --- /dev/null +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicket.java @@ -0,0 +1,558 @@ +package com.unlcn.ils.sales.base.model; + +import java.io.Serializable; +import java.util.Date; + +public class SaleOrderTicket implements Serializable { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Integer id; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.order_id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Integer orderId; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String type; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.name + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String name; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.identify_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String identifyNumber; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.opening_bank + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String openingBank; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.account_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String accountNumber; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.address + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String address; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.contact_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String contactNumber; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.content + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String content; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.status + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String status; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.comment + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String comment; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.create_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String createUser; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.modified_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private String modifiedUser; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.gmt_create + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Date gmtCreate; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sale_order_ticket.gmt_modified + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private Date gmtModified; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + private static final long serialVersionUID = 1L; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.id + * + * @return the value of sale_order_ticket.id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Integer getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.id + * + * @param id the value for sale_order_ticket.id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.order_id + * + * @return the value of sale_order_ticket.order_id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Integer getOrderId() { + return orderId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.order_id + * + * @param orderId the value for sale_order_ticket.order_id + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setOrderId(Integer orderId) { + this.orderId = orderId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.type + * + * @return the value of sale_order_ticket.type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getType() { + return type; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.type + * + * @param type the value for sale_order_ticket.type + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setType(String type) { + this.type = type == null ? null : type.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.name + * + * @return the value of sale_order_ticket.name + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.name + * + * @param name the value for sale_order_ticket.name + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.identify_number + * + * @return the value of sale_order_ticket.identify_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getIdentifyNumber() { + return identifyNumber; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.identify_number + * + * @param identifyNumber the value for sale_order_ticket.identify_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setIdentifyNumber(String identifyNumber) { + this.identifyNumber = identifyNumber == null ? null : identifyNumber.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.opening_bank + * + * @return the value of sale_order_ticket.opening_bank + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getOpeningBank() { + return openingBank; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.opening_bank + * + * @param openingBank the value for sale_order_ticket.opening_bank + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setOpeningBank(String openingBank) { + this.openingBank = openingBank == null ? null : openingBank.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.account_number + * + * @return the value of sale_order_ticket.account_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getAccountNumber() { + return accountNumber; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.account_number + * + * @param accountNumber the value for sale_order_ticket.account_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber == null ? null : accountNumber.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.address + * + * @return the value of sale_order_ticket.address + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getAddress() { + return address; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.address + * + * @param address the value for sale_order_ticket.address + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.contact_number + * + * @return the value of sale_order_ticket.contact_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getContactNumber() { + return contactNumber; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.contact_number + * + * @param contactNumber the value for sale_order_ticket.contact_number + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setContactNumber(String contactNumber) { + this.contactNumber = contactNumber == null ? null : contactNumber.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.content + * + * @return the value of sale_order_ticket.content + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getContent() { + return content; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.content + * + * @param content the value for sale_order_ticket.content + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setContent(String content) { + this.content = content == null ? null : content.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.status + * + * @return the value of sale_order_ticket.status + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getStatus() { + return status; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.status + * + * @param status the value for sale_order_ticket.status + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setStatus(String status) { + this.status = status == null ? null : status.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.comment + * + * @return the value of sale_order_ticket.comment + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getComment() { + return comment; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.comment + * + * @param comment the value for sale_order_ticket.comment + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setComment(String comment) { + this.comment = comment == null ? null : comment.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.create_user + * + * @return the value of sale_order_ticket.create_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getCreateUser() { + return createUser; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.create_user + * + * @param createUser the value for sale_order_ticket.create_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setCreateUser(String createUser) { + this.createUser = createUser == null ? null : createUser.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.modified_user + * + * @return the value of sale_order_ticket.modified_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getModifiedUser() { + return modifiedUser; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.modified_user + * + * @param modifiedUser the value for sale_order_ticket.modified_user + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setModifiedUser(String modifiedUser) { + this.modifiedUser = modifiedUser == null ? null : modifiedUser.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.gmt_create + * + * @return the value of sale_order_ticket.gmt_create + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Date getGmtCreate() { + return gmtCreate; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.gmt_create + * + * @param gmtCreate the value for sale_order_ticket.gmt_create + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setGmtCreate(Date gmtCreate) { + this.gmtCreate = gmtCreate; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sale_order_ticket.gmt_modified + * + * @return the value of sale_order_ticket.gmt_modified + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Date getGmtModified() { + return gmtModified; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sale_order_ticket.gmt_modified + * + * @param gmtModified the value for sale_order_ticket.gmt_modified + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setGmtModified(Date gmtModified) { + this.gmtModified = gmtModified; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", orderId=").append(orderId); + sb.append(", type=").append(type); + sb.append(", name=").append(name); + sb.append(", identifyNumber=").append(identifyNumber); + sb.append(", openingBank=").append(openingBank); + sb.append(", accountNumber=").append(accountNumber); + sb.append(", address=").append(address); + sb.append(", contactNumber=").append(contactNumber); + sb.append(", content=").append(content); + sb.append(", status=").append(status); + sb.append(", comment=").append(comment); + sb.append(", createUser=").append(createUser); + sb.append(", modifiedUser=").append(modifiedUser); + sb.append(", gmtCreate=").append(gmtCreate); + sb.append(", gmtModified=").append(gmtModified); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicketExample.java b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicketExample.java new file mode 100644 index 0000000..e2d4215 --- /dev/null +++ b/ils-sales-base/src/main/java/com/unlcn/ils/sales/base/model/SaleOrderTicketExample.java @@ -0,0 +1,1499 @@ +package com.unlcn.ils.sales.base.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class SaleOrderTicketExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected List oredCriteria; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected int limitStart = -1; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected int limitEnd = -1; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public SaleOrderTicketExample() { + oredCriteria = new ArrayList(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setLimitStart(int limitStart) { + this.limitStart=limitStart; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public int getLimitStart() { + return limitStart; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public void setLimitEnd(int limitEnd) { + this.limitEnd=limitEnd; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public int getLimitEnd() { + return limitEnd; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Integer value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Integer value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Integer value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Integer value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Integer value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Integer value1, Integer value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberIsNull() { + addCriterion("identify_number is null"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberIsNotNull() { + addCriterion("identify_number is not null"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberEqualTo(String value) { + addCriterion("identify_number =", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberNotEqualTo(String value) { + addCriterion("identify_number <>", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberGreaterThan(String value) { + addCriterion("identify_number >", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberGreaterThanOrEqualTo(String value) { + addCriterion("identify_number >=", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberLessThan(String value) { + addCriterion("identify_number <", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberLessThanOrEqualTo(String value) { + addCriterion("identify_number <=", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberLike(String value) { + addCriterion("identify_number like", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberNotLike(String value) { + addCriterion("identify_number not like", value, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberIn(List values) { + addCriterion("identify_number in", values, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberNotIn(List values) { + addCriterion("identify_number not in", values, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberBetween(String value1, String value2) { + addCriterion("identify_number between", value1, value2, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberNotBetween(String value1, String value2) { + addCriterion("identify_number not between", value1, value2, "identifyNumber"); + return (Criteria) this; + } + + public Criteria andOpeningBankIsNull() { + addCriterion("opening_bank is null"); + return (Criteria) this; + } + + public Criteria andOpeningBankIsNotNull() { + addCriterion("opening_bank is not null"); + return (Criteria) this; + } + + public Criteria andOpeningBankEqualTo(String value) { + addCriterion("opening_bank =", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankNotEqualTo(String value) { + addCriterion("opening_bank <>", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankGreaterThan(String value) { + addCriterion("opening_bank >", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankGreaterThanOrEqualTo(String value) { + addCriterion("opening_bank >=", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankLessThan(String value) { + addCriterion("opening_bank <", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankLessThanOrEqualTo(String value) { + addCriterion("opening_bank <=", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankLike(String value) { + addCriterion("opening_bank like", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankNotLike(String value) { + addCriterion("opening_bank not like", value, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankIn(List values) { + addCriterion("opening_bank in", values, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankNotIn(List values) { + addCriterion("opening_bank not in", values, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankBetween(String value1, String value2) { + addCriterion("opening_bank between", value1, value2, "openingBank"); + return (Criteria) this; + } + + public Criteria andOpeningBankNotBetween(String value1, String value2) { + addCriterion("opening_bank not between", value1, value2, "openingBank"); + return (Criteria) this; + } + + public Criteria andAccountNumberIsNull() { + addCriterion("account_number is null"); + return (Criteria) this; + } + + public Criteria andAccountNumberIsNotNull() { + addCriterion("account_number is not null"); + return (Criteria) this; + } + + public Criteria andAccountNumberEqualTo(String value) { + addCriterion("account_number =", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberNotEqualTo(String value) { + addCriterion("account_number <>", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberGreaterThan(String value) { + addCriterion("account_number >", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberGreaterThanOrEqualTo(String value) { + addCriterion("account_number >=", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberLessThan(String value) { + addCriterion("account_number <", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberLessThanOrEqualTo(String value) { + addCriterion("account_number <=", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberLike(String value) { + addCriterion("account_number like", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberNotLike(String value) { + addCriterion("account_number not like", value, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberIn(List values) { + addCriterion("account_number in", values, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberNotIn(List values) { + addCriterion("account_number not in", values, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberBetween(String value1, String value2) { + addCriterion("account_number between", value1, value2, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAccountNumberNotBetween(String value1, String value2) { + addCriterion("account_number not between", value1, value2, "accountNumber"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andContactNumberIsNull() { + addCriterion("contact_number is null"); + return (Criteria) this; + } + + public Criteria andContactNumberIsNotNull() { + addCriterion("contact_number is not null"); + return (Criteria) this; + } + + public Criteria andContactNumberEqualTo(String value) { + addCriterion("contact_number =", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotEqualTo(String value) { + addCriterion("contact_number <>", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberGreaterThan(String value) { + addCriterion("contact_number >", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberGreaterThanOrEqualTo(String value) { + addCriterion("contact_number >=", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLessThan(String value) { + addCriterion("contact_number <", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLessThanOrEqualTo(String value) { + addCriterion("contact_number <=", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLike(String value) { + addCriterion("contact_number like", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotLike(String value) { + addCriterion("contact_number not like", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberIn(List values) { + addCriterion("contact_number in", values, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotIn(List values) { + addCriterion("contact_number not in", values, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberBetween(String value1, String value2) { + addCriterion("contact_number between", value1, value2, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotBetween(String value1, String value2) { + addCriterion("contact_number not between", value1, value2, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContentIsNull() { + addCriterion("content is null"); + return (Criteria) this; + } + + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); + return (Criteria) this; + } + + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(String value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(String value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(String value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(String value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(String value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(String value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLike(String value) { + addCriterion("status like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotLike(String value) { + addCriterion("status not like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(String value1, String value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(String value1, String value2) { + addCriterion("status not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andCommentIsNull() { + addCriterion("comment is null"); + return (Criteria) this; + } + + public Criteria andCommentIsNotNull() { + addCriterion("comment is not null"); + return (Criteria) this; + } + + public Criteria andCommentEqualTo(String value) { + addCriterion("comment =", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotEqualTo(String value) { + addCriterion("comment <>", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentGreaterThan(String value) { + addCriterion("comment >", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentGreaterThanOrEqualTo(String value) { + addCriterion("comment >=", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLessThan(String value) { + addCriterion("comment <", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLessThanOrEqualTo(String value) { + addCriterion("comment <=", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentLike(String value) { + addCriterion("comment like", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotLike(String value) { + addCriterion("comment not like", value, "comment"); + return (Criteria) this; + } + + public Criteria andCommentIn(List values) { + addCriterion("comment in", values, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotIn(List values) { + addCriterion("comment not in", values, "comment"); + return (Criteria) this; + } + + public Criteria andCommentBetween(String value1, String value2) { + addCriterion("comment between", value1, value2, "comment"); + return (Criteria) this; + } + + public Criteria andCommentNotBetween(String value1, String value2) { + addCriterion("comment not between", value1, value2, "comment"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNull() { + addCriterion("create_user is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIsNotNull() { + addCriterion("create_user is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserEqualTo(String value) { + addCriterion("create_user =", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotEqualTo(String value) { + addCriterion("create_user <>", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThan(String value) { + addCriterion("create_user >", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserGreaterThanOrEqualTo(String value) { + addCriterion("create_user >=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThan(String value) { + addCriterion("create_user <", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLessThanOrEqualTo(String value) { + addCriterion("create_user <=", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserLike(String value) { + addCriterion("create_user like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotLike(String value) { + addCriterion("create_user not like", value, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserIn(List values) { + addCriterion("create_user in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotIn(List values) { + addCriterion("create_user not in", values, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserBetween(String value1, String value2) { + addCriterion("create_user between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andCreateUserNotBetween(String value1, String value2) { + addCriterion("create_user not between", value1, value2, "createUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserIsNull() { + addCriterion("modified_user is null"); + return (Criteria) this; + } + + public Criteria andModifiedUserIsNotNull() { + addCriterion("modified_user is not null"); + return (Criteria) this; + } + + public Criteria andModifiedUserEqualTo(String value) { + addCriterion("modified_user =", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserNotEqualTo(String value) { + addCriterion("modified_user <>", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserGreaterThan(String value) { + addCriterion("modified_user >", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserGreaterThanOrEqualTo(String value) { + addCriterion("modified_user >=", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserLessThan(String value) { + addCriterion("modified_user <", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserLessThanOrEqualTo(String value) { + addCriterion("modified_user <=", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserLike(String value) { + addCriterion("modified_user like", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserNotLike(String value) { + addCriterion("modified_user not like", value, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserIn(List values) { + addCriterion("modified_user in", values, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserNotIn(List values) { + addCriterion("modified_user not in", values, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserBetween(String value1, String value2) { + addCriterion("modified_user between", value1, value2, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserNotBetween(String value1, String value2) { + addCriterion("modified_user not between", value1, value2, "modifiedUser"); + return (Criteria) this; + } + + public Criteria andGmtCreateIsNull() { + addCriterion("gmt_create is null"); + return (Criteria) this; + } + + public Criteria andGmtCreateIsNotNull() { + addCriterion("gmt_create is not null"); + return (Criteria) this; + } + + public Criteria andGmtCreateEqualTo(Date value) { + addCriterion("gmt_create =", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateNotEqualTo(Date value) { + addCriterion("gmt_create <>", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateGreaterThan(Date value) { + addCriterion("gmt_create >", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateGreaterThanOrEqualTo(Date value) { + addCriterion("gmt_create >=", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateLessThan(Date value) { + addCriterion("gmt_create <", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateLessThanOrEqualTo(Date value) { + addCriterion("gmt_create <=", value, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateIn(List values) { + addCriterion("gmt_create in", values, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateNotIn(List values) { + addCriterion("gmt_create not in", values, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateBetween(Date value1, Date value2) { + addCriterion("gmt_create between", value1, value2, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtCreateNotBetween(Date value1, Date value2) { + addCriterion("gmt_create not between", value1, value2, "gmtCreate"); + return (Criteria) this; + } + + public Criteria andGmtModifiedIsNull() { + addCriterion("gmt_modified is null"); + return (Criteria) this; + } + + public Criteria andGmtModifiedIsNotNull() { + addCriterion("gmt_modified is not null"); + return (Criteria) this; + } + + public Criteria andGmtModifiedEqualTo(Date value) { + addCriterion("gmt_modified =", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedNotEqualTo(Date value) { + addCriterion("gmt_modified <>", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedGreaterThan(Date value) { + addCriterion("gmt_modified >", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedGreaterThanOrEqualTo(Date value) { + addCriterion("gmt_modified >=", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedLessThan(Date value) { + addCriterion("gmt_modified <", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedLessThanOrEqualTo(Date value) { + addCriterion("gmt_modified <=", value, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedIn(List values) { + addCriterion("gmt_modified in", values, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedNotIn(List values) { + addCriterion("gmt_modified not in", values, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedBetween(Date value1, Date value2) { + addCriterion("gmt_modified between", value1, value2, "gmtModified"); + return (Criteria) this; + } + + public Criteria andGmtModifiedNotBetween(Date value1, Date value2) { + addCriterion("gmt_modified not between", value1, value2, "gmtModified"); + return (Criteria) this; + } + + public Criteria andTypeLikeInsensitive(String value) { + addCriterion("upper(type) like", value.toUpperCase(), "type"); + return (Criteria) this; + } + + public Criteria andNameLikeInsensitive(String value) { + addCriterion("upper(name) like", value.toUpperCase(), "name"); + return (Criteria) this; + } + + public Criteria andIdentifyNumberLikeInsensitive(String value) { + addCriterion("upper(identify_number) like", value.toUpperCase(), "identifyNumber"); + return (Criteria) this; + } + + public Criteria andOpeningBankLikeInsensitive(String value) { + addCriterion("upper(opening_bank) like", value.toUpperCase(), "openingBank"); + return (Criteria) this; + } + + public Criteria andAccountNumberLikeInsensitive(String value) { + addCriterion("upper(account_number) like", value.toUpperCase(), "accountNumber"); + return (Criteria) this; + } + + public Criteria andAddressLikeInsensitive(String value) { + addCriterion("upper(address) like", value.toUpperCase(), "address"); + return (Criteria) this; + } + + public Criteria andContactNumberLikeInsensitive(String value) { + addCriterion("upper(contact_number) like", value.toUpperCase(), "contactNumber"); + return (Criteria) this; + } + + public Criteria andContentLikeInsensitive(String value) { + addCriterion("upper(content) like", value.toUpperCase(), "content"); + return (Criteria) this; + } + + public Criteria andStatusLikeInsensitive(String value) { + addCriterion("upper(status) like", value.toUpperCase(), "status"); + return (Criteria) this; + } + + public Criteria andCommentLikeInsensitive(String value) { + addCriterion("upper(comment) like", value.toUpperCase(), "comment"); + return (Criteria) this; + } + + public Criteria andCreateUserLikeInsensitive(String value) { + addCriterion("upper(create_user) like", value.toUpperCase(), "createUser"); + return (Criteria) this; + } + + public Criteria andModifiedUserLikeInsensitive(String value) { + addCriterion("upper(modified_user) like", value.toUpperCase(), "modifiedUser"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sale_order_ticket + * + * @mbggenerated do_not_delete_during_merge Tue Sep 12 10:11:47 CST 2017 + */ + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sale_order_ticket + * + * @mbggenerated Tue Sep 12 10:11:47 CST 2017 + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ils-sales-base/src/main/resources/mappers/SaleOrderAddrMapper.xml b/ils-sales-base/src/main/resources/mappers/SaleOrderAddrMapper.xml index d78d006..f4386db 100644 --- a/ils-sales-base/src/main/resources/mappers/SaleOrderAddrMapper.xml +++ b/ils-sales-base/src/main/resources/mappers/SaleOrderAddrMapper.xml @@ -1,52 +1,54 @@ - - - - + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + and ${criterion.condition} - + and ${criterion.condition} #{criterion.value} - + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - + and ${criterion.condition} - + #{listItem} @@ -57,30 +59,30 @@ - + - - - - - - - + + + + + + + and ${criterion.condition} - + and ${criterion.condition} #{criterion.value} - + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - + and ${criterion.condition} - + #{listItem} @@ -91,262 +93,282 @@ - + id, sale_order_id, line_id, depart_region_code, depart_region_name, depart_contact, - depart_phone, dest_region_code, dest_region_name, dest_contact, dest_phone, distance, - delete_mark, gmt_create, gmt_update + depart_phone, depart_addr, dest_region_code, dest_region_name, dest_contact, dest_phone, + dest_addr, distance, delete_mark, gmt_create, gmt_update - select - + distinct from sale_order_addr - + - + order by ${orderByClause} - + limit ${limitStart} , ${limitEnd} - select from sale_order_addr where id = #{id,jdbcType=INTEGER} - + delete from sale_order_addr where id = #{id,jdbcType=INTEGER} - + delete from sale_order_addr - + - + - + SELECT LAST_INSERT_ID() insert into sale_order_addr (sale_order_id, line_id, depart_region_code, depart_region_name, depart_contact, depart_phone, - dest_region_code, dest_region_name, dest_contact, - dest_phone, distance, delete_mark, - gmt_create, gmt_update) + depart_addr, dest_region_code, dest_region_name, + dest_contact, dest_phone, dest_addr, + distance, delete_mark, gmt_create, + gmt_update) values (#{saleOrderId,jdbcType=INTEGER}, #{lineId,jdbcType=INTEGER}, #{departRegionCode,jdbcType=VARCHAR}, #{departRegionName,jdbcType=VARCHAR}, #{departContact,jdbcType=VARCHAR}, #{departPhone,jdbcType=VARCHAR}, - #{destRegionCode,jdbcType=VARCHAR}, #{destRegionName,jdbcType=VARCHAR}, #{destContact,jdbcType=VARCHAR}, - #{destPhone,jdbcType=VARCHAR}, #{distance,jdbcType=DECIMAL}, #{deleteMark,jdbcType=BIT}, - #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtUpdate,jdbcType=TIMESTAMP}) + #{departAddr,jdbcType=VARCHAR}, #{destRegionCode,jdbcType=VARCHAR}, #{destRegionName,jdbcType=VARCHAR}, + #{destContact,jdbcType=VARCHAR}, #{destPhone,jdbcType=VARCHAR}, #{destAddr,jdbcType=VARCHAR}, + #{distance,jdbcType=DECIMAL}, #{deleteMark,jdbcType=BIT}, #{gmtCreate,jdbcType=TIMESTAMP}, + #{gmtUpdate,jdbcType=TIMESTAMP}) - + - + SELECT LAST_INSERT_ID() insert into sale_order_addr - - + + sale_order_id, - + line_id, - + depart_region_code, - + depart_region_name, - + depart_contact, - + depart_phone, - + + depart_addr, + + dest_region_code, - + dest_region_name, - + dest_contact, - + dest_phone, - + + dest_addr, + + distance, - + delete_mark, - + gmt_create, - + gmt_update, - - + + #{saleOrderId,jdbcType=INTEGER}, - + #{lineId,jdbcType=INTEGER}, - + #{departRegionCode,jdbcType=VARCHAR}, - + #{departRegionName,jdbcType=VARCHAR}, - + #{departContact,jdbcType=VARCHAR}, - + #{departPhone,jdbcType=VARCHAR}, - + + #{departAddr,jdbcType=VARCHAR}, + + #{destRegionCode,jdbcType=VARCHAR}, - + #{destRegionName,jdbcType=VARCHAR}, - + #{destContact,jdbcType=VARCHAR}, - + #{destPhone,jdbcType=VARCHAR}, - + + #{destAddr,jdbcType=VARCHAR}, + + #{distance,jdbcType=DECIMAL}, - + #{deleteMark,jdbcType=BIT}, - + #{gmtCreate,jdbcType=TIMESTAMP}, - + #{gmtUpdate,jdbcType=TIMESTAMP}, - select count(*) from sale_order_addr - + - + update sale_order_addr - - + + id = #{record.id,jdbcType=INTEGER}, - + sale_order_id = #{record.saleOrderId,jdbcType=INTEGER}, - + line_id = #{record.lineId,jdbcType=INTEGER}, - + depart_region_code = #{record.departRegionCode,jdbcType=VARCHAR}, - + depart_region_name = #{record.departRegionName,jdbcType=VARCHAR}, - + depart_contact = #{record.departContact,jdbcType=VARCHAR}, - + depart_phone = #{record.departPhone,jdbcType=VARCHAR}, - + + depart_addr = #{record.departAddr,jdbcType=VARCHAR}, + + dest_region_code = #{record.destRegionCode,jdbcType=VARCHAR}, - + dest_region_name = #{record.destRegionName,jdbcType=VARCHAR}, - + dest_contact = #{record.destContact,jdbcType=VARCHAR}, - + dest_phone = #{record.destPhone,jdbcType=VARCHAR}, - + + dest_addr = #{record.destAddr,jdbcType=VARCHAR}, + + distance = #{record.distance,jdbcType=DECIMAL}, - + delete_mark = #{record.deleteMark,jdbcType=BIT}, - + gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP}, - + gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP}, - + - + update sale_order_addr set id = #{record.id,jdbcType=INTEGER}, @@ -356,76 +378,84 @@ depart_region_name = #{record.departRegionName,jdbcType=VARCHAR}, depart_contact = #{record.departContact,jdbcType=VARCHAR}, depart_phone = #{record.departPhone,jdbcType=VARCHAR}, + depart_addr = #{record.departAddr,jdbcType=VARCHAR}, dest_region_code = #{record.destRegionCode,jdbcType=VARCHAR}, dest_region_name = #{record.destRegionName,jdbcType=VARCHAR}, dest_contact = #{record.destContact,jdbcType=VARCHAR}, dest_phone = #{record.destPhone,jdbcType=VARCHAR}, + dest_addr = #{record.destAddr,jdbcType=VARCHAR}, distance = #{record.distance,jdbcType=DECIMAL}, delete_mark = #{record.deleteMark,jdbcType=BIT}, gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP}, gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP} - + - + update sale_order_addr - - + + sale_order_id = #{saleOrderId,jdbcType=INTEGER}, - + line_id = #{lineId,jdbcType=INTEGER}, - + depart_region_code = #{departRegionCode,jdbcType=VARCHAR}, - + depart_region_name = #{departRegionName,jdbcType=VARCHAR}, - + depart_contact = #{departContact,jdbcType=VARCHAR}, - + depart_phone = #{departPhone,jdbcType=VARCHAR}, - + + depart_addr = #{departAddr,jdbcType=VARCHAR}, + + dest_region_code = #{destRegionCode,jdbcType=VARCHAR}, - + dest_region_name = #{destRegionName,jdbcType=VARCHAR}, - + dest_contact = #{destContact,jdbcType=VARCHAR}, - + dest_phone = #{destPhone,jdbcType=VARCHAR}, - + + dest_addr = #{destAddr,jdbcType=VARCHAR}, + + distance = #{distance,jdbcType=DECIMAL}, - + delete_mark = #{deleteMark,jdbcType=BIT}, - + gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, - + gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP}, where id = #{id,jdbcType=INTEGER} - + update sale_order_addr set sale_order_id = #{saleOrderId,jdbcType=INTEGER}, @@ -434,10 +464,12 @@ depart_region_name = #{departRegionName,jdbcType=VARCHAR}, depart_contact = #{departContact,jdbcType=VARCHAR}, depart_phone = #{departPhone,jdbcType=VARCHAR}, + depart_addr = #{departAddr,jdbcType=VARCHAR}, dest_region_code = #{destRegionCode,jdbcType=VARCHAR}, dest_region_name = #{destRegionName,jdbcType=VARCHAR}, dest_contact = #{destContact,jdbcType=VARCHAR}, dest_phone = #{destPhone,jdbcType=VARCHAR}, + dest_addr = #{destAddr,jdbcType=VARCHAR}, distance = #{distance,jdbcType=DECIMAL}, delete_mark = #{deleteMark,jdbcType=BIT}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, diff --git a/ils-sales-base/src/main/resources/mappers/SaleOrderMapper.xml b/ils-sales-base/src/main/resources/mappers/SaleOrderMapper.xml index 7b65001..fbf126f 100644 --- a/ils-sales-base/src/main/resources/mappers/SaleOrderMapper.xml +++ b/ils-sales-base/src/main/resources/mappers/SaleOrderMapper.xml @@ -5,12 +5,13 @@ + @@ -26,12 +27,18 @@ + + + + + + @@ -65,7 +72,7 @@ @@ -99,18 +106,19 @@ - id, code, user_id, pick_date, brands, series_amt, standard_sale_price, standard_unit_price, - suggest_sale_price, final_sale_price, final_purchase_price, insurance_sale_price, - insurance_unit_price, order_status, attach_audit_status, comment, delete_mark, gmt_create, - gmt_update + id, code, user_id, pick_date, pick_time, brands, series_amt, standard_sale_price, + standard_unit_price, suggest_sale_price, final_sale_price, final_purchase_price, + insurance_sale_price, insurance_unit_price, order_status, attach_audit_status, comment, + delete_mark, gmt_create, gmt_update, is_pick, is_deliv, transport_type, is_ticket, + arrive_date, arrive_time select count(*) from sale_order @@ -321,7 +375,7 @@ update sale_order @@ -337,6 +391,9 @@ pick_date = #{record.pickDate,jdbcType=DATE}, + + pick_time = #{record.pickTime,jdbcType=VARCHAR}, + brands = #{record.brands,jdbcType=INTEGER}, @@ -382,6 +439,24 @@ gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP}, + + is_pick = #{record.isPick,jdbcType=BIT}, + + + is_deliv = #{record.isDeliv,jdbcType=BIT}, + + + transport_type = #{record.transportType,jdbcType=INTEGER}, + + + is_ticket = #{record.isTicket,jdbcType=BIT}, + + + arrive_date = #{record.arriveDate,jdbcType=DATE}, + + + arrive_time = #{record.arriveTime,jdbcType=VARCHAR}, + @@ -391,13 +466,14 @@ update sale_order set id = #{record.id,jdbcType=INTEGER}, code = #{record.code,jdbcType=VARCHAR}, user_id = #{record.userId,jdbcType=INTEGER}, pick_date = #{record.pickDate,jdbcType=DATE}, + pick_time = #{record.pickTime,jdbcType=VARCHAR}, brands = #{record.brands,jdbcType=INTEGER}, series_amt = #{record.seriesAmt,jdbcType=INTEGER}, standard_sale_price = #{record.standardSalePrice,jdbcType=DECIMAL}, @@ -412,7 +488,13 @@ comment = #{record.comment,jdbcType=VARCHAR}, delete_mark = #{record.deleteMark,jdbcType=BIT}, gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP}, - gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP} + gmt_update = #{record.gmtUpdate,jdbcType=TIMESTAMP}, + is_pick = #{record.isPick,jdbcType=BIT}, + is_deliv = #{record.isDeliv,jdbcType=BIT}, + transport_type = #{record.transportType,jdbcType=INTEGER}, + is_ticket = #{record.isTicket,jdbcType=BIT}, + arrive_date = #{record.arriveDate,jdbcType=DATE}, + arrive_time = #{record.arriveTime,jdbcType=VARCHAR} @@ -421,7 +503,7 @@ update sale_order @@ -434,6 +516,9 @@ pick_date = #{pickDate,jdbcType=DATE}, + + pick_time = #{pickTime,jdbcType=VARCHAR}, + brands = #{brands,jdbcType=INTEGER}, @@ -479,6 +564,24 @@ gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP}, + + is_pick = #{isPick,jdbcType=BIT}, + + + is_deliv = #{isDeliv,jdbcType=BIT}, + + + transport_type = #{transportType,jdbcType=INTEGER}, + + + is_ticket = #{isTicket,jdbcType=BIT}, + + + arrive_date = #{arriveDate,jdbcType=DATE}, + + + arrive_time = #{arriveTime,jdbcType=VARCHAR}, + where id = #{id,jdbcType=INTEGER} @@ -486,12 +589,13 @@ update sale_order set code = #{code,jdbcType=VARCHAR}, user_id = #{userId,jdbcType=INTEGER}, pick_date = #{pickDate,jdbcType=DATE}, + pick_time = #{pickTime,jdbcType=VARCHAR}, brands = #{brands,jdbcType=INTEGER}, series_amt = #{seriesAmt,jdbcType=INTEGER}, standard_sale_price = #{standardSalePrice,jdbcType=DECIMAL}, @@ -506,7 +610,13 @@ comment = #{comment,jdbcType=VARCHAR}, delete_mark = #{deleteMark,jdbcType=BIT}, gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, - gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP} + gmt_update = #{gmtUpdate,jdbcType=TIMESTAMP}, + is_pick = #{isPick,jdbcType=BIT}, + is_deliv = #{isDeliv,jdbcType=BIT}, + transport_type = #{transportType,jdbcType=INTEGER}, + is_ticket = #{isTicket,jdbcType=BIT}, + arrive_date = #{arriveDate,jdbcType=DATE}, + arrive_time = #{arriveTime,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER} \ No newline at end of file diff --git a/ils-sales-base/src/main/resources/mappers/SaleOrderTicketMapper.xml b/ils-sales-base/src/main/resources/mappers/SaleOrderTicketMapper.xml new file mode 100644 index 0000000..3c1c6e8 --- /dev/null +++ b/ils-sales-base/src/main/resources/mappers/SaleOrderTicketMapper.xml @@ -0,0 +1,464 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + id, order_id, type, name, identify_number, opening_bank, account_number, address, + contact_number, content, status, comment, create_user, modified_user, gmt_create, + gmt_modified + + + + + + delete from sale_order_ticket + where id = #{id,jdbcType=INTEGER} + + + + delete from sale_order_ticket + + + + + + + + SELECT LAST_INSERT_ID() + + insert into sale_order_ticket (order_id, type, name, + identify_number, opening_bank, account_number, + address, contact_number, content, + status, comment, create_user, + modified_user, gmt_create, gmt_modified + ) + values (#{orderId,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{identifyNumber,jdbcType=VARCHAR}, #{openingBank,jdbcType=VARCHAR}, #{accountNumber,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, #{contactNumber,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, + #{status,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, + #{modifiedUser,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP} + ) + + + + + SELECT LAST_INSERT_ID() + + insert into sale_order_ticket + + + order_id, + + + type, + + + name, + + + identify_number, + + + opening_bank, + + + account_number, + + + address, + + + contact_number, + + + content, + + + status, + + + comment, + + + create_user, + + + modified_user, + + + gmt_create, + + + gmt_modified, + + + + + #{orderId,jdbcType=INTEGER}, + + + #{type,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{identifyNumber,jdbcType=VARCHAR}, + + + #{openingBank,jdbcType=VARCHAR}, + + + #{accountNumber,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{contactNumber,jdbcType=VARCHAR}, + + + #{content,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{comment,jdbcType=VARCHAR}, + + + #{createUser,jdbcType=VARCHAR}, + + + #{modifiedUser,jdbcType=VARCHAR}, + + + #{gmtCreate,jdbcType=TIMESTAMP}, + + + #{gmtModified,jdbcType=TIMESTAMP}, + + + + + + + update sale_order_ticket + + + id = #{record.id,jdbcType=INTEGER}, + + + order_id = #{record.orderId,jdbcType=INTEGER}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + identify_number = #{record.identifyNumber,jdbcType=VARCHAR}, + + + opening_bank = #{record.openingBank,jdbcType=VARCHAR}, + + + account_number = #{record.accountNumber,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + contact_number = #{record.contactNumber,jdbcType=VARCHAR}, + + + content = #{record.content,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=VARCHAR}, + + + comment = #{record.comment,jdbcType=VARCHAR}, + + + create_user = #{record.createUser,jdbcType=VARCHAR}, + + + modified_user = #{record.modifiedUser,jdbcType=VARCHAR}, + + + gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP}, + + + gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP}, + + + + + + + + + update sale_order_ticket + set id = #{record.id,jdbcType=INTEGER}, + order_id = #{record.orderId,jdbcType=INTEGER}, + type = #{record.type,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + identify_number = #{record.identifyNumber,jdbcType=VARCHAR}, + opening_bank = #{record.openingBank,jdbcType=VARCHAR}, + account_number = #{record.accountNumber,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + contact_number = #{record.contactNumber,jdbcType=VARCHAR}, + content = #{record.content,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=VARCHAR}, + comment = #{record.comment,jdbcType=VARCHAR}, + create_user = #{record.createUser,jdbcType=VARCHAR}, + modified_user = #{record.modifiedUser,jdbcType=VARCHAR}, + gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP}, + gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP} + + + + + + + update sale_order_ticket + + + order_id = #{orderId,jdbcType=INTEGER}, + + + type = #{type,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + identify_number = #{identifyNumber,jdbcType=VARCHAR}, + + + opening_bank = #{openingBank,jdbcType=VARCHAR}, + + + account_number = #{accountNumber,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + contact_number = #{contactNumber,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=VARCHAR}, + + + comment = #{comment,jdbcType=VARCHAR}, + + + create_user = #{createUser,jdbcType=VARCHAR}, + + + modified_user = #{modifiedUser,jdbcType=VARCHAR}, + + + gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, + + + gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + + update sale_order_ticket + set order_id = #{orderId,jdbcType=INTEGER}, + type = #{type,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + identify_number = #{identifyNumber,jdbcType=VARCHAR}, + opening_bank = #{openingBank,jdbcType=VARCHAR}, + account_number = #{accountNumber,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + contact_number = #{contactNumber,jdbcType=VARCHAR}, + content = #{content,jdbcType=VARCHAR}, + status = #{status,jdbcType=VARCHAR}, + comment = #{comment,jdbcType=VARCHAR}, + create_user = #{createUser,jdbcType=VARCHAR}, + modified_user = #{modifiedUser,jdbcType=VARCHAR}, + gmt_create = #{gmtCreate,jdbcType=TIMESTAMP}, + gmt_modified = #{gmtModified,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/ils-sales-base/src/main/resources/mappers/SaleOrderViewMapper.xml b/ils-sales-base/src/main/resources/mappers/SaleOrderViewMapper.xml index bdb4b56..4f59eb0 100644 --- a/ils-sales-base/src/main/resources/mappers/SaleOrderViewMapper.xml +++ b/ils-sales-base/src/main/resources/mappers/SaleOrderViewMapper.xml @@ -31,7 +31,13 @@ - + + + + + + + select @@ -140,7 +141,7 @@ select @@ -151,7 +152,7 @@ delete from sale_order where id = #{id,jdbcType=INTEGER} @@ -160,7 +161,7 @@ delete from sale_order @@ -171,7 +172,7 @@ SELECT LAST_INSERT_ID() @@ -184,7 +185,7 @@ comment, delete_mark, gmt_create, gmt_update, is_pick, is_deliv, transport_type, is_ticket, arrive_date, - arrive_time) + arrive_time, pay_status) values (#{code,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, #{pickDate,jdbcType=DATE}, #{pickTime,jdbcType=VARCHAR}, #{brands,jdbcType=INTEGER}, #{seriesAmt,jdbcType=INTEGER}, #{standardSalePrice,jdbcType=DECIMAL}, #{standardUnitPrice,jdbcType=DECIMAL}, #{suggestSalePrice,jdbcType=DECIMAL}, @@ -193,13 +194,13 @@ #{comment,jdbcType=VARCHAR}, #{deleteMark,jdbcType=BIT}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtUpdate,jdbcType=TIMESTAMP}, #{isPick,jdbcType=BIT}, #{isDeliv,jdbcType=BIT}, #{transportType,jdbcType=INTEGER}, #{isTicket,jdbcType=BIT}, #{arriveDate,jdbcType=DATE}, - #{arriveTime,jdbcType=VARCHAR}) + #{arriveTime,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}) SELECT LAST_INSERT_ID() @@ -281,6 +282,9 @@ arrive_time, + + pay_status, + @@ -358,13 +362,16 @@ #{arriveTime,jdbcType=VARCHAR}, + + #{payStatus,jdbcType=INTEGER}, +