|
@@ -6,7 +6,7 @@
|
|
|
SELECT
|
|
|
COUNT(id)
|
|
|
FROM hy_release_goods_info
|
|
|
- WHERE 1=1
|
|
|
+ WHERE delete_flag = '0'
|
|
|
<if test="commonId != null and commonId != ''">
|
|
|
AND common_id = #{commonId}
|
|
|
</if>
|
|
@@ -24,13 +24,13 @@
|
|
|
</if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
- AND status!='已下架' and delete_flag = '0'
|
|
|
+ AND status!='已下架' and often_flag is null
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 2">
|
|
|
+ AND often_flag is null
|
|
|
</if>
|
|
|
- <if test="searchType == 2">
|
|
|
- AND delete_flag = '0'
|
|
|
- </if>
|
|
|
<if test="searchType == 3">
|
|
|
- AND often_flag = '1'
|
|
|
+ AND often_flag is not null
|
|
|
</if>
|
|
|
</if>
|
|
|
</select>
|
|
@@ -73,7 +73,7 @@
|
|
|
create_date as createDate,
|
|
|
update_date as updateDate
|
|
|
FROM hy_release_goods_info
|
|
|
- WHERE 1=1
|
|
|
+ WHERE delete_flag = '0'
|
|
|
<if test="commonId != null and commonId != ''">
|
|
|
AND common_id = #{commonId}
|
|
|
</if>
|
|
@@ -91,13 +91,13 @@
|
|
|
</if>
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
- AND status!='已下架' and delete_flag = '0'
|
|
|
+ AND status!='已下架' and often_flag is null
|
|
|
</if>
|
|
|
<if test="searchType == 2">
|
|
|
- AND delete_flag = '0'
|
|
|
+ AND often_flag is null
|
|
|
</if>
|
|
|
<if test="searchType == 3">
|
|
|
- AND often_flag = '1'
|
|
|
+ AND often_flag is not null
|
|
|
</if>
|
|
|
</if>
|
|
|
ORDER BY update_date DESC
|
|
@@ -144,7 +144,7 @@
|
|
|
create_date as createDate,
|
|
|
update_date as updateDate
|
|
|
FROM hy_release_goods_info
|
|
|
- WHERE 1=1
|
|
|
+ WHERE delete_flag = '0'
|
|
|
<if test="commonId != null and commonId != ''">
|
|
|
AND common_id = #{commonId}
|
|
|
</if>
|
|
@@ -162,13 +162,13 @@
|
|
|
<!-- </if>-->
|
|
|
<if test="searchType != null and searchType != ''">
|
|
|
<if test="searchType == 1">
|
|
|
- AND status!='已下架' and delete_flag = '0'
|
|
|
+ AND status!='已下架' and often_flag is null
|
|
|
</if>
|
|
|
<if test="searchType == 2">
|
|
|
- AND delete_flag = '0'
|
|
|
+ AND often_flag is null
|
|
|
</if>
|
|
|
<if test="searchType == 3">
|
|
|
- AND often_flag = '1'
|
|
|
+ AND often_flag is not null
|
|
|
</if>
|
|
|
</if>
|
|
|
ORDER BY update_date DESC
|