Merge branch 'main' of http://118.31.7.2:3000/tzjy-code/digital_trade
# Conflicts: # src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java # src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java # src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.javamain
commit
4f609bde95
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import com.sztzjy.trade.entity.StuGoodSalesManage;
|
||||
import com.sztzjy.trade.entity.StuGoodSalesManageExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface StuGoodSalesManageMapper {
|
||||
long countByExample(StuGoodSalesManageExample example);
|
||||
|
||||
int deleteByExample(StuGoodSalesManageExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuGoodSalesManage record);
|
||||
|
||||
int insertSelective(StuGoodSalesManage record);
|
||||
|
||||
List<StuGoodSalesManage> selectByExample(StuGoodSalesManageExample example);
|
||||
|
||||
StuGoodSalesManage selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuGoodSalesManage record, @Param("example") StuGoodSalesManageExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuGoodSalesManage record, @Param("example") StuGoodSalesManageExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuGoodSalesManage record);
|
||||
|
||||
int updateByPrimaryKey(StuGoodSalesManage record);
|
||||
}
|
@ -0,0 +1,403 @@
|
||||
<?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.sztzjy.trade.mapper.StuGoodSalesManageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuGoodSalesManage">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
||||
<result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
|
||||
<result column="goods_type" jdbcType="VARCHAR" property="goodsType" />
|
||||
<result column="goods_subclass" jdbcType="VARCHAR" property="goodsSubclass" />
|
||||
<result column="online_total" jdbcType="VARCHAR" property="onlineTotal" />
|
||||
<result column="available_inventory_quantity" jdbcType="INTEGER" property="availableInventoryQuantity" />
|
||||
<result column="sold_quantity" jdbcType="VARCHAR" property="soldQuantity" />
|
||||
<result column="sales_volume" jdbcType="VARCHAR" property="salesVolume" />
|
||||
<result column="gross_margin" jdbcType="VARCHAR" property="grossMargin" />
|
||||
<result column="number_of_comments" jdbcType="INTEGER" property="numberOfComments" />
|
||||
<result column="number_of_likes" jdbcType="INTEGER" property="numberOfLikes" />
|
||||
<result column="number_of_collections" jdbcType="INTEGER" property="numberOfCollections" />
|
||||
<result column="number_of_shares" jdbcType="INTEGER" property="numberOfShares" />
|
||||
<result column="online_time" jdbcType="TIMESTAMP" property="onlineTime" />
|
||||
<result column="state" jdbcType="INTEGER" property="state" />
|
||||
<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, goods_id, goods_name, goods_type, goods_subclass, online_total, available_inventory_quantity,
|
||||
sold_quantity, sales_volume, gross_margin, number_of_comments, number_of_likes, number_of_collections,
|
||||
number_of_shares, online_time, state, user_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuGoodSalesManageExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_goods_sales_manage
|
||||
<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_sales_manage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_goods_sales_manage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuGoodSalesManageExample">
|
||||
delete from stu_goods_sales_manage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuGoodSalesManage">
|
||||
insert into stu_goods_sales_manage (id, goods_id, goods_name,
|
||||
goods_type, goods_subclass, online_total,
|
||||
available_inventory_quantity, sold_quantity,
|
||||
sales_volume, gross_margin, number_of_comments,
|
||||
number_of_likes, number_of_collections, number_of_shares,
|
||||
online_time, state, user_id
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR},
|
||||
#{goodsType,jdbcType=VARCHAR}, #{goodsSubclass,jdbcType=VARCHAR}, #{onlineTotal,jdbcType=VARCHAR},
|
||||
#{availableInventoryQuantity,jdbcType=INTEGER}, #{soldQuantity,jdbcType=VARCHAR},
|
||||
#{salesVolume,jdbcType=VARCHAR}, #{grossMargin,jdbcType=VARCHAR}, #{numberOfComments,jdbcType=INTEGER},
|
||||
#{numberOfLikes,jdbcType=INTEGER}, #{numberOfCollections,jdbcType=INTEGER}, #{numberOfShares,jdbcType=INTEGER},
|
||||
#{onlineTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuGoodSalesManage">
|
||||
insert into stu_goods_sales_manage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
goods_id,
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name,
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
goods_type,
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass,
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
online_total,
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
available_inventory_quantity,
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
sold_quantity,
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
sales_volume,
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin,
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
number_of_comments,
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
number_of_likes,
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
number_of_collections,
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
number_of_shares,
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
online_time,
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
#{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
#{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
#{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
#{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
#{onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
#{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
#{soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
#{salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
#{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
#{numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
#{numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
#{numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
#{numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
#{onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
#{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuGoodSalesManageExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_goods_sales_manage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_goods_sales_manage
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</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.goodsType != null">
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsSubclass != null">
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.onlineTotal != null">
|
||||
online_total = #{record.onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.availableInventoryQuantity != null">
|
||||
available_inventory_quantity = #{record.availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.soldQuantity != null">
|
||||
sold_quantity = #{record.soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.salesVolume != null">
|
||||
sales_volume = #{record.salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.grossMargin != null">
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.numberOfComments != null">
|
||||
number_of_comments = #{record.numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfLikes != null">
|
||||
number_of_likes = #{record.numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfCollections != null">
|
||||
number_of_collections = #{record.numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfShares != null">
|
||||
number_of_shares = #{record.numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.onlineTime != null">
|
||||
online_time = #{record.onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.state != null">
|
||||
state = #{record.state,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_sales_manage
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
online_total = #{record.onlineTotal,jdbcType=VARCHAR},
|
||||
available_inventory_quantity = #{record.availableInventoryQuantity,jdbcType=INTEGER},
|
||||
sold_quantity = #{record.soldQuantity,jdbcType=VARCHAR},
|
||||
sales_volume = #{record.salesVolume,jdbcType=VARCHAR},
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
number_of_comments = #{record.numberOfComments,jdbcType=INTEGER},
|
||||
number_of_likes = #{record.numberOfLikes,jdbcType=INTEGER},
|
||||
number_of_collections = #{record.numberOfCollections,jdbcType=INTEGER},
|
||||
number_of_shares = #{record.numberOfShares,jdbcType=INTEGER},
|
||||
online_time = #{record.onlineTime,jdbcType=TIMESTAMP},
|
||||
state = #{record.state,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.StuGoodSalesManage">
|
||||
update stu_goods_sales_manage
|
||||
<set>
|
||||
<if test="goodsId != null">
|
||||
goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
online_total = #{onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
available_inventory_quantity = #{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
sold_quantity = #{soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
sales_volume = #{salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
number_of_comments = #{numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
number_of_likes = #{numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
number_of_collections = #{numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
number_of_shares = #{numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
online_time = #{onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state = #{state,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.StuGoodSalesManage">
|
||||
update stu_goods_sales_manage
|
||||
set goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
online_total = #{onlineTotal,jdbcType=VARCHAR},
|
||||
available_inventory_quantity = #{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
sold_quantity = #{soldQuantity,jdbcType=VARCHAR},
|
||||
sales_volume = #{salesVolume,jdbcType=VARCHAR},
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
number_of_comments = #{numberOfComments,jdbcType=INTEGER},
|
||||
number_of_likes = #{numberOfLikes,jdbcType=INTEGER},
|
||||
number_of_collections = #{numberOfCollections,jdbcType=INTEGER},
|
||||
number_of_shares = #{numberOfShares,jdbcType=INTEGER},
|
||||
online_time = #{onlineTime,jdbcType=TIMESTAMP},
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
user_id = #{userId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue