Helius
2021-06-28 1cf11872afc2a86eec4deb1366949d8aaca64bf1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzx.gc.shop.mapper.ScoreGoodsStyleMapper">
 
    <select id="selectScoreGoodsStyleByGoodsId" resultType="com.xzx.gc.entity.ScoreGoodsStyle">
        SELECT
            a.*
        FROM
            xzx_score_goods_style a
        WHERE 1 = 1
          and a.goods_id = #{id}
          and a.del_flag = 0
    </select>
 
 
    <update id="updateDelFlagById">
        update xzx_score_goods_style set del_flag=#{delFlag}
        where id=#{id}
    </update>
 
</mapper>