From 6e7ba7e737231e857d012cf8e2537973d85b4cc5 Mon Sep 17 00:00:00 2001 From: ma <1062634917@qq.com> Date: Fri, 7 May 2021 18:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=A9=E6=B5=81=E5=9B=AD?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logistics/pom.xml | 75 ++ .../logistics/LogisticsApplication.java | 24 + .../ccsens/logistics/api/DebugController.java | 30 + .../ccsens/logistics/api/MbpsController.java | 52 + .../ccsens/logistics/bean/dto/MbpsDto.java | 31 + .../logistics/bean/po/LogisticsCarRecord.java | 161 +++ .../bean/po/LogisticsCarRecordExample.java | 1011 +++++++++++++++++ .../bean/po/LogisticsEnvironmentRecord.java | 117 ++ .../po/LogisticsEnvironmentRecordExample.java | 741 ++++++++++++ .../logistics/bean/po/LogisticsEquipment.java | 106 ++ .../bean/po/LogisticsEquipmentExample.java | 691 +++++++++++ .../bean/po/LogisticsParkEquipment.java | 106 ++ .../po/LogisticsParkEquipmentExample.java | 691 +++++++++++ .../logistics/bean/po/LogisticsWarehouse.java | 84 ++ .../bean/po/LogisticsWarehouseExample.java | 571 ++++++++++ .../com/ccsens/logistics/bean/vo/MbpsVo.java | 74 ++ .../ccsens/logistics/config/BeanConfig.java | 32 + .../ccsens/logistics/config/SpringConfig.java | 169 +++ .../logistics/config/SwaggerConfigure.java | 56 + .../intercept/MybatisInterceptor.java | 159 +++ .../persist/dao/LogisticsCarRecordDao.java | 79 ++ .../dao/LogisticsEnvironmentRecordDao.java | 11 + .../persist/dao/LogisticsEquipmentDao.java | 11 + .../dao/LogisticsParkEquipmentDao.java | 11 + .../persist/dao/LogisticsWarehouseDao.java | 11 + .../mapper/LogisticsCarRecordMapper.java | 30 + .../LogisticsEnvironmentRecordMapper.java | 30 + .../mapper/LogisticsEquipmentMapper.java | 30 + .../mapper/LogisticsParkEquipmentMapper.java | 30 + .../mapper/LogisticsWarehouseMapper.java | 30 + .../logistics/service/IMbpsService.java | 26 + .../ccsens/logistics/service/MbpsService.java | 61 + .../src/main/resources/application-common.yml | 30 + .../src/main/resources/application-dev.yml | 35 + .../src/main/resources/application-prod.yml | 40 + .../src/main/resources/application-test.yml | 36 + logistics/src/main/resources/application.yml | 6 + logistics/src/main/resources/banner.txt | 10 + logistics/src/main/resources/druid-dev.yml | 35 + logistics/src/main/resources/druid-prod.yml | 33 + logistics/src/main/resources/druid-test.yml | 33 + .../src/main/resources/logback-spring.xml | 196 ++++ .../mapper_dao/LogisticsCarRecordDao.xml | 141 +++ .../LogisticsEnvironmentRecordDao.xml | 5 + .../mapper_dao/LogisticsEquipmentDao.xml | 5 + .../mapper_dao/LogisticsParkEquipmentDao.xml | 5 + .../mapper_dao/LogisticsWarehouseDao.xml | 5 + .../mapper_raw/LogisticsCarRecordMapper.xml | 338 ++++++ .../LogisticsEnvironmentRecordMapper.xml | 276 +++++ .../mapper_raw/LogisticsEquipmentMapper.xml | 259 +++++ .../LogisticsParkEquipmentMapper.xml | 258 +++++ .../mapper_raw/LogisticsWarehouseMapper.xml | 228 ++++ .../main/resources/mybatis/mybatis-config.xml | 62 + pom.xml | 1 + tall/src/main/resources/application.yml | 4 +- 55 files changed, 7380 insertions(+), 2 deletions(-) create mode 100644 logistics/pom.xml create mode 100644 logistics/src/main/java/com/ccsens/logistics/LogisticsApplication.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/api/DebugController.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/api/MbpsController.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecord.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecordExample.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecord.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecordExample.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipment.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipmentExample.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipment.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipmentExample.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouse.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouseExample.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/bean/vo/MbpsVo.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/config/BeanConfig.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/config/SpringConfig.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/config/SwaggerConfigure.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/intercept/MybatisInterceptor.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsCarRecordDao.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEnvironmentRecordDao.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEquipmentDao.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsParkEquipmentDao.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsWarehouseDao.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsCarRecordMapper.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEnvironmentRecordMapper.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEquipmentMapper.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsParkEquipmentMapper.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsWarehouseMapper.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/service/IMbpsService.java create mode 100644 logistics/src/main/java/com/ccsens/logistics/service/MbpsService.java create mode 100644 logistics/src/main/resources/application-common.yml create mode 100644 logistics/src/main/resources/application-dev.yml create mode 100644 logistics/src/main/resources/application-prod.yml create mode 100644 logistics/src/main/resources/application-test.yml create mode 100644 logistics/src/main/resources/application.yml create mode 100644 logistics/src/main/resources/banner.txt create mode 100644 logistics/src/main/resources/druid-dev.yml create mode 100644 logistics/src/main/resources/druid-prod.yml create mode 100644 logistics/src/main/resources/druid-test.yml create mode 100644 logistics/src/main/resources/logback-spring.xml create mode 100644 logistics/src/main/resources/mapper_dao/LogisticsCarRecordDao.xml create mode 100644 logistics/src/main/resources/mapper_dao/LogisticsEnvironmentRecordDao.xml create mode 100644 logistics/src/main/resources/mapper_dao/LogisticsEquipmentDao.xml create mode 100644 logistics/src/main/resources/mapper_dao/LogisticsParkEquipmentDao.xml create mode 100644 logistics/src/main/resources/mapper_dao/LogisticsWarehouseDao.xml create mode 100644 logistics/src/main/resources/mapper_raw/LogisticsCarRecordMapper.xml create mode 100644 logistics/src/main/resources/mapper_raw/LogisticsEnvironmentRecordMapper.xml create mode 100644 logistics/src/main/resources/mapper_raw/LogisticsEquipmentMapper.xml create mode 100644 logistics/src/main/resources/mapper_raw/LogisticsParkEquipmentMapper.xml create mode 100644 logistics/src/main/resources/mapper_raw/LogisticsWarehouseMapper.xml create mode 100644 logistics/src/main/resources/mybatis/mybatis-config.xml diff --git a/logistics/pom.xml b/logistics/pom.xml new file mode 100644 index 00000000..9ce29f8d --- /dev/null +++ b/logistics/pom.xml @@ -0,0 +1,75 @@ + + + + + ccsenscloud + com.ccsens + 1.0-SNAPSHOT + + 4.0.0 + + logistics + + 1.8 + + + + + + cloudutil + com.ccsens + 1.0-SNAPSHOT + + + + util + com.ccsens + 1.0-SNAPSHOT + + + + com.alibaba + fastjson + 1.2.62 + + + + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.7 + + ${basedir}/src/main/resources/mbg.xml + true + + + + mysql + mysql-connector-java + 5.1.34 + + + + + org.springframework.boot + spring-boot-maven-plugin + + com.ccsens.logistics.LogisticsApplication + + + + + + repackage + + + + + + + + + diff --git a/logistics/src/main/java/com/ccsens/logistics/LogisticsApplication.java b/logistics/src/main/java/com/ccsens/logistics/LogisticsApplication.java new file mode 100644 index 00000000..3f2d00e8 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/LogisticsApplication.java @@ -0,0 +1,24 @@ +package com.ccsens.logistics; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.scheduling.annotation.EnableAsync; + +@MapperScan(basePackages = {"com.ccsens.logistics.persist.*"}) +@ServletComponentScan +@EnableAsync +//开启断路器功能 +@EnableCircuitBreaker +@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") +@SpringBootApplication(scanBasePackages = "com.ccsens") +public class LogisticsApplication { + + public static void main(String[] args) { + SpringApplication.run(LogisticsApplication.class, args); + } + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/api/DebugController.java b/logistics/src/main/java/com/ccsens/logistics/api/DebugController.java new file mode 100644 index 00000000..e450e51b --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/api/DebugController.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.api; + +import com.ccsens.util.JsonResponse; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; + +@Slf4j +@Api(tags = "DEBUG" , description = "DebugController | ") +@RestController +@RequestMapping("/debug") +public class DebugController { + + + @ApiOperation(value = "/测试",notes = "") + @ApiImplicitParams({ + }) + @RequestMapping(value="",produces = {"application/json;charset=UTF-8"}) + public JsonResponse getSmsCode(HttpServletRequest request) throws Exception { + + return JsonResponse.newInstance().ok("测试"); + } + + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/api/MbpsController.java b/logistics/src/main/java/com/ccsens/logistics/api/MbpsController.java new file mode 100644 index 00000000..133e5ef6 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/api/MbpsController.java @@ -0,0 +1,52 @@ +package com.ccsens.logistics.api; + +import com.ccsens.logistics.bean.dto.MbpsDto; +import com.ccsens.logistics.bean.vo.MbpsVo; +import com.ccsens.logistics.service.IMbpsService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import com.github.pagehelper.PageInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马 + */ +@Slf4j +@Api(tags = "吞吐量相关接口" , description = "") +@RestController +@RequestMapping("/Mbps") +public class MbpsController { + + @Resource + private IMbpsService iMbpsService; + + @ApiOperation(value = "查询总吞吐量", notes = "mz:查询总吞吐量") + @RequestMapping(value = "/selAllMbps", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse selAllMbps(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看交付物的历史记录:{}",params); + MbpsVo.AllMbps allMbps = iMbpsService.selAllMbps(params.getParam()); + log.info("查看交付物的历史记录:{}",allMbps); + return JsonResponse.newInstance().ok(allMbps); + } + + @ApiOperation(value = "查看吞吐量折线图", notes = "mz:查看吞吐量折线图") + @RequestMapping(value = "/selMbpsByTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse selMbpsByTime(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看交付物的历史记录:{}",params); + MbpsVo.SelMbpsByTime allMbps = iMbpsService.selMbpsByTime(params.getParam()); + log.info("查看交付物的历史记录:{}",allMbps); + return JsonResponse.newInstance().ok(allMbps); + } + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java b/logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java new file mode 100644 index 00000000..1e2c4706 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java @@ -0,0 +1,31 @@ +package com.ccsens.logistics.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author 马 + */ +@Data +public class MbpsDto { + + @Data + @ApiModel + public static class SelAllMbpsSerch{ + @ApiModelProperty("仓库id") + private Long warehouseId; + } + + @Data + @ApiModel + public static class SelMbpsByTime{ + @ApiModelProperty("查询类型(0-按天,1-按周,2-按月,3-按年)") + private Byte queryType; + @ApiModelProperty("开始时间") + private Long startTime; + @ApiModelProperty("结束时间") + private Long endTime; + } + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecord.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecord.java new file mode 100644 index 00000000..89838737 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecord.java @@ -0,0 +1,161 @@ +package com.ccsens.logistics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LogisticsCarRecord implements Serializable { + private Long id; + + private Byte carType; + + private String licensePlate; + + private Byte plateType; + + private String filesId; + + private Long carWeight; + + private Byte inOut; + + private String carBrand; + + private Long warehouseId; + + private Long recordTime; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Byte getCarType() { + return carType; + } + + public void setCarType(Byte carType) { + this.carType = carType; + } + + public String getLicensePlate() { + return licensePlate; + } + + public void setLicensePlate(String licensePlate) { + this.licensePlate = licensePlate == null ? null : licensePlate.trim(); + } + + public Byte getPlateType() { + return plateType; + } + + public void setPlateType(Byte plateType) { + this.plateType = plateType; + } + + public String getFilesId() { + return filesId; + } + + public void setFilesId(String filesId) { + this.filesId = filesId == null ? null : filesId.trim(); + } + + public Long getCarWeight() { + return carWeight; + } + + public void setCarWeight(Long carWeight) { + this.carWeight = carWeight; + } + + public Byte getInOut() { + return inOut; + } + + public void setInOut(Byte inOut) { + this.inOut = inOut; + } + + public String getCarBrand() { + return carBrand; + } + + public void setCarBrand(String carBrand) { + this.carBrand = carBrand == null ? null : carBrand.trim(); + } + + public Long getWarehouseId() { + return warehouseId; + } + + public void setWarehouseId(Long warehouseId) { + this.warehouseId = warehouseId; + } + + public Long getRecordTime() { + return recordTime; + } + + public void setRecordTime(Long recordTime) { + this.recordTime = recordTime; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @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(", carType=").append(carType); + sb.append(", licensePlate=").append(licensePlate); + sb.append(", plateType=").append(plateType); + sb.append(", filesId=").append(filesId); + sb.append(", carWeight=").append(carWeight); + sb.append(", inOut=").append(inOut); + sb.append(", carBrand=").append(carBrand); + sb.append(", warehouseId=").append(warehouseId); + sb.append(", recordTime=").append(recordTime); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecordExample.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecordExample.java new file mode 100644 index 00000000..15ba5033 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsCarRecordExample.java @@ -0,0 +1,1011 @@ +package com.ccsens.logistics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LogisticsCarRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LogisticsCarRecordExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCarTypeIsNull() { + addCriterion("car_type is null"); + return (Criteria) this; + } + + public Criteria andCarTypeIsNotNull() { + addCriterion("car_type is not null"); + return (Criteria) this; + } + + public Criteria andCarTypeEqualTo(Byte value) { + addCriterion("car_type =", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeNotEqualTo(Byte value) { + addCriterion("car_type <>", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeGreaterThan(Byte value) { + addCriterion("car_type >", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("car_type >=", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeLessThan(Byte value) { + addCriterion("car_type <", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeLessThanOrEqualTo(Byte value) { + addCriterion("car_type <=", value, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeIn(List values) { + addCriterion("car_type in", values, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeNotIn(List values) { + addCriterion("car_type not in", values, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeBetween(Byte value1, Byte value2) { + addCriterion("car_type between", value1, value2, "carType"); + return (Criteria) this; + } + + public Criteria andCarTypeNotBetween(Byte value1, Byte value2) { + addCriterion("car_type not between", value1, value2, "carType"); + return (Criteria) this; + } + + public Criteria andLicensePlateIsNull() { + addCriterion("license_plate is null"); + return (Criteria) this; + } + + public Criteria andLicensePlateIsNotNull() { + addCriterion("license_plate is not null"); + return (Criteria) this; + } + + public Criteria andLicensePlateEqualTo(String value) { + addCriterion("license_plate =", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateNotEqualTo(String value) { + addCriterion("license_plate <>", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateGreaterThan(String value) { + addCriterion("license_plate >", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateGreaterThanOrEqualTo(String value) { + addCriterion("license_plate >=", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateLessThan(String value) { + addCriterion("license_plate <", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateLessThanOrEqualTo(String value) { + addCriterion("license_plate <=", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateLike(String value) { + addCriterion("license_plate like", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateNotLike(String value) { + addCriterion("license_plate not like", value, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateIn(List values) { + addCriterion("license_plate in", values, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateNotIn(List values) { + addCriterion("license_plate not in", values, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateBetween(String value1, String value2) { + addCriterion("license_plate between", value1, value2, "licensePlate"); + return (Criteria) this; + } + + public Criteria andLicensePlateNotBetween(String value1, String value2) { + addCriterion("license_plate not between", value1, value2, "licensePlate"); + return (Criteria) this; + } + + public Criteria andPlateTypeIsNull() { + addCriterion("plate_type is null"); + return (Criteria) this; + } + + public Criteria andPlateTypeIsNotNull() { + addCriterion("plate_type is not null"); + return (Criteria) this; + } + + public Criteria andPlateTypeEqualTo(Byte value) { + addCriterion("plate_type =", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeNotEqualTo(Byte value) { + addCriterion("plate_type <>", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeGreaterThan(Byte value) { + addCriterion("plate_type >", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("plate_type >=", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeLessThan(Byte value) { + addCriterion("plate_type <", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeLessThanOrEqualTo(Byte value) { + addCriterion("plate_type <=", value, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeIn(List values) { + addCriterion("plate_type in", values, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeNotIn(List values) { + addCriterion("plate_type not in", values, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeBetween(Byte value1, Byte value2) { + addCriterion("plate_type between", value1, value2, "plateType"); + return (Criteria) this; + } + + public Criteria andPlateTypeNotBetween(Byte value1, Byte value2) { + addCriterion("plate_type not between", value1, value2, "plateType"); + return (Criteria) this; + } + + public Criteria andFilesIdIsNull() { + addCriterion("files_id is null"); + return (Criteria) this; + } + + public Criteria andFilesIdIsNotNull() { + addCriterion("files_id is not null"); + return (Criteria) this; + } + + public Criteria andFilesIdEqualTo(String value) { + addCriterion("files_id =", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdNotEqualTo(String value) { + addCriterion("files_id <>", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdGreaterThan(String value) { + addCriterion("files_id >", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdGreaterThanOrEqualTo(String value) { + addCriterion("files_id >=", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdLessThan(String value) { + addCriterion("files_id <", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdLessThanOrEqualTo(String value) { + addCriterion("files_id <=", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdLike(String value) { + addCriterion("files_id like", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdNotLike(String value) { + addCriterion("files_id not like", value, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdIn(List values) { + addCriterion("files_id in", values, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdNotIn(List values) { + addCriterion("files_id not in", values, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdBetween(String value1, String value2) { + addCriterion("files_id between", value1, value2, "filesId"); + return (Criteria) this; + } + + public Criteria andFilesIdNotBetween(String value1, String value2) { + addCriterion("files_id not between", value1, value2, "filesId"); + return (Criteria) this; + } + + public Criteria andCarWeightIsNull() { + addCriterion("car_weight is null"); + return (Criteria) this; + } + + public Criteria andCarWeightIsNotNull() { + addCriterion("car_weight is not null"); + return (Criteria) this; + } + + public Criteria andCarWeightEqualTo(Long value) { + addCriterion("car_weight =", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightNotEqualTo(Long value) { + addCriterion("car_weight <>", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightGreaterThan(Long value) { + addCriterion("car_weight >", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightGreaterThanOrEqualTo(Long value) { + addCriterion("car_weight >=", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightLessThan(Long value) { + addCriterion("car_weight <", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightLessThanOrEqualTo(Long value) { + addCriterion("car_weight <=", value, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightIn(List values) { + addCriterion("car_weight in", values, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightNotIn(List values) { + addCriterion("car_weight not in", values, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightBetween(Long value1, Long value2) { + addCriterion("car_weight between", value1, value2, "carWeight"); + return (Criteria) this; + } + + public Criteria andCarWeightNotBetween(Long value1, Long value2) { + addCriterion("car_weight not between", value1, value2, "carWeight"); + return (Criteria) this; + } + + public Criteria andInOutIsNull() { + addCriterion("in_out is null"); + return (Criteria) this; + } + + public Criteria andInOutIsNotNull() { + addCriterion("in_out is not null"); + return (Criteria) this; + } + + public Criteria andInOutEqualTo(Byte value) { + addCriterion("in_out =", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutNotEqualTo(Byte value) { + addCriterion("in_out <>", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutGreaterThan(Byte value) { + addCriterion("in_out >", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutGreaterThanOrEqualTo(Byte value) { + addCriterion("in_out >=", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutLessThan(Byte value) { + addCriterion("in_out <", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutLessThanOrEqualTo(Byte value) { + addCriterion("in_out <=", value, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutIn(List values) { + addCriterion("in_out in", values, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutNotIn(List values) { + addCriterion("in_out not in", values, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutBetween(Byte value1, Byte value2) { + addCriterion("in_out between", value1, value2, "inOut"); + return (Criteria) this; + } + + public Criteria andInOutNotBetween(Byte value1, Byte value2) { + addCriterion("in_out not between", value1, value2, "inOut"); + return (Criteria) this; + } + + public Criteria andCarBrandIsNull() { + addCriterion("car_brand is null"); + return (Criteria) this; + } + + public Criteria andCarBrandIsNotNull() { + addCriterion("car_brand is not null"); + return (Criteria) this; + } + + public Criteria andCarBrandEqualTo(String value) { + addCriterion("car_brand =", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandNotEqualTo(String value) { + addCriterion("car_brand <>", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandGreaterThan(String value) { + addCriterion("car_brand >", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandGreaterThanOrEqualTo(String value) { + addCriterion("car_brand >=", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandLessThan(String value) { + addCriterion("car_brand <", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandLessThanOrEqualTo(String value) { + addCriterion("car_brand <=", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandLike(String value) { + addCriterion("car_brand like", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandNotLike(String value) { + addCriterion("car_brand not like", value, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandIn(List values) { + addCriterion("car_brand in", values, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandNotIn(List values) { + addCriterion("car_brand not in", values, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandBetween(String value1, String value2) { + addCriterion("car_brand between", value1, value2, "carBrand"); + return (Criteria) this; + } + + public Criteria andCarBrandNotBetween(String value1, String value2) { + addCriterion("car_brand not between", value1, value2, "carBrand"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNull() { + addCriterion("warehouse_id is null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNotNull() { + addCriterion("warehouse_id is not null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdEqualTo(Long value) { + addCriterion("warehouse_id =", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotEqualTo(Long value) { + addCriterion("warehouse_id <>", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThan(Long value) { + addCriterion("warehouse_id >", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThanOrEqualTo(Long value) { + addCriterion("warehouse_id >=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThan(Long value) { + addCriterion("warehouse_id <", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThanOrEqualTo(Long value) { + addCriterion("warehouse_id <=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIn(List values) { + addCriterion("warehouse_id in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotIn(List values) { + addCriterion("warehouse_id not in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdBetween(Long value1, Long value2) { + addCriterion("warehouse_id between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotBetween(Long value1, Long value2) { + addCriterion("warehouse_id not between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andRecordTimeIsNull() { + addCriterion("record_time is null"); + return (Criteria) this; + } + + public Criteria andRecordTimeIsNotNull() { + addCriterion("record_time is not null"); + return (Criteria) this; + } + + public Criteria andRecordTimeEqualTo(Long value) { + addCriterion("record_time =", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotEqualTo(Long value) { + addCriterion("record_time <>", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeGreaterThan(Long value) { + addCriterion("record_time >", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeGreaterThanOrEqualTo(Long value) { + addCriterion("record_time >=", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeLessThan(Long value) { + addCriterion("record_time <", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeLessThanOrEqualTo(Long value) { + addCriterion("record_time <=", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeIn(List values) { + addCriterion("record_time in", values, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotIn(List values) { + addCriterion("record_time not in", values, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeBetween(Long value1, Long value2) { + addCriterion("record_time between", value1, value2, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotBetween(Long value1, Long value2) { + addCriterion("record_time not between", value1, value2, "recordTime"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecord.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecord.java new file mode 100644 index 00000000..b0bf0ff3 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecord.java @@ -0,0 +1,117 @@ +package com.ccsens.logistics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LogisticsEnvironmentRecord implements Serializable { + private Long id; + + private Integer numValue; + + private Byte numType; + + private Long equipmentId; + + private Long warehouseId; + + private Long recordTime; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Integer getNumValue() { + return numValue; + } + + public void setNumValue(Integer numValue) { + this.numValue = numValue; + } + + public Byte getNumType() { + return numType; + } + + public void setNumType(Byte numType) { + this.numType = numType; + } + + public Long getEquipmentId() { + return equipmentId; + } + + public void setEquipmentId(Long equipmentId) { + this.equipmentId = equipmentId; + } + + public Long getWarehouseId() { + return warehouseId; + } + + public void setWarehouseId(Long warehouseId) { + this.warehouseId = warehouseId; + } + + public Long getRecordTime() { + return recordTime; + } + + public void setRecordTime(Long recordTime) { + this.recordTime = recordTime; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @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(", numValue=").append(numValue); + sb.append(", numType=").append(numType); + sb.append(", equipmentId=").append(equipmentId); + sb.append(", warehouseId=").append(warehouseId); + sb.append(", recordTime=").append(recordTime); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecordExample.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecordExample.java new file mode 100644 index 00000000..a25b8bdd --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEnvironmentRecordExample.java @@ -0,0 +1,741 @@ +package com.ccsens.logistics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LogisticsEnvironmentRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LogisticsEnvironmentRecordExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNumValueIsNull() { + addCriterion("num_value is null"); + return (Criteria) this; + } + + public Criteria andNumValueIsNotNull() { + addCriterion("num_value is not null"); + return (Criteria) this; + } + + public Criteria andNumValueEqualTo(Integer value) { + addCriterion("num_value =", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueNotEqualTo(Integer value) { + addCriterion("num_value <>", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueGreaterThan(Integer value) { + addCriterion("num_value >", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueGreaterThanOrEqualTo(Integer value) { + addCriterion("num_value >=", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueLessThan(Integer value) { + addCriterion("num_value <", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueLessThanOrEqualTo(Integer value) { + addCriterion("num_value <=", value, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueIn(List values) { + addCriterion("num_value in", values, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueNotIn(List values) { + addCriterion("num_value not in", values, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueBetween(Integer value1, Integer value2) { + addCriterion("num_value between", value1, value2, "numValue"); + return (Criteria) this; + } + + public Criteria andNumValueNotBetween(Integer value1, Integer value2) { + addCriterion("num_value not between", value1, value2, "numValue"); + return (Criteria) this; + } + + public Criteria andNumTypeIsNull() { + addCriterion("num_type is null"); + return (Criteria) this; + } + + public Criteria andNumTypeIsNotNull() { + addCriterion("num_type is not null"); + return (Criteria) this; + } + + public Criteria andNumTypeEqualTo(Byte value) { + addCriterion("num_type =", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeNotEqualTo(Byte value) { + addCriterion("num_type <>", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeGreaterThan(Byte value) { + addCriterion("num_type >", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("num_type >=", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeLessThan(Byte value) { + addCriterion("num_type <", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeLessThanOrEqualTo(Byte value) { + addCriterion("num_type <=", value, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeIn(List values) { + addCriterion("num_type in", values, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeNotIn(List values) { + addCriterion("num_type not in", values, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeBetween(Byte value1, Byte value2) { + addCriterion("num_type between", value1, value2, "numType"); + return (Criteria) this; + } + + public Criteria andNumTypeNotBetween(Byte value1, Byte value2) { + addCriterion("num_type not between", value1, value2, "numType"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIsNull() { + addCriterion("equipment_id is null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIsNotNull() { + addCriterion("equipment_id is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentIdEqualTo(Long value) { + addCriterion("equipment_id =", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotEqualTo(Long value) { + addCriterion("equipment_id <>", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThan(Long value) { + addCriterion("equipment_id >", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) { + addCriterion("equipment_id >=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThan(Long value) { + addCriterion("equipment_id <", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdLessThanOrEqualTo(Long value) { + addCriterion("equipment_id <=", value, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdIn(List values) { + addCriterion("equipment_id in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotIn(List values) { + addCriterion("equipment_id not in", values, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdBetween(Long value1, Long value2) { + addCriterion("equipment_id between", value1, value2, "equipmentId"); + return (Criteria) this; + } + + public Criteria andEquipmentIdNotBetween(Long value1, Long value2) { + addCriterion("equipment_id not between", value1, value2, "equipmentId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNull() { + addCriterion("warehouse_id is null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNotNull() { + addCriterion("warehouse_id is not null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdEqualTo(Long value) { + addCriterion("warehouse_id =", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotEqualTo(Long value) { + addCriterion("warehouse_id <>", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThan(Long value) { + addCriterion("warehouse_id >", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThanOrEqualTo(Long value) { + addCriterion("warehouse_id >=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThan(Long value) { + addCriterion("warehouse_id <", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThanOrEqualTo(Long value) { + addCriterion("warehouse_id <=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIn(List values) { + addCriterion("warehouse_id in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotIn(List values) { + addCriterion("warehouse_id not in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdBetween(Long value1, Long value2) { + addCriterion("warehouse_id between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotBetween(Long value1, Long value2) { + addCriterion("warehouse_id not between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andRecordTimeIsNull() { + addCriterion("record_time is null"); + return (Criteria) this; + } + + public Criteria andRecordTimeIsNotNull() { + addCriterion("record_time is not null"); + return (Criteria) this; + } + + public Criteria andRecordTimeEqualTo(Long value) { + addCriterion("record_time =", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotEqualTo(Long value) { + addCriterion("record_time <>", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeGreaterThan(Long value) { + addCriterion("record_time >", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeGreaterThanOrEqualTo(Long value) { + addCriterion("record_time >=", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeLessThan(Long value) { + addCriterion("record_time <", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeLessThanOrEqualTo(Long value) { + addCriterion("record_time <=", value, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeIn(List values) { + addCriterion("record_time in", values, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotIn(List values) { + addCriterion("record_time not in", values, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeBetween(Long value1, Long value2) { + addCriterion("record_time between", value1, value2, "recordTime"); + return (Criteria) this; + } + + public Criteria andRecordTimeNotBetween(Long value1, Long value2) { + addCriterion("record_time not between", value1, value2, "recordTime"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipment.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipment.java new file mode 100644 index 00000000..365ba78b --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipment.java @@ -0,0 +1,106 @@ +package com.ccsens.logistics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LogisticsEquipment implements Serializable { + private Long id; + + private String name; + + private Integer equipmentNumber; + + private Byte equipmentType; + + private Long warehouseId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Integer getEquipmentNumber() { + return equipmentNumber; + } + + public void setEquipmentNumber(Integer equipmentNumber) { + this.equipmentNumber = equipmentNumber; + } + + public Byte getEquipmentType() { + return equipmentType; + } + + public void setEquipmentType(Byte equipmentType) { + this.equipmentType = equipmentType; + } + + public Long getWarehouseId() { + return warehouseId; + } + + public void setWarehouseId(Long warehouseId) { + this.warehouseId = warehouseId; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @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(", name=").append(name); + sb.append(", equipmentNumber=").append(equipmentNumber); + sb.append(", equipmentType=").append(equipmentType); + sb.append(", warehouseId=").append(warehouseId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipmentExample.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipmentExample.java new file mode 100644 index 00000000..7ee62998 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsEquipmentExample.java @@ -0,0 +1,691 @@ +package com.ccsens.logistics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LogisticsEquipmentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LogisticsEquipmentExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + 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 andEquipmentNumberIsNull() { + addCriterion("equipment_number is null"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberIsNotNull() { + addCriterion("equipment_number is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberEqualTo(Integer value) { + addCriterion("equipment_number =", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotEqualTo(Integer value) { + addCriterion("equipment_number <>", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberGreaterThan(Integer value) { + addCriterion("equipment_number >", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("equipment_number >=", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberLessThan(Integer value) { + addCriterion("equipment_number <", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberLessThanOrEqualTo(Integer value) { + addCriterion("equipment_number <=", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberIn(List values) { + addCriterion("equipment_number in", values, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotIn(List values) { + addCriterion("equipment_number not in", values, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberBetween(Integer value1, Integer value2) { + addCriterion("equipment_number between", value1, value2, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotBetween(Integer value1, Integer value2) { + addCriterion("equipment_number not between", value1, value2, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIsNull() { + addCriterion("equipment_type is null"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIsNotNull() { + addCriterion("equipment_type is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeEqualTo(Byte value) { + addCriterion("equipment_type =", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotEqualTo(Byte value) { + addCriterion("equipment_type <>", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeGreaterThan(Byte value) { + addCriterion("equipment_type >", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("equipment_type >=", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeLessThan(Byte value) { + addCriterion("equipment_type <", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeLessThanOrEqualTo(Byte value) { + addCriterion("equipment_type <=", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIn(List values) { + addCriterion("equipment_type in", values, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotIn(List values) { + addCriterion("equipment_type not in", values, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeBetween(Byte value1, Byte value2) { + addCriterion("equipment_type between", value1, value2, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotBetween(Byte value1, Byte value2) { + addCriterion("equipment_type not between", value1, value2, "equipmentType"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNull() { + addCriterion("warehouse_id is null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIsNotNull() { + addCriterion("warehouse_id is not null"); + return (Criteria) this; + } + + public Criteria andWarehouseIdEqualTo(Long value) { + addCriterion("warehouse_id =", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotEqualTo(Long value) { + addCriterion("warehouse_id <>", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThan(Long value) { + addCriterion("warehouse_id >", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdGreaterThanOrEqualTo(Long value) { + addCriterion("warehouse_id >=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThan(Long value) { + addCriterion("warehouse_id <", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdLessThanOrEqualTo(Long value) { + addCriterion("warehouse_id <=", value, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdIn(List values) { + addCriterion("warehouse_id in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotIn(List values) { + addCriterion("warehouse_id not in", values, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdBetween(Long value1, Long value2) { + addCriterion("warehouse_id between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andWarehouseIdNotBetween(Long value1, Long value2) { + addCriterion("warehouse_id not between", value1, value2, "warehouseId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipment.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipment.java new file mode 100644 index 00000000..09007ad9 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipment.java @@ -0,0 +1,106 @@ +package com.ccsens.logistics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LogisticsParkEquipment implements Serializable { + private Long id; + + private String name; + + private Integer equipmentNumber; + + private Byte equipmentType; + + private Long parkId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Integer getEquipmentNumber() { + return equipmentNumber; + } + + public void setEquipmentNumber(Integer equipmentNumber) { + this.equipmentNumber = equipmentNumber; + } + + public Byte getEquipmentType() { + return equipmentType; + } + + public void setEquipmentType(Byte equipmentType) { + this.equipmentType = equipmentType; + } + + public Long getParkId() { + return parkId; + } + + public void setParkId(Long parkId) { + this.parkId = parkId; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @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(", name=").append(name); + sb.append(", equipmentNumber=").append(equipmentNumber); + sb.append(", equipmentType=").append(equipmentType); + sb.append(", parkId=").append(parkId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipmentExample.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipmentExample.java new file mode 100644 index 00000000..27964a58 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsParkEquipmentExample.java @@ -0,0 +1,691 @@ +package com.ccsens.logistics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LogisticsParkEquipmentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LogisticsParkEquipmentExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + 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 andEquipmentNumberIsNull() { + addCriterion("equipment_number is null"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberIsNotNull() { + addCriterion("equipment_number is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberEqualTo(Integer value) { + addCriterion("equipment_number =", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotEqualTo(Integer value) { + addCriterion("equipment_number <>", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberGreaterThan(Integer value) { + addCriterion("equipment_number >", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("equipment_number >=", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberLessThan(Integer value) { + addCriterion("equipment_number <", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberLessThanOrEqualTo(Integer value) { + addCriterion("equipment_number <=", value, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberIn(List values) { + addCriterion("equipment_number in", values, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotIn(List values) { + addCriterion("equipment_number not in", values, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberBetween(Integer value1, Integer value2) { + addCriterion("equipment_number between", value1, value2, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentNumberNotBetween(Integer value1, Integer value2) { + addCriterion("equipment_number not between", value1, value2, "equipmentNumber"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIsNull() { + addCriterion("equipment_type is null"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIsNotNull() { + addCriterion("equipment_type is not null"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeEqualTo(Byte value) { + addCriterion("equipment_type =", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotEqualTo(Byte value) { + addCriterion("equipment_type <>", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeGreaterThan(Byte value) { + addCriterion("equipment_type >", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("equipment_type >=", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeLessThan(Byte value) { + addCriterion("equipment_type <", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeLessThanOrEqualTo(Byte value) { + addCriterion("equipment_type <=", value, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeIn(List values) { + addCriterion("equipment_type in", values, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotIn(List values) { + addCriterion("equipment_type not in", values, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeBetween(Byte value1, Byte value2) { + addCriterion("equipment_type between", value1, value2, "equipmentType"); + return (Criteria) this; + } + + public Criteria andEquipmentTypeNotBetween(Byte value1, Byte value2) { + addCriterion("equipment_type not between", value1, value2, "equipmentType"); + return (Criteria) this; + } + + public Criteria andParkIdIsNull() { + addCriterion("park_id is null"); + return (Criteria) this; + } + + public Criteria andParkIdIsNotNull() { + addCriterion("park_id is not null"); + return (Criteria) this; + } + + public Criteria andParkIdEqualTo(Long value) { + addCriterion("park_id =", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotEqualTo(Long value) { + addCriterion("park_id <>", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdGreaterThan(Long value) { + addCriterion("park_id >", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdGreaterThanOrEqualTo(Long value) { + addCriterion("park_id >=", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdLessThan(Long value) { + addCriterion("park_id <", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdLessThanOrEqualTo(Long value) { + addCriterion("park_id <=", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdIn(List values) { + addCriterion("park_id in", values, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotIn(List values) { + addCriterion("park_id not in", values, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdBetween(Long value1, Long value2) { + addCriterion("park_id between", value1, value2, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotBetween(Long value1, Long value2) { + addCriterion("park_id not between", value1, value2, "parkId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouse.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouse.java new file mode 100644 index 00000000..e8cc274d --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouse.java @@ -0,0 +1,84 @@ +package com.ccsens.logistics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class LogisticsWarehouse implements Serializable { + private Long id; + + private String name; + + private Long parkId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Long getParkId() { + return parkId; + } + + public void setParkId(Long parkId) { + this.parkId = parkId; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @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(", name=").append(name); + sb.append(", parkId=").append(parkId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouseExample.java b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouseExample.java new file mode 100644 index 00000000..8b5ba577 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/po/LogisticsWarehouseExample.java @@ -0,0 +1,571 @@ +package com.ccsens.logistics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class LogisticsWarehouseExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LogisticsWarehouseExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + 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(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + 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 andParkIdIsNull() { + addCriterion("park_id is null"); + return (Criteria) this; + } + + public Criteria andParkIdIsNotNull() { + addCriterion("park_id is not null"); + return (Criteria) this; + } + + public Criteria andParkIdEqualTo(Long value) { + addCriterion("park_id =", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotEqualTo(Long value) { + addCriterion("park_id <>", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdGreaterThan(Long value) { + addCriterion("park_id >", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdGreaterThanOrEqualTo(Long value) { + addCriterion("park_id >=", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdLessThan(Long value) { + addCriterion("park_id <", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdLessThanOrEqualTo(Long value) { + addCriterion("park_id <=", value, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdIn(List values) { + addCriterion("park_id in", values, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotIn(List values) { + addCriterion("park_id not in", values, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdBetween(Long value1, Long value2) { + addCriterion("park_id between", value1, value2, "parkId"); + return (Criteria) this; + } + + public Criteria andParkIdNotBetween(Long value1, Long value2) { + addCriterion("park_id not between", value1, value2, "parkId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + 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/logistics/src/main/java/com/ccsens/logistics/bean/vo/MbpsVo.java b/logistics/src/main/java/com/ccsens/logistics/bean/vo/MbpsVo.java new file mode 100644 index 00000000..e325aca7 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/bean/vo/MbpsVo.java @@ -0,0 +1,74 @@ +package com.ccsens.logistics.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.ArrayList; +import java.util.List; + +/** + * @author 马 + */ +@Data +public class MbpsVo { + + @Data + @ApiModel("总吞吐量") + public static class AllMbps{ + @ApiModelProperty("吞进量(车辆进入次数)") + private Long carOfIn; + @ApiModelProperty("吞出量(车辆出去次数)") + private Long carOfOut; + @ApiModelProperty("入库的重量") + private Long weightOfIn; + @ApiModelProperty("出库的重量") + private Long weightOfOut; + } + + @Data + @ApiModel("总吞吐量折线版") + public static class SelMbpsByTime{ + @ApiModelProperty("吞进量") + private List carOfInsByTime = new ArrayList<>(); + @ApiModelProperty("吐出量") + private List carOfOutsByTime = new ArrayList<>(); + @ApiModelProperty("入库的重量") + private List weightOfInsByTime = new ArrayList<>(); + @ApiModelProperty("出库的重量") + private List weightOfOutsByTime = new ArrayList<>(); + } + @Data + @ApiModel("吞进量(车辆进入次数)") + public static class CarOfInByTime{ + @ApiModelProperty("时间") + private String time; + @ApiModelProperty("吞进量") + private Long carOfIn; + } + @Data + @ApiModel("吞出量(车辆出去次数)") + public static class CarOfOutByTime{ + @ApiModelProperty("时间") + private String time; + @ApiModelProperty("吐出量") + private Long carOfOut; + } + @Data + @ApiModel("入库的重量") + public static class WeightOfInByTime{ + @ApiModelProperty("时间") + private String time; + @ApiModelProperty("入库重量") + private Long weightOfIn; + } + @Data + @ApiModel("出库的重量") + public static class WeightOfOutByTime{ + @ApiModelProperty("时间") + private String time; + @ApiModelProperty("出库重量") + private Long weightOfOut; + } + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/config/BeanConfig.java b/logistics/src/main/java/com/ccsens/logistics/config/BeanConfig.java new file mode 100644 index 00000000..a0ef4e21 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/config/BeanConfig.java @@ -0,0 +1,32 @@ +package com.ccsens.logistics.config; + + +import com.ccsens.logistics.intercept.MybatisInterceptor; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * @description: + * @author: wuHuiJuan + * @create: 2019/12/03 18:01 + */ +@Configuration +public class BeanConfig { +// @Bean +// public static PropertySourcesPlaceholderConfigurer properties(){ +// PropertySourcesPlaceholderConfigurer conf = new PropertySourcesPlaceholderConfigurer(); +// YamlPropertiesFactoryBean yml = new YamlPropertiesFactoryBean(); +// yml.setResources(new ClassPathResource("business.yml")); +// conf.setProperties(yml.getObject()); +// return conf; +// } + + /** + * 注册拦截器 + */ + @Bean + public MybatisInterceptor mybatisInterceptor() { + MybatisInterceptor interceptor = new MybatisInterceptor(); + return interceptor; + } +} diff --git a/logistics/src/main/java/com/ccsens/logistics/config/SpringConfig.java b/logistics/src/main/java/com/ccsens/logistics/config/SpringConfig.java new file mode 100644 index 00000000..6921420e --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/config/SpringConfig.java @@ -0,0 +1,169 @@ +package com.ccsens.logistics.config; + + +import cn.hutool.core.lang.Snowflake; +import cn.hutool.core.util.IdUtil; +import com.ccsens.util.config.DruidProps; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.MediaType; +import org.springframework.http.converter.HttpMessageConverter; +import org.springframework.http.converter.StringHttpMessageConverter; +import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; +import org.springframework.web.servlet.config.annotation.*; + +import javax.annotation.Resource; +import javax.sql.DataSource; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.List; + +@Configuration +//public class SpringConfig extends WebMvcConfigurationSupport { +public class SpringConfig implements WebMvcConfigurer { + @Resource + private DruidProps druidPropsUtil; + @Value("${spring.snowflake.workerId}") + private String workerId; + @Value("${spring.snowflake.datacenterId}") + private String datacenterId; + + /** + * 配置Converter + * @return + */ + @Bean + public HttpMessageConverter responseStringConverter() { + StringHttpMessageConverter converter = new StringHttpMessageConverter( + Charset.forName("UTF-8")); + return converter; + } + + @Bean + public HttpMessageConverter responseJsonConverter(){ + MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); + List mediaTypeList = new ArrayList<>(); + mediaTypeList.add(MediaType.TEXT_HTML); + mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); + converter.setSupportedMediaTypes(mediaTypeList); + + //converter.setObjectMapper(); + ObjectMapper objectMapper = new ObjectMapper(); + SimpleModule simpleModule = new SimpleModule(); + simpleModule.addSerializer(Long.class, ToStringSerializer.instance); + simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); + objectMapper.registerModule(simpleModule); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + converter.setObjectMapper(objectMapper); + + return converter; + } + + @Override + public void configureMessageConverters(List> converters) { + //super.configureMessageConverters(converters); + converters.add(responseStringConverter()); + converters.add(responseJsonConverter()); + } + + @Override + public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { + configurer.favorPathExtension(false); + } + + @Override + public void addCorsMappings(CorsRegistry registry) { + registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") +// .allowedMethods("*") // 允许提交请求的方法,*表示全部允许 + .allowedOrigins("*") // #允许向该服务器提交请求的URI,*表示全部允许 + .allowCredentials(true) // 允许cookies跨域 + .allowedHeaders("*") // #允许访问的头信息,*表示全部 + .maxAge(18000L); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了 + + } + + /** + * 配置视图解析器 SpringBoot建议使用Thymeleaf代替jsp,动态页面默认路径:resources/template,静态页面默认路径: resources/static + * @return + */ +// @Bean +// public ViewResolver getViewResolver() { +// InternalResourceViewResolver resolver = new InternalResourceViewResolver(); +// resolver.setPrefix("/WEB-INF/views/"); +// resolver.setSuffix(".jsp"); +// return resolver; +// } +// @Override +// public void configureDefaultServletHandling( +// DefaultServletHandlerConfigurer configurer) { +// configurer.enable(); +// } + + + /** + * 配置静态资源 + */ + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry.addResourceHandler("swagger-ui.html") + .addResourceLocations("classpath:/META-INF/resources/"); + registry.addResourceHandler("/webjars/**") + .addResourceLocations("classpath:/META-INF/resources/webjars/"); + + registry.addResourceHandler("/uploads/**") + .addResourceLocations("file:///home/cloud/logistics/uploads/"); + //super.addResourceHandlers(registry); + } + + /** + * 配置拦截器 + * @param registry + */ + @Override + public void addInterceptors(InterceptorRegistry registry) { + //addPathPatterns 用于添加拦截规则 + //excludePathPatterns 用于排除拦截 +// registry.addInterceptor(tokenInterceptor()) +// .addPathPatterns("/projects/**") +// .addPathPatterns("/messages/**") +// .addPathPatterns("/users/**") +// .excludePathPatterns("/users/signin") +// .excludePathPatterns("/users/smscode") +// .excludePathPatterns("/users/signup") +// .excludePathPatterns("/users/password") +// .excludePathPatterns("/users/account") +// .excludePathPatterns("/users/token") +// .excludePathPatterns("/users/claims") +// .addPathPatterns("/plugins/**") +// .addPathPatterns("/delivers/**") +// .addPathPatterns("/tasks/**") +// .addPathPatterns("/members/**") +// .addPathPatterns("/templates/**") +// .addPathPatterns("/hardware/**"); + //super.addInterceptors(registry); + } +// +// @Bean +// public TokenInterceptor tokenInterceptor(){ +// return new TokenInterceptor(); +// } + + /** + * 配置数据源(单数据源) + */ + @Bean + public DataSource dataSource(){ + return druidPropsUtil.createDruidDataSource(); + } + + @Bean + public Snowflake snowflake(){ +// return new Snowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + } +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/config/SwaggerConfigure.java b/logistics/src/main/java/com/ccsens/logistics/config/SwaggerConfigure.java new file mode 100644 index 00000000..0773e841 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/config/SwaggerConfigure.java @@ -0,0 +1,56 @@ +package com.ccsens.logistics.config; + +import com.ccsens.util.WebConstant; +import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import springfox.documentation.builders.ParameterBuilder; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.schema.ModelRef; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.service.Parameter; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +import java.util.ArrayList; +import java.util.List; + +@Configuration +@EnableSwagger2 +@ConditionalOnExpression("${swagger.enable}") +//public class SwaggerConfigure extends WebMvcConfigurationSupport { +public class SwaggerConfigure /*implements WebMvcConfigurer*/ { + @Bean + public Docket customDocket() { + // + return new Docket(DocumentationType.SWAGGER_2) + .apiInfo(apiInfo()) + .select() + .apis(RequestHandlerSelectors + .basePackage("com.ccsens.logistics.web")) + .build() + .globalOperationParameters(setHeaderToken()); + } + + private ApiInfo apiInfo() { + return new ApiInfo("Swagger Tall-ptpro",//大标题 title + "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 + "1.0.0",//版本 + "http://swagger.io/terms/",//termsOfServiceUrl + "zhangsan",//作者 + "Apache 2.0",//链接显示文字 + "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 + ); + } + + private List setHeaderToken() { + ParameterBuilder tokenPar = new ParameterBuilder(); + List pars = new ArrayList<>(); + tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") + .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) + .modelRef(new ModelRef("string")).parameterType("header").required(false).build(); + pars.add(tokenPar.build()); + return pars; + } +} diff --git a/logistics/src/main/java/com/ccsens/logistics/intercept/MybatisInterceptor.java b/logistics/src/main/java/com/ccsens/logistics/intercept/MybatisInterceptor.java new file mode 100644 index 00000000..ae203af5 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/intercept/MybatisInterceptor.java @@ -0,0 +1,159 @@ +package com.ccsens.logistics.intercept; + +import cn.hutool.core.collection.CollectionUtil; +import com.ccsens.util.WebConstant; +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.BoundSql; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.ResultMap; +import org.apache.ibatis.mapping.SqlSource; +import org.apache.ibatis.plugin.*; +import org.apache.ibatis.reflection.DefaultReflectorFactory; +import org.apache.ibatis.reflection.MetaObject; +import org.apache.ibatis.reflection.factory.DefaultObjectFactory; +import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory; +import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +/** + * @description: + * @author: wuHuiJuan + * @create: 2019/12/11 10:58 + */ +@Intercepts({ + @Signature( + type = Executor.class, + method = "query", + args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class} + ) +}) +public class MybatisInterceptor implements Interceptor { + @Override + public Object intercept(Invocation invocation) throws Throwable { + + + String selectByExample = "selectByExample"; + String countByExample = "countByExample"; + String countByExample2 = "selectByExample_COUNT"; + String selectByPrimaryKey = "selectByPrimaryKey"; + + Object[] args = invocation.getArgs(); + MappedStatement statement = (MappedStatement) args[0]; + if (statement.getId().endsWith(selectByExample) + || statement.getId().endsWith(countByExample) + || statement.getId().endsWith(countByExample2)) { + //XXXExample + Object example = args[1]; + + addCondition(statement, example); + + + + + } else if (statement.getId().endsWith(selectByPrimaryKey)) { + BoundSql boundSql = statement.getBoundSql(args[1]); + String sql = boundSql.getSql() + " and rec_status = 0"; + MappedStatement newStatement = newMappedStatement(statement, new BoundSqlSqlSource(boundSql)); + MetaObject msObject = MetaObject.forObject(newStatement, new DefaultObjectFactory(), new DefaultObjectWrapperFactory(),new DefaultReflectorFactory()); + msObject.setValue("sqlSource.boundSql.sql", sql); + args[0] = newStatement; + } + + return invocation.proceed(); + } + + private void addCondition(MappedStatement statement, Object example) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException { + if (example instanceof Map) { + example = ((Map) example).get("_ORIGINAL_PARAMETER_OBJECT"); + } + + + Method method = example.getClass().getMethod("getOredCriteria", null); + //获取到条件数组,第一个是Criteria + List list = (List) method.invoke(example); + if (CollectionUtil.isEmpty(list)) { + Class clazz = ((ResultMap) statement.getResultMaps().get(0)).getType(); + String exampleName = clazz.getName() + "Example"; + Object paramExample = Class.forName(exampleName).newInstance(); + Method createCriteria = paramExample.getClass().getMethod("createCriteria"); + Object criteria = createCriteria.invoke(paramExample); + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + list.add(criteria); + } else { + Object criteria = list.get(0); + Method getCriteria = criteria.getClass().getMethod("getCriteria"); + List params = (List) getCriteria.invoke(criteria); + boolean hasDel = false; + for (Object param : params) { + Method getCondition = param.getClass().getMethod("getCondition"); + Object condition = getCondition.invoke(param); + if ("rec_status =".equals(condition)) { + hasDel = true; + } + } + if (!hasDel) { + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + } + + } + + } + + @Override + public Object plugin(Object target) { + return Plugin.wrap(target, this); + } + + @Override + public void setProperties(Properties properties) { + + } + + private MappedStatement newMappedStatement(MappedStatement ms, SqlSource newSqlSource) { + MappedStatement.Builder builder = + new MappedStatement.Builder(ms.getConfiguration(), ms.getId(), newSqlSource, ms.getSqlCommandType()); + builder.resource(ms.getResource()); + builder.fetchSize(ms.getFetchSize()); + builder.statementType(ms.getStatementType()); + builder.keyGenerator(ms.getKeyGenerator()); + if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { + StringBuilder keyProperties = new StringBuilder(); + for (String keyProperty : ms.getKeyProperties()) { + keyProperties.append(keyProperty).append(","); + } + keyProperties.delete(keyProperties.length() - 1, keyProperties.length()); + builder.keyProperty(keyProperties.toString()); + } + builder.timeout(ms.getTimeout()); + builder.parameterMap(ms.getParameterMap()); + builder.resultMaps(ms.getResultMaps()); + builder.resultSetType(ms.getResultSetType()); + builder.cache(ms.getCache()); + builder.flushCacheRequired(ms.isFlushCacheRequired()); + builder.useCache(ms.isUseCache()); + + return builder.build(); + } + + + // 定义一个内部辅助类,作用是包装sq + class BoundSqlSqlSource implements SqlSource { + private BoundSql boundSql; + public BoundSqlSqlSource(BoundSql boundSql) { + this.boundSql = boundSql; + } + @Override + public BoundSql getBoundSql(Object parameterObject) { + return boundSql; + } + } + +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsCarRecordDao.java b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsCarRecordDao.java new file mode 100644 index 00000000..abc368a3 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsCarRecordDao.java @@ -0,0 +1,79 @@ +package com.ccsens.logistics.persist.dao; + +import com.ccsens.logistics.bean.vo.MbpsVo; +import com.ccsens.logistics.persist.mapper.LogisticsCarRecordMapper; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * @author 马 + */ +@Repository +public interface LogisticsCarRecordDao extends LogisticsCarRecordMapper { + + /** + * 查询车辆吞进量 + * @param warehouseId 仓库id + * @return 车辆吞进量 + */ + Long selCarOfIn(Long warehouseId); + + /** + * 查询车辆吐出量 + * @param warehouseId 仓库id + * @return 车辆吐出量 + */ + Long selCarOfOut(Long warehouseId); + + /** + * 查询入库吨数 + * @param warehouseId 仓库id + * @return 入库吨数 + */ + Long selWeightOfIn(Long warehouseId); + + /** + * 查询出货吨数 + * @param warehouseId 仓库id + * @return 出货吨数 + */ + Long selWeightOfOut(Long warehouseId); + + /** + * 根据时间查询车辆吞进量 + * @param queryType 查询类型 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 该时间车辆吞进量 + */ + List selCarOfInByTime(@Param("queryType") Byte queryType,@Param("startTime") Long startTime,@Param("endTime") Long endTime); + + /** + * 根据时间查询车辆吐出量 + *@param queryType 查询类型 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 该时间车辆吐出量 + */ + List selCarOfOutByTime(@Param("queryType") Byte queryType,@Param("startTime") Long startTime,@Param("endTime") Long endTime); + + /** + * 根据时间查询入货量 + * @param queryType 查询类型 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 该时间入货量 + */ + List selWeightOfInByTime(@Param("queryType") Byte queryType,@Param("startTime") Long startTime,@Param("endTime") Long endTime); + + /** + * 根据时间查询出货量 + * @param queryType 查询类型 + * @param startTime 开始时间 + * @param endTime 结束时间 + * @return 该时间车辆出货量 + */ + List selWeightOfOutByTime(@Param("queryType") Byte queryType,@Param("startTime") Long startTime,@Param("endTime") Long endTime); +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEnvironmentRecordDao.java b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEnvironmentRecordDao.java new file mode 100644 index 00000000..7f0abd6a --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEnvironmentRecordDao.java @@ -0,0 +1,11 @@ +package com.ccsens.logistics.persist.dao; + +import com.ccsens.logistics.persist.mapper.LogisticsEnvironmentRecordMapper; +import org.springframework.stereotype.Repository; + +/** + * @author 马 + */ +@Repository +public interface LogisticsEnvironmentRecordDao extends LogisticsEnvironmentRecordMapper { +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEquipmentDao.java b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEquipmentDao.java new file mode 100644 index 00000000..61f4bd52 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsEquipmentDao.java @@ -0,0 +1,11 @@ +package com.ccsens.logistics.persist.dao; + +import com.ccsens.logistics.persist.mapper.LogisticsEquipmentMapper; +import org.springframework.stereotype.Repository; + +/** + * @author 马 + */ +@Repository +public interface LogisticsEquipmentDao extends LogisticsEquipmentMapper { +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsParkEquipmentDao.java b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsParkEquipmentDao.java new file mode 100644 index 00000000..07f4b8a8 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsParkEquipmentDao.java @@ -0,0 +1,11 @@ +package com.ccsens.logistics.persist.dao; + +import com.ccsens.logistics.persist.mapper.LogisticsParkEquipmentMapper; +import org.springframework.stereotype.Repository; + +/** + * @author 马 + */ +@Repository +public interface LogisticsParkEquipmentDao extends LogisticsParkEquipmentMapper { +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsWarehouseDao.java b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsWarehouseDao.java new file mode 100644 index 00000000..c496d718 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/dao/LogisticsWarehouseDao.java @@ -0,0 +1,11 @@ +package com.ccsens.logistics.persist.dao; + +import com.ccsens.logistics.persist.mapper.LogisticsWarehouseMapper; +import org.springframework.stereotype.Repository; + +/** + * @author 马 + */ +@Repository +public interface LogisticsWarehouseDao extends LogisticsWarehouseMapper { +} diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsCarRecordMapper.java b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsCarRecordMapper.java new file mode 100644 index 00000000..d3181ed0 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsCarRecordMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.persist.mapper; + +import com.ccsens.logistics.bean.po.LogisticsCarRecord; +import com.ccsens.logistics.bean.po.LogisticsCarRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LogisticsCarRecordMapper { + long countByExample(LogisticsCarRecordExample example); + + int deleteByExample(LogisticsCarRecordExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LogisticsCarRecord record); + + int insertSelective(LogisticsCarRecord record); + + List selectByExample(LogisticsCarRecordExample example); + + LogisticsCarRecord selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LogisticsCarRecord record, @Param("example") LogisticsCarRecordExample example); + + int updateByExample(@Param("record") LogisticsCarRecord record, @Param("example") LogisticsCarRecordExample example); + + int updateByPrimaryKeySelective(LogisticsCarRecord record); + + int updateByPrimaryKey(LogisticsCarRecord record); +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEnvironmentRecordMapper.java b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEnvironmentRecordMapper.java new file mode 100644 index 00000000..74588d47 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEnvironmentRecordMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.persist.mapper; + +import com.ccsens.logistics.bean.po.LogisticsEnvironmentRecord; +import com.ccsens.logistics.bean.po.LogisticsEnvironmentRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LogisticsEnvironmentRecordMapper { + long countByExample(LogisticsEnvironmentRecordExample example); + + int deleteByExample(LogisticsEnvironmentRecordExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LogisticsEnvironmentRecord record); + + int insertSelective(LogisticsEnvironmentRecord record); + + List selectByExample(LogisticsEnvironmentRecordExample example); + + LogisticsEnvironmentRecord selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LogisticsEnvironmentRecord record, @Param("example") LogisticsEnvironmentRecordExample example); + + int updateByExample(@Param("record") LogisticsEnvironmentRecord record, @Param("example") LogisticsEnvironmentRecordExample example); + + int updateByPrimaryKeySelective(LogisticsEnvironmentRecord record); + + int updateByPrimaryKey(LogisticsEnvironmentRecord record); +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEquipmentMapper.java b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEquipmentMapper.java new file mode 100644 index 00000000..c08b6baf --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsEquipmentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.persist.mapper; + +import com.ccsens.logistics.bean.po.LogisticsEquipment; +import com.ccsens.logistics.bean.po.LogisticsEquipmentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LogisticsEquipmentMapper { + long countByExample(LogisticsEquipmentExample example); + + int deleteByExample(LogisticsEquipmentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LogisticsEquipment record); + + int insertSelective(LogisticsEquipment record); + + List selectByExample(LogisticsEquipmentExample example); + + LogisticsEquipment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LogisticsEquipment record, @Param("example") LogisticsEquipmentExample example); + + int updateByExample(@Param("record") LogisticsEquipment record, @Param("example") LogisticsEquipmentExample example); + + int updateByPrimaryKeySelective(LogisticsEquipment record); + + int updateByPrimaryKey(LogisticsEquipment record); +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsParkEquipmentMapper.java b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsParkEquipmentMapper.java new file mode 100644 index 00000000..856100d4 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsParkEquipmentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.persist.mapper; + +import com.ccsens.logistics.bean.po.LogisticsParkEquipment; +import com.ccsens.logistics.bean.po.LogisticsParkEquipmentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LogisticsParkEquipmentMapper { + long countByExample(LogisticsParkEquipmentExample example); + + int deleteByExample(LogisticsParkEquipmentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LogisticsParkEquipment record); + + int insertSelective(LogisticsParkEquipment record); + + List selectByExample(LogisticsParkEquipmentExample example); + + LogisticsParkEquipment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LogisticsParkEquipment record, @Param("example") LogisticsParkEquipmentExample example); + + int updateByExample(@Param("record") LogisticsParkEquipment record, @Param("example") LogisticsParkEquipmentExample example); + + int updateByPrimaryKeySelective(LogisticsParkEquipment record); + + int updateByPrimaryKey(LogisticsParkEquipment record); +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsWarehouseMapper.java b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsWarehouseMapper.java new file mode 100644 index 00000000..c68e330c --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/persist/mapper/LogisticsWarehouseMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.logistics.persist.mapper; + +import com.ccsens.logistics.bean.po.LogisticsWarehouse; +import com.ccsens.logistics.bean.po.LogisticsWarehouseExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface LogisticsWarehouseMapper { + long countByExample(LogisticsWarehouseExample example); + + int deleteByExample(LogisticsWarehouseExample example); + + int deleteByPrimaryKey(Long id); + + int insert(LogisticsWarehouse record); + + int insertSelective(LogisticsWarehouse record); + + List selectByExample(LogisticsWarehouseExample example); + + LogisticsWarehouse selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") LogisticsWarehouse record, @Param("example") LogisticsWarehouseExample example); + + int updateByExample(@Param("record") LogisticsWarehouse record, @Param("example") LogisticsWarehouseExample example); + + int updateByPrimaryKeySelective(LogisticsWarehouse record); + + int updateByPrimaryKey(LogisticsWarehouse record); +} \ No newline at end of file diff --git a/logistics/src/main/java/com/ccsens/logistics/service/IMbpsService.java b/logistics/src/main/java/com/ccsens/logistics/service/IMbpsService.java new file mode 100644 index 00000000..cc5880ad --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/service/IMbpsService.java @@ -0,0 +1,26 @@ +package com.ccsens.logistics.service; + +import com.ccsens.logistics.bean.dto.MbpsDto; +import com.ccsens.logistics.bean.vo.MbpsVo; + +import java.util.List; + +/** + * @author 马 + */ +public interface IMbpsService { + + /** + * 查询总吞吐量 + * @param param 仓库id + * @return 总吞吐量 + */ + MbpsVo.AllMbps selAllMbps(MbpsDto.SelAllMbpsSerch param); + + /** + * 查询车次货物吞吐量折线图 + * @param param 开始结束时间、查询类型 + * @return 当前时间段的数据 + */ + MbpsVo.SelMbpsByTime selMbpsByTime(MbpsDto.SelMbpsByTime param); +} diff --git a/logistics/src/main/java/com/ccsens/logistics/service/MbpsService.java b/logistics/src/main/java/com/ccsens/logistics/service/MbpsService.java new file mode 100644 index 00000000..4bbeab85 --- /dev/null +++ b/logistics/src/main/java/com/ccsens/logistics/service/MbpsService.java @@ -0,0 +1,61 @@ +package com.ccsens.logistics.service; + +import com.ccsens.logistics.bean.dto.MbpsDto; +import com.ccsens.logistics.bean.vo.MbpsVo; +import com.ccsens.logistics.persist.dao.LogisticsCarRecordDao; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 马 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class) +public class MbpsService implements IMbpsService { + + @Resource + private LogisticsCarRecordDao carRecordDao; + + @Override + public MbpsVo.AllMbps selAllMbps(MbpsDto.SelAllMbpsSerch param) { + MbpsVo.AllMbps allMbps = new MbpsVo.AllMbps(); + //查询吞进量 + Long carOfIn = carRecordDao.selCarOfIn(param.getWarehouseId()); + allMbps.setCarOfIn(carOfIn); + //查询吐出量 + Long carOfOut = carRecordDao.selCarOfOut(param.getWarehouseId()); + allMbps.setCarOfOut(carOfOut); + //查询入库吨数 + Long weightOfIn = carRecordDao.selWeightOfIn(param.getWarehouseId()); + allMbps.setWeightOfIn(weightOfIn); + //查询出货吨数 + Long weightOfOut = carRecordDao.selWeightOfOut(param.getWarehouseId()); + allMbps.setWeightOfOut(weightOfOut); + return allMbps; + } + + @Override + public MbpsVo.SelMbpsByTime selMbpsByTime(MbpsDto.SelMbpsByTime param) { + MbpsVo.SelMbpsByTime selMbpsByTime = new MbpsVo.SelMbpsByTime(); + //查询吞进量 + List carOfInByTimeList = carRecordDao.selCarOfInByTime(param.getQueryType(),param.getStartTime(),param.getEndTime()); + selMbpsByTime.getCarOfInsByTime().addAll(carOfInByTimeList); + //查询吐出量 + List carOfOutByTimeList = carRecordDao.selCarOfOutByTime(param.getQueryType(),param.getStartTime(),param.getEndTime()); + selMbpsByTime.getCarOfOutsByTime().addAll(carOfOutByTimeList); + //查询入库吨数 + List weightOfInByTimeList = carRecordDao.selWeightOfInByTime(param.getQueryType(),param.getStartTime(),param.getEndTime()); + selMbpsByTime.getWeightOfInsByTime().addAll(weightOfInByTimeList); + //查询出货吨数 + List weightOfOutByTimeList =carRecordDao.selWeightOfOutByTime(param.getQueryType(),param.getStartTime(),param.getEndTime()); + selMbpsByTime.getWeightOfOutsByTime().addAll(weightOfOutByTimeList); + return selMbpsByTime; + } + +} diff --git a/logistics/src/main/resources/application-common.yml b/logistics/src/main/resources/application-common.yml new file mode 100644 index 00000000..e2a7d6ca --- /dev/null +++ b/logistics/src/main/resources/application-common.yml @@ -0,0 +1,30 @@ +logging: + level: + com: + favorites: DEBUG + org: + hibernate: ERROR + springframework: + web: DEBUG +mybatis: + config-location: classpath:mybatis/mybatis-config.xml + mapper-locations: classpath*:mapper_*/*.xml + type-aliases-package: com.ccsens.logistics.bean +#server: +# tomcat: +# uri-encoding: UTF-8 +spring: + http: + encoding: + charset: UTF-8 + enabled: true + force: true + log-request-details: true + servlet: + multipart: + max-file-size: 10MB + max-request-size: 100MB + snowflake: + datacenterId: 2 + workerId: 2 + diff --git a/logistics/src/main/resources/application-dev.yml b/logistics/src/main/resources/application-dev.yml new file mode 100644 index 00000000..01305b20 --- /dev/null +++ b/logistics/src/main/resources/application-dev.yml @@ -0,0 +1,35 @@ +server: + port: 7170 + servlet: + context-path: +spring: + application: + name: logistics + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: 192.168.31.13 + password: guest + port: 5672 + username: guest + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true +file: + path: /home/cloud/logistics/uploads/ + signUpUrl: https://test.tall.wiki/compete/ + domain: https://test.tall.wiki/gateway/logistics/ + imgDomain: https://test.tall.wiki/gateway/logistics/uploads/ +logging: + path: \ No newline at end of file diff --git a/logistics/src/main/resources/application-prod.yml b/logistics/src/main/resources/application-prod.yml new file mode 100644 index 00000000..6c9ab1b5 --- /dev/null +++ b/logistics/src/main/resources/application-prod.yml @@ -0,0 +1,40 @@ +server: + port: 7170 + servlet: + context-path: +spring: + application: + name: logistics + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: 127.0.0.1 + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 +# password: '' + password: 'areowqr!@43ef' + port: 6379 + timeout: 1000ms +swagger: + enable: true +eureka: + instance: + ip-address: 121.36.3.207 + +gatewayUrl: https://www.tall.wiki/gateway/ +notGatewayUrl: https://www.tall.wiki/ +file: + path: /home/cloud/logistics/uploads/ + signUpUrl: https://www.tall.wiki/compete/ + domain: https://www.tall.wiki/gateway/logistics/ + imgDomain: https://www.tall.wiki/gateway/logistics/uploads/ \ No newline at end of file diff --git a/logistics/src/main/resources/application-test.yml b/logistics/src/main/resources/application-test.yml new file mode 100644 index 00000000..853aa5dc --- /dev/null +++ b/logistics/src/main/resources/application-test.yml @@ -0,0 +1,36 @@ +server: + port: 7170 + servlet: + context-path: +spring: + application: + name: logistics + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: 127.0.0.1 + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true +eureka: + instance: + ip-address: 192.168.31.13 +file: + path: /home/cloud/logistics/uploads/ + signUpUrl: https://test.tall.wiki/compete/ + domain: https://test.tall.wiki/gateway/logistics/ + imgDomain: https://test.tall.wiki/gateway/logistics/uploads/ diff --git a/logistics/src/main/resources/application.yml b/logistics/src/main/resources/application.yml new file mode 100644 index 00000000..a47f2a7b --- /dev/null +++ b/logistics/src/main/resources/application.yml @@ -0,0 +1,6 @@ +spring: + profiles: + active: dev + include: common, util-dev + + diff --git a/logistics/src/main/resources/banner.txt b/logistics/src/main/resources/banner.txt new file mode 100644 index 00000000..b5cd913f --- /dev/null +++ b/logistics/src/main/resources/banner.txt @@ -0,0 +1,10 @@ + + + _ _ U _____ u _ _ U ___ u U ___ u ____ _ ____ + |'| |'| \| ___"|/ |"| |"| \/"_ \/ __ __ \/"_ \/U | _"\ u |"| | _"\ +/| |_| |\ | _|" U | | u U | | u | | | | \"\ /"/ | | | | \| |_) |/U | | u /| | | | +U| _ |u | |___ \| |/__ \| |/__.-,_| |_| | /\ \ /\ / /\.-,_| |_| | | _ < \| |/__U| |_| |\ + |_| |_| |_____| |_____| |_____|\_)-\___/ U \ V V / U\_)-\___/ |_| \_\ |_____||____/ u + // \\ << >> // \\ // \\ \\ .-,_\ /\ /_,-. \\ // \\_ // \\ |||_ +(_") ("_)(__) (__)(_")("_)(_")("_) (__) \_)-' '-(_/ (__) (__) (__)(_")("_)(__)_) + diff --git a/logistics/src/main/resources/druid-dev.yml b/logistics/src/main/resources/druid-dev.yml new file mode 100644 index 00000000..fd3add5e --- /dev/null +++ b/logistics/src/main/resources/druid-dev.yml @@ -0,0 +1,35 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 +# password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9 + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://49.233.89.188:3306/logisticspark?useUnicode=true&characterEncoding=UTF-8 + username: root + validationQuery: SELECT 1 FROM DUAL +# env: CCSENS_GAME + env: CCSENS_TALL \ No newline at end of file diff --git a/logistics/src/main/resources/druid-prod.yml b/logistics/src/main/resources/druid-prod.yml new file mode 100644 index 00000000..fe62722f --- /dev/null +++ b/logistics/src/main/resources/druid-prod.yml @@ -0,0 +1,33 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 + password: + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://127.0.0.1/logisticspark?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_GAME \ No newline at end of file diff --git a/logistics/src/main/resources/druid-test.yml b/logistics/src/main/resources/druid-test.yml new file mode 100644 index 00000000..4dfbb66f --- /dev/null +++ b/logistics/src/main/resources/druid-test.yml @@ -0,0 +1,33 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://test.tall.wiki/logisticspark?useUnicode=true&characterEncoding=UTF-8 + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_TALL \ No newline at end of file diff --git a/logistics/src/main/resources/logback-spring.xml b/logistics/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..da37f156 --- /dev/null +++ b/logistics/src/main/resources/logback-spring.xml @@ -0,0 +1,196 @@ + + + + + + + + + + logback + + + + + + + + + + + + + + + + + info + + + ${CONSOLE_LOG_PATTERN} + + UTF-8 + + + + + + + + + + ${log.path}/log_debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/log_info.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + info + ACCEPT + DENY + + + + + + + ${log.path}/log_warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + warn + ACCEPT + DENY + + + + + + + + ${log.path}/log_error.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + ERROR + ACCEPT + DENY + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_dao/LogisticsCarRecordDao.xml b/logistics/src/main/resources/mapper_dao/LogisticsCarRecordDao.xml new file mode 100644 index 00000000..1d735bca --- /dev/null +++ b/logistics/src/main/resources/mapper_dao/LogisticsCarRecordDao.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_dao/LogisticsEnvironmentRecordDao.xml b/logistics/src/main/resources/mapper_dao/LogisticsEnvironmentRecordDao.xml new file mode 100644 index 00000000..1facdf7c --- /dev/null +++ b/logistics/src/main/resources/mapper_dao/LogisticsEnvironmentRecordDao.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_dao/LogisticsEquipmentDao.xml b/logistics/src/main/resources/mapper_dao/LogisticsEquipmentDao.xml new file mode 100644 index 00000000..db09696d --- /dev/null +++ b/logistics/src/main/resources/mapper_dao/LogisticsEquipmentDao.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_dao/LogisticsParkEquipmentDao.xml b/logistics/src/main/resources/mapper_dao/LogisticsParkEquipmentDao.xml new file mode 100644 index 00000000..e095ce20 --- /dev/null +++ b/logistics/src/main/resources/mapper_dao/LogisticsParkEquipmentDao.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_dao/LogisticsWarehouseDao.xml b/logistics/src/main/resources/mapper_dao/LogisticsWarehouseDao.xml new file mode 100644 index 00000000..4387bc1e --- /dev/null +++ b/logistics/src/main/resources/mapper_dao/LogisticsWarehouseDao.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_raw/LogisticsCarRecordMapper.xml b/logistics/src/main/resources/mapper_raw/LogisticsCarRecordMapper.xml new file mode 100644 index 00000000..fc70fc1c --- /dev/null +++ b/logistics/src/main/resources/mapper_raw/LogisticsCarRecordMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, car_type, license_plate, plate_type, files_id, car_weight, in_out, car_brand, + warehouse_id, record_time, created_at, updated_at, rec_status + + + + + delete from t_logistics_car_record + where id = #{id,jdbcType=BIGINT} + + + delete from t_logistics_car_record + + + + + + insert into t_logistics_car_record (id, car_type, license_plate, + plate_type, files_id, car_weight, + in_out, car_brand, warehouse_id, + record_time, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{carType,jdbcType=TINYINT}, #{licensePlate,jdbcType=VARCHAR}, + #{plateType,jdbcType=TINYINT}, #{filesId,jdbcType=VARCHAR}, #{carWeight,jdbcType=BIGINT}, + #{inOut,jdbcType=TINYINT}, #{carBrand,jdbcType=VARCHAR}, #{warehouseId,jdbcType=BIGINT}, + #{recordTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_logistics_car_record + + + id, + + + car_type, + + + license_plate, + + + plate_type, + + + files_id, + + + car_weight, + + + in_out, + + + car_brand, + + + warehouse_id, + + + record_time, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{carType,jdbcType=TINYINT}, + + + #{licensePlate,jdbcType=VARCHAR}, + + + #{plateType,jdbcType=TINYINT}, + + + #{filesId,jdbcType=VARCHAR}, + + + #{carWeight,jdbcType=BIGINT}, + + + #{inOut,jdbcType=TINYINT}, + + + #{carBrand,jdbcType=VARCHAR}, + + + #{warehouseId,jdbcType=BIGINT}, + + + #{recordTime,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_logistics_car_record + + + id = #{record.id,jdbcType=BIGINT}, + + + car_type = #{record.carType,jdbcType=TINYINT}, + + + license_plate = #{record.licensePlate,jdbcType=VARCHAR}, + + + plate_type = #{record.plateType,jdbcType=TINYINT}, + + + files_id = #{record.filesId,jdbcType=VARCHAR}, + + + car_weight = #{record.carWeight,jdbcType=BIGINT}, + + + in_out = #{record.inOut,jdbcType=TINYINT}, + + + car_brand = #{record.carBrand,jdbcType=VARCHAR}, + + + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + + + record_time = #{record.recordTime,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_logistics_car_record + set id = #{record.id,jdbcType=BIGINT}, + car_type = #{record.carType,jdbcType=TINYINT}, + license_plate = #{record.licensePlate,jdbcType=VARCHAR}, + plate_type = #{record.plateType,jdbcType=TINYINT}, + files_id = #{record.filesId,jdbcType=VARCHAR}, + car_weight = #{record.carWeight,jdbcType=BIGINT}, + in_out = #{record.inOut,jdbcType=TINYINT}, + car_brand = #{record.carBrand,jdbcType=VARCHAR}, + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + record_time = #{record.recordTime,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_logistics_car_record + + + car_type = #{carType,jdbcType=TINYINT}, + + + license_plate = #{licensePlate,jdbcType=VARCHAR}, + + + plate_type = #{plateType,jdbcType=TINYINT}, + + + files_id = #{filesId,jdbcType=VARCHAR}, + + + car_weight = #{carWeight,jdbcType=BIGINT}, + + + in_out = #{inOut,jdbcType=TINYINT}, + + + car_brand = #{carBrand,jdbcType=VARCHAR}, + + + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + + + record_time = #{recordTime,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_logistics_car_record + set car_type = #{carType,jdbcType=TINYINT}, + license_plate = #{licensePlate,jdbcType=VARCHAR}, + plate_type = #{plateType,jdbcType=TINYINT}, + files_id = #{filesId,jdbcType=VARCHAR}, + car_weight = #{carWeight,jdbcType=BIGINT}, + in_out = #{inOut,jdbcType=TINYINT}, + car_brand = #{carBrand,jdbcType=VARCHAR}, + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + record_time = #{recordTime,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_raw/LogisticsEnvironmentRecordMapper.xml b/logistics/src/main/resources/mapper_raw/LogisticsEnvironmentRecordMapper.xml new file mode 100644 index 00000000..9dfca11e --- /dev/null +++ b/logistics/src/main/resources/mapper_raw/LogisticsEnvironmentRecordMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + 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, num_value, num_type, equipment_id, warehouse_id, record_time, created_at, updated_at, + rec_status + + + + + delete from t_logistics_environment_record + where id = #{id,jdbcType=BIGINT} + + + delete from t_logistics_environment_record + + + + + + insert into t_logistics_environment_record (id, num_value, num_type, + equipment_id, warehouse_id, record_time, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{numValue,jdbcType=INTEGER}, #{numType,jdbcType=TINYINT}, + #{equipmentId,jdbcType=BIGINT}, #{warehouseId,jdbcType=BIGINT}, #{recordTime,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_logistics_environment_record + + + id, + + + num_value, + + + num_type, + + + equipment_id, + + + warehouse_id, + + + record_time, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{numValue,jdbcType=INTEGER}, + + + #{numType,jdbcType=TINYINT}, + + + #{equipmentId,jdbcType=BIGINT}, + + + #{warehouseId,jdbcType=BIGINT}, + + + #{recordTime,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_logistics_environment_record + + + id = #{record.id,jdbcType=BIGINT}, + + + num_value = #{record.numValue,jdbcType=INTEGER}, + + + num_type = #{record.numType,jdbcType=TINYINT}, + + + equipment_id = #{record.equipmentId,jdbcType=BIGINT}, + + + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + + + record_time = #{record.recordTime,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_logistics_environment_record + set id = #{record.id,jdbcType=BIGINT}, + num_value = #{record.numValue,jdbcType=INTEGER}, + num_type = #{record.numType,jdbcType=TINYINT}, + equipment_id = #{record.equipmentId,jdbcType=BIGINT}, + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + record_time = #{record.recordTime,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_logistics_environment_record + + + num_value = #{numValue,jdbcType=INTEGER}, + + + num_type = #{numType,jdbcType=TINYINT}, + + + equipment_id = #{equipmentId,jdbcType=BIGINT}, + + + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + + + record_time = #{recordTime,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_logistics_environment_record + set num_value = #{numValue,jdbcType=INTEGER}, + num_type = #{numType,jdbcType=TINYINT}, + equipment_id = #{equipmentId,jdbcType=BIGINT}, + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + record_time = #{recordTime,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_raw/LogisticsEquipmentMapper.xml b/logistics/src/main/resources/mapper_raw/LogisticsEquipmentMapper.xml new file mode 100644 index 00000000..36e4b848 --- /dev/null +++ b/logistics/src/main/resources/mapper_raw/LogisticsEquipmentMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + 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, name, equipment_number, equipment_type, warehouse_id, created_at, updated_at, + rec_status + + + + + delete from t_logistics_equipment + where id = #{id,jdbcType=BIGINT} + + + delete from t_logistics_equipment + + + + + + insert into t_logistics_equipment (id, name, equipment_number, + equipment_type, warehouse_id, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{equipmentNumber,jdbcType=INTEGER}, + #{equipmentType,jdbcType=TINYINT}, #{warehouseId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_logistics_equipment + + + id, + + + name, + + + equipment_number, + + + equipment_type, + + + warehouse_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{equipmentNumber,jdbcType=INTEGER}, + + + #{equipmentType,jdbcType=TINYINT}, + + + #{warehouseId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_logistics_equipment + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + equipment_number = #{record.equipmentNumber,jdbcType=INTEGER}, + + + equipment_type = #{record.equipmentType,jdbcType=TINYINT}, + + + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_logistics_equipment + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + equipment_number = #{record.equipmentNumber,jdbcType=INTEGER}, + equipment_type = #{record.equipmentType,jdbcType=TINYINT}, + warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_logistics_equipment + + + name = #{name,jdbcType=VARCHAR}, + + + equipment_number = #{equipmentNumber,jdbcType=INTEGER}, + + + equipment_type = #{equipmentType,jdbcType=TINYINT}, + + + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_logistics_equipment + set name = #{name,jdbcType=VARCHAR}, + equipment_number = #{equipmentNumber,jdbcType=INTEGER}, + equipment_type = #{equipmentType,jdbcType=TINYINT}, + warehouse_id = #{warehouseId,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_raw/LogisticsParkEquipmentMapper.xml b/logistics/src/main/resources/mapper_raw/LogisticsParkEquipmentMapper.xml new file mode 100644 index 00000000..79933233 --- /dev/null +++ b/logistics/src/main/resources/mapper_raw/LogisticsParkEquipmentMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + 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, name, equipment_number, equipment_type, park_id, created_at, updated_at, rec_status + + + + + delete from t_logistics_park_equipment + where id = #{id,jdbcType=BIGINT} + + + delete from t_logistics_park_equipment + + + + + + insert into t_logistics_park_equipment (id, name, equipment_number, + equipment_type, park_id, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{equipmentNumber,jdbcType=INTEGER}, + #{equipmentType,jdbcType=TINYINT}, #{parkId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_logistics_park_equipment + + + id, + + + name, + + + equipment_number, + + + equipment_type, + + + park_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{equipmentNumber,jdbcType=INTEGER}, + + + #{equipmentType,jdbcType=TINYINT}, + + + #{parkId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_logistics_park_equipment + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + equipment_number = #{record.equipmentNumber,jdbcType=INTEGER}, + + + equipment_type = #{record.equipmentType,jdbcType=TINYINT}, + + + park_id = #{record.parkId,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_logistics_park_equipment + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + equipment_number = #{record.equipmentNumber,jdbcType=INTEGER}, + equipment_type = #{record.equipmentType,jdbcType=TINYINT}, + park_id = #{record.parkId,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_logistics_park_equipment + + + name = #{name,jdbcType=VARCHAR}, + + + equipment_number = #{equipmentNumber,jdbcType=INTEGER}, + + + equipment_type = #{equipmentType,jdbcType=TINYINT}, + + + park_id = #{parkId,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_logistics_park_equipment + set name = #{name,jdbcType=VARCHAR}, + equipment_number = #{equipmentNumber,jdbcType=INTEGER}, + equipment_type = #{equipmentType,jdbcType=TINYINT}, + park_id = #{parkId,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/logistics/src/main/resources/mapper_raw/LogisticsWarehouseMapper.xml b/logistics/src/main/resources/mapper_raw/LogisticsWarehouseMapper.xml new file mode 100644 index 00000000..a344b33e --- /dev/null +++ b/logistics/src/main/resources/mapper_raw/LogisticsWarehouseMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + 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, name, park_id, created_at, updated_at, rec_status + + + + + delete from t_logistics_warehouse + where id = #{id,jdbcType=BIGINT} + + + delete from t_logistics_warehouse + + + + + + insert into t_logistics_warehouse (id, name, park_id, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{parkId,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_logistics_warehouse + + + id, + + + name, + + + park_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{parkId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_logistics_warehouse + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + park_id = #{record.parkId,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_logistics_warehouse + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + park_id = #{record.parkId,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_logistics_warehouse + + + name = #{name,jdbcType=VARCHAR}, + + + park_id = #{parkId,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_logistics_warehouse + set name = #{name,jdbcType=VARCHAR}, + park_id = #{parkId,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/logistics/src/main/resources/mybatis/mybatis-config.xml b/logistics/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 00000000..e5a218dd --- /dev/null +++ b/logistics/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index c2c7812d..0d8fee63 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ tcm + logistics diff --git a/tall/src/main/resources/application.yml b/tall/src/main/resources/application.yml index b5408a3a..ebc544af 100644 --- a/tall/src/main/resources/application.yml +++ b/tall/src/main/resources/application.yml @@ -1,5 +1,5 @@ spring: profiles: - active: dev - include: util-dev,common + active: test + include: util-test,common