| | |
| | | <result column="fs_createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="fs_updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | |
| | | <association property="qualityFactory" column="fs_qfgoods_id" |
| | | javaType="com.yeshi.fanli.entity.bus.lable.QualityFactory"> |
| | | <association property="taoBaoGoodsBrief" column="fs_qfgoods_id" javaType="com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief"> |
| | | <id column="fs_qfgoods_id" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_quality_flash_sale |
| | | (fs_id,fs_qfgoods_id,fs_type,fs_weight,fs_createtime,fs_updatetime) values |
| | | (#{id,jdbcType=BIGINT},#{qualityFactory.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP}) |
| | | (#{id,jdbcType=BIGINT},#{taoBaoGoodsBrief.id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale" |
| | |
| | | insert into yeshi_ec_quality_flash_sale |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">fs_id,</if> |
| | | <if test="qualityFactory != null">fs_qfgoods_id,</if> |
| | | <if test="taoBaoGoodsBrief != null">fs_qfgoods_id,</if> |
| | | <if test="type != null">fs_type,</if> |
| | | <if test="weight != null">fs_weight,</if> |
| | | <if test="createtime != null">fs_createtime,</if> |
| | |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="qualityFactory != null">#{qualityFactory.id,jdbcType=BIGINT},</if> |
| | | <if test="taoBaoGoodsBrief != null">#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="weight != null">#{weight,jdbcType=DOUBLE},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | |
| | | |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale">update |
| | | yeshi_ec_quality_flash_sale set |
| | | fs_qfgoods_id = #{qualityFactory.id,jdbcType=BIGINT}, |
| | | fs_qfgoods_id = #{taoBaoGoodsBrief.id,jdbcType=BIGINT}, |
| | | fs_type = #{type,jdbcType=INTEGER}, |
| | | fs_weight = #{weight,jdbcType=DOUBLE}, |
| | | fs_createtime = #{createtime,jdbcType=TIMESTAMP}, |
| | |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.lable.QualityFlashSale"> |
| | | update yeshi_ec_quality_flash_sale |
| | | <set> |
| | | <if test="qualityFactory != null">fs_qfgoods_id=#{qualityFactory.id,jdbcType=BIGINT},</if> |
| | | <if test="taoBaoGoodsBrief != null">fs_qfgoods_id=#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if> |
| | | <if test="type != null">fs_type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="weight != null">fs_weight=#{weight,jdbcType=DOUBLE},</if> |
| | | <if test="createtime != null">fs_createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | |
| | | <foreach collection="list" item="item" separator=","> |
| | | ( |
| | | #{item.id,jdbcType=BIGINT}, |
| | | #{item.qualityFactory.id,jdbcType=BIGINT}, |
| | | #{item.taoBaoGoodsBrief.id,jdbcType=BIGINT}, |
| | | #{item.type,jdbcType=INTEGER}, |
| | | #{item.weight,jdbcType=DOUBLE}, |
| | | #{item.createtime,jdbcType=TIMESTAMP}, |
| | |
| | | separator=",">#{item}</foreach> |
| | | </select> |
| | | |
| | | <delete id="deleteByQualityID" parameterType="java.lang.Long"> |
| | | <delete id="deleteByGoodsId" parameterType="java.lang.Long"> |
| | | delete from yeshi_ec_quality_flash_sale where fs_qfgoods_id = #{qid,jdbcType=BIGINT} |
| | | </delete> |
| | | |