规格回收站bug1
This commit is contained in:
@@ -47,6 +47,11 @@
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getMaxPropValue" resultType="int">
|
||||
SELECT max(sort) FROM `tz_prod_prop_value` WHERE prop_id = #{propId} AND deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<update id="batchMarkDeleted">
|
||||
@@ -103,4 +108,14 @@
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
<update id="restorePropValue">
|
||||
UPDATE tz_prod_prop_value
|
||||
SET is_expire = 1, deleted = 0
|
||||
WHERE id IN
|
||||
<foreach item="id" collection="ids" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -10,7 +10,7 @@
|
||||
-->
|
||||
|
||||
<select id="getSkuRecycleBinPageList" resultType="com.tashow.cloud.productapi.api.product.vo.sku.SkuRecycleBinVO" >
|
||||
select sku_id, properties,sku_name, delete_time from tz_sku where prod_id = #{prodId} and deleted = 1
|
||||
select * from tz_sku where prod_id = #{prodId} and deleted = 1
|
||||
<if test="properties != null and properties != ''">
|
||||
and properties like concat('%', #{properties}, '%')
|
||||
</if>
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
<select id="getSkuListByName" resultType="com.tashow.cloud.productapi.api.product.dto.SkuDO" >
|
||||
select sku_id, properties, delete_time,deleted from tz_sku where deleted = 0
|
||||
select sku_id, properties, delete_time,deleted from tz_sku where deleted = 0 and prod_id = #{prodId}
|
||||
<if test="propertiesName != null and propertiesName != ''">
|
||||
and properties like concat('%', #{propertiesName}, '%')
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user