Commit 709ea37f by wubh

包活干V2.0.0-修改:快递单数据表字段长度、车务子单搜索功能

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28462 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 76c71484
...@@ -99,6 +99,12 @@ ...@@ -99,6 +99,12 @@
left join sys_order o on o.id = so.order_id left join sys_order o on o.id = so.order_id
left join sys_service_item si on si.service_code = o.service_code left join sys_service_item si on si.service_code = o.service_code
<where> <where>
<if test="keyword != null and keyword != ''">
and (so.vehicle_no like "%"#{keyword,jdbcType=VARCHAR}"%"
or so.vin_no like "%"#{keyword,jdbcType=VARCHAR}"%"
or so.car_owner like "%"#{keyword,jdbcType=VARCHAR}"%"
or so.car_owner_phone like "%"#{keyword,jdbcType=VARCHAR}"%")
</if>
<if test="orderId != null"> <if test="orderId != null">
and so.order_id = #{orderId,jdbcType=INTEGER} and so.order_id = #{orderId,jdbcType=INTEGER}
</if> </if>
......
...@@ -60,7 +60,7 @@ CREATE TABLE sys_delivery ...@@ -60,7 +60,7 @@ CREATE TABLE sys_delivery
`receiver_address` VARCHAR(200) DEFAULT NULL COMMENT '收件人详细地址', `receiver_address` VARCHAR(200) DEFAULT NULL COMMENT '收件人详细地址',
`status` TINYINT(2) DEFAULT 1 COMMENT '状态:1待寄件,2待签收,3已签收', `status` TINYINT(2) DEFAULT 1 COMMENT '状态:1待寄件,2待签收,3已签收',
`canceled` TINYINT(2) DEFAULT 1 COMMENT '是否取消:0已取消,1未取消', `canceled` TINYINT(2) DEFAULT 1 COMMENT '是否取消:0已取消,1未取消',
`remark` VARCHAR(50) DEFAULT NULL COMMENT '备注', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注',
`create_time` DATETIME DEFAULT NULL COMMENT '创建时间', `create_time` DATETIME DEFAULT NULL COMMENT '创建时间',
`update_time` DATETIME DEFAULT NULL COMMENT '更新时间', `update_time` DATETIME DEFAULT NULL COMMENT '更新时间',
`create_by` INT(11) DEFAULT NULL COMMENT '创建人', `create_by` INT(11) DEFAULT NULL COMMENT '创建人',
...@@ -89,4 +89,4 @@ ALTER TABLE sys_service_item ADD `push_url` varchar(120) DEFAULT NULL COMMENT ' ...@@ -89,4 +89,4 @@ ALTER TABLE sys_service_item ADD `push_url` varchar(120) DEFAULT NULL COMMENT '
ALTER TABLE sys_order_file ADD `sub_order_id` int(11) DEFAULT NULL COMMENT '订单的子单id,关联sys_sub_order中id' AFTER `order_id`; ALTER TABLE sys_order_file ADD `sub_order_id` int(11) DEFAULT NULL COMMENT '订单的子单id,关联sys_sub_order中id' AFTER `order_id`;
-------- 订单表sys_order字段修改 -------- -------- 订单表sys_order字段修改 --------
ALTER TABLE sys_order MODIFY `order_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '订单类型1安装单2拆除单3检修单4竞价单5大搜车正常单6车务单';
\ No newline at end of file \ No newline at end of file
ALTER TABLE sys_order MODIFY `order_type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '订单类型1安装单2拆除单3检修单4竞价单5大搜车正常单6车务单';
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!