Commit 8df50395 authored by hezhen's avatar hezhen

123

parent c1de3ab7
...@@ -55,4 +55,8 @@ public class VehicleFindDTO extends PageParam implements DataInter { ...@@ -55,4 +55,8 @@ public class VehicleFindDTO extends PageParam implements DataInter {
@ApiModelProperty("店铺类型:1-店铺资产;2-店铺经营;3-店铺停靠") @ApiModelProperty("店铺类型:1-店铺资产;2-店铺经营;3-店铺停靠")
private Integer type; private Integer type;
@ApiModelProperty("店铺状态:1-上架中;2-下架中;3-已调出")
private Integer goodStatus;
} }
...@@ -1373,6 +1373,25 @@ ...@@ -1373,6 +1373,25 @@
<if test="goodsType != null "> <if test="goodsType != null ">
AND v.`goods_type`= #{goodsType} AND v.`goods_type`= #{goodsType}
</if> </if>
<if test="goodStatus != null and goodStatus > 0 and type != null and type > 0 ">
<choose>
<when test="goodStatus == 1 and type == 1">
and v.`state`= 1 and v.`subordinate_branch` == v.`park_branch_company_id` and v.`subordinate_branch` == v.`manage_company_id
</when>
<when test="goodStatus == 2 and type == 1">
and v.`state`= 2 and v.`subordinate_branch` == v.`park_branch_company_id` and v.`subordinate_branch` == v.`manage_company_id
</when>
<when test="goodStatus == 1 and type == 2">
and v.`state`= 1
</when>
<when test="goodStatus == 2 and type == 2 ">
and v.`state`= 2
</when>
<when test="goodStatus == 3">
and ( v.`subordinate_branch` != v.`park_branch_company_id` or v.`subordinate_branch` != v.`manage_company_id` )
</when>
</choose>
</if>
<if test="dataCompanyIds != null and dataCompanyIds.size > 0"> <if test="dataCompanyIds != null and dataCompanyIds.size > 0">
<if test="type != null and type > 0"> <if test="type != null and type > 0">
<choose> <choose>
......
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