Commit 5e012e67 by zhengxj

finish 新增属性 on 20190415 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19666 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 590b8e3d
...@@ -42,6 +42,18 @@ public class UnknownOrderReq extends QueryOrderReq implements Serializable{ ...@@ -42,6 +42,18 @@ public class UnknownOrderReq extends QueryOrderReq implements Serializable{
private String merName; private String merName;
private String channel;
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
public String getMerName() { public String getMerName() {
return merName; return merName;
} }
......
...@@ -121,6 +121,10 @@ public class UnknownOrderImpl implements IUnknownOrderService { ...@@ -121,6 +121,10 @@ public class UnknownOrderImpl implements IUnknownOrderService {
if (com.glsx.common.utils.StringUtils.isNotEmpty(oueryOrderReq.getMerName())) { if (com.glsx.common.utils.StringUtils.isNotEmpty(oueryOrderReq.getMerName())) {
criteria.andMerchantUsernameLike("%" + oueryOrderReq.getMerName() + "%"); criteria.andMerchantUsernameLike("%" + oueryOrderReq.getMerName() + "%");
} }
// 传入渠道
if (com.glsx.common.utils.StringUtils.isNotEmpty(oueryOrderReq.getChannel())) {
// TODO
}
// //
......
...@@ -44,6 +44,10 @@ ...@@ -44,6 +44,10 @@
<result column="install_device_type" jdbcType="VARCHAR" property="installDeviceType" /> <result column="install_device_type" jdbcType="VARCHAR" property="installDeviceType" />
<result column="after_sale_type" jdbcType="INTEGER" property="afterSaleType" /> <result column="after_sale_type" jdbcType="INTEGER" property="afterSaleType" />
<result column="reserve_install_time" jdbcType="TIMESTAMP" property="reserveInstallTime" /> <result column="reserve_install_time" jdbcType="TIMESTAMP" property="reserveInstallTime" />
<result column="work_order_no" jdbcType="VARCHAR" property="workOrderNo" />
<result column="channel" jdbcType="VARCHAR" property="channel" />
<result column="merchant_username" jdbcType="VARCHAR" property="merchantUsername" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -83,7 +87,8 @@ ...@@ -83,7 +87,8 @@
expect_install_time, service_type, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id, expect_install_time, service_type, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id,
mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no, mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no,
install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture, install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time,install_remark,install_device_type,reserve_install_time complete_time,install_remark,install_device_type,reserve_install_time,
work_order_no, channel, merchant_username
</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
...@@ -117,29 +122,38 @@ ...@@ -117,29 +122,38 @@
insert into sys_order (order_sn, active_status, canceled, insert into sys_order (order_sn, active_status, canceled,
order_type, shop_id, district, order_type, shop_id, district,
address, contact, phone_number, address, contact, phone_number,
car_brand, car_series, car_type, vin_no, car_brand, car_series, car_type,
car_color, expect_install_time, service_type, vin_no, car_color, expect_install_time,
car_owner, car_owner_phone, cancel_time, service_type, car_owner, car_owner_phone,
active_status_array, merchant_id, mechanic_id, cancel_time, active_status_array, merchant_id,
repair_reason, remark, create_time, mechanic_id, repair_reason, remark,
update_time, create_by, update_by, create_time, update_time, create_by,
device_no, install_location, overdue_reason, update_by, device_no, install_location,
repair_type, car_picture, vin_no_picture, overdue_reason, repair_type, car_picture,
install_location_picture, complete_time) vin_no_picture, install_location_picture, complete_time,
install_remark, install_device_type, reserve_install_time,
work_order_no, channel, merchant_username
)
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},
#{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, # {phoneNumber,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{carBrand,jdbcType=INTEGER}, #{carSeries,jdbcType=INTEGER}, #{carType,jdbcType=VARCHAR}, #{vinNo,jdbcType=VARCHAR}, #{carBrand,jdbcType=INTEGER}, #{carSeries,jdbcType=INTEGER}, #{carType,jdbcType=VARCHAR},
#{carColor,jdbcType=VARCHAR}, #{expectInstallTime,jdbcType=TIMESTAMP}, #{serviceType,jdbcType=VARCHAR}, #{vinNo,jdbcType=VARCHAR}, #{carColor,jdbcType=VARCHAR}, #{expectInstallTime,jdbcType=TIMESTAMP},
#{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, #{serviceType,jdbcType=VARCHAR}, #{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR},
#{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER}, #{cancelTime,jdbcType=TIMESTAMP}, #{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER},
#{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{mechanicId,jdbcType=INTEGER}, #{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{updateBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER},
#{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR}, #{updateBy,jdbcType=INTEGER}, #{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR},
#{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR}, #{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR},
#{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP}) #{vinNoPicture,jdbcType=VARCHAR}, #{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP},
#{installRemark,jdbcType=VARCHAR}, #{installDeviceType,jdbcType=VARCHAR}, #{reserveInstallTime,jdbcType=TIMESTAMP},
#{workOrderNo,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{merchantUsername,jdbcType=VARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder" keyProperty="id" useGeneratedKeys="true"> <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_order insert into sys_order
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderSn != null"> <if test="orderSn != null">
...@@ -256,6 +270,18 @@ ...@@ -256,6 +270,18 @@
<if test="installDeviceType != null"> <if test="installDeviceType != null">
install_device_type, install_device_type,
</if> </if>
<if test="reserveInstallTime != null">
reserve_install_time,
</if>
<if test="workOrderNo != null">
work_order_no,
</if>
<if test="channel != null">
channel,
</if>
<if test="merchantUsername != null">
merchant_username,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null"> <if test="orderSn != null">
...@@ -372,11 +398,21 @@ ...@@ -372,11 +398,21 @@
<if test="installDeviceType != null"> <if test="installDeviceType != null">
#{installDeviceType,jdbcType=VARCHAR}, #{installDeviceType,jdbcType=VARCHAR},
</if> </if>
<if test="reserveInstallTime != null">
#{reserveInstallTime,jdbcType=TIMESTAMP},
</if>
<if test="workOrderNo != null">
#{workOrderNo,jdbcType=VARCHAR},
</if>
<if test="channel != null">
#{channel,jdbcType=VARCHAR},
</if>
<if test="merchantUsername != null">
#{merchantUsername,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" <select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long">
resultType="java.lang.Long">
select count(*) from sys_order select count(*) from sys_order
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Example_Where_Clause" /> <include refid="Example_Where_Clause" />
...@@ -502,6 +538,15 @@ ...@@ -502,6 +538,15 @@
<if test="reserveInstallTime != null"> <if test="reserveInstallTime != null">
reserve_install_time = #{reserveInstallTime,jdbcType=TIMESTAMP}, reserve_install_time = #{reserveInstallTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="workOrderNo != null">
work_order_no = #{workOrderNo,jdbcType=VARCHAR},
</if>
<if test="channel != null">
channel = #{channel,jdbcType=VARCHAR},
</if>
<if test="merchantUsername != null">
merchant_username = #{merchantUsername,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -516,7 +561,7 @@ ...@@ -516,7 +561,7 @@
address = #{address,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR},
contact = #{contact,jdbcType=VARCHAR}, contact = #{contact,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR}, phone_number = #{phoneNumber,jdbcType=VARCHAR},
car_brand = #{carBrand,jdbcType=VARCHAR}, car_brand = #{carBrand,jdbcType=INTEGER},
car_series = #{carSeries,jdbcType=INTEGER}, car_series = #{carSeries,jdbcType=INTEGER},
car_type = #{carType,jdbcType=VARCHAR}, car_type = #{carType,jdbcType=VARCHAR},
vin_no = #{vinNo,jdbcType=VARCHAR}, vin_no = #{vinNo,jdbcType=VARCHAR},
...@@ -542,7 +587,13 @@ ...@@ -542,7 +587,13 @@
car_picture = #{carPicture,jdbcType=VARCHAR}, car_picture = #{carPicture,jdbcType=VARCHAR},
vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR}, vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR}, install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
complete_time = #{completeTime,jdbcType=TIMESTAMP} complete_time = #{completeTime,jdbcType=TIMESTAMP},
install_remark = #{installRemark,jdbcType=VARCHAR},
install_device_type = #{installDeviceType,jdbcType=VARCHAR},
reserve_install_time = #{reserveInstallTime,jdbcType=TIMESTAMP},
work_order_no = #{workOrderNo,jdbcType=VARCHAR},
channel = #{channel,jdbcType=VARCHAR},
merchant_username = #{merchantUsername,jdbcType=VARCHAR}
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"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!