diff --git a/pom.xml b/pom.xml
index 3c603e8..4c92fdd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,243 +19,229 @@
-
-
-
-
-
com.ccsensptos
- wechatutil
+ util_wechat
1.0-SNAPSHOT
compile
-
-
- org.springframework.boot
- spring-boot-starter-amqp
-
-
- com.ccsensptos
- cloudutil
-
-
org.aspectj
aspectjweaver
-
-
- io.netty
- netty-all
- 4.1.32.Final
-
-
-
- org.springframework.boot
- spring-boot-starter-data-redis
-
-
-
- org.springframework.boot
- spring-boot-starter-cache
-
-
-
-
- org.springframework.boot
- spring-boot-starter-jdbc
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
-
- org.springframework.boot
- spring-boot-configuration-processor
- true
-
org.projectlombok
lombok
true
-
- org.springframework.boot
- spring-boot-starter-test
-
-
- com.vaadin.external.google
- android-json
-
-
- test
-
-
- org.springframework.boot
- spring-boot-starter-actuator
-
+
+
+
+
+
+
-
-
- cn.hutool
- hutool-all
- 4.1.21
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- org.apache.poi
- poi
- 3.17
-
-
- org.apache.poi
- poi-ooxml
- 3.17
-
-
-
- org.springframework.boot
- spring-boot-starter-websocket
-
-
-
-
-
- org.mybatis.spring.boot
- mybatis-spring-boot-starter
- 1.1.1
-
-
-
- com.github.pagehelper
- pagehelper
- 4.1.4
-
-
-
- mysql
- mysql-connector-java
-
-
-
- com.alibaba
- druid
- 1.1.10
-
-
-
- io.jsonwebtoken
- jjwt
- 0.7.0
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- com.fasterxml.jackson.dataformat
- jackson-dataformat-xml
- 2.9.0
-
+
+
+
+
+
+
-
-
-
-
- org.apache.shiro
- shiro-spring
- 1.4.0
-
-
-
- org.apache.shiro
- shiro-ehcache
- 1.4.0
-
-
-
- net.sourceforge.htmlcleaner
- htmlcleaner
- 2.22
-
-
-
- org.apache.commons
- commons-lang3
- 3.8.1
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- io.springfox
- springfox-swagger2
- 2.9.2
-
+
+
+
+
+
+
-
- io.springfox
- springfox-swagger-ui
- 2.9.2
-
-
-
- org.mybatis.generator
- mybatis-generator-core
- 1.3.7
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- org.beanshell
- bsh
- 2.0b5
-
-
-
- org.apache.httpcomponents
- httpclient
- 4.5.1
-
-
-
- org.apache.httpcomponents
- httpcore
- 4.4.3
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- com.alibaba
- fastjson
- 1.2.62
-
diff --git a/src/main/java/com/ccsens/delivery/api/DebugController.java b/src/main/java/com/ccsens/delivery/api/DebugController.java
new file mode 100644
index 0000000..0b46af3
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/api/DebugController.java
@@ -0,0 +1,46 @@
+package com.ccsens.delivery.api;
+
+import cn.hutool.core.lang.Snowflake;
+import com.ccsens.delivery.bean.po.SysArea;
+import com.ccsens.delivery.bean.po.SysUser;
+import com.ccsens.delivery.persist.mapper.SysAreaMapper;
+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.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @description:
+ * @author: whj
+ * @time: 2022/3/8 8:42
+ */
+@Api(tags = "DEBUG" , description = "DebugController | ")
+@RestController
+@RequestMapping("/debug")
+@Slf4j
+public class DebugController {
+
+ @Resource
+ private SysAreaMapper sysAreaMapper;
+ @Resource
+ private Snowflake snowflake;
+
+ @ApiOperation(value = "/测试",notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse debug(HttpServletRequest request) throws Exception {
+
+ return JsonResponse.newInstance().ok("hello world!");
+ }
+
+}
diff --git a/src/main/java/com/ccsens/delivery/api/StudentController.java b/src/main/java/com/ccsens/delivery/api/StudentController.java
new file mode 100644
index 0000000..4df7f3c
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/api/StudentController.java
@@ -0,0 +1,155 @@
+package com.ccsens.delivery.api;
+
+import com.ccsens.delivery.annotation.MustLogin;
+import com.ccsens.delivery.bean.dto.StudentDto;
+import com.ccsens.delivery.bean.vo.StudentVo;
+import com.ccsens.delivery.service.IStudentService;
+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.ApiImplicitParams;
+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 逗
+ */
+@Api(tags = "stu" , description = "学生订单相关接口")
+@RestController
+@RequestMapping("/stu")
+@Slf4j
+public class StudentController {
+
+ @Resource
+ private IStudentService studentService;
+
+ @MustLogin
+ @ApiOperation(value = "/查询当前用户提交的订单信息", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse> queryStuOrder(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("查询当前用户提交的订单信息,{}",params);
+ List studentOrder = studentService.queryStuOrder(params.getUserId(), params.getParam());
+ log.info("返回当前用户提交的订单信息");
+ return JsonResponse.newInstance().ok(studentOrder);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/查询当前用户最新的一条数据", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/queryNew", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse queryStuOrderNew(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("查询当前用户最新的一条数据,{}",params);
+ StudentVo.StudentOrder studentOrder = studentService.queryStuOrderNew(params.getUserId());
+ log.info("返回当前用户提交的最后一条订单信息");
+ return JsonResponse.newInstance().ok(studentOrder);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/根据id查看订单信息", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/orderById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse queryStuOrderById(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("根据id查看订单信息,{}",params);
+ StudentVo.StudentOrder studentOrder = studentService.queryStuOrderById(params.getUserId(),params.getParam());
+ log.info("返回订单信息");
+ return JsonResponse.newInstance().ok(studentOrder);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/分页查找当前用户提交的订单列表", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/pageOrder", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse> pageQueryStuOrder(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("查询当前用户提交的订单信息,{}",params);
+ PageInfo studentOrder = studentService.pageQueryStuOrder(params.getUserId(), params.getParam());
+ log.info("返回当前用户提交的订单信息");
+ return JsonResponse.newInstance().ok(studentOrder);
+ }
+
+ @ApiOperation(value = "/查询学院或宿舍", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/area", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse> queryArea(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("查询学院或宿舍,{}",params);
+ List areaInfo = studentService.queryArea(params.getUserId(), params.getParam());
+ log.info("返回学院或宿舍信息");
+ return JsonResponse.newInstance().ok(areaInfo);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/提交订单", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/submit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse submitOrder(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("提交订单,{}",params);
+ studentService.submitOrder(params.getUserId(), params.getParam());
+ log.info("提交订单成功");
+ return JsonResponse.newInstance().ok();
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/后台分页查找订单信息", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/back/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse> backQueryStuOrder(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("后台分页查找订单信息,{}",params);
+ PageInfo studentOrderList = studentService.backQueryStuOrder(params.getUserId(), params.getParam());
+ log.info("分页返回订单信息");
+ return JsonResponse.newInstance().ok(studentOrderList);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/修改订单完成状态", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/status", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updateOrderStatus(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("修改订单完成状态,{}",params);
+ studentService.updateOrderStatus(params.getUserId(), params.getParam());
+ log.info("修改订单完成状态成功");
+ return JsonResponse.newInstance().ok();
+ }
+
+ @MustLogin
+ @ApiOperation(value = "/用户撤回订单", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/revocation", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse revocationOrder(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("用户撤回订单,{}",params);
+ studentService.revocationOrder(params.getUserId(), params.getParam());
+ log.info("撤回订单成功");
+ return JsonResponse.newInstance().ok();
+ }
+
+
+ @MustLogin
+ @ApiOperation(value = "将订单信息导出Excel表格", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/export", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse exportExcel(@ApiParam @RequestBody @Validated QueryDto params) throws Exception {
+ log.info("将订单信息导出Excel表格,{}",params);
+ String path = studentService.exportExcel(params.getUserId(), params.getParam());
+ log.info("返回表格的访问路径:{}",path);
+ return JsonResponse.newInstance().ok(path);
+ }
+}
diff --git a/src/main/java/com/ccsens/delivery/api/UserController.java b/src/main/java/com/ccsens/delivery/api/UserController.java
index af41a61..d2c2a2d 100644
--- a/src/main/java/com/ccsens/delivery/api/UserController.java
+++ b/src/main/java/com/ccsens/delivery/api/UserController.java
@@ -6,9 +6,7 @@ import com.ccsens.delivery.bean.dto.UserDto;
import com.ccsens.delivery.bean.vo.UserVo;
import com.ccsens.delivery.service.IUserService;
import com.ccsens.util.JsonResponse;
-import com.ccsens.util.WebConstant;
import com.ccsens.util.bean.dto.QueryDto;
-import io.jsonwebtoken.Claims;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
diff --git a/src/main/java/com/ccsens/delivery/bean/dto/StudentDto.java b/src/main/java/com/ccsens/delivery/bean/dto/StudentDto.java
new file mode 100644
index 0000000..407031f
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/dto/StudentDto.java
@@ -0,0 +1,195 @@
+package com.ccsens.delivery.bean.dto;
+
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.util.ObjectUtil;
+import cn.hutool.core.util.StrUtil;
+import com.ccsens.delivery.util.DeliveryConstant;
+import com.ccsens.util.SymmetricCryptoUtil;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.*;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+@Data
+public class StudentDto {
+
+ @Data
+ @ApiModel("请求-修改订单状态")
+ public static class UpdateOrderStatus{
+ @ApiModelProperty("订单id")
+ private List orderIdList;
+ @NotNull(message = "请选择配送状态")
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private Byte status;
+ }
+
+ @Data
+ @ApiModel("请求-查询学生提价的订单列表")
+ public static class QueryStuList{
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private Byte status;
+ }
+
+ @Data
+ @ApiModel("请求-分页查询自己提价的订单列表")
+ public static class PageQueryStuList{
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private Byte status;
+ @ApiModelProperty("第几页")
+ @Min(value = 1)
+ private int pageNum = 1;
+ @ApiModelProperty("每页多少条")
+ @Min(value = 1)
+ @Max(value=100)
+ private int pageSize = 10;
+ }
+
+ @Data
+ @ApiModel("请求-订单id")
+ public static class OrderId{
+ @NotNull(message = "请传入订单id")
+ @ApiModelProperty("订单Id")
+ private Long id;
+ }
+
+ @Data
+ @ApiModel("请求-查询学院或宿舍")
+ public static class QueryArea{
+ @ApiModelProperty("名称 为空则查询全部")
+ private String name;
+ @ApiModelProperty("类型 0学院 1宿舍")
+ private byte type;
+ }
+
+ @Data
+ @ApiModel("请求-提价订单")
+ public static class SubmitOrder{
+ @NotBlank(message = "请输入姓名")
+ @ApiModelProperty("姓名")
+ private String name;
+ @NotBlank(message = "请输入学号")
+ @ApiModelProperty("学号")
+ private String stuNum;
+ @NotEmpty(message = "请输入正确的手机号")
+ @Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="请输入正确的手机号")
+ @ApiModelProperty("联系电话")
+ private String phone;
+ @NotEmpty(message = "请输入正确的身份证号")
+ @ApiModelProperty("身份证号")
+ private String idCard;
+ @ApiModelProperty("所在学院Id")
+ private Long collegeId;
+ @ApiModelProperty("所在学院名称")
+ private String collegeName;
+ @ApiModelProperty("所在宿舍Id")
+ private Long dormitoryId;
+ @ApiModelProperty("所在宿舍名称")
+ private String dormitoryName;
+ @NotBlank(message = "请填写详细地址")
+ @ApiModelProperty("详细地址")
+ private String address;
+ @NotBlank(message = "请填写症状描述")
+ @ApiModelProperty("症状描述")
+ private String symptom;
+ @ApiModelProperty("是否断药 0否 1是")
+ private byte broken;
+ @ApiModelProperty("备注")
+ private String remark;
+ @NotNull(message = "请选择配送时间")
+ @ApiModelProperty("希望配送时间")
+ private Long planTime;
+ @ApiModelProperty("药品信息")
+ private List orderItemList;
+ }
+
+ @Data
+ @ApiModel("请求-订单项信息")
+ public static class SubmitOrderItem{
+ @NotBlank(message = "请填写药品名称")
+ @ApiModelProperty("药品名称")
+ private String name;
+ @NotBlank(message = "请填写药品规格")
+ @ApiModelProperty("药品规格")
+ private String specification;
+ @Min(value = 1,message = "请填写正确的药品数量")
+ @Max(value = 99,message = "请填写正确的药品数量")
+ @ApiModelProperty("数量")
+ private int num;
+ }
+
+ @Data
+ @ApiModel("请求-后台分页查找订单信息")
+ public static class BackQueryOrder{
+ @ApiModelProperty("学生姓名")
+ private String name;
+ @ApiModelProperty("学号")
+ private String stuNum;
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("身份证号")
+ private String idCard;
+ @ApiModelProperty("所在学院Id")
+ private Long collegeId;
+ @ApiModelProperty("所在宿舍Id")
+ private List dormitoryId;
+ @ApiModelProperty("详细地址")
+ private String address;
+ @ApiModelProperty("症状描述")
+ private String symptom;
+ @ApiModelProperty("药品名称")
+ private String drugName;
+ @ApiModelProperty("是否断药 0否 1是")
+ private Byte broken;
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private Byte status;
+ @ApiModelProperty("开始时间")
+ private Long startTime;
+ @ApiModelProperty("结束时间")
+ private Long endTime;
+ @ApiModelProperty("第几页")
+ @Min(value = 1)
+ private int pageNum = 1;
+ @ApiModelProperty("每页多少条")
+ @Min(value = 1)
+ @Max(value=100)
+ private int pageSize = 10;
+
+ public Long getEndTime() {
+ Long t = endTime;
+ if(ObjectUtil.isNotNull(endTime)){
+ t = DateUtil.endOfDay(new Date(endTime)).getTime();
+ }
+ return t;
+ }
+
+ public String getStuNum() {
+ String s = stuNum;
+ if(StrUtil.isNotBlank(stuNum)){
+ s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,stuNum);
+ }
+ return s;
+ }
+
+ public String getPhone() {
+ String s = phone;
+ if(StrUtil.isNotBlank(phone)){
+ s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,phone);
+ }
+ return s;
+ }
+
+ public String getIdCard() {
+ String s = idCard;
+ if(StrUtil.isNotBlank(idCard)){
+ s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,idCard);
+ }
+ return s;
+ }
+ }
+}
diff --git a/src/main/java/com/ccsens/delivery/bean/po/StuOrder.java b/src/main/java/com/ccsens/delivery/bean/po/StuOrder.java
new file mode 100644
index 0000000..7e88884
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/StuOrder.java
@@ -0,0 +1,249 @@
+package com.ccsens.delivery.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class StuOrder implements Serializable {
+ private Long id;
+
+ private Long userId;
+
+ private String name;
+
+ private String stuNum;
+
+ private String phone;
+
+ private String idCard;
+
+ private Long collegeId;
+
+ private Long dormitoryId;
+
+ private String address;
+
+ private String symptom;
+
+ private Byte broken;
+
+ private String remark;
+
+ private Long planTime;
+
+ private Long realTime;
+
+ private Byte status;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private String collegeName;
+
+ private String dormitoryName;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public String getStuNum() {
+ return stuNum;
+ }
+
+ public void setStuNum(String stuNum) {
+ this.stuNum = stuNum == null ? null : stuNum.trim();
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone == null ? null : phone.trim();
+ }
+
+ public String getIdCard() {
+ return idCard;
+ }
+
+ public void setIdCard(String idCard) {
+ this.idCard = idCard == null ? null : idCard.trim();
+ }
+
+ public Long getCollegeId() {
+ return collegeId;
+ }
+
+ public void setCollegeId(Long collegeId) {
+ this.collegeId = collegeId;
+ }
+
+ public Long getDormitoryId() {
+ return dormitoryId;
+ }
+
+ public void setDormitoryId(Long dormitoryId) {
+ this.dormitoryId = dormitoryId;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address == null ? null : address.trim();
+ }
+
+ public String getSymptom() {
+ return symptom;
+ }
+
+ public void setSymptom(String symptom) {
+ this.symptom = symptom == null ? null : symptom.trim();
+ }
+
+ public Byte getBroken() {
+ return broken;
+ }
+
+ public void setBroken(Byte broken) {
+ this.broken = broken;
+ }
+
+ public String getRemark() {
+ return remark;
+ }
+
+ public void setRemark(String remark) {
+ this.remark = remark == null ? null : remark.trim();
+ }
+
+ public Long getPlanTime() {
+ return planTime;
+ }
+
+ public void setPlanTime(Long planTime) {
+ this.planTime = planTime;
+ }
+
+ public Long getRealTime() {
+ return realTime;
+ }
+
+ public void setRealTime(Long realTime) {
+ this.realTime = realTime;
+ }
+
+ public Byte getStatus() {
+ return status;
+ }
+
+ public void setStatus(Byte status) {
+ this.status = status;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ 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;
+ }
+
+ public String getCollegeName() {
+ return collegeName;
+ }
+
+ public void setCollegeName(String collegeName) {
+ this.collegeName = collegeName == null ? null : collegeName.trim();
+ }
+
+ public String getDormitoryName() {
+ return dormitoryName;
+ }
+
+ public void setDormitoryName(String dormitoryName) {
+ this.dormitoryName = dormitoryName == null ? null : dormitoryName.trim();
+ }
+
+ @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(", userId=").append(userId);
+ sb.append(", name=").append(name);
+ sb.append(", stuNum=").append(stuNum);
+ sb.append(", phone=").append(phone);
+ sb.append(", idCard=").append(idCard);
+ sb.append(", collegeId=").append(collegeId);
+ sb.append(", dormitoryId=").append(dormitoryId);
+ sb.append(", address=").append(address);
+ sb.append(", symptom=").append(symptom);
+ sb.append(", broken=").append(broken);
+ sb.append(", remark=").append(remark);
+ sb.append(", planTime=").append(planTime);
+ sb.append(", realTime=").append(realTime);
+ sb.append(", status=").append(status);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append(", collegeName=").append(collegeName);
+ sb.append(", dormitoryName=").append(dormitoryName);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/ccsens/delivery/bean/po/StuOrderExample.java b/src/main/java/com/ccsens/delivery/bean/po/StuOrderExample.java
new file mode 100644
index 0000000..3cd7cfc
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/StuOrderExample.java
@@ -0,0 +1,1551 @@
+package com.ccsens.delivery.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class StuOrderExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public StuOrderExample() {
+ 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 andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ 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 andStuNumIsNull() {
+ addCriterion("stu_num is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumIsNotNull() {
+ addCriterion("stu_num is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumEqualTo(String value) {
+ addCriterion("stu_num =", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumNotEqualTo(String value) {
+ addCriterion("stu_num <>", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumGreaterThan(String value) {
+ addCriterion("stu_num >", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumGreaterThanOrEqualTo(String value) {
+ addCriterion("stu_num >=", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumLessThan(String value) {
+ addCriterion("stu_num <", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumLessThanOrEqualTo(String value) {
+ addCriterion("stu_num <=", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumLike(String value) {
+ addCriterion("stu_num like", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumNotLike(String value) {
+ addCriterion("stu_num not like", value, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumIn(List values) {
+ addCriterion("stu_num in", values, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumNotIn(List values) {
+ addCriterion("stu_num not in", values, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumBetween(String value1, String value2) {
+ addCriterion("stu_num between", value1, value2, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andStuNumNotBetween(String value1, String value2) {
+ addCriterion("stu_num not between", value1, value2, "stuNum");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIsNull() {
+ addCriterion("phone is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIsNotNull() {
+ addCriterion("phone is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneEqualTo(String value) {
+ addCriterion("phone =", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotEqualTo(String value) {
+ addCriterion("phone <>", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneGreaterThan(String value) {
+ addCriterion("phone >", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneGreaterThanOrEqualTo(String value) {
+ addCriterion("phone >=", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLessThan(String value) {
+ addCriterion("phone <", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLessThanOrEqualTo(String value) {
+ addCriterion("phone <=", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLike(String value) {
+ addCriterion("phone like", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotLike(String value) {
+ addCriterion("phone not like", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIn(List values) {
+ addCriterion("phone in", values, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotIn(List values) {
+ addCriterion("phone not in", values, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneBetween(String value1, String value2) {
+ addCriterion("phone between", value1, value2, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotBetween(String value1, String value2) {
+ addCriterion("phone not between", value1, value2, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardIsNull() {
+ addCriterion("id_card is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardIsNotNull() {
+ addCriterion("id_card is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardEqualTo(String value) {
+ addCriterion("id_card =", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardNotEqualTo(String value) {
+ addCriterion("id_card <>", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardGreaterThan(String value) {
+ addCriterion("id_card >", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardGreaterThanOrEqualTo(String value) {
+ addCriterion("id_card >=", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardLessThan(String value) {
+ addCriterion("id_card <", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardLessThanOrEqualTo(String value) {
+ addCriterion("id_card <=", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardLike(String value) {
+ addCriterion("id_card like", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardNotLike(String value) {
+ addCriterion("id_card not like", value, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardIn(List values) {
+ addCriterion("id_card in", values, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardNotIn(List values) {
+ addCriterion("id_card not in", values, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardBetween(String value1, String value2) {
+ addCriterion("id_card between", value1, value2, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdCardNotBetween(String value1, String value2) {
+ addCriterion("id_card not between", value1, value2, "idCard");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdIsNull() {
+ addCriterion("college_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdIsNotNull() {
+ addCriterion("college_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdEqualTo(Long value) {
+ addCriterion("college_id =", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdNotEqualTo(Long value) {
+ addCriterion("college_id <>", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdGreaterThan(Long value) {
+ addCriterion("college_id >", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("college_id >=", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdLessThan(Long value) {
+ addCriterion("college_id <", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdLessThanOrEqualTo(Long value) {
+ addCriterion("college_id <=", value, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdIn(List values) {
+ addCriterion("college_id in", values, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdNotIn(List values) {
+ addCriterion("college_id not in", values, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdBetween(Long value1, Long value2) {
+ addCriterion("college_id between", value1, value2, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeIdNotBetween(Long value1, Long value2) {
+ addCriterion("college_id not between", value1, value2, "collegeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdIsNull() {
+ addCriterion("dormitory_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdIsNotNull() {
+ addCriterion("dormitory_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdEqualTo(Long value) {
+ addCriterion("dormitory_id =", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdNotEqualTo(Long value) {
+ addCriterion("dormitory_id <>", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdGreaterThan(Long value) {
+ addCriterion("dormitory_id >", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("dormitory_id >=", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdLessThan(Long value) {
+ addCriterion("dormitory_id <", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdLessThanOrEqualTo(Long value) {
+ addCriterion("dormitory_id <=", value, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdIn(List values) {
+ addCriterion("dormitory_id in", values, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdNotIn(List values) {
+ addCriterion("dormitory_id not in", values, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdBetween(Long value1, Long value2) {
+ addCriterion("dormitory_id between", value1, value2, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryIdNotBetween(Long value1, Long value2) {
+ addCriterion("dormitory_id not between", value1, value2, "dormitoryId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIsNull() {
+ addCriterion("address is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIsNotNull() {
+ addCriterion("address is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressEqualTo(String value) {
+ addCriterion("address =", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotEqualTo(String value) {
+ addCriterion("address <>", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressGreaterThan(String value) {
+ addCriterion("address >", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressGreaterThanOrEqualTo(String value) {
+ addCriterion("address >=", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLessThan(String value) {
+ addCriterion("address <", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLessThanOrEqualTo(String value) {
+ addCriterion("address <=", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLike(String value) {
+ addCriterion("address like", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotLike(String value) {
+ addCriterion("address not like", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIn(List values) {
+ addCriterion("address in", values, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotIn(List values) {
+ addCriterion("address not in", values, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressBetween(String value1, String value2) {
+ addCriterion("address between", value1, value2, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotBetween(String value1, String value2) {
+ addCriterion("address not between", value1, value2, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomIsNull() {
+ addCriterion("symptom is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomIsNotNull() {
+ addCriterion("symptom is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomEqualTo(String value) {
+ addCriterion("symptom =", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomNotEqualTo(String value) {
+ addCriterion("symptom <>", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomGreaterThan(String value) {
+ addCriterion("symptom >", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomGreaterThanOrEqualTo(String value) {
+ addCriterion("symptom >=", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomLessThan(String value) {
+ addCriterion("symptom <", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomLessThanOrEqualTo(String value) {
+ addCriterion("symptom <=", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomLike(String value) {
+ addCriterion("symptom like", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomNotLike(String value) {
+ addCriterion("symptom not like", value, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomIn(List values) {
+ addCriterion("symptom in", values, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomNotIn(List values) {
+ addCriterion("symptom not in", values, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomBetween(String value1, String value2) {
+ addCriterion("symptom between", value1, value2, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andSymptomNotBetween(String value1, String value2) {
+ addCriterion("symptom not between", value1, value2, "symptom");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenIsNull() {
+ addCriterion("broken is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenIsNotNull() {
+ addCriterion("broken is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenEqualTo(Byte value) {
+ addCriterion("broken =", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenNotEqualTo(Byte value) {
+ addCriterion("broken <>", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenGreaterThan(Byte value) {
+ addCriterion("broken >", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenGreaterThanOrEqualTo(Byte value) {
+ addCriterion("broken >=", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenLessThan(Byte value) {
+ addCriterion("broken <", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenLessThanOrEqualTo(Byte value) {
+ addCriterion("broken <=", value, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenIn(List values) {
+ addCriterion("broken in", values, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenNotIn(List values) {
+ addCriterion("broken not in", values, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenBetween(Byte value1, Byte value2) {
+ addCriterion("broken between", value1, value2, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andBrokenNotBetween(Byte value1, Byte value2) {
+ addCriterion("broken not between", value1, value2, "broken");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNull() {
+ addCriterion("remark is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIsNotNull() {
+ addCriterion("remark is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkEqualTo(String value) {
+ addCriterion("remark =", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotEqualTo(String value) {
+ addCriterion("remark <>", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThan(String value) {
+ addCriterion("remark >", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkGreaterThanOrEqualTo(String value) {
+ addCriterion("remark >=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThan(String value) {
+ addCriterion("remark <", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLessThanOrEqualTo(String value) {
+ addCriterion("remark <=", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkLike(String value) {
+ addCriterion("remark like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotLike(String value) {
+ addCriterion("remark not like", value, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkIn(List values) {
+ addCriterion("remark in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotIn(List values) {
+ addCriterion("remark not in", values, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkBetween(String value1, String value2) {
+ addCriterion("remark between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andRemarkNotBetween(String value1, String value2) {
+ addCriterion("remark not between", value1, value2, "remark");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeIsNull() {
+ addCriterion("plan_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeIsNotNull() {
+ addCriterion("plan_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeEqualTo(Long value) {
+ addCriterion("plan_time =", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeNotEqualTo(Long value) {
+ addCriterion("plan_time <>", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeGreaterThan(Long value) {
+ addCriterion("plan_time >", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("plan_time >=", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeLessThan(Long value) {
+ addCriterion("plan_time <", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeLessThanOrEqualTo(Long value) {
+ addCriterion("plan_time <=", value, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeIn(List values) {
+ addCriterion("plan_time in", values, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeNotIn(List values) {
+ addCriterion("plan_time not in", values, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeBetween(Long value1, Long value2) {
+ addCriterion("plan_time between", value1, value2, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andPlanTimeNotBetween(Long value1, Long value2) {
+ addCriterion("plan_time not between", value1, value2, "planTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeIsNull() {
+ addCriterion("real_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeIsNotNull() {
+ addCriterion("real_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeEqualTo(Long value) {
+ addCriterion("real_time =", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeNotEqualTo(Long value) {
+ addCriterion("real_time <>", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeGreaterThan(Long value) {
+ addCriterion("real_time >", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("real_time >=", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeLessThan(Long value) {
+ addCriterion("real_time <", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeLessThanOrEqualTo(Long value) {
+ addCriterion("real_time <=", value, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeIn(List values) {
+ addCriterion("real_time in", values, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeNotIn(List values) {
+ addCriterion("real_time not in", values, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeBetween(Long value1, Long value2) {
+ addCriterion("real_time between", value1, value2, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andRealTimeNotBetween(Long value1, Long value2) {
+ addCriterion("real_time not between", value1, value2, "realTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNull() {
+ addCriterion("status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIsNotNull() {
+ addCriterion("status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusEqualTo(Byte value) {
+ addCriterion("status =", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotEqualTo(Byte value) {
+ addCriterion("status <>", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThan(Byte value) {
+ addCriterion("status >", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("status >=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThan(Byte value) {
+ addCriterion("status <", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("status <=", value, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusIn(List values) {
+ addCriterion("status in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotIn(List values) {
+ addCriterion("status not in", values, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusBetween(Byte value1, Byte value2) {
+ addCriterion("status between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("status not between", value1, value2, "status");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ 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 Criteria andCollegeNameIsNull() {
+ addCriterion("college_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameIsNotNull() {
+ addCriterion("college_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameEqualTo(String value) {
+ addCriterion("college_name =", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameNotEqualTo(String value) {
+ addCriterion("college_name <>", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameGreaterThan(String value) {
+ addCriterion("college_name >", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameGreaterThanOrEqualTo(String value) {
+ addCriterion("college_name >=", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameLessThan(String value) {
+ addCriterion("college_name <", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameLessThanOrEqualTo(String value) {
+ addCriterion("college_name <=", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameLike(String value) {
+ addCriterion("college_name like", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameNotLike(String value) {
+ addCriterion("college_name not like", value, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameIn(List values) {
+ addCriterion("college_name in", values, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameNotIn(List values) {
+ addCriterion("college_name not in", values, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameBetween(String value1, String value2) {
+ addCriterion("college_name between", value1, value2, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCollegeNameNotBetween(String value1, String value2) {
+ addCriterion("college_name not between", value1, value2, "collegeName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameIsNull() {
+ addCriterion("dormitory_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameIsNotNull() {
+ addCriterion("dormitory_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameEqualTo(String value) {
+ addCriterion("dormitory_name =", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameNotEqualTo(String value) {
+ addCriterion("dormitory_name <>", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameGreaterThan(String value) {
+ addCriterion("dormitory_name >", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameGreaterThanOrEqualTo(String value) {
+ addCriterion("dormitory_name >=", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameLessThan(String value) {
+ addCriterion("dormitory_name <", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameLessThanOrEqualTo(String value) {
+ addCriterion("dormitory_name <=", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameLike(String value) {
+ addCriterion("dormitory_name like", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameNotLike(String value) {
+ addCriterion("dormitory_name not like", value, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameIn(List values) {
+ addCriterion("dormitory_name in", values, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameNotIn(List values) {
+ addCriterion("dormitory_name not in", values, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameBetween(String value1, String value2) {
+ addCriterion("dormitory_name between", value1, value2, "dormitoryName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDormitoryNameNotBetween(String value1, String value2) {
+ addCriterion("dormitory_name not between", value1, value2, "dormitoryName");
+ 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/src/main/java/com/ccsens/delivery/bean/po/StuOrderItem.java b/src/main/java/com/ccsens/delivery/bean/po/StuOrderItem.java
new file mode 100644
index 0000000..6845b7c
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/StuOrderItem.java
@@ -0,0 +1,117 @@
+package com.ccsens.delivery.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class StuOrderItem implements Serializable {
+ private Long id;
+
+ private Long orderId;
+
+ private String name;
+
+ private String specification;
+
+ private Integer num;
+
+ private Long operator;
+
+ 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 Long getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(Long orderId) {
+ this.orderId = orderId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public String getSpecification() {
+ return specification;
+ }
+
+ public void setSpecification(String specification) {
+ this.specification = specification == null ? null : specification.trim();
+ }
+
+ public Integer getNum() {
+ return num;
+ }
+
+ public void setNum(Integer num) {
+ this.num = num;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ 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(", orderId=").append(orderId);
+ sb.append(", name=").append(name);
+ sb.append(", specification=").append(specification);
+ sb.append(", num=").append(num);
+ sb.append(", operator=").append(operator);
+ 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/src/main/java/com/ccsens/delivery/bean/po/StuOrderItemExample.java b/src/main/java/com/ccsens/delivery/bean/po/StuOrderItemExample.java
new file mode 100644
index 0000000..e620d6b
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/StuOrderItemExample.java
@@ -0,0 +1,761 @@
+package com.ccsens.delivery.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class StuOrderItemExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public StuOrderItemExample() {
+ 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 andOrderIdIsNull() {
+ addCriterion("order_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdIsNotNull() {
+ addCriterion("order_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdEqualTo(Long value) {
+ addCriterion("order_id =", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotEqualTo(Long value) {
+ addCriterion("order_id <>", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdGreaterThan(Long value) {
+ addCriterion("order_id >", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("order_id >=", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdLessThan(Long value) {
+ addCriterion("order_id <", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdLessThanOrEqualTo(Long value) {
+ addCriterion("order_id <=", value, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdIn(List values) {
+ addCriterion("order_id in", values, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotIn(List values) {
+ addCriterion("order_id not in", values, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdBetween(Long value1, Long value2) {
+ addCriterion("order_id between", value1, value2, "orderId");
+ return (Criteria) this;
+ }
+
+ public Criteria andOrderIdNotBetween(Long value1, Long value2) {
+ addCriterion("order_id not between", value1, value2, "orderId");
+ 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 andSpecificationIsNull() {
+ addCriterion("specification is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationIsNotNull() {
+ addCriterion("specification is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationEqualTo(String value) {
+ addCriterion("specification =", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationNotEqualTo(String value) {
+ addCriterion("specification <>", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationGreaterThan(String value) {
+ addCriterion("specification >", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationGreaterThanOrEqualTo(String value) {
+ addCriterion("specification >=", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationLessThan(String value) {
+ addCriterion("specification <", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationLessThanOrEqualTo(String value) {
+ addCriterion("specification <=", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationLike(String value) {
+ addCriterion("specification like", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationNotLike(String value) {
+ addCriterion("specification not like", value, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationIn(List values) {
+ addCriterion("specification in", values, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationNotIn(List values) {
+ addCriterion("specification not in", values, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationBetween(String value1, String value2) {
+ addCriterion("specification between", value1, value2, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andSpecificationNotBetween(String value1, String value2) {
+ addCriterion("specification not between", value1, value2, "specification");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIsNull() {
+ addCriterion("num is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIsNotNull() {
+ addCriterion("num is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumEqualTo(Integer value) {
+ addCriterion("num =", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotEqualTo(Integer value) {
+ addCriterion("num <>", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThan(Integer value) {
+ addCriterion("num >", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumGreaterThanOrEqualTo(Integer value) {
+ addCriterion("num >=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThan(Integer value) {
+ addCriterion("num <", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumLessThanOrEqualTo(Integer value) {
+ addCriterion("num <=", value, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumIn(List values) {
+ addCriterion("num in", values, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotIn(List values) {
+ addCriterion("num not in", values, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumBetween(Integer value1, Integer value2) {
+ addCriterion("num between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andNumNotBetween(Integer value1, Integer value2) {
+ addCriterion("num not between", value1, value2, "num");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ 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/src/main/java/com/ccsens/delivery/bean/po/SysArea.java b/src/main/java/com/ccsens/delivery/bean/po/SysArea.java
new file mode 100644
index 0000000..055b08c
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/SysArea.java
@@ -0,0 +1,95 @@
+package com.ccsens.delivery.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class SysArea implements Serializable {
+ private Long id;
+
+ private String name;
+
+ private Byte type;
+
+ private Long operator;
+
+ 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 Byte getType() {
+ return type;
+ }
+
+ public void setType(Byte type) {
+ this.type = type;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ 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(", type=").append(type);
+ sb.append(", operator=").append(operator);
+ 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/src/main/java/com/ccsens/delivery/bean/po/SysAreaExample.java b/src/main/java/com/ccsens/delivery/bean/po/SysAreaExample.java
new file mode 100644
index 0000000..d5cba7f
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/po/SysAreaExample.java
@@ -0,0 +1,631 @@
+package com.ccsens.delivery.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SysAreaExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SysAreaExample() {
+ 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 andTypeIsNull() {
+ addCriterion("type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(Byte value) {
+ addCriterion("type =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(Byte value) {
+ addCriterion("type <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(Byte value) {
+ addCriterion("type >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("type >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(Byte value) {
+ addCriterion("type <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("type <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("type in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("type not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(Byte value1, Byte value2) {
+ addCriterion("type between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("type not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ 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/src/main/java/com/ccsens/delivery/bean/vo/StudentVo.java b/src/main/java/com/ccsens/delivery/bean/vo/StudentVo.java
new file mode 100644
index 0000000..a54d4d3
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/bean/vo/StudentVo.java
@@ -0,0 +1,129 @@
+package com.ccsens.delivery.bean.vo;
+
+import cn.hutool.core.util.StrUtil;
+import com.ccsens.delivery.util.DeliveryConstant;
+import com.ccsens.util.DesensitizedUtils;
+import com.ccsens.util.SymmetricCryptoUtil;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+@Data
+public class StudentVo {
+
+ @Data
+ @ApiModel("返回-学生提价的订单信息")
+ public static class StudentOrder{
+ @ApiModelProperty("订单id")
+ private Long id;
+ @ApiModelProperty("姓名")
+ private String name;
+ @ApiModelProperty("学号")
+ private String stuNum;
+ @ApiModelProperty("联系电话")
+ private String phone;
+ @ApiModelProperty("身份证号")
+ private String idCard;
+ @ApiModelProperty("所在学院Id")
+ private Long collegeId;
+ @ApiModelProperty("所在学院名称")
+ private String collegeName;
+ @ApiModelProperty("所在宿舍Id")
+ private Long dormitoryId;
+ @ApiModelProperty("所在宿舍名称")
+ private String dormitoryName;
+ @ApiModelProperty("详细地址")
+ private String address;
+ @ApiModelProperty("症状描述")
+ private String symptom;
+ @ApiModelProperty("是否断药 0否 1是")
+ private byte broken;
+ @ApiModelProperty("备注")
+ private String remark;
+ @ApiModelProperty("希望配送时间")
+ private Long planTime;
+ @ApiModelProperty("实际配送时间")
+ private Long realTime;
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private byte status;
+ @ApiModelProperty("提交时间")
+ private Long submitTime;
+ @ApiModelProperty("药品信息")
+ private List orderItemList;
+
+ public String getStuNum() {
+ String s = stuNum;
+ if(StrUtil.isNotBlank(stuNum)){
+ String decode = SymmetricCryptoUtil.decode(DeliveryConstant.ENCRYPT_KEY, stuNum);
+ if(StrUtil.isNotBlank(decode)){
+ s = decode;
+ }
+ }
+ return s;
+ }
+
+ public String getPhone() {
+ String s = phone;
+ if(StrUtil.isNotBlank(phone)){
+ String decode = SymmetricCryptoUtil.decode(DeliveryConstant.ENCRYPT_KEY, phone);
+ if(StrUtil.isNotBlank(decode)){
+ s = decode;
+ }
+ }
+ return s;
+ }
+
+ public String getIdCard() {
+ String s = idCard;
+ if(StrUtil.isNotBlank(idCard)){
+ String decode = SymmetricCryptoUtil.decode(DeliveryConstant.ENCRYPT_KEY, idCard);
+ if(StrUtil.isNotBlank(decode)){
+ s = decode;
+ }
+ }
+ return s;
+ }
+ }
+
+ @Data
+ @ApiModel("返回-订单项信息")
+ public static class StudentOrderItem{
+ @ApiModelProperty("订单项id")
+ private Long id;
+ @ApiModelProperty("药品名称")
+ private String name;
+ @ApiModelProperty("药品规格")
+ private String specification;
+ @ApiModelProperty("数量")
+ private int num;
+ }
+
+ @Data
+ @ApiModel("返回-学院或宿舍信息")
+ public static class AreaInfo{
+ @ApiModelProperty("id")
+ private Long id;
+ @ApiModelProperty("名称")
+ private String name;
+ }
+
+ @Data
+ @ApiModel("返回-分页查找订单列表")
+ public static class PageQueryOrder{
+ @ApiModelProperty("订单id")
+ private Long id;
+ @ApiModelProperty("药品名称")
+ private String itemName;
+ @ApiModelProperty("药品种类数量")
+ private int num;
+ @ApiModelProperty("配送状态 0未配送 1已完成 2无药 3撤回")
+ private byte status;
+ @ApiModelProperty("提交时间")
+ private Long submitTime;
+ }
+}
diff --git a/src/main/java/com/ccsens/delivery/persist/dao/StudentDao.java b/src/main/java/com/ccsens/delivery/persist/dao/StudentDao.java
new file mode 100644
index 0000000..1f2b6b7
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/persist/dao/StudentDao.java
@@ -0,0 +1,86 @@
+package com.ccsens.delivery.persist.dao;
+
+import com.ccsens.delivery.bean.dto.StudentDto;
+import com.ccsens.delivery.bean.vo.StudentVo;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+@Repository
+public interface StudentDao {
+
+ /**
+ * 查询学院或宿舍信息
+ */
+ List queryArea(@Param("name") String name, @Param("type") byte type);
+
+ /**
+ * 查询学生自己提交的订单
+ * @param userId userId
+ * @param status 订单状态
+ * @return 返回订单信息
+ */
+ List queryStuOrder(@Param("userId") Long userId, @Param("status") Byte status);
+
+ /**
+ * 分页查找所有的订单信息
+ * @param param 筛选条件
+ * @return 订单信息
+ */
+ List backQueryStuOrder(@Param("param") StudentDto.BackQueryOrder param);
+
+ /**
+ * 通过订单id查找订单项信息
+ * @param orderId 订单id
+ * @return 返回订单项信息
+ */
+ List queryItemByOrderId(@Param("orderId")Long orderId);
+
+ /**
+ * 批量修改订单的状态
+ * @param orderIdList 订单id
+ * @param status 状态
+ */
+ void updateStatusById(@Param("orderIdList")List orderIdList, @Param("status") Byte status);
+
+ /**
+ * 导出excel表格时根据条件查询订单信息
+ * @param param 筛选条件
+ * @return 返回订单信息
+ */
+ List queryExportOrder(@Param("param")StudentDto.BackQueryOrder param);
+
+ /**
+ * 查找当前用户最后一条订单
+ * @param userId userId
+ * @return 返回订单信息
+ */
+ StudentVo.StudentOrder queryStuOrderNew(@Param("userId")Long userId);
+
+ /**
+ * 根据id查找订单信息
+ * @param userId userId
+ * @param orderId 订单id
+ * @return 返回订单信息
+ */
+ StudentVo.StudentOrder queryStuOrderById(@Param("userId")Long userId,@Param("orderId") Long orderId);
+
+ /**
+ * 分页查找用户提交的订单列表(简要信息)
+ * @param userId useId
+ * @param status 订单状态
+ * @return 返回
+ */
+ List pageQueryStuOrder(@Param("userId")Long userId,@Param("status") Byte status);
+
+ /**
+ * 查找用户最新的一条记录
+ * @param userId userID
+ * @return 返回订单id
+ */
+ Long getNewOrderByUserId(@Param("userId")Long userId);
+}
diff --git a/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderItemMapper.java b/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderItemMapper.java
new file mode 100644
index 0000000..8cce682
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderItemMapper.java
@@ -0,0 +1,30 @@
+package com.ccsens.delivery.persist.mapper;
+
+import com.ccsens.delivery.bean.po.StuOrderItem;
+import com.ccsens.delivery.bean.po.StuOrderItemExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface StuOrderItemMapper {
+ long countByExample(StuOrderItemExample example);
+
+ int deleteByExample(StuOrderItemExample example);
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(StuOrderItem record);
+
+ int insertSelective(StuOrderItem record);
+
+ List selectByExample(StuOrderItemExample example);
+
+ StuOrderItem selectByPrimaryKey(Long id);
+
+ int updateByExampleSelective(@Param("record") StuOrderItem record, @Param("example") StuOrderItemExample example);
+
+ int updateByExample(@Param("record") StuOrderItem record, @Param("example") StuOrderItemExample example);
+
+ int updateByPrimaryKeySelective(StuOrderItem record);
+
+ int updateByPrimaryKey(StuOrderItem record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderMapper.java b/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderMapper.java
new file mode 100644
index 0000000..83c56d8
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/persist/mapper/StuOrderMapper.java
@@ -0,0 +1,30 @@
+package com.ccsens.delivery.persist.mapper;
+
+import com.ccsens.delivery.bean.po.StuOrder;
+import com.ccsens.delivery.bean.po.StuOrderExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface StuOrderMapper {
+ long countByExample(StuOrderExample example);
+
+ int deleteByExample(StuOrderExample example);
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(StuOrder record);
+
+ int insertSelective(StuOrder record);
+
+ List selectByExample(StuOrderExample example);
+
+ StuOrder selectByPrimaryKey(Long id);
+
+ int updateByExampleSelective(@Param("record") StuOrder record, @Param("example") StuOrderExample example);
+
+ int updateByExample(@Param("record") StuOrder record, @Param("example") StuOrderExample example);
+
+ int updateByPrimaryKeySelective(StuOrder record);
+
+ int updateByPrimaryKey(StuOrder record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/ccsens/delivery/persist/mapper/SysAreaMapper.java b/src/main/java/com/ccsens/delivery/persist/mapper/SysAreaMapper.java
new file mode 100644
index 0000000..5201265
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/persist/mapper/SysAreaMapper.java
@@ -0,0 +1,30 @@
+package com.ccsens.delivery.persist.mapper;
+
+import com.ccsens.delivery.bean.po.SysArea;
+import com.ccsens.delivery.bean.po.SysAreaExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface SysAreaMapper {
+ long countByExample(SysAreaExample example);
+
+ int deleteByExample(SysAreaExample example);
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(SysArea record);
+
+ int insertSelective(SysArea record);
+
+ List selectByExample(SysAreaExample example);
+
+ SysArea selectByPrimaryKey(Long id);
+
+ int updateByExampleSelective(@Param("record") SysArea record, @Param("example") SysAreaExample example);
+
+ int updateByExample(@Param("record") SysArea record, @Param("example") SysAreaExample example);
+
+ int updateByPrimaryKeySelective(SysArea record);
+
+ int updateByPrimaryKey(SysArea record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/ccsens/delivery/service/IStudentService.java b/src/main/java/com/ccsens/delivery/service/IStudentService.java
new file mode 100644
index 0000000..3c3859f
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/service/IStudentService.java
@@ -0,0 +1,90 @@
+package com.ccsens.delivery.service;
+
+import com.ccsens.delivery.bean.dto.StudentDto;
+import com.ccsens.delivery.bean.vo.StudentVo;
+import com.github.pagehelper.PageInfo;
+
+import java.io.FileNotFoundException;
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+public interface IStudentService {
+
+ /**
+ * 查询当前用户提交的订单信息
+ * @param userId userId
+ * @param param 订单状态
+ * @return 订单信息
+ */
+ List queryStuOrder(Long userId, StudentDto.QueryStuList param);
+
+ /**
+ * 查询学院或宿舍信息
+ * @param userId userId
+ * @param param 筛选条件
+ * @return 返回宿舍或学院列表
+ */
+ List queryArea(Long userId, StudentDto.QueryArea param);
+
+ /**
+ * 提交订单
+ * @param userId userId
+ * @param param 订单信息
+ */
+ void submitOrder(Long userId, StudentDto.SubmitOrder param);
+
+ /**
+ * 后台分页查找
+ * @param userId userId
+ * @param param 筛选条件和分页信息
+ * @return 返回订单信息
+ */
+ PageInfo backQueryStuOrder(Long userId, StudentDto.BackQueryOrder param);
+
+ /**
+ * 修改订单状态
+ * @param userId userId
+ * @param param 订单id和状态
+ */
+ void updateOrderStatus(Long userId, StudentDto.UpdateOrderStatus param);
+
+ /**
+ * 导出excel表格
+ * @param userId userId
+ * @param param 筛选条件
+ * @return 返回表格路径
+ */
+ String exportExcel(Long userId, StudentDto.BackQueryOrder param) throws Exception;
+
+ /**
+ * 查找当前用户最新一条订单信息
+ * @param userId userId
+ * @return 最新的订单信息
+ */
+ StudentVo.StudentOrder queryStuOrderNew(Long userId);
+
+ /**
+ * 根据id查找订单信息
+ * @param userId userID
+ * @param param 订单id
+ * @return 返回订单信息
+ */
+ StudentVo.StudentOrder queryStuOrderById(Long userId, StudentDto.OrderId param);
+
+ /**
+ * 分页查找用户提交的订单列表(简要信息)
+ * @param userId useId
+ * @param param 分页信息
+ * @return 返回
+ */
+ PageInfo pageQueryStuOrder(Long userId, StudentDto.PageQueryStuList param);
+
+ /**
+ * 用户撤回订单
+ * @param userId userId
+ * @param param 订单id
+ */
+ void revocationOrder(Long userId, StudentDto.OrderId param);
+}
diff --git a/src/main/java/com/ccsens/delivery/service/StudentService.java b/src/main/java/com/ccsens/delivery/service/StudentService.java
new file mode 100644
index 0000000..3864e06
--- /dev/null
+++ b/src/main/java/com/ccsens/delivery/service/StudentService.java
@@ -0,0 +1,308 @@
+package com.ccsens.delivery.service;
+
+import cn.hutool.core.bean.BeanUtil;
+import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.lang.Snowflake;
+import cn.hutool.core.util.IdcardUtil;
+import cn.hutool.core.util.ObjectUtil;
+import cn.hutool.core.util.StrUtil;
+import com.alibaba.fastjson.JSONObject;
+import com.ccsens.delivery.bean.dto.StudentDto;
+import com.ccsens.delivery.bean.po.StuOrder;
+import com.ccsens.delivery.bean.po.StuOrderItem;
+import com.ccsens.delivery.bean.po.SysArea;
+import com.ccsens.delivery.bean.vo.StudentVo;
+import com.ccsens.delivery.persist.dao.StudentDao;
+import com.ccsens.delivery.persist.mapper.StuOrderItemMapper;
+import com.ccsens.delivery.persist.mapper.StuOrderMapper;
+import com.ccsens.delivery.persist.mapper.SysAreaMapper;
+import com.ccsens.delivery.util.DeliveryCodeError;
+import com.ccsens.delivery.util.DeliveryConstant;
+import com.ccsens.util.*;
+import com.ccsens.util.exception.BaseException;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.OutputStream;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+@Slf4j
+@Service
+@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
+public class StudentService implements IStudentService {
+
+ @Resource
+ private StudentDao studentDao;
+ @Resource
+ private SysAreaMapper sysAreaMapper;
+ @Resource
+ private Snowflake snowflake;
+ @Resource
+ private StuOrderMapper stuOrderMapper;
+ @Resource
+ private StuOrderItemMapper stuOrderItemMapper;
+ @Resource
+ private RedisUtil redisUtil;
+
+ @Override
+ public List queryStuOrder(Long userId, StudentDto.QueryStuList param) {
+ return studentDao.queryStuOrder(userId,param.getStatus());
+ }
+
+ @Override
+ public StudentVo.StudentOrder queryStuOrderNew(Long userId) {
+ //查找最新的一条记录
+ Long orderId = studentDao.getNewOrderByUserId(userId);
+ return studentDao.queryStuOrderById(userId,orderId);
+ }
+
+ @Override
+ public StudentVo.StudentOrder queryStuOrderById(Long userId, StudentDto.OrderId param) {
+ return studentDao.queryStuOrderById(userId,param.getId());
+ }
+
+ @Override
+ public PageInfo pageQueryStuOrder(Long userId, StudentDto.PageQueryStuList param) {
+ PageHelper.startPage(param.getPageNum(),param.getPageSize());
+ List pageQueryOrders = studentDao.pageQueryStuOrder(userId, param.getStatus());
+ return new PageInfo<>(pageQueryOrders);
+ }
+
+ @Override
+ public List queryArea(Long userId, StudentDto.QueryArea param) {
+ return studentDao.queryArea(param.getName(),param.getType());
+ }
+
+ @Override
+ public void submitOrder(Long userId, StudentDto.SubmitOrder param) {
+ //身份证
+ if(StrUtil.isBlank(param.getIdCard()) || !IdcardUtil.isValidCard(param.getIdCard())){
+ throw new BaseException(DeliveryCodeError.ID_CARD_ERROR);
+ }
+ //获取对象的MD5值
+ String paramMd5 = Md5Util.stringTo(JSONObject.toJSONString(param));
+ synchronized (this){
+// //检查redis内是否有相同的信息
+ String key = userId + paramMd5;
+ Object o = redisUtil.get(key);
+ if(ObjectUtil.isNotNull(o)){
+ throw new BaseException(DeliveryCodeError.REPEAT_SUBMIT);
+ }
+ redisUtil.set(key,JSONObject.toJSONString(param),60 * 30);
+ }
+
+ //添加订单信息
+ StuOrder stuOrder = new StuOrder();
+ BeanUtil.copyProperties(param,stuOrder);
+ stuOrder.setId(snowflake.nextId());
+ stuOrder.setUserId(userId);
+ String stuNum = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,param.getStuNum());
+ stuOrder.setStuNum(stuNum == null ? param.getStuNum() : stuNum);
+ String phone = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,param.getPhone());
+ stuOrder.setPhone(phone == null ? param.getPhone() : phone);
+ String idCard = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,param.getIdCard());
+ stuOrder.setIdCard(idCard == null ? param.getIdCard() : idCard);
+ stuOrderMapper.insertSelective(stuOrder);
+ //添加订单项信息
+ if(CollectionUtil.isNotEmpty(param.getOrderItemList())){
+ param.getOrderItemList().forEach(orderItem -> {
+ StuOrderItem stuOrderItem = new StuOrderItem();
+ BeanUtil.copyProperties(orderItem,stuOrderItem);
+ stuOrderItem.setId(snowflake.nextId());
+ stuOrderItem.setOrderId(stuOrder.getId());
+ stuOrderItemMapper.insertSelective(stuOrderItem);
+ });
+ }
+ }
+
+ @Override
+ public PageInfo backQueryStuOrder(Long userId, StudentDto.BackQueryOrder param) {
+ //根据条件查询所有的订单
+ PageHelper.startPage(param.getPageNum(),param.getPageSize());
+ List studentOrderList = studentDao.backQueryStuOrder(param);
+ //循环查找每个订单的订单项
+ if(CollectionUtil.isNotEmpty(studentOrderList)){
+ studentOrderList.forEach(studentOrder -> {
+ List orderItemList = studentDao.queryItemByOrderId(studentOrder.getId());
+ if(CollectionUtil.isNotEmpty(orderItemList)){
+ studentOrder.setOrderItemList(orderItemList);
+ }
+ });
+ }
+ return new PageInfo<>(studentOrderList);
+ }
+
+ @Override
+ public void updateOrderStatus(Long userId, StudentDto.UpdateOrderStatus param) {
+ //修改订单的完成状态
+ if(ObjectUtil.isNotNull(param) && CollectionUtil.isNotEmpty(param.getOrderIdList())){
+ studentDao.updateStatusById(param.getOrderIdList(),param.getStatus());
+ }
+ }
+
+ @Override
+ public void revocationOrder(Long userId, StudentDto.OrderId param) {
+ //查找订单
+ StuOrder stuOrder = stuOrderMapper.selectByPrimaryKey(param.getId());
+ if(ObjectUtil.isNull(stuOrder)){
+ throw new BaseException(DeliveryCodeError.NOT_ORDER);
+ }
+ if(!stuOrder.getUserId().equals(userId)){
+ throw new BaseException(DeliveryCodeError.NOT_ORDER_POWER);
+ }
+ if(stuOrder.getStatus() == 1 || stuOrder.getStatus() == 3){
+ throw new BaseException(DeliveryCodeError.NOT_ORDER_POWER);
+ }
+ StuOrder order = new StuOrder();
+ order.setId(stuOrder.getId());
+ order.setStatus((byte) 3);
+ stuOrderMapper.updateByPrimaryKeySelective(order);
+ }
+
+ @Override
+ public String exportExcel(Long userId, StudentDto.BackQueryOrder param) throws Exception {
+ //查找数据
+ List studentOrderList = studentDao.queryExportOrder(param);
+ //生成导入的数据
+ List> list = generateCellList(studentOrderList);
+ XSSFWorkbook wb = new XSSFWorkbook();
+ PoiUtil.exportWB("学员药品订单表", list, wb);
+ log.info("学员药品订单表");
+ //生成文件
+ //山西大学在校学生急需药品登记表_20220409090411
+ String fileName = "exportExcel/" + DateUtil.today() + "/山西大学在校学生急需药品登记表_" + System.currentTimeMillis() + ".xlsx";
+ String path = PropUtil.path + fileName;
+ File tmpFile = new File(path);
+ if (!tmpFile.getParentFile().exists()) {
+ tmpFile.getParentFile().mkdirs();
+ }
+ log.info("生成流");
+ OutputStream stream = new FileOutputStream(tmpFile);
+ log.info("写入wbs");
+ wb.write(stream);
+ stream.close();
+ wb.close();
+ return PropUtil.imgDomain + "/" + fileName;
+ }
+
+ /**
+ * 生成导入数据
+ * @param studentOrderList 查询的订单信息
+ * @return 返回导入表和
+ */
+ private List> generateCellList(List studentOrderList) {
+ List> list = new ArrayList<>();
+ //添加表头
+ List header = new ArrayList<>();
+ header.add(new PoiUtil.PoiUtilCell("序号"));
+ header.add(new PoiUtil.PoiUtilCell("姓名"));
+ header.add(new PoiUtil.PoiUtilCell("学号"));
+ header.add(new PoiUtil.PoiUtilCell("手机号"));
+// header.add(new PoiUtil.PoiUtilCell("身份证号"));
+ header.add(new PoiUtil.PoiUtilCell("所在学院名"));
+ header.add(new PoiUtil.PoiUtilCell("所在宿舍名"));
+ header.add(new PoiUtil.PoiUtilCell("详细地址"));
+// header.add(new PoiUtil.PoiUtilCell("症状描述"));
+// header.add(new PoiUtil.PoiUtilCell("是否断药"));
+// header.add(new PoiUtil.PoiUtilCell("备注"));
+// header.add(new PoiUtil.PoiUtilCell("希望配送时间"));
+// header.add(new PoiUtil.PoiUtilCell("配送状态"));
+// header.add(new PoiUtil.PoiUtilCell("实际配送时间"));
+ header.add(new PoiUtil.PoiUtilCell("药品名称"));
+ header.add(new PoiUtil.PoiUtilCell("药品规格"));
+ header.add(new PoiUtil.PoiUtilCell("数量"));
+// header.add(new PoiUtil.PoiUtilCell("订单提交时间"));
+ list.add(header);
+ //时间格式
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
+ //序号
+ int sort = 1;
+ if(CollectionUtil.isNotEmpty(studentOrderList)){
+ for (StudentVo.StudentOrder studentOrder : studentOrderList) {
+ if (CollectionUtil.isNotEmpty(studentOrder.getOrderItemList())) {
+ int size = studentOrder.getOrderItemList().size();
+ for (int j = 0; j < size; j++) {
+ List order = new ArrayList<>();
+ StudentVo.StudentOrderItem studentOrderItem = studentOrder.getOrderItemList().get(j);
+ if (j == 0) {
+ order.add(new PoiUtil.PoiUtilCell((sort++) + "", 1, size));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getName(), 1, size));
+ order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getStuNum(), 1, size));
+ order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getPhone(), 1, size));
+// order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getIdCard(), 1, size));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getCollegeName(), 1, size));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getDormitoryName(), 1, size));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getAddress(), 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getSymptom(), 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getBroken() == 0 ? "否" : "是", 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getRemark(), 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getPlanTime() == null || studentOrder.getPlanTime() == 0 ? "" : sdf.format(new Date(studentOrder.getPlanTime())), 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getStatus() == 0 ? "未配送" : (studentOrder.getStatus() == 1 ? "已送达" : "无药 "), 1, size));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getRealTime() == null || studentOrder.getRealTime() == 0 ? "" : sdf.format(new Date(studentOrder.getRealTime())), 1, size));
+ } else {
+ order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+ order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+// order.add(new PoiUtil.PoiUtilCell());
+ }
+ order.add(new PoiUtil.PoiUtilCell(studentOrderItem.getName()));
+ order.add(new PoiUtil.PoiUtilCell(studentOrderItem.getSpecification()));
+ order.add(new PoiUtil.PoiUtilCell(studentOrderItem.getNum() + ""));
+// if (j == 0) {
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getSubmitTime() == null || studentOrder.getSubmitTime() == 0 ? "" : sdf.format(new Date(studentOrder.getSubmitTime())), 1, size));
+// }else {
+// order.add(new PoiUtil.PoiUtilCell());
+// }
+ list.add(order);
+ }
+ } else {
+ //如果没有药品信息,直接添加一行学生信息
+ List order = new ArrayList<>();
+ order.add(new PoiUtil.PoiUtilCell((sort++) + ""));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getName()));
+ order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getStuNum()));
+ order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getPhone()));
+// order.add(new PoiUtil.PoiUtilCell("'" + studentOrder.getIdCard()));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getCollegeName()));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getDormitoryName()));
+ order.add(new PoiUtil.PoiUtilCell(studentOrder.getAddress()));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getSymptom()));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getBroken() == 0 ? "否" : "是"));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getRemark()));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getPlanTime() == null || studentOrder.getPlanTime() == 0 ? "" : sdf.format(new Date(studentOrder.getPlanTime()))));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getStatus() == 0 ? "未配送" : (studentOrder.getStatus() == 1 ? "已送达" : "无药 ")));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getRealTime() == null || studentOrder.getRealTime() == 0 ? "" : sdf.format(new Date(studentOrder.getRealTime()))));
+// order.add(new PoiUtil.PoiUtilCell(studentOrder.getSubmitTime() == null || studentOrder.getSubmitTime() == 0 ? "" : sdf.format(new Date(studentOrder.getSubmitTime()))));
+ list.add(order);
+ }
+ }
+ }
+ return list;
+ }
+}
diff --git a/src/main/java/com/ccsens/delivery/service/UserService.java b/src/main/java/com/ccsens/delivery/service/UserService.java
index 1324444..a5f82be 100644
--- a/src/main/java/com/ccsens/delivery/service/UserService.java
+++ b/src/main/java/com/ccsens/delivery/service/UserService.java
@@ -30,6 +30,7 @@ import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
@@ -239,12 +240,13 @@ public class UserService implements IUserService {
*/
@Override
public UserVo.TokenBean generateToken(Long userId, Object authId) {
- Map payLoads = CollectionUtil.newHashMap();
+// Map payLoads = CollectionUtil.newHashMap();
+ Map payLoads = new HashMap<>();
payLoads.put(WebConstant.PARAMETER_KEY_TOKEN_AUTH_ID, String.valueOf(authId));
UserVo.TokenBean tokenBean = new UserVo.TokenBean();
//生成过期时间
- long tokenExpired = 3600 * 1000L * 2;
+ long tokenExpired = 3600 * 1000L * 24;
long refreshTokenExpired = 3600 * 1000L * 24 * 30;
//1.生成token并缓存
@@ -322,65 +324,65 @@ public class UserService implements IUserService {
return userSignVo;
}
- /**
- * 微信登陆
- * @param code 微信code
- * @return 返回用户信息
- */
- private UserVo.UserSign wxLogin(WebConstant.IDENTIFY_TYPE identifyType, String code) {
- UserVo.UserSign userSignVo;
- //获取微信信息并保存
- log.info("公众号登陆,{}", code);
- WxOauth2UserInfo wxOauth2UserInfo = WxGzhUtil.getOauth2UserInfo(identifyType, code);
- log.info("获取用户的微信信息,{}", wxOauth2UserInfo);
- SysAuth theAuth;
- if (ObjectUtil.isNull(wxOauth2UserInfo)) {
- throw new BaseException(CodeEnum.NOT_SELECT_WX);
- }
- SysAuthExample authExample = new SysAuthExample();
- authExample.createCriteria().andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.OAUTH2_Wx.value)
- .andIdentifierEqualTo(wxOauth2UserInfo.getOpenId()).andCredentialEqualTo(wxOauth2UserInfo.getUnionId());
- List authList = sysAuthDao.selectByExample(authExample);
- if (CollectionUtil.isNotEmpty(authList)) {
- theAuth = authList.get(0);
- log.info("该用户已有微信登录的auth信息,{}", theAuth);
- } else {
- SysAuthExample sysAuthExample = new SysAuthExample();
- sysAuthExample.createCriteria().andCredentialEqualTo(wxOauth2UserInfo.getUnionId());
- List sysAuthList = sysAuthDao.selectByExample(sysAuthExample);
- if (CollectionUtil.isNotEmpty(sysAuthList)) {
- //添加认证方式
- theAuth = new SysAuth();
- theAuth.setId(snowflake.nextId());
- theAuth.setUserId(sysAuthList.get(0).getUserId());
- } else {
- //新建用户并保存微信信息
- SysUser user = new SysUser();
- user.setId(snowflake.nextId());
- user.setAvatarUrl(wxOauth2UserInfo.getHeadImgUrl());
- user.setName(wxOauth2UserInfo.getNickname());
- user.setGender((byte) wxOauth2UserInfo.getSex());
- user.setCountry(wxOauth2UserInfo.getCountry());
- user.setProvince(wxOauth2UserInfo.getProvince());
- user.setCity(wxOauth2UserInfo.getCity());
- sysUserDao.insertSelective(user);
- //添加认证方式
- theAuth = new SysAuth();
- theAuth.setId(snowflake.nextId());
- theAuth.setUserId(user.getId());
- }
- theAuth.setIdentifyType((byte) WebConstant.IDENTIFY_TYPE.OAUTH2_Wx.value);
- theAuth.setIdentifier(wxOauth2UserInfo.getOpenId());
- theAuth.setCredential(wxOauth2UserInfo.getUnionId());
- sysAuthDao.insertSelective(theAuth);
- }
- //2.返回
- userSignVo = new UserVo.UserSign();
- userSignVo.setUserId(theAuth.getUserId());
- userSignVo.setAuthId(theAuth.getId());
- log.info("认证成功返回:{}", userSignVo);
- return userSignVo;
- }
+// /**
+// * 微信登陆
+// * @param code 微信code
+// * @return 返回用户信息
+// */
+// private UserVo.UserSign wxLogin(WebConstant.IDENTIFY_TYPE identifyType, String code) {
+// UserVo.UserSign userSignVo;
+// //获取微信信息并保存
+// log.info("公众号登陆,{}", code);
+// WxOauth2UserInfo wxOauth2UserInfo = WxGzhUtil.getOauth2UserInfo(identifyType, code);
+// log.info("获取用户的微信信息,{}", wxOauth2UserInfo);
+// SysAuth theAuth;
+// if (ObjectUtil.isNull(wxOauth2UserInfo)) {
+// throw new BaseException(CodeEnum.NOT_SELECT_WX);
+// }
+// SysAuthExample authExample = new SysAuthExample();
+// authExample.createCriteria().andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.OAUTH2_Wx.value)
+// .andIdentifierEqualTo(wxOauth2UserInfo.getOpenId()).andCredentialEqualTo(wxOauth2UserInfo.getUnionId());
+// List authList = sysAuthDao.selectByExample(authExample);
+// if (CollectionUtil.isNotEmpty(authList)) {
+// theAuth = authList.get(0);
+// log.info("该用户已有微信登录的auth信息,{}", theAuth);
+// } else {
+// SysAuthExample sysAuthExample = new SysAuthExample();
+// sysAuthExample.createCriteria().andCredentialEqualTo(wxOauth2UserInfo.getUnionId());
+// List sysAuthList = sysAuthDao.selectByExample(sysAuthExample);
+// if (CollectionUtil.isNotEmpty(sysAuthList)) {
+// //添加认证方式
+// theAuth = new SysAuth();
+// theAuth.setId(snowflake.nextId());
+// theAuth.setUserId(sysAuthList.get(0).getUserId());
+// } else {
+// //新建用户并保存微信信息
+// SysUser user = new SysUser();
+// user.setId(snowflake.nextId());
+// user.setAvatarUrl(wxOauth2UserInfo.getHeadImgUrl());
+// user.setName(wxOauth2UserInfo.getNickname());
+// user.setGender((byte) wxOauth2UserInfo.getSex());
+// user.setCountry(wxOauth2UserInfo.getCountry());
+// user.setProvince(wxOauth2UserInfo.getProvince());
+// user.setCity(wxOauth2UserInfo.getCity());
+// sysUserDao.insertSelective(user);
+// //添加认证方式
+// theAuth = new SysAuth();
+// theAuth.setId(snowflake.nextId());
+// theAuth.setUserId(user.getId());
+// }
+// theAuth.setIdentifyType((byte) WebConstant.IDENTIFY_TYPE.OAUTH2_Wx.value);
+// theAuth.setIdentifier(wxOauth2UserInfo.getOpenId());
+// theAuth.setCredential(wxOauth2UserInfo.getUnionId());
+// sysAuthDao.insertSelective(theAuth);
+// }
+// //2.返回
+// userSignVo = new UserVo.UserSign();
+// userSignVo.setUserId(theAuth.getUserId());
+// userSignVo.setAuthId(theAuth.getId());
+// log.info("认证成功返回:{}", userSignVo);
+// return userSignVo;
+// }
/**
@@ -602,7 +604,8 @@ public class UserService implements IUserService {
throw new BaseException(DeliveryCodeError.NOT_REFRESH_TOKEN);
}
//重新生成token
- Map payLoads = CollectionUtil.newHashMap();
+// Map payLoads = CollectionUtil.newHashMap();
+ Map payLoads = new HashMap<>();
payLoads.put(WebConstant.PARAMETER_KEY_TOKEN_AUTH_ID, String.valueOf(authId));
//生成过期时间
long tokenExpired = 3600 * 1000L * 2;
@@ -687,26 +690,27 @@ public class UserService implements IUserService {
if (ObjectUtil.isNull(user)) {
throw new BaseException(CodeEnum.NOT_USER);
}
-
- if (StrUtil.isNotEmpty(userInfo.getNickname())) {
- user.setName(userInfo.getNickname());
- }
- if (StrUtil.isNotEmpty(userInfo.getHeadImgUrl())) {
- user.setAvatarUrl(userInfo.getHeadImgUrl());
- }
- if (ObjectUtil.isNotNull(userInfo.getSex())) {
- user.setGender(userInfo.getSex());
- }
- if (StrUtil.isNotEmpty(userInfo.getCountry())) {
- user.setCountry(userInfo.getCountry());
- }
- if (StrUtil.isNotEmpty(userInfo.getProvince())) {
- user.setProvince(userInfo.getProvince());
- }
- if (StrUtil.isNotEmpty(userInfo.getCity())) {
- user.setCity(userInfo.getCity());
+ if(ObjectUtil.isNotNull(userInfo)){
+ if (StrUtil.isNotEmpty(userInfo.getNickname())) {
+ user.setName(userInfo.getNickname());
+ }
+ if (StrUtil.isNotEmpty(userInfo.getHeadImgUrl())) {
+ user.setAvatarUrl(userInfo.getHeadImgUrl());
+ }
+ if (ObjectUtil.isNotNull(userInfo.getSex())) {
+ user.setGender(userInfo.getSex());
+ }
+ if (StrUtil.isNotEmpty(userInfo.getCountry())) {
+ user.setCountry(userInfo.getCountry());
+ }
+ if (StrUtil.isNotEmpty(userInfo.getProvince())) {
+ user.setProvince(userInfo.getProvince());
+ }
+ if (StrUtil.isNotEmpty(userInfo.getCity())) {
+ user.setCity(userInfo.getCity());
+ }
+ sysUserDao.updateByPrimaryKeySelective(user);
}
- sysUserDao.updateByPrimaryKeySelective(user);
//返回信息
UserVo.TokenBean tokenBean = new UserVo.TokenBean();
tokenBean.setId(user.getId());
diff --git a/src/main/java/com/ccsens/delivery/util/DeliveryCodeError.java b/src/main/java/com/ccsens/delivery/util/DeliveryCodeError.java
index eb8548f..6a8805e 100644
--- a/src/main/java/com/ccsens/delivery/util/DeliveryCodeError.java
+++ b/src/main/java/com/ccsens/delivery/util/DeliveryCodeError.java
@@ -14,6 +14,12 @@ public class DeliveryCodeError extends CodeError {
public static final Code NOT_PHONE = new Code(503,"手机号不能为空",true);
public static final Code NOT_SMS_CODE = new Code(504,"请填写手机号验证码",true);
public static final Code ERROR_SEND_TOO_FAST = new Code(505,"60秒内只能发送一次,请稍后再试",false);
- public static final Code NOT_BUSINESS = new Code(506,"业务信息异常",true);
+ public static final Code NOT_COLLEGE = new Code(506,"学院不存在",true);
+ public static final Code NOT_DORMITORY = new Code(507,"宿舍不存在",true);
+ public static final Code NOT_ORDER = new Code(508,"订单不存在",true);
+ public static final Code NOT_ORDER_POWER = new Code(508,"该订单无法操作",true);
+ public static final Code REPEAT_SUBMIT = new Code(509,"请勿重复提交订单",true);
+ public static final Code ID_CARD_ERROR = new Code(509,"请输入正确的身份证号",true);
+
}
diff --git a/src/main/java/com/ccsens/delivery/util/DeliveryConstant.java b/src/main/java/com/ccsens/delivery/util/DeliveryConstant.java
index 564c4b2..a5a2106 100644
--- a/src/main/java/com/ccsens/delivery/util/DeliveryConstant.java
+++ b/src/main/java/com/ccsens/delivery/util/DeliveryConstant.java
@@ -12,9 +12,9 @@ public class DeliveryConstant {
public static final String SMS_CODE = "1";
/**默认公众号appId*/
- public static final String DEFAULT_APP_ID = "wxb3be21dcd7912555";
+ public static final String DEFAULT_APP_ID = "wx70b21ff9d353189f";
/**默认公众号secret*/
- public static final String DEFAULT_SECRET = "9213776254878a8065f1a29d1f58a02c";
+ public static final String DEFAULT_SECRET = "4ff1911d3a50c66cced890ac9fa74dd1";
/**图片类型*/
public static final String FILE_TYPE_IMG = "bmp,jpg,jpeg,png,tif,gif,pcx,tga,exif,fpx,svg,psd,cdr,pcd,dxf,ufo,eps,ai,raw,WMF,webp";
@@ -28,6 +28,8 @@ public class DeliveryConstant {
public static final String STRING_REGEX = ",|,|;|;|、|/";
+ /**身份信息加密*/
+ public static final String ENCRYPT_KEY = "nzYM1LARgQ/7cKZY1Rm15A==";
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 5e75a83..1d2927b 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -7,6 +7,18 @@ spring:
name: delivery
datasource:
type: com.alibaba.druid.pool.DruidDataSource
+ redis:
+ database: 0
+ host: 127.0.0.1
+ jedis:
+ pool:
+ max-active: 200
+ max-idle: 10
+ max-wait: -1ms
+ min-idle: 0
+ password: 'areowqr!@43ef'
+ port: 6379
+ timeout: 1000ms
swagger:
enable: true
@@ -14,6 +26,3 @@ file:
path: /home/cloud/delivery/server/uploads/
domain: https://www.tall.wiki/delivery/v1.0/
imgDomain: https://www.tall.wiki/delivery/v1.0/uploads/
-url:
- token: http://101.201.226.163/gateway/ptostall/users/token
- subscriptWx: http://101.201.226.163/gateway/ptostall/wx/officialId
\ No newline at end of file
diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index b08f9e0..0bb97e6 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -14,6 +14,3 @@ file:
path: /home/cloud/delivery/server/uploads/
domain: http://test.tall.wiki/delivery/v1.0/
imgDomain: http://test.tall.wiki/delivery/v1.0/uploads/
-url:
- token: http://101.201.226.163/gateway/ptostall/users/token
- subscriptWx: http://101.201.226.163/gateway/ptostall/wx/officialId
\ No newline at end of file
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 0ee65bb..d7b5c1e 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,4 +1,4 @@
spring:
profiles:
- active: test
+ active: prod
include: common
diff --git a/src/main/resources/druid-prod.yml b/src/main/resources/druid-prod.yml
index e4eb34f..8a78b21 100644
--- a/src/main/resources/druid-prod.yml
+++ b/src/main/resources/druid-prod.yml
@@ -15,7 +15,7 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
- password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
+ password:
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
diff --git a/src/main/resources/mapper_dao/StudentDao.xml b/src/main/resources/mapper_dao/StudentDao.xml
new file mode 100644
index 0000000..bac9a1e
--- /dev/null
+++ b/src/main/resources/mapper_dao/StudentDao.xml
@@ -0,0 +1,352 @@
+
+
+
+
+ UPDATE
+ t_stu_order
+ set
+ `status` = #{status}
+ WHERE
+ rec_status = 0
+ and `status` != 1
+ and `status` != 3
+ and id in
+
+ #{item}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper_raw/StuOrderItemMapper.xml b/src/main/resources/mapper_raw/StuOrderItemMapper.xml
new file mode 100644
index 0000000..1ad6dcb
--- /dev/null
+++ b/src/main/resources/mapper_raw/StuOrderItemMapper.xml
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, order_id, name, specification, num, operator, created_at, updated_at, rec_status
+
+
+
+
+ delete from t_stu_order_item
+ where id = #{id,jdbcType=BIGINT}
+
+
+ delete from t_stu_order_item
+
+
+
+
+
+ insert into t_stu_order_item (id, order_id, name,
+ specification, num, operator,
+ created_at, updated_at, rec_status
+ )
+ values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
+ #{specification,jdbcType=VARCHAR}, #{num,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT},
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
+ )
+
+
+ insert into t_stu_order_item
+
+
+ id,
+
+
+ order_id,
+
+
+ name,
+
+
+ specification,
+
+
+ num,
+
+
+ operator,
+
+
+ created_at,
+
+
+ updated_at,
+
+
+ rec_status,
+
+
+
+
+ #{id,jdbcType=BIGINT},
+
+
+ #{orderId,jdbcType=BIGINT},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{specification,jdbcType=VARCHAR},
+
+
+ #{num,jdbcType=INTEGER},
+
+
+ #{operator,jdbcType=BIGINT},
+
+
+ #{createdAt,jdbcType=TIMESTAMP},
+
+
+ #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ #{recStatus,jdbcType=TINYINT},
+
+
+
+
+
+ update t_stu_order_item
+
+
+ id = #{record.id,jdbcType=BIGINT},
+
+
+ order_id = #{record.orderId,jdbcType=BIGINT},
+
+
+ name = #{record.name,jdbcType=VARCHAR},
+
+
+ specification = #{record.specification,jdbcType=VARCHAR},
+
+
+ num = #{record.num,jdbcType=INTEGER},
+
+
+ operator = #{record.operator,jdbcType=BIGINT},
+
+
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+
+
+
+
+
+
+
+ update t_stu_order_item
+ set id = #{record.id,jdbcType=BIGINT},
+ order_id = #{record.orderId,jdbcType=BIGINT},
+ name = #{record.name,jdbcType=VARCHAR},
+ specification = #{record.specification,jdbcType=VARCHAR},
+ num = #{record.num,jdbcType=INTEGER},
+ operator = #{record.operator,jdbcType=BIGINT},
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{record.recStatus,jdbcType=TINYINT}
+
+
+
+
+
+ update t_stu_order_item
+
+
+ order_id = #{orderId,jdbcType=BIGINT},
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ specification = #{specification,jdbcType=VARCHAR},
+
+
+ num = #{num,jdbcType=INTEGER},
+
+
+ operator = #{operator,jdbcType=BIGINT},
+
+
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{recStatus,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update t_stu_order_item
+ set order_id = #{orderId,jdbcType=BIGINT},
+ name = #{name,jdbcType=VARCHAR},
+ specification = #{specification,jdbcType=VARCHAR},
+ num = #{num,jdbcType=INTEGER},
+ operator = #{operator,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/src/main/resources/mapper_raw/StuOrderMapper.xml b/src/main/resources/mapper_raw/StuOrderMapper.xml
new file mode 100644
index 0000000..44cc0f6
--- /dev/null
+++ b/src/main/resources/mapper_raw/StuOrderMapper.xml
@@ -0,0 +1,465 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, user_id, name, stu_num, phone, id_card, college_id, dormitory_id, address, symptom,
+ broken, remark, plan_time, real_time, status, operator, created_at, updated_at, rec_status,
+ college_name, dormitory_name
+
+
+
+
+ delete from t_stu_order
+ where id = #{id,jdbcType=BIGINT}
+
+
+ delete from t_stu_order
+
+
+
+
+
+ insert into t_stu_order (id, user_id, name,
+ stu_num, phone, id_card,
+ college_id, dormitory_id, address,
+ symptom, broken, remark,
+ plan_time, real_time, status,
+ operator, created_at, updated_at,
+ rec_status, college_name, dormitory_name
+ )
+ values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
+ #{stuNum,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR},
+ #{collegeId,jdbcType=BIGINT}, #{dormitoryId,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR},
+ #{symptom,jdbcType=VARCHAR}, #{broken,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR},
+ #{planTime,jdbcType=BIGINT}, #{realTime,jdbcType=BIGINT}, #{status,jdbcType=TINYINT},
+ #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
+ #{recStatus,jdbcType=TINYINT}, #{collegeName,jdbcType=VARCHAR}, #{dormitoryName,jdbcType=VARCHAR}
+ )
+
+
+ insert into t_stu_order
+
+
+ id,
+
+
+ user_id,
+
+
+ name,
+
+
+ stu_num,
+
+
+ phone,
+
+
+ id_card,
+
+
+ college_id,
+
+
+ dormitory_id,
+
+
+ address,
+
+
+ symptom,
+
+
+ broken,
+
+
+ remark,
+
+
+ plan_time,
+
+
+ real_time,
+
+
+ status,
+
+
+ operator,
+
+
+ created_at,
+
+
+ updated_at,
+
+
+ rec_status,
+
+
+ college_name,
+
+
+ dormitory_name,
+
+
+
+
+ #{id,jdbcType=BIGINT},
+
+
+ #{userId,jdbcType=BIGINT},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{stuNum,jdbcType=VARCHAR},
+
+
+ #{phone,jdbcType=VARCHAR},
+
+
+ #{idCard,jdbcType=VARCHAR},
+
+
+ #{collegeId,jdbcType=BIGINT},
+
+
+ #{dormitoryId,jdbcType=BIGINT},
+
+
+ #{address,jdbcType=VARCHAR},
+
+
+ #{symptom,jdbcType=VARCHAR},
+
+
+ #{broken,jdbcType=TINYINT},
+
+
+ #{remark,jdbcType=VARCHAR},
+
+
+ #{planTime,jdbcType=BIGINT},
+
+
+ #{realTime,jdbcType=BIGINT},
+
+
+ #{status,jdbcType=TINYINT},
+
+
+ #{operator,jdbcType=BIGINT},
+
+
+ #{createdAt,jdbcType=TIMESTAMP},
+
+
+ #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ #{recStatus,jdbcType=TINYINT},
+
+
+ #{collegeName,jdbcType=VARCHAR},
+
+
+ #{dormitoryName,jdbcType=VARCHAR},
+
+
+
+
+
+ update t_stu_order
+
+
+ id = #{record.id,jdbcType=BIGINT},
+
+
+ user_id = #{record.userId,jdbcType=BIGINT},
+
+
+ name = #{record.name,jdbcType=VARCHAR},
+
+
+ stu_num = #{record.stuNum,jdbcType=VARCHAR},
+
+
+ phone = #{record.phone,jdbcType=VARCHAR},
+
+
+ id_card = #{record.idCard,jdbcType=VARCHAR},
+
+
+ college_id = #{record.collegeId,jdbcType=BIGINT},
+
+
+ dormitory_id = #{record.dormitoryId,jdbcType=BIGINT},
+
+
+ address = #{record.address,jdbcType=VARCHAR},
+
+
+ symptom = #{record.symptom,jdbcType=VARCHAR},
+
+
+ broken = #{record.broken,jdbcType=TINYINT},
+
+
+ remark = #{record.remark,jdbcType=VARCHAR},
+
+
+ plan_time = #{record.planTime,jdbcType=BIGINT},
+
+
+ real_time = #{record.realTime,jdbcType=BIGINT},
+
+
+ status = #{record.status,jdbcType=TINYINT},
+
+
+ operator = #{record.operator,jdbcType=BIGINT},
+
+
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+
+
+ college_name = #{record.collegeName,jdbcType=VARCHAR},
+
+
+ dormitory_name = #{record.dormitoryName,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update t_stu_order
+ set id = #{record.id,jdbcType=BIGINT},
+ user_id = #{record.userId,jdbcType=BIGINT},
+ name = #{record.name,jdbcType=VARCHAR},
+ stu_num = #{record.stuNum,jdbcType=VARCHAR},
+ phone = #{record.phone,jdbcType=VARCHAR},
+ id_card = #{record.idCard,jdbcType=VARCHAR},
+ college_id = #{record.collegeId,jdbcType=BIGINT},
+ dormitory_id = #{record.dormitoryId,jdbcType=BIGINT},
+ address = #{record.address,jdbcType=VARCHAR},
+ symptom = #{record.symptom,jdbcType=VARCHAR},
+ broken = #{record.broken,jdbcType=TINYINT},
+ remark = #{record.remark,jdbcType=VARCHAR},
+ plan_time = #{record.planTime,jdbcType=BIGINT},
+ real_time = #{record.realTime,jdbcType=BIGINT},
+ status = #{record.status,jdbcType=TINYINT},
+ operator = #{record.operator,jdbcType=BIGINT},
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+ college_name = #{record.collegeName,jdbcType=VARCHAR},
+ dormitory_name = #{record.dormitoryName,jdbcType=VARCHAR}
+
+
+
+
+
+ update t_stu_order
+
+
+ user_id = #{userId,jdbcType=BIGINT},
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ stu_num = #{stuNum,jdbcType=VARCHAR},
+
+
+ phone = #{phone,jdbcType=VARCHAR},
+
+
+ id_card = #{idCard,jdbcType=VARCHAR},
+
+
+ college_id = #{collegeId,jdbcType=BIGINT},
+
+
+ dormitory_id = #{dormitoryId,jdbcType=BIGINT},
+
+
+ address = #{address,jdbcType=VARCHAR},
+
+
+ symptom = #{symptom,jdbcType=VARCHAR},
+
+
+ broken = #{broken,jdbcType=TINYINT},
+
+
+ remark = #{remark,jdbcType=VARCHAR},
+
+
+ plan_time = #{planTime,jdbcType=BIGINT},
+
+
+ real_time = #{realTime,jdbcType=BIGINT},
+
+
+ status = #{status,jdbcType=TINYINT},
+
+
+ operator = #{operator,jdbcType=BIGINT},
+
+
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{recStatus,jdbcType=TINYINT},
+
+
+ college_name = #{collegeName,jdbcType=VARCHAR},
+
+
+ dormitory_name = #{dormitoryName,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update t_stu_order
+ set user_id = #{userId,jdbcType=BIGINT},
+ name = #{name,jdbcType=VARCHAR},
+ stu_num = #{stuNum,jdbcType=VARCHAR},
+ phone = #{phone,jdbcType=VARCHAR},
+ id_card = #{idCard,jdbcType=VARCHAR},
+ college_id = #{collegeId,jdbcType=BIGINT},
+ dormitory_id = #{dormitoryId,jdbcType=BIGINT},
+ address = #{address,jdbcType=VARCHAR},
+ symptom = #{symptom,jdbcType=VARCHAR},
+ broken = #{broken,jdbcType=TINYINT},
+ remark = #{remark,jdbcType=VARCHAR},
+ plan_time = #{planTime,jdbcType=BIGINT},
+ real_time = #{realTime,jdbcType=BIGINT},
+ status = #{status,jdbcType=TINYINT},
+ operator = #{operator,jdbcType=BIGINT},
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{recStatus,jdbcType=TINYINT},
+ college_name = #{collegeName,jdbcType=VARCHAR},
+ dormitory_name = #{dormitoryName,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper_raw/SysAreaMapper.xml b/src/main/resources/mapper_raw/SysAreaMapper.xml
new file mode 100644
index 0000000..c694eef
--- /dev/null
+++ b/src/main/resources/mapper_raw/SysAreaMapper.xml
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, type, operator, created_at, updated_at, rec_status
+
+
+
+
+ delete from t_sys_area
+ where id = #{id,jdbcType=BIGINT}
+
+
+ delete from t_sys_area
+
+
+
+
+
+ insert into t_sys_area (id, name, type,
+ operator, created_at, updated_at,
+ rec_status)
+ values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
+ #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
+ #{recStatus,jdbcType=TINYINT})
+
+
+ insert into t_sys_area
+
+
+ id,
+
+
+ name,
+
+
+ type,
+
+
+ operator,
+
+
+ created_at,
+
+
+ updated_at,
+
+
+ rec_status,
+
+
+
+
+ #{id,jdbcType=BIGINT},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{type,jdbcType=TINYINT},
+
+
+ #{operator,jdbcType=BIGINT},
+
+
+ #{createdAt,jdbcType=TIMESTAMP},
+
+
+ #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ #{recStatus,jdbcType=TINYINT},
+
+
+
+
+
+ update t_sys_area
+
+
+ id = #{record.id,jdbcType=BIGINT},
+
+
+ name = #{record.name,jdbcType=VARCHAR},
+
+
+ type = #{record.type,jdbcType=TINYINT},
+
+
+ operator = #{record.operator,jdbcType=BIGINT},
+
+
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+
+
+
+
+
+
+
+ update t_sys_area
+ set id = #{record.id,jdbcType=BIGINT},
+ name = #{record.name,jdbcType=VARCHAR},
+ type = #{record.type,jdbcType=TINYINT},
+ operator = #{record.operator,jdbcType=BIGINT},
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{record.recStatus,jdbcType=TINYINT}
+
+
+
+
+
+ update t_sys_area
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ type = #{type,jdbcType=TINYINT},
+
+
+ operator = #{operator,jdbcType=BIGINT},
+
+
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{recStatus,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update t_sys_area
+ set name = #{name,jdbcType=VARCHAR},
+ type = #{type,jdbcType=TINYINT},
+ operator = #{operator,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/src/main/resources/mbg.xml b/src/main/resources/mbg.xml
index a8418a9..48f2a5c 100644
--- a/src/main/resources/mbg.xml
+++ b/src/main/resources/mbg.xml
@@ -56,7 +56,11 @@
-
-
+
+
+
+
+
+
\ No newline at end of file