| | |
| | | <result column="cg_sales" property="sales" jdbcType="INTEGER" /> |
| | | <result column="cg_rate" property="rate" jdbcType="DECIMAL" /> |
| | | <result column="cg_picture" property="picture" jdbcType="VARCHAR" /> |
| | | <result column="cg_picture_white" property="pictureWhite" jdbcType="VARCHAR" /> |
| | | <result column="cg_state" property="state" jdbcType="INTEGER" /> |
| | | <result column="cg_price" property="price" jdbcType="DECIMAL" /> |
| | | <result column="cg_coupon_info" property="couponInfo" jdbcType="VARCHAR" /> |
| | |
| | | <result column="cg_createtime" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="cg_updatetime" property="updateTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime |
| | | <sql id="Base_Column_List">cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_picture_white,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.goods.CommonGoods" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_common_goods |
| | | (cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime) |
| | | (cg_id,cg_title,cg_goods_id,cg_goods_type,cg_shop_type,cg_seller_id,cg_seller_name,cg_sales,cg_rate,cg_picture,cg_picture_white,cg_state,cg_price,cg_coupon_info,cg_coupon_startprice,cg_coupon_amount,cg_coupon_left_count,cg_coupon_total_count,cg_video_cover,cg_video_url,cg_createtime,cg_updatetime) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{goodsId,jdbcType=BIGINT},#{goodsType,jdbcType=INTEGER},#{shopType,jdbcType=INTEGER},#{sellerId,jdbcType=BIGINT},#{sellerName,jdbcType=VARCHAR},#{sales,jdbcType=INTEGER},#{rate,jdbcType=DECIMAL},#{picture,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{price,jdbcType=DECIMAL},#{couponInfo,jdbcType=VARCHAR},#{couponStartPrice,jdbcType=DECIMAL},#{couponAmount,jdbcType=DECIMAL},#{couponLeftCount,jdbcType=INTEGER},#{couponTotalCount,jdbcType=INTEGER},#{videoCover,jdbcType=VARCHAR},#{videoUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | |
| | | <if test="sales != null">cg_sales,</if> |
| | | <if test="rate != null">cg_rate,</if> |
| | | <if test="picture != null">cg_picture,</if> |
| | | <if test="pictureWhite != null">cg_picture_white,</if> |
| | | <if test="state != null">cg_state,</if> |
| | | <if test="price != null">cg_price,</if> |
| | | <if test="couponInfo != null">cg_coupon_info,</if> |
| | |
| | | <if test="sales != null">#{sales,jdbcType=INTEGER},</if> |
| | | <if test="rate != null">#{rate,jdbcType=DECIMAL},</if> |
| | | <if test="picture != null">#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="pictureWhite != null">#{pictureWhite,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="price != null">#{price,jdbcType=DECIMAL},</if> |
| | | <if test="couponInfo != null">#{couponInfo,jdbcType=VARCHAR},</if> |
| | |
| | | #{sellerName,jdbcType=VARCHAR},cg_sales = |
| | | #{sales,jdbcType=INTEGER},cg_rate = |
| | | #{rate,jdbcType=DECIMAL},cg_picture = |
| | | #{picture,jdbcType=VARCHAR},cg_state = |
| | | #{picture,jdbcType=VARCHAR},cg_picture_white = |
| | | #{pictureWhite,jdbcType=VARCHAR},cg_state = |
| | | #{state,jdbcType=INTEGER},cg_price = |
| | | #{price,jdbcType=DECIMAL},cg_coupon_info = |
| | | #{couponInfo,jdbcType=VARCHAR},cg_coupon_startprice = |
| | |
| | | <if test="sales != null">cg_sales=#{sales,jdbcType=INTEGER},</if> |
| | | <if test="rate != null">cg_rate=#{rate,jdbcType=DECIMAL},</if> |
| | | <if test="picture != null">cg_picture=#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="pictureWhite != null">cg_picture_white=#{pictureWhite,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">cg_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="price != null">cg_price=#{price,jdbcType=DECIMAL},</if> |
| | | <if test="couponInfo != null">cg_coupon_info=#{couponInfo,jdbcType=VARCHAR},</if> |