fix 开店管理查询条件
This commit is contained in:
@@ -318,7 +318,7 @@
|
|||||||
<select id="getChildrenListByParentIds" resultType="java.lang.Long">
|
<select id="getChildrenListByParentIds" resultType="java.lang.Long">
|
||||||
select id from xfsg_open_area_info where 1=1
|
select id from xfsg_open_area_info where 1=1
|
||||||
<if test="parentIds!=null and parentIds.size>0">
|
<if test="parentIds!=null and parentIds.size>0">
|
||||||
parent_id in
|
and parent_id in
|
||||||
<foreach collection="parentIds" item="parentId" separator="," open="(" close=")">
|
<foreach collection="parentIds" item="parentId" separator="," open="(" close=")">
|
||||||
#{parentId}
|
#{parentId}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
@@ -309,14 +309,23 @@
|
|||||||
<if test="request.openTimeEnd != null ">
|
<if test="request.openTimeEnd != null ">
|
||||||
<![CDATA[and DATE_ADD(a.create_time, INTERVAL 50 DAY) <= #{request.openTimeEnd}]]>
|
<![CDATA[and DATE_ADD(a.create_time, INTERVAL 50 DAY) <= #{request.openTimeEnd}]]>
|
||||||
</if>
|
</if>
|
||||||
<if test="request.joinMode!=null">
|
<if test="request.joinMode!=null and request.joinMode.size >0">
|
||||||
and a.join_mode = #{request.joinMode}
|
and a.join_mode in
|
||||||
|
<foreach collection="request.joinMode" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="request.franchiseBrand!=null">
|
<if test="request.franchiseBrand!=null and request.franchiseBrand.size>0">
|
||||||
and a.franchise_brand = #{request.franchiseBrand}
|
and a.franchise_brand in
|
||||||
|
<foreach collection="request.franchiseBrand" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="request.shopStatus!=null">
|
<if test="request.shopStatus!=null and request.shopStatus.size>0">
|
||||||
and a.shop_status = #{request.shopStatus}
|
and a.shop_status in
|
||||||
|
<foreach collection="request.shopStatus" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="request.wantShopAreaAllIds != null and request.wantShopAreaAllIds.size() > 0">
|
<if test="request.wantShopAreaAllIds != null and request.wantShopAreaAllIds.size() > 0">
|
||||||
and a.want_shop_area_id in
|
and a.want_shop_area_id in
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ public class BranchShopRequest extends PageBasicInfo{
|
|||||||
@ApiModelProperty("意向开店区域")
|
@ApiModelProperty("意向开店区域")
|
||||||
private List<Long> wantShopAreaId;
|
private List<Long> wantShopAreaId;
|
||||||
@ApiModelProperty("加盟模式")
|
@ApiModelProperty("加盟模式")
|
||||||
private Integer joinMode;
|
private List<Integer> joinMode;
|
||||||
@ApiModelProperty("加盟品牌")
|
@ApiModelProperty("加盟品牌")
|
||||||
private Integer franchiseBrand;
|
private List<Integer> franchiseBrand;
|
||||||
@ApiModelProperty("开店状态")
|
@ApiModelProperty("开店状态")
|
||||||
private Integer shopStatus;
|
private List<Integer> shopStatus;
|
||||||
@ApiModelProperty("计划开业日期开始")
|
@ApiModelProperty("计划开业日期开始")
|
||||||
private Date openTimeStart;
|
private Date openTimeStart;
|
||||||
@ApiModelProperty("计划开业日期结束")
|
@ApiModelProperty("计划开业日期结束")
|
||||||
|
|||||||
Reference in New Issue
Block a user