Commit cfd126b7 by wubh

包活干V1.7.0-修改前端和数据库实体类、导出表格格式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27457 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent a07da377
...@@ -15,6 +15,7 @@ import com.alibaba.fastjson.JSON; ...@@ -15,6 +15,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.glsx.common.feign.client.UserClient; import com.glsx.common.feign.client.UserClient;
import com.glsx.common.pojo.PagedResp; import com.glsx.common.pojo.PagedResp;
import com.glsx.common.utils.StringUtils;
import com.glsx.common.utils.UserUtils; import com.glsx.common.utils.UserUtils;
import com.glsx.ordercenter.constants.OrderTypeEnum; import com.glsx.ordercenter.constants.OrderTypeEnum;
import com.glsx.ordercenter.constants.ReconciliationStatusEnum; import com.glsx.ordercenter.constants.ReconciliationStatusEnum;
...@@ -206,6 +207,19 @@ public class ReportController extends BaseReportController { ...@@ -206,6 +207,19 @@ public class ReportController extends BaseReportController {
sysOrder.getMachanicInfo().getName() + "\n" + sysOrder.getMachanicInfo() sysOrder.getMachanicInfo().getName() + "\n" + sysOrder.getMachanicInfo()
.getPhone()); .getPhone());
} }
// 品牌车型
if (sysOrder.getCarInfo() != null) {
exportOrderVo.setCarBrand(StringUtils.join(new String[] {
sysOrder.getCarInfo().getBrand(),
sysOrder.getCarInfo().getSeries(),
sysOrder.getCarInfo().getType()
}, ""));
}
// 安装照片地址
if (StringUtils.isNotEmpty(sysOrder.getInstallPiuctures())) {
exportOrderVo.setInstallLocationPicture(StringUtils.join(
sysOrder.getInstallPiuctures(), ",\n"));
}
//订单类型 //订单类型
exportOrderVo.setOrderType(this.tranceOrderType(sysOrder.getOrderType())); exportOrderVo.setOrderType(this.tranceOrderType(sysOrder.getOrderType()));
list1.add(exportOrderVo); list1.add(exportOrderVo);
......
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.pojo;
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 ExportOrderVo { public class ExportOrderVo {
@ExcelColumn(value = "订单编号", index = 0)
@ExcelColumn(value = "订单编号",index = 0)
private String orderSn; private String orderSn;
@ExcelColumn(value = "订单渠道",index = 1) @ExcelColumn(value = "第三方工单号", index = 1)
private String workOrderNo;
@ExcelColumn(value = "订单渠道", index = 2)
private String orderChannel; private String orderChannel;
@ExcelColumn(value = "服务类型",index = 2) @ExcelColumn(value = "服务类型", index = 3)
private String installDeviceTypeName; private String installDeviceTypeName;
@ExcelColumn(value = "派单日期",index = 3,pattern = "yyyy-MM-dd HH:mm:ss") @ExcelColumn(value = "派单日期", index = 4, pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime; private Date createTime;
@ExcelColumn(value = "状态",index = 4) @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; private String activeStatus;
@ExcelColumn(value = "上门类型",index = 5) @ExcelColumn(value = "上门类型", index = 10)
private String serviceType; private String serviceType;
@ExcelColumn(value = "技工信息",index = 6) @ExcelColumn(value = "车架号", index = 11)
private String mechanicInfo;
@ExcelColumn(value = "车架号",index = 7)
private String vinNo; private String vinNo;
@ExcelColumn(value = "车主姓名",index = 8) @ExcelColumn(value = "品牌车型", index = 12)
private String carBrand;
@ExcelColumn(value = "车主姓名", index = 13)
private String carOwner; private String carOwner;
@ExcelColumn(value = "商户名称",index = 9) @ExcelColumn(value = "车主联系方式", index = 14)
private String carOwnerPhone;
@ExcelColumn(value = "商户名称", index = 15)
private String merchantName; private String merchantName;
@ExcelColumn(value = "所在省",index = 10) @ExcelColumn(value = "所在省", index = 16)
private String province; private String province;
@ExcelColumn(value = "所在市",index = 11) @ExcelColumn(value = "所在市", index = 17)
private String city; private String city;
@ExcelColumn(value = "服务地址",index = 12) @ExcelColumn(value = "服务地址", index = 18)
private String address; private String address;
@ExcelColumn(value = "第三方工单号",index = 13) @ExcelColumn(value = "服务商名称", index = 19)
private String workOrderNo;
@ExcelColumn(value = "服务商名称",index = 14)
private String serviceName; private String serviceName;
@ExcelColumn(value = "订单类型",index = 15) @ExcelColumn(value = "技工信息", index = 20)
private String orderType; private String mechanicInfo;
public String getServiceName() { @ExcelColumn(value = "订单类型", index = 21)
return serviceName; private String orderType;
}
public void setServiceName(String serviceName) { @ExcelColumn(value = "安装地址", index = 22)
this.serviceName = serviceName; private String installLocation;
}
public String getOrderType() { @ExcelColumn(value = "安装照片地址", index = 23)
return orderType; private String installLocationPicture;
}
public void setOrderType(String orderType) {
this.orderType = orderType;
}
public String getOrderSn() { public String getOrderSn() {
return orderSn; return orderSn;
...@@ -80,6 +86,14 @@ public class ExportOrderVo { ...@@ -80,6 +86,14 @@ public class ExportOrderVo {
this.orderSn = orderSn; this.orderSn = orderSn;
} }
public String getWorkOrderNo() {
return workOrderNo;
}
public void setWorkOrderNo(String workOrderNo) {
this.workOrderNo = workOrderNo;
}
public String getOrderChannel() { public String getOrderChannel() {
return orderChannel; return orderChannel;
} }
...@@ -104,36 +118,52 @@ public class ExportOrderVo { ...@@ -104,36 +118,52 @@ public class ExportOrderVo {
this.createTime = createTime; this.createTime = createTime;
} }
public String getActiveStatus() { public Date getReceiveTime() {
return activeStatus; return receiveTime;
} }
public void setActiveStatus(String activeStatus) { public void setReceiveTime(Date receiveTime) {
this.activeStatus = activeStatus; this.receiveTime = receiveTime;
} }
public String getServiceType() { public Date getReserveInstallTime() {
return serviceType; return reserveInstallTime;
} }
public void setServiceType(String serviceType) { public void setReserveInstallTime(Date reserveInstallTime) {
this.serviceType = serviceType; this.reserveInstallTime = reserveInstallTime;
} }
public String getMechanicInfo() { public Date getCheckInTime() {
return mechanicInfo; return checkInTime;
} }
public void setMechanicInfo(String mechanicInfo) { public void setCheckInTime(Date checkInTime) {
this.mechanicInfo = mechanicInfo; this.checkInTime = checkInTime;
} }
public String getAddress() { public Date getCompleteTime() {
return address; return completeTime;
} }
public void setAddress(String address) { public void setCompleteTime(Date completeTime) {
this.address = address; 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() { public String getVinNo() {
...@@ -144,6 +174,14 @@ public class ExportOrderVo { ...@@ -144,6 +174,14 @@ public class ExportOrderVo {
this.vinNo = vinNo; this.vinNo = vinNo;
} }
public String getCarBrand() {
return carBrand;
}
public void setCarBrand(String carBrand) {
this.carBrand = carBrand;
}
public String getCarOwner() { public String getCarOwner() {
return carOwner; return carOwner;
} }
...@@ -152,6 +190,14 @@ public class ExportOrderVo { ...@@ -152,6 +190,14 @@ public class ExportOrderVo {
this.carOwner = carOwner; this.carOwner = carOwner;
} }
public String getCarOwnerPhone() {
return carOwnerPhone;
}
public void setCarOwnerPhone(String carOwnerPhone) {
this.carOwnerPhone = carOwnerPhone;
}
public String getMerchantName() { public String getMerchantName() {
return merchantName; return merchantName;
} }
...@@ -176,11 +222,81 @@ public class ExportOrderVo { ...@@ -176,11 +222,81 @@ public class ExportOrderVo {
this.city = city; this.city = city;
} }
public String getWorkOrderNo() { public String getAddress() {
return workOrderNo; return address;
} }
public void setWorkOrderNo(String workOrderNo) { public void setAddress(String address) {
this.workOrderNo = workOrderNo; 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 getInstallLocation() {
return installLocation;
}
public void setInstallLocation(String installLocation) {
this.installLocation = installLocation;
}
public String getInstallLocationPicture() {
return installLocationPicture;
}
public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture;
}
@Override
public String toString() {
return "ExportOrderVo{" +
"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 + '\'' +
", installLocation='" + installLocation + '\'' +
", installLocationPicture='" + installLocationPicture + '\'' +
'}';
} }
} }
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.pojo;
import com.glsx.ordercenter.dto.*;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.Future; import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
...@@ -10,6 +7,12 @@ import javax.validation.groups.Default; ...@@ -10,6 +7,12 @@ import javax.validation.groups.Default;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.glsx.ordercenter.dto.CarInfo;
import com.glsx.ordercenter.dto.ChannelInfo;
import com.glsx.ordercenter.dto.MachanicInfo;
import com.glsx.ordercenter.dto.MerchantInfo;
import com.glsx.ordercenter.dto.ServiceInfo;
import org.springframework.format.annotation.DateTimeFormat;
/** /**
* @author duanht * @author duanht
...@@ -418,6 +421,10 @@ public class SysOrder { ...@@ -418,6 +421,10 @@ public class SysOrder {
private Byte installMode; private Byte installMode;
//加装设备 0 需要 1 不需要 //加装设备 0 需要 1 不需要
private Byte ifAddDevice; private Byte ifAddDevice;
/**
* 接单时间
*/
private Date receiveTime;
public Byte getIfAddDevice() { public Byte getIfAddDevice() {
return ifAddDevice; return ifAddDevice;
...@@ -1288,67 +1295,122 @@ public class SysOrder { ...@@ -1288,67 +1295,122 @@ public class SysOrder {
this.terminalType = terminalType; this.terminalType = terminalType;
} }
public Date getReceiveTime() {
return receiveTime;
}
public void setReceiveTime(Date receiveTime) {
this.receiveTime = receiveTime;
}
@Override @Override
public String toString() { public String toString() {
return "SysOrder [noBidingDuration=" + noBidingDuration return "SysOrder{" +
+ ", serviceItems=" + serviceItems + ", id=" + id "noBidingDuration='" + noBidingDuration + '\'' +
+ ", orderSn=" + orderSn + ", activeStatus=" + activeStatus ", serviceItems=" + serviceItems +
+ ", canceled=" + canceled + ", orderType=" + orderType ", id=" + id +
+ ", shopId=" + shopId + ", district=" + district ", orderSn='" + orderSn + '\'' +
+ ", address=" + address + ", contact=" + contact ", activeStatus=" + activeStatus +
+ ", phoneNumber=" + phoneNumber + ", carBrand=" + carBrand ", canceled=" + canceled +
+ ", carSeries=" + carSeries + ", carType=" + carType ", orderType=" + orderType +
+ ", vinNo=" + vinNo + ", carColor=" + carColor ", shopId=" + shopId +
+ ", expectInstallTime=" + expectInstallTime ", district=" + district +
+ ", bidExpectInstallTime=" + bidExpectInstallTime ", address='" + address + '\'' +
+ ", serviceType=" + serviceType + ", carOwner=" + carOwner ", contact='" + contact + '\'' +
+ ", carOwnerPhone=" + carOwnerPhone + ", cancelTime=" ", phoneNumber='" + phoneNumber + '\'' +
+ cancelTime + ", activeStatusArray=" + activeStatusArray ", carBrand=" + carBrand +
+ ", merchantId=" + merchantId + ", mechanicId=" + mechanicId ", carSeries=" + carSeries +
+ ", repairReason=" + repairReason + ", remark=" + remark ", carType='" + carType + '\'' +
+ ", createTime=" + createTime + ", updateTime=" + updateTime ", vinNo='" + vinNo + '\'' +
+ ", createBy=" + createBy + ", updateBy=" + updateBy ", carColor='" + carColor + '\'' +
+ ", deviceNo=" + deviceNo + ", installLocation=" ", expectInstallTime=" + expectInstallTime +
+ installLocation + ", overdueReason=" + overdueReason ", bidExpectInstallTime=" + bidExpectInstallTime +
+ ", repairType=" + repairType + ", carPicture=" + carPicture ", serviceType='" + serviceType + '\'' +
+ ", vinNoPicture=" + vinNoPicture ", carOwner='" + carOwner + '\'' +
+ ", installLocationPicture=" + installLocationPicture ", carOwnerPhone='" + carOwnerPhone + '\'' +
+ ", completeTime=" + completeTime + ", reserveInstallTime=" ", cancelTime=" + cancelTime +
+ reserveInstallTime + ", reserveInstallReason=" ", activeStatusArray='" + activeStatusArray + '\'' +
+ reserveInstallReason + ", area=" + area + ", orderRepair=" ", merchantId=" + merchantId +
+ orderRepair + ", orderChannel=" + orderChannel ", mechanicId=" + mechanicId +
+ ", merchantInfo=" + merchantInfo + ", machanicInfo=" ", repairReason='" + repairReason + '\'' +
+ machanicInfo + ", subOrderCount=" + subOrderCount ", remark='" + remark + '\'' +
+ ", serviceInfo=" + serviceInfo + ", afterSaleType=" ", createTime=" + createTime +
+ afterSaleType + ", beginDate=" + beginDate + ", endDate=" ", updateTime=" + updateTime +
+ endDate + ", installRemark=" + installRemark ", createBy=" + createBy +
+ ", installDeviceType=" + installDeviceType ", updateBy=" + updateBy +
+ ", installDeviceTypeName=" + installDeviceTypeName ", deviceNo='" + deviceNo + '\'' +
+ ", isApplyAfterSale=" + isApplyAfterSale + ", isDismantle=" ", installLocation='" + installLocation + '\'' +
+ isDismantle + ", carInfo=" + carInfo + ", queryContent=" ", overdueReason='" + overdueReason + '\'' +
+ queryContent + ", workOrderNo=" + workOrderNo + ", channel=" ", repairType=" + repairType +
+ channel + ", merchantName=" + merchantName + ", serviceName=" ", carPicture='" + carPicture + '\'' +
+ serviceName + ", deviceGroup=" + deviceGroup ", vinNoPicture='" + vinNoPicture + '\'' +
+ ", newWorkOrderNo=" + newWorkOrderNo + ", channelInfo=" ", installLocationPicture='" + installLocationPicture + '\'' +
+ channelInfo + ", reassignMechanicTime=" ", completeTime=" + completeTime +
+ reassignMechanicTime + ", sign=" + sign + ", province=" ", reserveInstallTime=" + reserveInstallTime +
+ province + ", city=" + city + ", rootOrgName=" + rootOrgName ", reserveInstallReason='" + reserveInstallReason + '\'' +
+ ", orderChannelOrgId=" + orderChannelOrgId ", area=" + area +
+ ", connectLocationPicture=" + connectLocationPicture ", orderRepair=" + orderRepair +
+ ", surroundingPicture=" + surroundingPicture ", orderChannel='" + orderChannel + '\'' +
+ ", reserveMan=" + reserveMan + ", reserveManPhone=" ", merchantInfo=" + merchantInfo +
+ reserveManPhone + ", overdueRemark=" + overdueRemark ", machanicInfo=" + machanicInfo +
+ ", isCheckIn=" + isCheckIn + ", checkInTime=" + checkInTime ", subOrderCount=" + subOrderCount +
+ ", checkInAddress=" + checkInAddress + ", mechanicAddress=" ", serviceInfo=" + serviceInfo +
+ mechanicAddress + ", isConcern=" + isConcern ", afterSaleType=" + afterSaleType +
+ ", isAfterSaling=" + isAfterSaling + ", longitude=" ", beginDate='" + beginDate + '\'' +
+ longitude + ", latitude=" + latitude + ", quoteLastTime=" ", endDate='" + endDate + '\'' +
+ quoteLastTime + ", referencePrice=" + referencePrice ", installRemark='" + installRemark + '\'' +
+ ", serviceTypes=" + serviceTypes + ", labels=" + labels ", installDeviceType='" + installDeviceType + '\'' +
+ ", files=" + files + ", price=" + price + ", serviceCode=" ", installDeviceTypeName='" + installDeviceTypeName + '\'' +
+ serviceCode + ", installPiuctures=" + installPiuctures ", isApplyAfterSale=" + isApplyAfterSale +
+ ", releasePiuctures=" + releasePiuctures ", isDismantle=" + isDismantle +
+ ", quotationQuantity=" + quotationQuantity + "]"; ", carInfo=" + carInfo +
", queryContent='" + queryContent + '\'' +
", workOrderNo='" + workOrderNo + '\'' +
", workOrderNumber='" + workOrderNumber + '\'' +
", channel='" + channel + '\'' +
", merchantName='" + merchantName + '\'' +
", serviceName='" + serviceName + '\'' +
", deviceGroup='" + deviceGroup + '\'' +
", newWorkOrderNo='" + newWorkOrderNo + '\'' +
", channelInfo=" + channelInfo +
", reassignMechanicTime=" + reassignMechanicTime +
", sign='" + sign + '\'' +
", province='" + province + '\'' +
", city='" + city + '\'' +
", rootOrgName='" + rootOrgName + '\'' +
", orderChannelOrgId=" + orderChannelOrgId +
", connectLocationPicture='" + connectLocationPicture + '\'' +
", surroundingPicture='" + surroundingPicture + '\'' +
", reserveMan='" + reserveMan + '\'' +
", reserveManPhone='" + reserveManPhone + '\'' +
", overdueRemark='" + overdueRemark + '\'' +
", isCheckIn=" + isCheckIn +
", checkInTime=" + checkInTime +
", checkInAddress='" + checkInAddress + '\'' +
", mechanicAddress='" + mechanicAddress + '\'' +
", isConcern=" + isConcern +
", isAfterSaling=" + isAfterSaling +
", longitude='" + longitude + '\'' +
", latitude='" + latitude + '\'' +
", quoteLastTime=" + quoteLastTime +
", referencePrice=" + referencePrice +
", serviceTypes='" + serviceTypes + '\'' +
", labels=" + labels +
", files='" + files + '\'' +
", price=" + price +
", serviceCode='" + serviceCode + '\'' +
", orderDeviceIds='" + orderDeviceIds + '\'' +
", installPiuctures=" + installPiuctures +
", releasePiuctures=" + releasePiuctures +
", quotationQuantity=" + quotationQuantity +
", orderDevices=" + orderDevices +
", orderIcon='" + orderIcon + '\'' +
", sysOrderProgress=" + sysOrderProgress +
", oldVinNo='" + oldVinNo + '\'' +
", terminalType=" + terminalType +
", installMode=" + installMode +
", ifAddDevice=" + ifAddDevice +
", receiveTime=" + receiveTime +
'}';
} }
} }
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
<result column="longitude" jdbcType="VARCHAR" property="longitude"/> <result column="longitude" jdbcType="VARCHAR" property="longitude"/>
<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"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -81,9 +82,8 @@ ...@@ -81,9 +82,8 @@
and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value}
</when> </when>
<when test="criterion.betweenValue"> <when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and # and ${criterion.condition} #{criterion.value}
and #{criterion.secondValue}
{criterion.secondValue}
</when> </when>
<when test="criterion.listValue"> <when test="criterion.listValue">
and ${criterion.condition} and ${criterion.condition}
...@@ -108,7 +108,8 @@ ...@@ -108,7 +108,8 @@
complete_time,install_remark,install_device_type,reserve_install_time, complete_time,install_remark,install_device_type,reserve_install_time,
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
</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
...@@ -154,7 +155,7 @@ ...@@ -154,7 +155,7 @@
vin_no_picture, install_location_picture, complete_time, vin_no_picture, install_location_picture, complete_time,
install_remark, install_device_type, reserve_install_time, install_remark, install_device_type, reserve_install_time,
work_order_no, channel, merchant_name, work_order_no, channel, merchant_name,
service_code service_code, receive_time
) )
values (#{orderSn,jdbcType=VARCHAR}, #{activeStatus,jdbcType=TINYINT}, #{canceled,jdbcType=TINYINT}, values (#{orderSn,jdbcType=VARCHAR}, #{activeStatus,jdbcType=TINYINT}, #{canceled,jdbcType=TINYINT},
#{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER}, #{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER},
...@@ -172,7 +173,7 @@ ...@@ -172,7 +173,7 @@
#{installRemark,jdbcType=VARCHAR}, #{installDeviceType,jdbcType=VARCHAR}, #{installRemark,jdbcType=VARCHAR}, #{installDeviceType,jdbcType=VARCHAR},
#{reserveInstallTime,jdbcType=TIMESTAMP}, #{reserveInstallTime,jdbcType=TIMESTAMP},
#{workOrderNo,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR}, #{workOrderNo,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR},
#{serviceCode} #{serviceCode}, #{receiveTime,jdbcType=TIMESTAMP}
) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder" useGeneratedKeys="true" <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder" useGeneratedKeys="true"
...@@ -332,6 +333,9 @@ ...@@ -332,6 +333,9 @@
<if test="installMode != null"> <if test="installMode != null">
install_mode, install_mode,
</if> </if>
<if test="receiveTime != null">
receive_time,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null"> <if test="orderSn != null">
...@@ -487,6 +491,9 @@ ...@@ -487,6 +491,9 @@
<if test="installMode != null"> <if test="installMode != null">
#{installMode,jdbcType=TINYINT}, #{installMode,jdbcType=TINYINT},
</if> </if>
<if test="receiveTime != null">
#{receiveTime,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">
...@@ -669,6 +676,9 @@ ...@@ -669,6 +676,9 @@
<if test="latitude != null"> <if test="latitude != null">
latitude = #{latitude }, latitude = #{latitude },
</if> </if>
<if test="receiveTime != null">
receive_time = #{receiveTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -716,7 +726,8 @@ ...@@ -716,7 +726,8 @@
work_order_no = #{workOrderNo,jdbcType=VARCHAR}, work_order_no = #{workOrderNo,jdbcType=VARCHAR},
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}
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"
...@@ -976,7 +987,8 @@ ...@@ -976,7 +987,8 @@
</if> </if>
merchant_name = #{merchantName,jdbcType=VARCHAR}, merchant_name = #{merchantName,jdbcType=VARCHAR},
longitude = #{longitude }, longitude = #{longitude },
latitude = #{latitude } latitude = #{latitude },
receive_time = #{receiveTime,jdbcType=TIMESTAMP}
<where> <where>
<if test="id != null"> <if test="id != null">
and id = #{id,jdbcType=INTEGER} and id = #{id,jdbcType=INTEGER}
...@@ -1120,6 +1132,9 @@ ...@@ -1120,6 +1132,9 @@
<if test="merchantName != null"> <if test="merchantName != null">
merchant_name = #{merchantName,jdbcType=VARCHAR}, merchant_name = #{merchantName,jdbcType=VARCHAR},
</if> </if>
<if test="receiveTime != null">
receive_time = #{receiveTime,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}
...@@ -1231,6 +1246,9 @@ ...@@ -1231,6 +1246,9 @@
so.mechanic_id mechanicId, so.install_device_type installDeviceType, so.mechanic_id mechanicId, so.install_device_type installDeviceType,
so.service_type serviceType, p.area_name province, c.area_name city, so.service_type serviceType, p.area_name province, c.area_name city,
ifnull(so.vin_no, '') as vinNo, so.car_owner carOwner, ifnull(so.vin_no, '') as vinNo, so.car_owner carOwner,
so.car_owner_phone carOwnerPhone,
so.car_brand carBrand, so.car_series carSeries, so.car_type carType,
so.receive_time receiveTime,
ifnull(ssm.shop_name,so.merchant_name) as merchantName, so.reserve_install_time reserveInstallTime, ifnull(ssm.shop_name,so.merchant_name) as merchantName, so.reserve_install_time reserveInstallTime,
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
...@@ -1365,33 +1383,27 @@ ...@@ -1365,33 +1383,27 @@
<if test="orderSn != null and orderSn!=''"> <if test="orderSn != null and orderSn!=''">
and so.order_sn like "%"#{orderSn}"%" and so.order_sn like "%"#{orderSn}"%"
</if> </if>
<if test="serviceType != null and serviceType!=''"> <if test="serviceType != null and serviceType!=''">
and so.install_device_type = #{serviceType,jdbcType=VARCHAR} and so.install_device_type = #{serviceType,jdbcType=VARCHAR}
</if> </if>
<if <if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''">
test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''"> and so.create_time between #{dateStart,jdbcType=TIMESTAMP}
and so.create_time between #{dateStart,jdbcType=TIMESTAMP} 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>
<if test="orderChannel != null and orderChannel!=''"> <if test="orderChannel != null and orderChannel!=''">
and sp.group_id = #{orderChannel} and sp.group_id = #{orderChannel}
</if> </if>
<if test="city != null and city!=''"> <if test="city != null and city!=''">
and( CONCAT(p.area_name, c.area_name) like "%"#{city}"%") and( CONCAT(p.area_name, c.area_name) like "%"#{city}"%")
</if> </if>
<if test="serviceCode != null and serviceCode !=''"> <if test="serviceCode != null and serviceCode !=''">
and so.service_code = #{serviceCode} and so.service_code = #{serviceCode}
</if> </if>
<if test="serviceName != null and serviceName!=''"> <if test="serviceName != null and serviceName!=''">
and ssp.provider_name like "%"#{serviceName}"%" and ssp.provider_name like "%"#{serviceName}"%"
</if> </if>
...@@ -1405,6 +1417,19 @@ ...@@ -1405,6 +1417,19 @@
or so.vin_no like "%"#{keyWord}"%" or so.vin_no like "%"#{keyWord}"%"
or so.work_order_no like "%"#{keyWord}"%") or so.work_order_no like "%"#{keyWord}"%")
</if> </if>
<if test="carBrand != null">
and so.car_brand = #{carBrand}
</if>
<if test="carSeries != null">
and so.car_series = #{carSeries}
</if>
<if test="carOwner != null and carOwner != ''">
and so.car_owner like "%"#{carOwner}"%"
</if>
<if test="carOwnerPhone != null and carOwnerPhone != ''">
and (so.car_owner like "%"#{carOwnerPhone}"%"
or so.car_owner_phone like "%"#{carOwnerPhone}"%")
</if>
<choose> <choose>
<when test="subsidy == 1"> <when test="subsidy == 1">
and sos.id IS NOT NULL and sos.id IS NOT NULL
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!