Commit 6add0b51 authored by hanfeng's avatar hanfeng

修改车型列表

parent 16ee86e0
...@@ -27,14 +27,11 @@ public class VehicleModelQueryCondition { ...@@ -27,14 +27,11 @@ public class VehicleModelQueryCondition {
@ApiModelProperty(value = "是否删除") @ApiModelProperty(value = "是否删除")
private Integer isDel; private Integer isDel;
@ApiModelProperty(value = "状态") @ApiModelProperty(value = "状态")
private Integer status; private Integer status=1;
@ApiModelProperty("分类逗号分割") @ApiModelProperty("分类逗号分割")
String catasStr; String catasStr;
@ApiModelProperty("排除的车型id") @ApiModelProperty("排除的车型id")
String notInIds; String notInIds;
@ApiModelProperty(value = "分类列表", hidden = true) @ApiModelProperty(value = "分类列表", hidden = true)
Map<Integer, List<VehiclePlatCata>> catas; Map<Integer, List<VehiclePlatCata>> catas;
@ApiModelProperty(value = "分类列表(1-后台,2-app和小程序)", hidden = true)
private Integer pathType=2;
} }
...@@ -17,25 +17,25 @@ ...@@ -17,25 +17,25 @@
<if test="isDel !=null "> <if test="isDel !=null ">
and isdel=#{isDel} and isdel=#{isDel}
</if> </if>
<if test="pathType ==2">
and status = 1
</if>
<if test="pathType!=2">
<if test="status != null"> <if test="status != null">
and status = #{status} and status = #{status}
</if> </if>
</if>
<if test="vehicleName !=null and vehicleName !=''"> <if test="vehicleName !=null and vehicleName !=''">
AND vmqc.name LIKE CONCAT('%',#{vehicleName},'%') AND vmqc.name LIKE CONCAT('%',#{vehicleName},'%')
</if> </if>
<if test="vehicleType!=null and vehicleType!=''"> <if test="vehicleType!=null and vehicleType!=''">
AND EXISTS (SELECT vc.vehicle_model_id FROM vehicle_cata vc WHERE vc.cata_id=#{vehicleType} AND vmqc.id=vc.vehicle_model_id ) AND EXISTS (SELECT vc.vehicle_model_id FROM vehicle_cata vc WHERE vc.cata_id=#{vehicleType} AND
vmqc.id=vc.vehicle_model_id )
</if> </if>
<if test="takeALieTheNumber!=null and takeALieTheNumber!=''"> <if test="takeALieTheNumber!=null and takeALieTheNumber!=''">
AND EXISTS(SELECT vc2.vehicle_model_id FROM vehicle_cata vc2 WHERE vc2.cata_id=#{takeALieTheNumber} AND vmqc.id=vc2.vehicle_model_id) AND EXISTS(SELECT vc2.vehicle_model_id FROM vehicle_cata vc2 WHERE vc2.cata_id=#{takeALieTheNumber} AND
vmqc.id=vc2.vehicle_model_id)
</if> </if>
<if test="catas != null"> <if test="catas != null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment