|
@@ -6,7 +6,7 @@
|
|
SELECT
|
|
SELECT
|
|
COUNT(id)
|
|
COUNT(id)
|
|
FROM hy_release_goods_info
|
|
FROM hy_release_goods_info
|
|
- WHERE delete_flag = '0'
|
|
|
|
|
|
+ WHERE 1=1
|
|
<if test="commonId != null and commonId != ''">
|
|
<if test="commonId != null and commonId != ''">
|
|
AND common_id = #{commonId}
|
|
AND common_id = #{commonId}
|
|
</if>
|
|
</if>
|
|
@@ -20,8 +20,11 @@
|
|
</if>
|
|
</if>
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType == 1">
|
|
<if test="searchType == 1">
|
|
- AND status!='已下架'
|
|
|
|
|
|
+ AND status!='已下架' and delete_flag = '0'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="searchType == 2">
|
|
|
|
+ AND delete_flag = '0'
|
|
|
|
+ </if>
|
|
<if test="searchType == 3">
|
|
<if test="searchType == 3">
|
|
AND often_flag = '1'
|
|
AND often_flag = '1'
|
|
</if>
|
|
</if>
|
|
@@ -66,7 +69,7 @@
|
|
create_date as createDate,
|
|
create_date as createDate,
|
|
update_date as updateDate
|
|
update_date as updateDate
|
|
FROM hy_release_goods_info
|
|
FROM hy_release_goods_info
|
|
- WHERE delete_flag = '0'
|
|
|
|
|
|
+ WHERE 1=1
|
|
<if test="commonId != null and commonId != ''">
|
|
<if test="commonId != null and commonId != ''">
|
|
AND common_id = #{commonId}
|
|
AND common_id = #{commonId}
|
|
</if>
|
|
</if>
|
|
@@ -80,7 +83,10 @@
|
|
</if>
|
|
</if>
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType != null and searchType != ''">
|
|
<if test="searchType == 1">
|
|
<if test="searchType == 1">
|
|
- AND status!='已下架'
|
|
|
|
|
|
+ AND status!='已下架' and delete_flag = '0'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="searchType == 2">
|
|
|
|
+ AND delete_flag = '0'
|
|
</if>
|
|
</if>
|
|
<if test="searchType == 3">
|
|
<if test="searchType == 3">
|
|
AND often_flag = '1'
|
|
AND often_flag = '1'
|