Commit c7c57497 by zhengxj

finish 修正代码on 20190125 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17086 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 00e53921
...@@ -108,7 +108,6 @@ public class OrderController { ...@@ -108,7 +108,6 @@ public class OrderController {
criteria.andMechanicIdIn(null); criteria.andMechanicIdIn(null);
} }
criteria.andOrderSnLike(oueryOrderReq.getOrderSn() + "%");
} }
......
/*
* Copyright (c) 2018, 2028, glsx and/or its affiliates. All rights reserved.
* GLSX PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.glsx.ordercenter.dto;
import java.util.List;
import com.glsx.ordercenter.pojo.SysArea;
import com.glsx.ordercenter.pojo.SysOrder;
import com.glsx.ordercenter.pojo.SysOrderRepair;
/**
* @ClassName: QueryOrderResp
* @Description: TODO(这里用一句话描述这个类的作用)
* @author Zheng Xiajun
* @date 2019年1月25日
*
*/
public class QueryOrderResp extends SysOrder{
private SysArea area;
private List<SysOrderRepair> orderRepair;
// private SysArea
}
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.pojo;
import java.util.Date; import java.util.Date;
import java.util.List;
public class SysOrder { public class SysOrder {
private Integer id; private Integer id;
...@@ -16,6 +15,10 @@ public class SysOrder { ...@@ -16,6 +15,10 @@ public class SysOrder {
private Integer shopId; private Integer shopId;
private Integer district;
private String address;
private String contact; private String contact;
private Integer phoneNumber; private Integer phoneNumber;
...@@ -56,17 +59,6 @@ public class SysOrder { ...@@ -56,17 +59,6 @@ public class SysOrder {
private String updateBy; private String updateBy;
private List<SysOrderRepair> children;
public List<SysOrderRepair> getChildren() {
return children;
}
public void setChildren(List<SysOrderRepair> children) {
this.children = children;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }
...@@ -115,6 +107,22 @@ public class SysOrder { ...@@ -115,6 +107,22 @@ public class SysOrder {
this.shopId = shopId; this.shopId = shopId;
} }
public Integer getDistrict() {
return district;
}
public void setDistrict(Integer district) {
this.district = district;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address == null ? null : address.trim();
}
public String getContact() { public String getContact() {
return contact; return contact;
} }
......
...@@ -475,6 +475,136 @@ public class SysOrderExample { ...@@ -475,6 +475,136 @@ public class SysOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDistrictIsNull() {
addCriterion("district is null");
return (Criteria) this;
}
public Criteria andDistrictIsNotNull() {
addCriterion("district is not null");
return (Criteria) this;
}
public Criteria andDistrictEqualTo(Integer value) {
addCriterion("district =", value, "district");
return (Criteria) this;
}
public Criteria andDistrictNotEqualTo(Integer value) {
addCriterion("district <>", value, "district");
return (Criteria) this;
}
public Criteria andDistrictGreaterThan(Integer value) {
addCriterion("district >", value, "district");
return (Criteria) this;
}
public Criteria andDistrictGreaterThanOrEqualTo(Integer value) {
addCriterion("district >=", value, "district");
return (Criteria) this;
}
public Criteria andDistrictLessThan(Integer value) {
addCriterion("district <", value, "district");
return (Criteria) this;
}
public Criteria andDistrictLessThanOrEqualTo(Integer value) {
addCriterion("district <=", value, "district");
return (Criteria) this;
}
public Criteria andDistrictIn(List<Integer> values) {
addCriterion("district in", values, "district");
return (Criteria) this;
}
public Criteria andDistrictNotIn(List<Integer> values) {
addCriterion("district not in", values, "district");
return (Criteria) this;
}
public Criteria andDistrictBetween(Integer value1, Integer value2) {
addCriterion("district between", value1, value2, "district");
return (Criteria) this;
}
public Criteria andDistrictNotBetween(Integer value1, Integer value2) {
addCriterion("district not between", value1, value2, "district");
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<String> values) {
addCriterion("address in", values, "address");
return (Criteria) this;
}
public Criteria andAddressNotIn(List<String> 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 andContactIsNull() { public Criteria andContactIsNull() {
addCriterion("contact is null"); addCriterion("contact is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<result column="canceled" jdbcType="TINYINT" property="canceled" /> <result column="canceled" jdbcType="TINYINT" property="canceled" />
<result column="order_type" jdbcType="TINYINT" property="orderType" /> <result column="order_type" jdbcType="TINYINT" property="orderType" />
<result column="shop_id" jdbcType="INTEGER" property="shopId" /> <result column="shop_id" jdbcType="INTEGER" property="shopId" />
<result column="district" jdbcType="INTEGER" property="district" />
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="contact" jdbcType="VARCHAR" property="contact" /> <result column="contact" jdbcType="VARCHAR" property="contact" />
<result column="phone_number" jdbcType="INTEGER" property="phoneNumber" /> <result column="phone_number" jdbcType="INTEGER" property="phoneNumber" />
<result column="car_brand" jdbcType="VARCHAR" property="carBrand" /> <result column="car_brand" jdbcType="VARCHAR" property="carBrand" />
...@@ -59,10 +61,10 @@ ...@@ -59,10 +61,10 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, order_sn, active_status, canceled, order_type, shop_id, contact, phone_number, id, order_sn, active_status, canceled, order_type, shop_id, district, address, contact,
car_brand, car_type, vin_no, car_color, install_date, service_type, car_owner, car_owner_phone, phone_number, car_brand, car_type, vin_no, car_color, install_date, service_type,
cancel_time, active_status_array, merchant_id, mechanic_id, repair_reason, remark, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id, mechanic_id,
create_time, update_time, create_by, update_by repair_reason, remark, create_time, update_time, create_by, update_by
</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
...@@ -108,23 +110,25 @@ ...@@ -108,23 +110,25 @@
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into sys_order (order_sn, active_status, canceled, insert into sys_order (order_sn, active_status, canceled,
order_type, shop_id, contact, order_type, shop_id, district,
phone_number, car_brand, car_type, address, contact, phone_number,
vin_no, car_color, install_date, car_brand, car_type, vin_no,
service_type, car_owner, car_owner_phone, car_color, install_date, service_type,
cancel_time, active_status_array, merchant_id, car_owner, car_owner_phone, cancel_time,
mechanic_id, repair_reason, remark, active_status_array, merchant_id, mechanic_id,
create_time, update_time, create_by, repair_reason, remark, create_time,
update_by) update_time, create_by, update_by
)
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}, #{contact,jdbcType=VARCHAR}, #{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER},
#{phoneNumber,jdbcType=INTEGER}, #{carBrand,jdbcType=VARCHAR}, #{carType,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=INTEGER},
#{vinNo,jdbcType=VARCHAR}, #{carColor,jdbcType=VARCHAR}, #{installDate,jdbcType=TIMESTAMP}, #{carBrand,jdbcType=VARCHAR}, #{carType,jdbcType=VARCHAR}, #{vinNo,jdbcType=VARCHAR},
#{serviceType,jdbcType=VARCHAR}, #{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=INTEGER}, #{carColor,jdbcType=VARCHAR}, #{installDate,jdbcType=TIMESTAMP}, #{serviceType,jdbcType=VARCHAR},
#{cancelTime,jdbcType=TIMESTAMP}, #{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=INTEGER}, #{cancelTime,jdbcType=TIMESTAMP},
#{mechanicId,jdbcType=INTEGER}, #{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}) #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder"> <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -147,6 +151,12 @@ ...@@ -147,6 +151,12 @@
<if test="shopId != null"> <if test="shopId != null">
shop_id, shop_id,
</if> </if>
<if test="district != null">
district,
</if>
<if test="address != null">
address,
</if>
<if test="contact != null"> <if test="contact != null">
contact, contact,
</if> </if>
...@@ -224,6 +234,12 @@ ...@@ -224,6 +234,12 @@
<if test="shopId != null"> <if test="shopId != null">
#{shopId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER},
</if> </if>
<if test="district != null">
#{district,jdbcType=INTEGER},
</if>
<if test="address != null">
#{address,jdbcType=VARCHAR},
</if>
<if test="contact != null"> <if test="contact != null">
#{contact,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR},
</if> </if>
...@@ -307,6 +323,12 @@ ...@@ -307,6 +323,12 @@
<if test="shopId != null"> <if test="shopId != null">
shop_id = #{shopId,jdbcType=INTEGER}, shop_id = #{shopId,jdbcType=INTEGER},
</if> </if>
<if test="district != null">
district = #{district,jdbcType=INTEGER},
</if>
<if test="address != null">
address = #{address,jdbcType=VARCHAR},
</if>
<if test="contact != null"> <if test="contact != null">
contact = #{contact,jdbcType=VARCHAR}, contact = #{contact,jdbcType=VARCHAR},
</if> </if>
...@@ -383,6 +405,8 @@ ...@@ -383,6 +405,8 @@
canceled = #{canceled,jdbcType=TINYINT}, canceled = #{canceled,jdbcType=TINYINT},
order_type = #{orderType,jdbcType=TINYINT}, order_type = #{orderType,jdbcType=TINYINT},
shop_id = #{shopId,jdbcType=INTEGER}, shop_id = #{shopId,jdbcType=INTEGER},
district = #{district,jdbcType=INTEGER},
address = #{address,jdbcType=VARCHAR},
contact = #{contact,jdbcType=VARCHAR}, contact = #{contact,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=INTEGER}, phone_number = #{phoneNumber,jdbcType=INTEGER},
car_brand = #{carBrand,jdbcType=VARCHAR}, car_brand = #{carBrand,jdbcType=VARCHAR},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!