Commit 00fccc39 by wubh

包活干V2.1.0-代码初始化

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28754 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 48a53ef7
Showing 21 changed files with 1274 additions and 35 deletions
package com.glsx.ordercenter.constants;
/**
* <p>Description: 订单审核状态枚举
* <p>Project: car-service
*
* @author wbh
* @date 2020-09-27
*/
public enum AuditStatusEnum {
NOT_AUDIT((byte) 1, "待审核"),
REJECTED((byte) 2, "已退回"),
NORMALLY_PASSED((byte) 3, "已通过(正常通过)"),
ABNORMALLY_PASSED((byte) 4, "已通过(退回通过)"),
;
private final Byte code;
private final String text;
AuditStatusEnum(Byte code, String text) {
this.code = code;
this.text = text;
}
public Byte getCode() {
return code;
}
public String getText() {
return text;
}
public static String getText(byte code) {
String text = null;
AuditStatusEnum[] values = AuditStatusEnum.values();
for (AuditStatusEnum value : values) {
if (value.code.equals(code)) {
text = value.text;
break;
}
}
return text;
}
}
package com.glsx.ordercenter.dto;
import java.util.Date;
import com.glsx.excel.poi.annotation.ExcelColumn;
import com.glsx.excel.poi.annotation.ExcelExport;
@ExcelExport
public class AuditOrderVo {
@ExcelColumn(value = "订单编号", index = 0)
private String orderSn;
@ExcelColumn(value = "第三方工单号", index = 1)
private String workOrderNo;
@ExcelColumn(value = "订单渠道", index = 2)
private String orderChannel;
@ExcelColumn(value = "服务类型", index = 3)
private String installDeviceTypeName;
@ExcelColumn(value = "派单日期", index = 4, pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime;
@ExcelColumn(value = "接单时间", index = 5, pattern = "yyyy-MM-dd HH:mm:ss")
private Date receiveTime;
@ExcelColumn(value = "预约时间", index = 6, pattern = "yyyy-MM-dd HH:mm:ss")
private Date reserveInstallTime;
@ExcelColumn(value = "上门时间", index = 7, pattern = "yyyy-MM-dd HH:mm:ss")
private Date checkInTime;
@ExcelColumn(value = "完成时间", index = 8, pattern = "yyyy-MM-dd HH:mm:ss")
private Date completeTime;
@ExcelColumn(value = "状态", index = 9)
private String activeStatus;
@ExcelColumn(value = "上门类型", index = 10)
private String serviceType;
@ExcelColumn(value = "车架号", index = 11)
private String vinNo;
@ExcelColumn(value = "品牌车型", index = 12)
private String carBrand;
@ExcelColumn(value = "车主姓名", index = 13)
private String carOwner;
@ExcelColumn(value = "车主联系方式", index = 14)
private String carOwnerPhone;
@ExcelColumn(value = "商户名称", index = 15)
private String merchantName;
@ExcelColumn(value = "所在省", index = 16)
private String province;
@ExcelColumn(value = "所在市", index = 17)
private String city;
@ExcelColumn(value = "服务地址", index = 18)
private String address;
@ExcelColumn(value = "服务商名称", index = 19)
private String serviceName;
@ExcelColumn(value = "技工信息", index = 20)
private String mechanicInfo;
@ExcelColumn(value = "订单类型", index = 21)
private String orderType;
@ExcelColumn(value = "安装地址", index = 22)
private String installAddress;
@ExcelColumn(value = "安装照片地址", index = 23)
private String installLocationPicture;
@ExcelColumn(value = "提交审核时间", index = 24, pattern = "yyyy-MM-dd HH:mm:ss")
private Date auditTime;
@ExcelColumn(value = "退回次数", index = 25)
private Byte auditCount;
public String getOrderSn() {
return orderSn;
}
public void setOrderSn(String orderSn) {
this.orderSn = orderSn;
}
public String getWorkOrderNo() {
return workOrderNo;
}
public void setWorkOrderNo(String workOrderNo) {
this.workOrderNo = workOrderNo;
}
public String getOrderChannel() {
return orderChannel;
}
public void setOrderChannel(String orderChannel) {
this.orderChannel = orderChannel;
}
public String getInstallDeviceTypeName() {
return installDeviceTypeName;
}
public void setInstallDeviceTypeName(String installDeviceTypeName) {
this.installDeviceTypeName = installDeviceTypeName;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getReceiveTime() {
return receiveTime;
}
public void setReceiveTime(Date receiveTime) {
this.receiveTime = receiveTime;
}
public Date getReserveInstallTime() {
return reserveInstallTime;
}
public void setReserveInstallTime(Date reserveInstallTime) {
this.reserveInstallTime = reserveInstallTime;
}
public Date getCheckInTime() {
return checkInTime;
}
public void setCheckInTime(Date checkInTime) {
this.checkInTime = checkInTime;
}
public Date getCompleteTime() {
return completeTime;
}
public void setCompleteTime(Date completeTime) {
this.completeTime = completeTime;
}
public String getActiveStatus() {
return activeStatus;
}
public void setActiveStatus(String activeStatus) {
this.activeStatus = activeStatus;
}
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public String getVinNo() {
return vinNo;
}
public void setVinNo(String vinNo) {
this.vinNo = vinNo;
}
public String getCarBrand() {
return carBrand;
}
public void setCarBrand(String carBrand) {
this.carBrand = carBrand;
}
public String getCarOwner() {
return carOwner;
}
public void setCarOwner(String carOwner) {
this.carOwner = carOwner;
}
public String getCarOwnerPhone() {
return carOwnerPhone;
}
public void setCarOwnerPhone(String carOwnerPhone) {
this.carOwnerPhone = carOwnerPhone;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getMechanicInfo() {
return mechanicInfo;
}
public void setMechanicInfo(String mechanicInfo) {
this.mechanicInfo = mechanicInfo;
}
public String getOrderType() {
return orderType;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public String getInstallAddress() {
return installAddress;
}
public void setInstallAddress(String installAddress) {
this.installAddress = installAddress;
}
public String getInstallLocationPicture() {
return installLocationPicture;
}
public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture;
}
public Date getAuditTime() {
return auditTime;
}
public void setAuditTime(Date auditTime) {
this.auditTime = auditTime;
}
public Byte getAuditCount() {
return auditCount;
}
public void setAuditCount(Byte auditCount) {
this.auditCount = auditCount;
}
@Override
public String toString() {
return "AuditOrderVo{" +
"orderSn='" + orderSn + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", orderChannel='" + orderChannel + '\'' +
", installDeviceTypeName='" + installDeviceTypeName + '\'' +
", createTime=" + createTime +
", receiveTime=" + receiveTime +
", reserveInstallTime=" + reserveInstallTime +
", checkInTime=" + checkInTime +
", completeTime=" + completeTime +
", activeStatus='" + activeStatus + '\'' +
", serviceType='" + serviceType + '\'' +
", vinNo='" + vinNo + '\'' +
", carBrand='" + carBrand + '\'' +
", carOwner='" + carOwner + '\'' +
", carOwnerPhone='" + carOwnerPhone + '\'' +
", merchantName='" + merchantName + '\'' +
", province='" + province + '\'' +
", city='" + city + '\'' +
", address='" + address + '\'' +
", serviceName='" + serviceName + '\'' +
", mechanicInfo='" + mechanicInfo + '\'' +
", orderType='" + orderType + '\'' +
", installAddress='" + installAddress + '\'' +
", installLocationPicture='" + installLocationPicture + '\'' +
", auditTime=" + auditTime +
", auditCount=" + auditCount +
'}';
}
}
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.dto;
import java.util.Date;
import com.glsx.excel.poi.annotation.ExcelColumn; import com.glsx.excel.poi.annotation.ExcelColumn;
import com.glsx.excel.poi.annotation.ExcelExport; import com.glsx.excel.poi.annotation.ExcelExport;
import java.util.Date;
@ExcelExport @ExcelExport
public class ExportOrderExceptionVo { public class ExportOrderExceptionVo {
......
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.dto;
import java.util.Date; import java.util.Date;
import com.glsx.excel.poi.annotation.ExcelColumn; import com.glsx.excel.poi.annotation.ExcelColumn;
......
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.dto;
import java.util.Date;
import com.glsx.excel.poi.annotation.ExcelColumn; import com.glsx.excel.poi.annotation.ExcelColumn;
import com.glsx.excel.poi.annotation.ExcelExport; import com.glsx.excel.poi.annotation.ExcelExport;
import java.util.Date;
@ExcelExport @ExcelExport
public class ExportUnknownOrderVo { public class ExportUnknownOrderVo {
......
package com.glsx.ordercenter.dto; package com.glsx.ordercenter.dto;
import javax.validation.constraints.NotNull;
import java.util.List;
import com.glsx.ordercenter.pojo.GroupC; import com.glsx.ordercenter.pojo.GroupC;
import com.glsx.ordercenter.pojo.SysOrderDevice; import com.glsx.ordercenter.pojo.SysOrderDevice;
import com.glsx.ordercenter.pojo.SysOrderFile; import com.glsx.ordercenter.pojo.SysOrderFile;
import javax.validation.constraints.NotNull;
import java.util.List;
/** /**
* @author zhanghj * @author zhanghj
* @version 1.0.0 * @version 1.0.0
...@@ -63,6 +62,15 @@ public class OrderDeviceReq { ...@@ -63,6 +62,15 @@ public class OrderDeviceReq {
*/ */
private String supplier; private String supplier;
/**
* 审核通过类型:1正常通过,2退回通过
*/
private Byte auditPassType;
/**
* 审核退回原因
*/
private String reason;
public Integer getOrderId() { public Integer getOrderId() {
return orderId; return orderId;
...@@ -136,13 +144,36 @@ public class OrderDeviceReq { ...@@ -136,13 +144,36 @@ public class OrderDeviceReq {
this.supplier = supplier; this.supplier = supplier;
} }
public Byte getAuditPassType() {
return auditPassType;
}
public void setAuditPassType(Byte auditPassType) {
this.auditPassType = auditPassType;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
@Override @Override
public String toString() { public String toString() {
return "OrderDeviceReq [orderId=" + orderId + ", orderDeviceList=" return "OrderDeviceReq{" +
+ orderDeviceList + ", installRemark=" + installRemark "orderId=" + orderId +
+ ", orderFileList=" + orderFileList + ", mechanicAddress=" ", subOrderId=" + subOrderId +
+ mechanicAddress + "]"; ", orderDeviceList=" + orderDeviceList +
", installRemark='" + installRemark + '\'' +
", orderFileList=" + orderFileList +
", mechanicAddress='" + mechanicAddress + '\'' +
", orderSn='" + orderSn + '\'' +
", serviceCode='" + serviceCode + '\'' +
", supplier='" + supplier + '\'' +
", auditPassType=" + auditPassType +
", reason='" + reason + '\'' +
'}';
} }
} }
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
package com.glsx.ordercenter.dto; package com.glsx.ordercenter.dto;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
import java.util.List; import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* Description: 订单查询入参 * Description: 订单查询入参
...@@ -14,6 +16,19 @@ import java.util.List; ...@@ -14,6 +16,19 @@ import java.util.List;
*/ */
public class QueryOrderReq implements Serializable { public class QueryOrderReq implements Serializable {
private static final long serialVersionUID = 3945235994796311064L; private static final long serialVersionUID = 3945235994796311064L;
/**
* 完成时间开始
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date completeTimeStart;
/**
* 完成时间结束
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date completeTimeEnd;
private String orderSn; private String orderSn;
private Integer orderChannel; private Integer orderChannel;
private String serviceType; private String serviceType;
...@@ -70,6 +85,22 @@ public class QueryOrderReq implements Serializable { ...@@ -70,6 +85,22 @@ public class QueryOrderReq implements Serializable {
*/ */
private String carType; private String carType;
public Date getCompleteTimeStart() {
return completeTimeStart;
}
public void setCompleteTimeStart(Date completeTimeStart) {
this.completeTimeStart = completeTimeStart;
}
public Date getCompleteTimeEnd() {
return completeTimeEnd;
}
public void setCompleteTimeEnd(Date completeTimeEnd) {
this.completeTimeEnd = completeTimeEnd;
}
public String getOrderSn() { public String getOrderSn() {
return orderSn; return orderSn;
} }
......
package com.glsx.ordercenter.dto.req;
import java.util.Date;
import java.util.List;
import com.glsx.common.pojo.PagedReq;
import org.springframework.format.annotation.DateTimeFormat;
/**
* <p>Description:
* <p>Project: car-service
*
* @author wbh
* @date 2020-08-31
*/
public class AuditOrderQueryReq extends PagedReq {
/**
* 关键词
*/
private String keyword;
/**
* 当前用户ID
*/
private Integer userId;
/**
* 当前用户角色
*/
private Byte userType;
/**
* 服务商ID,根据用户角色生成
*/
private Integer providerId;
/**
* 商户ID,根据用户角色生成
*/
private Integer shopId;
/**
* 状态列表,用于不同角色
*/
private List<Byte> statusList;
/**
* 订单渠道
*/
private Integer orderChannel;
/**
* 提交审核时间开始
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date auditTimeStart;
/**
* 提交审核时间结束
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date auditTimeEnd;
/**
* 服务商名称
*/
private String serviceName;
/**
* 所在省市
*/
private String city;
/**
* 是否需要详情
*/
private Boolean needDetail = true;
/**
* 订单ID
*/
private Integer id;
/**
* 订单单号
*/
private String orderSn;
/**
* 订单类型
*/
private Byte orderType;
/**
* 状态
*/
private Byte auditStatus;
/**
* 服务类型
*/
private String serviceType;
/**
* 服务项目代码
*/
private String serviceCode;
/**
* 车架号
*/
private String vinNo;
/**
* 车主姓名,用于模糊搜索
*/
private String carOwner;
/**
* 车主姓名或车主电话,用于模糊搜索
*/
private String carOwnerPhone;
/**
* 车品牌
*/
private Integer carBrand;
/**
* 车系
*/
private Integer carSeries;
/**
* 车型
*/
private String carType;
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Byte getUserType() {
return userType;
}
public void setUserType(Byte userType) {
this.userType = userType;
}
public Integer getProviderId() {
return providerId;
}
public void setProviderId(Integer providerId) {
this.providerId = providerId;
}
public Integer getShopId() {
return shopId;
}
public void setShopId(Integer shopId) {
this.shopId = shopId;
}
public List<Byte> getStatusList() {
return statusList;
}
public void setStatusList(List<Byte> statusList) {
this.statusList = statusList;
}
public Integer getOrderChannel() {
return orderChannel;
}
public void setOrderChannel(Integer orderChannel) {
this.orderChannel = orderChannel;
}
public Date getAuditTimeStart() {
return auditTimeStart;
}
public void setAuditTimeStart(Date auditTimeStart) {
this.auditTimeStart = auditTimeStart;
}
public Date getAuditTimeEnd() {
return auditTimeEnd;
}
public void setAuditTimeEnd(Date auditTimeEnd) {
this.auditTimeEnd = auditTimeEnd;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public Boolean getNeedDetail() {
return needDetail;
}
public void setNeedDetail(Boolean needDetail) {
this.needDetail = needDetail;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getOrderSn() {
return orderSn;
}
public void setOrderSn(String orderSn) {
this.orderSn = orderSn;
}
public Byte getOrderType() {
return orderType;
}
public void setOrderType(Byte orderType) {
this.orderType = orderType;
}
public Byte getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Byte auditStatus) {
this.auditStatus = auditStatus;
}
public String getServiceType() {
return serviceType;
}
public void setServiceType(String serviceType) {
this.serviceType = serviceType;
}
public String getServiceCode() {
return serviceCode;
}
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}
public String getVinNo() {
return vinNo;
}
public void setVinNo(String vinNo) {
this.vinNo = vinNo;
}
public String getCarOwner() {
return carOwner;
}
public void setCarOwner(String carOwner) {
this.carOwner = carOwner;
}
public String getCarOwnerPhone() {
return carOwnerPhone;
}
public void setCarOwnerPhone(String carOwnerPhone) {
this.carOwnerPhone = carOwnerPhone;
}
public Integer getCarBrand() {
return carBrand;
}
public void setCarBrand(Integer carBrand) {
this.carBrand = carBrand;
}
public Integer getCarSeries() {
return carSeries;
}
public void setCarSeries(Integer carSeries) {
this.carSeries = carSeries;
}
public String getCarType() {
return carType;
}
public void setCarType(String carType) {
this.carType = carType;
}
@Override
public String toString() {
return "AuditOrderQueryReq{" +
"keyword='" + keyword + '\'' +
", userId=" + userId +
", userType=" + userType +
", providerId=" + providerId +
", shopId=" + shopId +
", statusList=" + statusList +
", orderChannel=" + orderChannel +
", auditTimeStart=" + auditTimeStart +
", auditTimeEnd=" + auditTimeEnd +
", serviceName='" + serviceName + '\'' +
", city='" + city + '\'' +
", needDetail=" + needDetail +
", id=" + id +
", orderSn='" + orderSn + '\'' +
", orderType=" + orderType +
", auditStatus=" + auditStatus +
", serviceType='" + serviceType + '\'' +
", serviceCode='" + serviceCode + '\'' +
", vinNo='" + vinNo + '\'' +
", carOwner='" + carOwner + '\'' +
", carOwnerPhone='" + carOwnerPhone + '\'' +
", carBrand=" + carBrand +
", carSeries=" + carSeries +
", carType='" + carType + '\'' +
"} " + super.toString();
}
}
package com.glsx.ordercenter.mapper;
import java.util.List;
import com.glsx.ordercenter.dto.req.AuditOrderQueryReq;
import com.glsx.ordercenter.pojo.SysOrder;
import com.glsx.ordercenter.pojo.SysOrderExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Repository
public interface SysAuditOrderMapper {
List<SysOrder> selectList(AuditOrderQueryReq req);
SysOrder selectOne(AuditOrderQueryReq req);
long countByExample(SysOrderExample example);
int deleteByExample(SysOrderExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysOrder record);
int insertSelective(SysOrder record);
List<SysOrder> selectByExample(SysOrderExample example);
SysOrder selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysOrder record,
@Param("example") SysOrderExample example);
int updateByExample(@Param("record") SysOrder record,
@Param("example") SysOrderExample example);
int updateByPrimaryKeySelective(SysOrder record);
int updateByPrimaryKey(SysOrder record);
}
package com.glsx.ordercenter.mapper;
import java.util.List;
import com.glsx.ordercenter.pojo.SysOrderAuditStatus;
import com.glsx.ordercenter.pojo.SysOrderAuditStatusExample;
import org.apache.ibatis.annotations.Param;
/**
* <p>Description:
* <p>Project: car-service
*
* @author wbh
* @date 2020-09-27
*/
public interface SysOrderAuditStatusMapper {
List<SysOrderAuditStatus> selectByRecord(SysOrderAuditStatus record);
SysOrderAuditStatus selectLatestOneByRecord(SysOrderAuditStatus record);
long countByExample(SysOrderAuditStatusExample example);
int deleteByExample(SysOrderAuditStatusExample example);
int deleteByPrimaryKey(Integer id);
int insert(SysOrderAuditStatus record);
int insertSelective(SysOrderAuditStatus record);
List<SysOrderAuditStatus> selectByExample(SysOrderAuditStatusExample example);
SysOrderAuditStatus selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") SysOrderAuditStatus record,
@Param("example") SysOrderAuditStatusExample example);
int updateByExample(@Param("record") SysOrderAuditStatus record,
@Param("example") SysOrderAuditStatusExample example);
int updateByPrimaryKeySelective(SysOrderAuditStatus record);
int updateByPrimaryKey(SysOrderAuditStatus record);
}
...@@ -51,6 +51,18 @@ public class SysOrder { ...@@ -51,6 +51,18 @@ public class SysOrder {
* 已完成子订单数 * 已完成子订单数
*/ */
private Integer finishedCount; private Integer finishedCount;
/**
* 订单设备列表
*/
private List<SysOrderDevice> orderDeviceList;
/**
* 订单文件列表
*/
private List<SysOrderFile> orderFileList;
/**
* 最新审核进度
*/
private List<SysOrderAuditStatus> auditStatusList;
...@@ -436,7 +448,7 @@ public class SysOrder { ...@@ -436,7 +448,7 @@ public class SysOrder {
private Long quotationQuantity; private Long quotationQuantity;
List<SysOrderDevice> orderDevices; private List<SysOrderDevice> orderDevices;
/** /**
* 服务项目icon * 服务项目icon
...@@ -473,6 +485,22 @@ public class SysOrder { ...@@ -473,6 +485,22 @@ public class SysOrder {
*/ */
private Date receiveTime; private Date receiveTime;
/**
* 审核状态:-1无需审核,1待审核,2已退回,3正常通过,4退回通过
*/
private Byte auditStatus;
/**
* 审核退回次数
*/
private Byte auditCount;
/**
* 审核提交时间(最后时间)
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date auditTime;
public Integer getUserId() { public Integer getUserId() {
return userId; return userId;
} }
...@@ -529,6 +557,31 @@ public class SysOrder { ...@@ -529,6 +557,31 @@ public class SysOrder {
this.finishedCount = finishedCount; this.finishedCount = finishedCount;
} }
public List<SysOrderDevice> getOrderDeviceList() {
return orderDeviceList;
}
public void setOrderDeviceList(List<SysOrderDevice> orderDeviceList) {
this.orderDeviceList = orderDeviceList;
}
public List<SysOrderFile> getOrderFileList() {
return orderFileList;
}
public void setOrderFileList(List<SysOrderFile> orderFileList) {
this.orderFileList = orderFileList;
}
public List<SysOrderAuditStatus> getAuditStatusList() {
return auditStatusList;
}
public void setAuditStatusList(
List<SysOrderAuditStatus> auditStatusList) {
this.auditStatusList = auditStatusList;
}
public String getNoBidingDuration() { public String getNoBidingDuration() {
return noBidingDuration; return noBidingDuration;
} }
...@@ -1377,6 +1430,30 @@ public class SysOrder { ...@@ -1377,6 +1430,30 @@ public class SysOrder {
this.receiveTime = receiveTime; this.receiveTime = receiveTime;
} }
public Byte getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Byte auditStatus) {
this.auditStatus = auditStatus;
}
public Byte getAuditCount() {
return auditCount;
}
public void setAuditCount(Byte auditCount) {
this.auditCount = auditCount;
}
public Date getAuditTime() {
return auditTime;
}
public void setAuditTime(Date auditTime) {
this.auditTime = auditTime;
}
@Override @Override
public String toString() { public String toString() {
return "SysOrder{" + return "SysOrder{" +
...@@ -1387,6 +1464,9 @@ public class SysOrder { ...@@ -1387,6 +1464,9 @@ public class SysOrder {
", subOrderList=" + subOrderList + ", subOrderList=" + subOrderList +
", subOrderCount=" + subOrderCount + ", subOrderCount=" + subOrderCount +
", finishedCount=" + finishedCount + ", finishedCount=" + finishedCount +
", orderDeviceList=" + orderDeviceList +
", orderFileList=" + orderFileList +
", auditStatusList=" + auditStatusList +
", noBidingDuration='" + noBidingDuration + '\'' + ", noBidingDuration='" + noBidingDuration + '\'' +
", serviceItems=" + serviceItems + ", serviceItems=" + serviceItems +
", id=" + id + ", id=" + id +
...@@ -1493,6 +1573,9 @@ public class SysOrder { ...@@ -1493,6 +1573,9 @@ public class SysOrder {
", installMode=" + installMode + ", installMode=" + installMode +
", ifAddDevice=" + ifAddDevice + ", ifAddDevice=" + ifAddDevice +
", receiveTime=" + receiveTime + ", receiveTime=" + receiveTime +
", auditStatus=" + auditStatus +
", auditCount=" + auditCount +
", auditTime=" + auditTime +
'}'; '}';
} }
} }
package com.glsx.ordercenter.pojo;
import java.util.Date;
/**
* <p>Description:
* <p>Project: car-service
*
* @author wbh
* @date 2020-09-27
*/
/**
* 订单审核流水表
*/
public class SysOrderAuditStatus {
/**
* 审核人
*/
private String createName;
/**
* 主键ID
*/
private Integer id;
/**
* 订单ID,关联sys_order.id
*/
private Integer orderId;
/**
* 审核状态:1待审核,2已退回,3正常通过,4退回通过
*/
private Byte auditStatus;
/**
* 原因
*/
private String reason;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createTime;
/**
* 创建人
*/
private Integer createBy;
public String getCreateName() {
return createName;
}
public void setCreateName(String createName) {
this.createName = createName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getOrderId() {
return orderId;
}
public void setOrderId(Integer orderId) {
this.orderId = orderId;
}
public Byte getAuditStatus() {
return auditStatus;
}
public void setAuditStatus(Byte auditStatus) {
this.auditStatus = auditStatus;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Integer getCreateBy() {
return createBy;
}
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
@Override
public String toString() {
return "SysOrderAuditStatus{" +
"createName='" + createName + '\'' +
", id=" + id +
", orderId=" + orderId +
", auditStatus=" + auditStatus +
", reason='" + reason + '\'' +
", remark='" + remark + '\'' +
", createTime=" + createTime +
", createBy=" + createBy +
'}';
}
}
...@@ -31,6 +31,11 @@ public class SysServiceItem extends BaseModel { ...@@ -31,6 +31,11 @@ public class SysServiceItem extends BaseModel {
private Byte isUpdateInfo; private Byte isUpdateInfo;
/** /**
* 是否需要审核订单
*/
private Byte isAudit;
/**
* 业务类型 * 业务类型
*/ */
private Byte type; private Byte type;
...@@ -93,6 +98,14 @@ public class SysServiceItem extends BaseModel { ...@@ -93,6 +98,14 @@ public class SysServiceItem extends BaseModel {
this.isUpdateInfo = isUpdateInfo; this.isUpdateInfo = isUpdateInfo;
} }
public Byte getIsAudit() {
return isAudit;
}
public void setIsAudit(Byte isAudit) {
this.isAudit = isAudit;
}
public List<SysServiceItemDeviceConfig> getDeviceConfigList() { public List<SysServiceItemDeviceConfig> getDeviceConfigList() {
return deviceConfigList; return deviceConfigList;
} }
...@@ -141,4 +154,22 @@ public class SysServiceItem extends BaseModel { ...@@ -141,4 +154,22 @@ public class SysServiceItem extends BaseModel {
public void setType(Byte type) { public void setType(Byte type) {
this.type = type; this.type = type;
} }
@Override
public String toString() {
return "SysServiceItem{" +
"id=" + id +
", serviceName='" + serviceName + '\'' +
", serviceCode='" + serviceCode + '\'' +
", imgPath='" + imgPath + '\'' +
", pushUrl='" + pushUrl + '\'' +
", isUpdateInfo=" + isUpdateInfo +
", isAudit=" + isAudit +
", type=" + type +
", deviceConfigList=" + deviceConfigList +
", photoConfigList=" + photoConfigList +
", photoCount=" + photoCount +
", deviceTypeName='" + deviceTypeName + '\'' +
"} " + super.toString();
}
} }
...@@ -22,8 +22,13 @@ import com.glsx.ordercenter.constants.BizConstants; ...@@ -22,8 +22,13 @@ import com.glsx.ordercenter.constants.BizConstants;
import com.glsx.ordercenter.constants.OrderActiveStatusEnum; import com.glsx.ordercenter.constants.OrderActiveStatusEnum;
import com.glsx.ordercenter.constants.ResultCodeEnum; import com.glsx.ordercenter.constants.ResultCodeEnum;
import com.glsx.ordercenter.dto.CarInfo; import com.glsx.ordercenter.dto.CarInfo;
import com.glsx.ordercenter.mapper.SysChannelOrgMapper;
import com.glsx.ordercenter.mapper.SysOrderMapper; import com.glsx.ordercenter.mapper.SysOrderMapper;
import com.glsx.ordercenter.mapper.SysOrganizationMapper;
import com.glsx.ordercenter.mapper.SysUserMapper;
import com.glsx.ordercenter.pojo.SysChannelOrg;
import com.glsx.ordercenter.pojo.SysOrder; import com.glsx.ordercenter.pojo.SysOrder;
import com.glsx.ordercenter.pojo.SysOrganization;
import com.glsx.ordercenter.pojo.SysResourceMatching; import com.glsx.ordercenter.pojo.SysResourceMatching;
import com.glsx.ordercenter.pojo.user.SysUser; import com.glsx.ordercenter.pojo.user.SysUser;
import com.glsx.ordercenter.service.IOrderService; import com.glsx.ordercenter.service.IOrderService;
...@@ -52,12 +57,51 @@ public class OrderUtil { ...@@ -52,12 +57,51 @@ public class OrderUtil {
@Autowired @Autowired
private CarBrandClient carBrandClient; private CarBrandClient carBrandClient;
@Autowired @Autowired
private SysOrderMapper orderDao; private SysOrderMapper orderMapper;
@Autowired @Autowired
private IOrderService orderService; private IOrderService orderService;
@Autowired @Autowired
private IResourceMatchingService resourceMatchingService; private IResourceMatchingService resourceMatchingService;
@Autowired
private SysUserMapper userMapper;
@Autowired
private SysOrganizationMapper organizationMapper;
@Autowired
private SysChannelOrgMapper channelOrgMapper;
/**
* 封装开机渠道信息
*
* @param order 订单
* @return 结果
*/
public SysOrder wrapOrderChannel(SysOrder order) {
Integer shopId = order.getShopId();
if (shopId != null) {
// 已知渠道
SysUser shopInfo = this.userMapper.selectByPrimaryKey(shopId);
if (shopInfo != null) {
SysOrganization organization = this.organizationMapper.selectByPrimaryKey(
shopInfo.getGroupId());
order.setOrderChannel(organization.getName());
order.setOrderChannelOrgId(organization.getId());
}
} else {
// 未知渠道
SysChannelOrg example = new SysChannelOrg();
example.setChannel(order.getChannel());
SysChannelOrg channelOrg = this.channelOrgMapper.getChannelOrg(example);
if (channelOrg != null && channelOrg.getId() != null) {
SysOrganization organization = this.organizationMapper.selectByPrimaryKey(
channelOrg.getOrgid());
order.setOrderChannel(organization.getName());
order.setOrderChannelOrgId(organization.getId());
}
}
return order;
}
/** /**
* 订单类型转中文描述 * 订单类型转中文描述
...@@ -212,7 +256,7 @@ public class OrderUtil { ...@@ -212,7 +256,7 @@ public class OrderUtil {
* @param id orderId * @param id orderId
*/ */
public void sendActivateWechatRemind(Integer id) { public void sendActivateWechatRemind(Integer id) {
SysOrder order = orderDao.selectByPrimaryKey(id); SysOrder order = orderMapper.selectByPrimaryKey(id);
// 当前订单不为空且订单状态为已完成 // 当前订单不为空且订单状态为已完成
if (order != null && order.getActiveStatus() == 8) { if (order != null && order.getActiveStatus() == 8) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
......
...@@ -435,7 +435,7 @@ ...@@ -435,7 +435,7 @@
#{checkInAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, #{checkInAddress,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR},
#{latitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
#{quoteLastTime,jdbcType=TIMESTAMP}, #{referencePrice,jdbcType=DECIMAL}, #{quoteLastTime,jdbcType=TIMESTAMP}, #{referencePrice,jdbcType=DECIMAL},
#{serviceCode,jdbcType=VARCHAR}, #{installMode,jdbcType=TINYINT} #{serviceCode,jdbcType=VARCHAR}, #{installMode,jdbcType=TINYINT},
#{receiveTime,jdbcType=TIMESTAMP}) #{receiveTime,jdbcType=TIMESTAMP})
</insert> </insert>
......
...@@ -6,18 +6,19 @@ ...@@ -6,18 +6,19 @@
<id column="id" jdbcType="INTEGER" property="id"/> <id column="id" jdbcType="INTEGER" property="id"/>
<result column="order_id" jdbcType="INTEGER" property="orderId"/> <result column="order_id" jdbcType="INTEGER" property="orderId"/>
<result column="sub_order_id" jdbcType="INTEGER" property="subOrderId"/> <result column="sub_order_id" jdbcType="INTEGER" property="subOrderId"/>
<result column="file_name" jdbcType="VARCHAR" property="fileName"/>
<result column="file_path" jdbcType="VARCHAR" property="filePath"/> <result column="file_path" jdbcType="VARCHAR" property="filePath"/>
<result column="file_type" jdbcType="TINYINT" property="fileType"/> <result column="file_type" jdbcType="TINYINT" property="fileType"/>
<result column="sort" jdbcType="TINYINT" property="sort"/> <result column="sort" jdbcType="TINYINT" property="sort"/>
<result column="create_by" jdbcType="INTEGER" property="createBy"/> <result column="create_by" jdbcType="INTEGER" property="createBy"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="fileName" jdbcType="VARCHAR" property="fileName"/> <!--<result column="fileName" jdbcType="VARCHAR" property="fileName"/>-->
<result column="fileDesc" jdbcType="VARCHAR" property="fileDesc"/> <!--<result column="fileDesc" jdbcType="VARCHAR" property="fileDesc"/>-->
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, order_id, sub_order_id, file_path, file_type, sort, create_by, create_time id, order_id, sub_order_id, file_name, file_path, file_type, sort, create_by, create_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -37,12 +38,12 @@ ...@@ -37,12 +38,12 @@
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into sys_order_file (order_id, sub_order_id, file_path, file_type, sort, create_by, insert into sys_order_file (order_id, sub_order_id, file_name, file_path, file_type, sort,
create_time) create_by, create_time)
values (#{orderId,jdbcType=INTEGER}, #{subOrderId,jdbcType=INTEGER}, values (#{orderId,jdbcType=INTEGER}, #{subOrderId,jdbcType=INTEGER},
#{filePath,jdbcType=VARCHAR}, #{fileType,jdbcType=TINYINT}, #{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
#{sort,jdbcType=TINYINT}, #{createBy,jdbcType=INTEGER}, #{fileType,jdbcType=TINYINT}, #{sort,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}) #{createBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrderFile"> <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrderFile">
...@@ -57,6 +58,9 @@ ...@@ -57,6 +58,9 @@
<if test="subOrderId != null"> <if test="subOrderId != null">
sub_order_id, sub_order_id,
</if> </if>
<if test="fileName != null">
file_name,
</if>
<if test="filePath != null"> <if test="filePath != null">
file_path, file_path,
</if> </if>
...@@ -80,6 +84,9 @@ ...@@ -80,6 +84,9 @@
<if test="subOrderId != null"> <if test="subOrderId != null">
#{subOrderId,jdbcType=INTEGER}, #{subOrderId,jdbcType=INTEGER},
</if> </if>
<if test="fileName != null">
#{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null"> <if test="filePath != null">
#{filePath,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR},
</if> </if>
...@@ -107,6 +114,9 @@ ...@@ -107,6 +114,9 @@
<if test="subOrderId != null"> <if test="subOrderId != null">
sub_order_id = #{subOrderId,jdbcType=INTEGER}, sub_order_id = #{subOrderId,jdbcType=INTEGER},
</if> </if>
<if test="fileName != null">
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if test="filePath != null"> <if test="filePath != null">
file_path = #{filePath,jdbcType=VARCHAR}, file_path = #{filePath,jdbcType=VARCHAR},
</if> </if>
...@@ -130,6 +140,7 @@ ...@@ -130,6 +140,7 @@
update sys_order_file update sys_order_file
set order_id = #{orderId,jdbcType=INTEGER}, set order_id = #{orderId,jdbcType=INTEGER},
sub_order_id = #{subOrderId,jdbcType=INTEGER}, sub_order_id = #{subOrderId,jdbcType=INTEGER},
file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR}, file_path = #{filePath,jdbcType=VARCHAR},
file_type = #{fileType,jdbcType=TINYINT}, file_type = #{fileType,jdbcType=TINYINT},
sort = #{sort,jdbcType=TINYINT}, sort = #{sort,jdbcType=TINYINT},
...@@ -141,11 +152,12 @@ ...@@ -141,11 +152,12 @@
<insert id="addOrderFileList" keyProperty="id" useGeneratedKeys="true"> <insert id="addOrderFileList" keyProperty="id" useGeneratedKeys="true">
insert into sys_order_file (order_id, sub_order_id, file_path, file_type, sort, create_by, insert into sys_order_file (order_id, sub_order_id, file_name, file_path, file_type, sort,
create_time) create_by, create_time)
values values
<foreach item="item" collection="fileList" separator=","> <foreach item="item" collection="fileList" separator=",">
(#{item.orderId,jdbcType=INTEGER}, #{item.subOrderId,jdbcType=INTEGER}, (#{item.orderId,jdbcType=INTEGER}, #{item.subOrderId,jdbcType=INTEGER},
#{item.fileName,jdbcType=VARCHAR},
#{item.filePath,jdbcType=VARCHAR}, #{item.fileType,jdbcType=TINYINT}, #{item.filePath,jdbcType=VARCHAR}, #{item.fileType,jdbcType=TINYINT},
#{item.sort,jdbcType=TINYINT}, #{item.createBy,jdbcType=INTEGER}, #{item.sort,jdbcType=TINYINT}, #{item.createBy,jdbcType=INTEGER},
#{item.createTime,jdbcType=TIMESTAMP}) #{item.createTime,jdbcType=TIMESTAMP})
......
...@@ -68,6 +68,9 @@ ...@@ -68,6 +68,9 @@
<result column="latitude" jdbcType="VARCHAR" property="latitude"/> <result column="latitude" jdbcType="VARCHAR" property="latitude"/>
<result column="install_mode" jdbcType="TINYINT" property="installMode"/> <result column="install_mode" jdbcType="TINYINT" property="installMode"/>
<result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime"/> <result column="receive_time" jdbcType="TIMESTAMP" property="receiveTime"/>
<result column="audit_status" jdbcType="TINYINT" property="auditStatus"/>
<result column="audit_count" jdbcType="TINYINT" property="auditCount"/>
<result column="audit_time" jdbcType="TIMESTAMP" property="auditTime"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -100,6 +103,7 @@ ...@@ -100,6 +103,7 @@
</foreach> </foreach>
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, order_sn, active_status, canceled, order_type, shop_id, district, id, order_sn, active_status, canceled, order_type, shop_id, district,
address ,contact, phone_number, car_brand, car_series, car_type, vin_no, car_color, address ,contact, phone_number, car_brand, car_series, car_type, vin_no, car_color,
...@@ -110,8 +114,9 @@ ...@@ -110,8 +114,9 @@
work_order_no, work_order_number, channel, work_order_no, work_order_number, channel,
merchant_name,reassign_mechanic_time,reserve_install_reason,connect_location_picture,surrounding_picture,is_check_in, merchant_name,reassign_mechanic_time,reserve_install_reason,connect_location_picture,surrounding_picture,is_check_in,
check_in_time,reserve_man,reserve_man_phone,quote_last_time,service_code,longitude,latitude, check_in_time,reserve_man,reserve_man_phone,quote_last_time,service_code,longitude,latitude,
receive_time receive_time, audit_status, audit_count, audit_time
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
...@@ -128,16 +133,19 @@ ...@@ -128,16 +133,19 @@
order by ${orderByClause} order by ${orderByClause}
</if> </if>
</select> </select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from sys_order from sys_order
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</select> </select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from sys_order delete from sys_order
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysOrder"> <insert id="insert" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
...@@ -337,6 +345,15 @@ ...@@ -337,6 +345,15 @@
<if test="receiveTime != null"> <if test="receiveTime != null">
receive_time, receive_time,
</if> </if>
<if test="auditStatus != null">
audit_status,
</if>
<if test="auditCount != null">
audit_count,
</if>
<if test="auditTime != null">
audit_time,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null"> <if test="orderSn != null">
...@@ -495,6 +512,15 @@ ...@@ -495,6 +512,15 @@
<if test="receiveTime != null"> <if test="receiveTime != null">
#{receiveTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="auditStatus != null">
#{auditStatus,jdbcType=TINYINT},
</if>
<if test="auditCount != null">
#{auditCount,jdbcType=TINYINT},
</if>
<if test="auditTime != null">
#{auditTime,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long">
...@@ -680,6 +706,15 @@ ...@@ -680,6 +706,15 @@
<if test="receiveTime != null"> <if test="receiveTime != null">
receive_time = #{receiveTime,jdbcType=TIMESTAMP}, receive_time = #{receiveTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="auditStatus != null">
audit_status = #{auditStatus,jdbcType=TINYINT},
</if>
<if test="auditCount != null">
audit_count = #{auditCount,jdbcType=TINYINT},
</if>
<if test="auditTime != null">
audit_time = #{auditTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -741,7 +776,10 @@ ...@@ -741,7 +776,10 @@
channel = #{channel,jdbcType=VARCHAR}, channel = #{channel,jdbcType=VARCHAR},
merchant_name = #{merchantName,jdbcType=VARCHAR}, merchant_name = #{merchantName,jdbcType=VARCHAR},
service_code = #{serviceCode}, service_code = #{serviceCode},
receive_time = #{receiveTime,jdbcType=TIMESTAMP} receive_time = #{receiveTime,jdbcType=TIMESTAMP},
audit_status = #{auditStatus,jdbcType=TINYINT},
audit_count = #{auditCount,jdbcType=TINYINT},
audit_time = #{auditTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp" <resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp"
...@@ -1139,6 +1177,15 @@ ...@@ -1139,6 +1177,15 @@
<if test="receiveTime != null"> <if test="receiveTime != null">
receive_time = #{receiveTime,jdbcType=TIMESTAMP}, receive_time = #{receiveTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="auditStatus != null">
audit_status = #{auditStatus,jdbcType=TINYINT},
</if>
<if test="auditCount != null">
audit_count = #{auditCount,jdbcType=TINYINT},
</if>
<if test="auditTime != null">
audit_time = #{auditTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
where work_order_no = #{workOrderNo} where work_order_no = #{workOrderNo}
and channel = #{channel,jdbcType=VARCHAR} and channel = #{channel,jdbcType=VARCHAR}
...@@ -1243,6 +1290,7 @@ ...@@ -1243,6 +1290,7 @@
</where> </where>
ORDER BY o.create_time DESC, id DESC ORDER BY o.create_time DESC, id DESC
</select> </select>
<select id="getOrderListByExample" resultType="com.glsx.ordercenter.pojo.SysOrder"> <select id="getOrderListByExample" resultType="com.glsx.ordercenter.pojo.SysOrder">
SELECT DISTINCT so.id id, so.district district, so.order_sn orderSn, SELECT DISTINCT so.id id, so.district district, so.order_sn orderSn,
so.active_status as activeStatus, so.canceled as canceled, so.order_type so.active_status as activeStatus, so.canceled as canceled, so.order_type
...@@ -1256,7 +1304,8 @@ ...@@ -1256,7 +1304,8 @@
so.receive_time receiveTime, so.reserve_install_time reserveInstallTime, so.receive_time receiveTime, so.reserve_install_time reserveInstallTime,
ifnull(ssm.shop_name,so.merchant_name) as merchantName, ifnull(ssm.shop_name,so.merchant_name) as merchantName,
sd.data_value as reserveInstallReason,ssp.provider_name as serviceName, sd.data_value as reserveInstallReason,ssp.provider_name as serviceName,
ifnull(ssi.service_name, '') as installDeviceTypeName, ifnull(so.work_order_no, '') as workOrderNo, so.channel ifnull(ssi.service_name, '') as installDeviceTypeName, ifnull(so.work_order_no, '') as workOrderNo, so.channel,
so.audit_status auditStatus, so.audit_count auditCount, so.audit_time auditTime
FROM FROM
<choose> <choose>
<!--超级管理员 --> <!--超级管理员 -->
...@@ -1396,9 +1445,13 @@ ...@@ -1396,9 +1445,13 @@
and #{dateEnd,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP}
</if> </if>
<if test="reserveInstallTimeStart != null and reserveInstallTimeEnd!=null and reserveInstallTimeStart !='' and reserveInstallTimeEnd !=''"> <if test="reserveInstallTimeStart != null and reserveInstallTimeEnd!=null and reserveInstallTimeStart !='' and reserveInstallTimeEnd !=''">
and so.reserve_install_time between and (so.reserve_install_time between
#{reserveInstallTimeStart,jdbcType=TIMESTAMP} and #{reserveInstallTimeStart,jdbcType=TIMESTAMP} and
#{reserveInstallTimeEnd,jdbcType=TIMESTAMP} #{reserveInstallTimeEnd,jdbcType=TIMESTAMP})
</if>
<if test="completeTimeStart != null and completeTimeEnd != null">
and (so.complete_time between #{completeTimeStart,jdbcType=TIMESTAMP}
and #{completeTimeEnd,jdbcType=TIMESTAMP})
</if> </if>
<if test="orderChannel != null and orderChannel!=''"> <if test="orderChannel != null and orderChannel!=''">
and sp.group_id = #{orderChannel} and sp.group_id = #{orderChannel}
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<result column="img_path" jdbcType="VARCHAR" property="imgPath"/> <result column="img_path" jdbcType="VARCHAR" property="imgPath"/>
<result column="push_url" jdbcType="VARCHAR" property="pushUrl"/> <result column="push_url" jdbcType="VARCHAR" property="pushUrl"/>
<result column="is_update_info" jdbcType="TINYINT" property="isUpdateInfo"/> <result column="is_update_info" jdbcType="TINYINT" property="isUpdateInfo"/>
<result column="is_audit" jdbcType="TINYINT" property="isAudit"/>
<result column="type" jdbcType="TINYINT" property="type"/> <result column="type" jdbcType="TINYINT" property="type"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/> <result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="create_by" jdbcType="INTEGER" property="createBy"/> <result column="create_by" jdbcType="INTEGER" property="createBy"/>
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
<result column="photoCount" jdbcType="INTEGER" property="photoCount"/> <result column="photoCount" jdbcType="INTEGER" property="photoCount"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, service_name, service_code, push_url, type, img_path, is_update_info, remark, id, service_name, service_code, push_url, type, img_path, is_update_info, is_audit, remark,
create_by, create_time, update_by,update_time create_by, create_time, update_by,update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
...@@ -78,6 +79,9 @@ ...@@ -78,6 +79,9 @@
<if test="isUpdateInfo != null"> <if test="isUpdateInfo != null">
is_update_info, is_update_info,
</if> </if>
<if test="isAudit != null">
is_audit,
</if>
<if test="type != null"> <if test="type != null">
type, type,
</if> </if>
...@@ -113,6 +117,9 @@ ...@@ -113,6 +117,9 @@
<if test="isUpdateInfo != null"> <if test="isUpdateInfo != null">
#{isUpdateInfo,jdbcType=TINYINT}, #{isUpdateInfo,jdbcType=TINYINT},
</if> </if>
<if test="isAudit != null">
#{isAudit,jdbcType=TINYINT},
</if>
<if test="type != null"> <if test="type != null">
#{type,jdbcType=TINYINT}, #{type,jdbcType=TINYINT},
</if> </if>
...@@ -151,6 +158,9 @@ ...@@ -151,6 +158,9 @@
<if test="isUpdateInfo != null"> <if test="isUpdateInfo != null">
is_update_info = #{isUpdateInfo,jdbcType=TINYINT}, is_update_info = #{isUpdateInfo,jdbcType=TINYINT},
</if> </if>
<if test="isAudit != null">
is_audit = #{isAudit,jdbcType=TINYINT},
</if>
<if test="type != null"> <if test="type != null">
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
</if> </if>
...@@ -179,6 +189,7 @@ ...@@ -179,6 +189,7 @@
img_path = #{imgPath,jdbcType=VARCHAR}, img_path = #{imgPath,jdbcType=VARCHAR},
push_url = #{pushUrl,jdbcType=VARCHAR}, push_url = #{pushUrl,jdbcType=VARCHAR},
is_update_info = #{isUpdateInfo,jdbcType=TINYINT}, is_update_info = #{isUpdateInfo,jdbcType=TINYINT},
is_audit = #{isAudit,jdbcType=TINYINT},
type = #{type,jdbcType=TINYINT}, type = #{type,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=INTEGER}, create_by = #{createBy,jdbcType=INTEGER},
...@@ -203,6 +214,7 @@ ...@@ -203,6 +214,7 @@
ssi.img_path, ssi.img_path,
ssi.push_url, ssi.push_url,
ssi.is_update_info, ssi.is_update_info,
ssi.is_audit,
ssi.type, ssi.type,
ssi.remark, ssi.remark,
ssi.create_by, ssi.create_by,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!