|
@@ -39,6 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="paperName" column="paper_name"/>
|
|
|
<result property="externalLink" column="external_link"/>
|
|
|
<result property="externalLinkStatus" column="external_link_status"/>
|
|
|
+ <result property="simulateStatus" column="simulate_status"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getList" parameterType="com.zhongzheng.modules.goods.bo.GoodsAttachedQueryBo" resultMap="GoodsAttachedResultVo">
|
|
@@ -55,6 +56,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
WHEN ga.type = 3 THEN
|
|
|
e.do_type
|
|
|
END do_type,
|
|
|
+ CASE
|
|
|
+
|
|
|
+ WHEN ga.type = 1 THEN
|
|
|
+ -1
|
|
|
+ WHEN ga.type = 2 THEN
|
|
|
+ -1
|
|
|
+ WHEN ga.type = 3 THEN
|
|
|
+ e.simulate_status
|
|
|
+ END simulate_status,
|
|
|
CASE
|
|
|
|
|
|
WHEN ga.type = 1 THEN
|
|
@@ -357,7 +367,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
WHERE
|
|
|
ga.goods_id = #{goodsId} AND ga.type = 3
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<delete id="deleteByIdTenant" parameterType="map">
|
|
|
delete from goods_attached where goods_id = #{newGoodsId} and tenant_id = #{newTenantId}
|
|
|
</delete>
|