|
|
|
@ -350,341 +350,6 @@
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="order_type" jdbcType="VARCHAR" property="orderType" />
|
|
|
|
|
<result column="order_number" jdbcType="VARCHAR" property="orderNumber" />
|
|
|
|
|
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
|
|
|
|
<result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
|
|
|
|
|
<result column="shop_name" jdbcType="VARCHAR" property="shopName" />
|
|
|
|
|
<result column="consignee" jdbcType="VARCHAR" property="consignee" />
|
|
|
|
|
<result column="order_time" jdbcType="TIMESTAMP" property="orderTime" />
|
|
|
|
|
<result column="goods_url" jdbcType="VARCHAR" property="goodsUrl" />
|
|
|
|
|
<result column="number" jdbcType="INTEGER" property="number" />
|
|
|
|
|
<result column="receipt_status" jdbcType="INTEGER" property="receiptStatus" />
|
|
|
|
|
<result column="comment_status" jdbcType="INTEGER" property="commentStatus" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, order_type, order_number, goods_id, goods_name, shop_name, consignee, order_time,
|
|
|
|
|
goods_url, number, receipt_status, comment_status, user_id
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfoExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from stu_goods_order_info
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from stu_goods_order_info
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
delete from stu_goods_order_info
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfoExample">
|
|
|
|
|
delete from stu_goods_order_info
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
insert into stu_goods_order_info (id, order_type, order_number,
|
|
|
|
|
goods_id, goods_name, shop_name,
|
|
|
|
|
consignee, order_time, goods_url,
|
|
|
|
|
number, receipt_status, comment_status,
|
|
|
|
|
user_id)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderType,jdbcType=VARCHAR}, #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
#{goodsId,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR}, #{shopName,jdbcType=VARCHAR},
|
|
|
|
|
#{consignee,jdbcType=VARCHAR}, #{orderTime,jdbcType=TIMESTAMP}, #{goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
#{number,jdbcType=INTEGER}, #{receiptStatus,jdbcType=INTEGER}, #{commentStatus,jdbcType=INTEGER},
|
|
|
|
|
#{userId,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
insert into stu_goods_order_info
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderType != null">
|
|
|
|
|
order_type,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderNumber != null">
|
|
|
|
|
order_number,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
goods_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsName != null">
|
|
|
|
|
goods_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopName != null">
|
|
|
|
|
shop_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="consignee != null">
|
|
|
|
|
consignee,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderTime != null">
|
|
|
|
|
order_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsUrl != null">
|
|
|
|
|
goods_url,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="number != null">
|
|
|
|
|
number,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiptStatus != null">
|
|
|
|
|
receipt_status,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentStatus != null">
|
|
|
|
|
comment_status,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderType != null">
|
|
|
|
|
#{orderType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderNumber != null">
|
|
|
|
|
#{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
#{goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsName != null">
|
|
|
|
|
#{goodsName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopName != null">
|
|
|
|
|
#{shopName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="consignee != null">
|
|
|
|
|
#{consignee,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderTime != null">
|
|
|
|
|
#{orderTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsUrl != null">
|
|
|
|
|
#{goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="number != null">
|
|
|
|
|
#{number,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiptStatus != null">
|
|
|
|
|
#{receiptStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentStatus != null">
|
|
|
|
|
#{commentStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfoExample" resultType="java.lang.Long">
|
|
|
|
|
select count(*) from stu_goods_order_info
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update stu_goods_order_info
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.orderType != null">
|
|
|
|
|
order_type = #{record.orderType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.orderNumber != null">
|
|
|
|
|
order_number = #{record.orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.goodsId != null">
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.goodsName != null">
|
|
|
|
|
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shopName != null">
|
|
|
|
|
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.consignee != null">
|
|
|
|
|
consignee = #{record.consignee,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.orderTime != null">
|
|
|
|
|
order_time = #{record.orderTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.goodsUrl != null">
|
|
|
|
|
goods_url = #{record.goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.number != null">
|
|
|
|
|
number = #{record.number,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.receiptStatus != null">
|
|
|
|
|
receipt_status = #{record.receiptStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.commentStatus != null">
|
|
|
|
|
comment_status = #{record.commentStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update stu_goods_order_info
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
order_type = #{record.orderType,jdbcType=VARCHAR},
|
|
|
|
|
order_number = #{record.orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
|
|
|
|
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
|
|
|
|
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
|
|
|
|
consignee = #{record.consignee,jdbcType=VARCHAR},
|
|
|
|
|
order_time = #{record.orderTime,jdbcType=TIMESTAMP},
|
|
|
|
|
goods_url = #{record.goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
number = #{record.number,jdbcType=INTEGER},
|
|
|
|
|
receipt_status = #{record.receiptStatus,jdbcType=INTEGER},
|
|
|
|
|
comment_status = #{record.commentStatus,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
update stu_goods_order_info
|
|
|
|
|
<set>
|
|
|
|
|
<if test="orderType != null">
|
|
|
|
|
order_type = #{orderType,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderNumber != null">
|
|
|
|
|
order_number = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsId != null">
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsName != null">
|
|
|
|
|
goods_name = #{goodsName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shopName != null">
|
|
|
|
|
shop_name = #{shopName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="consignee != null">
|
|
|
|
|
consignee = #{consignee,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderTime != null">
|
|
|
|
|
order_time = #{orderTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsUrl != null">
|
|
|
|
|
goods_url = #{goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="number != null">
|
|
|
|
|
number = #{number,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="receiptStatus != null">
|
|
|
|
|
receipt_status = #{receiptStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="commentStatus != null">
|
|
|
|
|
comment_status = #{commentStatus,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
update stu_goods_order_info
|
|
|
|
|
set order_type = #{orderType,jdbcType=VARCHAR},
|
|
|
|
|
order_number = #{orderNumber,jdbcType=VARCHAR},
|
|
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
|
|
goods_name = #{goodsName,jdbcType=VARCHAR},
|
|
|
|
|
shop_name = #{shopName,jdbcType=VARCHAR},
|
|
|
|
|
consignee = #{consignee,jdbcType=VARCHAR},
|
|
|
|
|
order_time = #{orderTime,jdbcType=TIMESTAMP},
|
|
|
|
|
goods_url = #{goodsUrl,jdbcType=VARCHAR},
|
|
|
|
|
number = #{number,jdbcType=INTEGER},
|
|
|
|
|
receipt_status = #{receiptStatus,jdbcType=INTEGER},
|
|
|
|
|
comment_status = #{commentStatus,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="selectMyOrderInfoList" resultMap="BaseResultMap" resultType="com.sztzjy.trade.entity.StuGoodsOrderInfo">
|
|
|
|
|
SELECT id,order_type,order_number,goods_id,goods_name,shop_name,consignee,order_time,goods_url,number,receipt_status,comment_status,user_id
|
|
|
|
|
FROM stu_goods_order_info
|
|
|
|
|