删除生成重复的表

main
whb 1 year ago
parent 4dd8ec04c3
commit b50e2f47c1

@ -20,7 +20,7 @@ public class CgcpdwAnswer {
@ApiModelProperty(notes = "典型采购品项(多个品项用逗号分隔)")
private String typicalItems;
@ApiModelProperty(notes = "核心特征JSON格式如{"":"","":""}")
@ApiModelProperty(notes = "核心特征JSON格式")
private String coreFeatures;
@ApiModelProperty(notes = "模型定位依据500字以内分析说明")

@ -28,7 +28,7 @@ public class CgcpdwStuAnswer {
@ApiModelProperty(notes = "典型采购品项(多个品项用逗号分隔)")
private String typicalItems;
@ApiModelProperty(notes = "核心特征JSON格式如{"":"","":""}")
@ApiModelProperty(notes = "核心特征")
private String coreFeatures;
@ApiModelProperty(notes = "模型定位依据500字以内分析说明")

@ -47,7 +47,7 @@ public class CpjgghStuAnswer {
@ApiModelProperty(notes = "用户ID关联userinfo表")
private String userId;
@ApiModelProperty(notes = "产品分类列表JSON数组格式["","",""]")
@ApiModelProperty(notes = "产品分类列表JSON数组格式")
private String productCategories;
@ApiModelProperty(notes = "结构合理性分析500字以内文字说明")

@ -28,7 +28,7 @@ public class CpyxdwStuAnswer {
@ApiModelProperty(notes = "状态draft-草稿/submitted-已提交/graded-已评分")
private String status;
@ApiModelProperty(notes = "定位坐标数据JSON格式如{"A":[3.5,4.2],"B":[2.8,3.9]}")
@ApiModelProperty(notes = "定位坐标数据JSON格式")
private String positionData;
@ApiModelProperty(notes = "定位分析说明500字以内")

@ -37,7 +37,7 @@ public class FbqdStuAnswer {
@ApiModelProperty(notes = "订单金额数据JSON数组格式如[12000,15000,18000],单位:元)")
private String orderAmount;
@ApiModelProperty(notes = "核心关键词(多个用逗号分隔,如","")
@ApiModelProperty(notes = "核心关键词(多个用逗号分隔,")
private String keywords;
@ApiModelProperty(notes = "场景推广方案500字以内描述")

@ -32,45 +32,5 @@ public interface StuUserMapper {
int updateByPrimaryKey(StuUser record);
List<StuUser> getStartCourseNameList(@Param("classNames")List<String> classNames);
List<StuUser> selectByCourseName(String startCourseName);
/**
*
* @param schoolId IDID
* @return
*/
List<String> selectByClassName(String schoolId);
@Select("select school_id from stu_user group by school_id")
List<String> selectSchool();
/**
*
* @param strings
* @param schoolId ID
* @return
*/
List<String> selectByNoClassName(@Param("strings") List<String> strings,String schoolId);
/**
*
* @param lists
* @param schoolId ID
* @return
*/
List<StuUser> selectStuList(@Param("lists") List<String> lists, String schoolId);
@Select("SELECT class_name, class_id\n" +
"FROM stu_user\n" +
"WHERE school_id = #{schoolId}\n" +
" AND class_name IS NOT NULL\n" +
"GROUP BY class_name, class_id")
List<Map<String, Object>> getClassList(String schoolId);
@Select("SELECT school_name \n" +
"FROM stu_user\n" +
"WHERE school_id = #{schoolId} LIMIT 1")
String selectBySchoolName(String schoolId);
}

@ -225,228 +225,5 @@
consumer_goods = #{consumerGoods,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="BaseResultMap" type="com.sztzjy.linkCommerce.entity.StuSpendingLevel">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="gender" jdbcType="INTEGER" property="gender" />
<result column="age" jdbcType="INTEGER" property="age" />
<result column="annual_income" jdbcType="INTEGER" property="annualIncome" />
<result column="spending_score" jdbcType="INTEGER" property="spendingScore" />
<result column="consumer_goods" jdbcType="VARCHAR" property="consumerGoods" />
</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, gender, age, annual_income, spending_score, consumer_goods
</sql>
<select id="selectByExample" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevelExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_spending_level
<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_spending_level
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_spending_level
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevelExample">
delete from stu_spending_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevel">
insert into stu_spending_level (id, gender, age,
annual_income, spending_score, consumer_goods
)
values (#{id,jdbcType=INTEGER}, #{gender,jdbcType=INTEGER}, #{age,jdbcType=INTEGER},
#{annualIncome,jdbcType=INTEGER}, #{spendingScore,jdbcType=INTEGER}, #{consumerGoods,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevel">
insert into stu_spending_level
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="gender != null">
gender,
</if>
<if test="age != null">
age,
</if>
<if test="annualIncome != null">
annual_income,
</if>
<if test="spendingScore != null">
spending_score,
</if>
<if test="consumerGoods != null">
consumer_goods,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="gender != null">
#{gender,jdbcType=INTEGER},
</if>
<if test="age != null">
#{age,jdbcType=INTEGER},
</if>
<if test="annualIncome != null">
#{annualIncome,jdbcType=INTEGER},
</if>
<if test="spendingScore != null">
#{spendingScore,jdbcType=INTEGER},
</if>
<if test="consumerGoods != null">
#{consumerGoods,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevelExample" resultType="java.lang.Long">
select count(*) from stu_spending_level
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_spending_level
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.gender != null">
gender = #{record.gender,jdbcType=INTEGER},
</if>
<if test="record.age != null">
age = #{record.age,jdbcType=INTEGER},
</if>
<if test="record.annualIncome != null">
annual_income = #{record.annualIncome,jdbcType=INTEGER},
</if>
<if test="record.spendingScore != null">
spending_score = #{record.spendingScore,jdbcType=INTEGER},
</if>
<if test="record.consumerGoods != null">
consumer_goods = #{record.consumerGoods,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_spending_level
set id = #{record.id,jdbcType=INTEGER},
gender = #{record.gender,jdbcType=INTEGER},
age = #{record.age,jdbcType=INTEGER},
annual_income = #{record.annualIncome,jdbcType=INTEGER},
spending_score = #{record.spendingScore,jdbcType=INTEGER},
consumer_goods = #{record.consumerGoods,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevel">
update stu_spending_level
<set>
<if test="gender != null">
gender = #{gender,jdbcType=INTEGER},
</if>
<if test="age != null">
age = #{age,jdbcType=INTEGER},
</if>
<if test="annualIncome != null">
annual_income = #{annualIncome,jdbcType=INTEGER},
</if>
<if test="spendingScore != null">
spending_score = #{spendingScore,jdbcType=INTEGER},
</if>
<if test="consumerGoods != null">
consumer_goods = #{consumerGoods,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.linkCommerce.entity.StuSpendingLevel">
update stu_spending_level
set gender = #{gender,jdbcType=INTEGER},
age = #{age,jdbcType=INTEGER},
annual_income = #{annualIncome,jdbcType=INTEGER},
spending_score = #{spendingScore,jdbcType=INTEGER},
consumer_goods = #{consumerGoods,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
Loading…
Cancel
Save