Commit f9a964b9 by wubh

包活干V2.4.1-订单搜索条件修改

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30862 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent f2a9b43c
...@@ -15,8 +15,6 @@ import org.springframework.format.annotation.DateTimeFormat; ...@@ -15,8 +15,6 @@ import org.springframework.format.annotation.DateTimeFormat;
* @date 2019年1月23日 * @date 2019年1月23日
*/ */
public class QueryOrderReq implements Serializable { public class QueryOrderReq implements Serializable {
private static final long serialVersionUID = 3945235994796311064L;
/** /**
* 完成时间开始 * 完成时间开始
*/ */
...@@ -68,6 +66,11 @@ public class QueryOrderReq implements Serializable { ...@@ -68,6 +66,11 @@ public class QueryOrderReq implements Serializable {
private String keyWord; private String keyWord;
/**
* 关键字类型(1 车架号,2 第三方合同号,3 车主姓名,4 技工信息,5 商户名称)
*/
private Byte keyWordType;
private Boolean needMoreInfo; private Boolean needMoreInfo;
private Integer subsidy; private Integer subsidy;
...@@ -302,6 +305,14 @@ public class QueryOrderReq implements Serializable { ...@@ -302,6 +305,14 @@ public class QueryOrderReq implements Serializable {
this.keyWord = keyWord; this.keyWord = keyWord;
} }
public Byte getKeyWordType() {
return keyWordType;
}
public void setKeyWordType(Byte keyWordType) {
this.keyWordType = keyWordType;
}
public Boolean getNeedMoreInfo() { public Boolean getNeedMoreInfo() {
return needMoreInfo; return needMoreInfo;
} }
...@@ -380,6 +391,7 @@ public class QueryOrderReq implements Serializable { ...@@ -380,6 +391,7 @@ public class QueryOrderReq implements Serializable {
", mechanicInfo='" + mechanicInfo + '\'' + ", mechanicInfo='" + mechanicInfo + '\'' +
", conditions='" + conditions + '\'' + ", conditions='" + conditions + '\'' +
", keyWord='" + keyWord + '\'' + ", keyWord='" + keyWord + '\'' +
", keyWordType=" + keyWordType +
", needMoreInfo=" + needMoreInfo + ", needMoreInfo=" + needMoreInfo +
", subsidy=" + subsidy + ", subsidy=" + subsidy +
", ids=" + ids + ", ids=" + ids +
......
...@@ -1459,9 +1459,6 @@ ...@@ -1459,9 +1459,6 @@
<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 != ''">-->
<!-- and so.service_code = #{serviceCode,jdbcType=VARCHAR}-->
<!--</if>-->
<if test="serviceCodeList != null and serviceCodeList.size() != 0"> <if test="serviceCodeList != null and serviceCodeList.size() != 0">
and so.service_code in and so.service_code in
<foreach collection="serviceCodeList" item="item" open="(" separator="," close=")"> <foreach collection="serviceCodeList" item="item" open="(" separator="," close=")">
...@@ -1474,12 +1471,28 @@ ...@@ -1474,12 +1471,28 @@
<if test="orderType != null and orderType!=''"> <if test="orderType != null and orderType!=''">
and so.order_type = #{orderType} and so.order_type = #{orderType}
</if> </if>
<if test="keyWord != null and keyWord!=''"> <if test="keyWord != null and keyWord!='' and keyWordType != null">
and(( sm.name like "%"#{keyWord}"%"and sm.user_type = 3) <if test="keyWordType == 1">
or ssm.shop_name like "%"#{keyWord}"%" and so.vin_no = #{keyWord,jdbcType=VARCHAR}
or so.car_owner like "%"#{keyWord}"%" </if>
or so.vin_no like "%"#{keyWord}"%" <if test="keyWordType == 2">
or so.work_order_no like "%"#{keyWord}"%") and so.work_order_no = #{keyWord,jdbcType=VARCHAR}
</if>
<if test="keyWordType == 3">
and so.car_owner like "%"#{keyWord}"%"
</if>
<if test="keyWordType == 4">
and sm.name like "%"#{keyWord}"%"
and sm.user_type = 3
</if>
<if test="keyWordType == 5">
and ssm.shop_name like "%"#{keyWord}"%"
</if>
<!--and(( sm.name like "%"#{keyWord}"%"and sm.user_type = 3)-->
<!-- or ssm.shop_name like "%"#{keyWord}"%"-->
<!-- or so.car_owner like "%"#{keyWord}"%"-->
<!-- or so.vin_no like "%"#{keyWord}"%"-->
<!-- or so.work_order_no like "%"#{keyWord}"%")-->
</if> </if>
<if test="carBrand != null "> <if test="carBrand != null ">
AND so.car_brand = #{carBrand} AND so.car_brand = #{carBrand}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!