Browse Source

修改生成po、

recovery
wang1007152140 5 years ago
parent
commit
f4bee46ef6
  1. 22
      tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java
  2. 140
      tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java
  3. 17
      tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java
  4. 154
      tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml

22
tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java

@ -16,6 +16,10 @@ public class ConferenceRecords implements Serializable {
private String participants;
private String discussionContent;
private String meetingMinutes;
private Long userId;
private Date createdAt;
@ -74,6 +78,22 @@ public class ConferenceRecords implements Serializable {
this.participants = participants == null ? null : participants.trim();
}
public String getDiscussionContent() {
return discussionContent;
}
public void setDiscussionContent(String discussionContent) {
this.discussionContent = discussionContent == null ? null : discussionContent.trim();
}
public String getMeetingMinutes() {
return meetingMinutes;
}
public void setMeetingMinutes(String meetingMinutes) {
this.meetingMinutes = meetingMinutes == null ? null : meetingMinutes.trim();
}
public Long getUserId() {
return userId;
}
@ -118,6 +138,8 @@ public class ConferenceRecords implements Serializable {
sb.append(", place=").append(place);
sb.append(", host=").append(host);
sb.append(", participants=").append(participants);
sb.append(", discussionContent=").append(discussionContent);
sb.append(", meetingMinutes=").append(meetingMinutes);
sb.append(", userId=").append(userId);
sb.append(", createdAt=").append(createdAt);
sb.append(", updateAt=").append(updateAt);

140
tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java

@ -495,6 +495,146 @@ public class ConferenceRecordsExample {
return (Criteria) this;
}
public Criteria andDiscussionContentIsNull() {
addCriterion("discussion_content is null");
return (Criteria) this;
}
public Criteria andDiscussionContentIsNotNull() {
addCriterion("discussion_content is not null");
return (Criteria) this;
}
public Criteria andDiscussionContentEqualTo(String value) {
addCriterion("discussion_content =", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentNotEqualTo(String value) {
addCriterion("discussion_content <>", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentGreaterThan(String value) {
addCriterion("discussion_content >", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentGreaterThanOrEqualTo(String value) {
addCriterion("discussion_content >=", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentLessThan(String value) {
addCriterion("discussion_content <", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentLessThanOrEqualTo(String value) {
addCriterion("discussion_content <=", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentLike(String value) {
addCriterion("discussion_content like", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentNotLike(String value) {
addCriterion("discussion_content not like", value, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentIn(List<String> values) {
addCriterion("discussion_content in", values, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentNotIn(List<String> values) {
addCriterion("discussion_content not in", values, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentBetween(String value1, String value2) {
addCriterion("discussion_content between", value1, value2, "discussionContent");
return (Criteria) this;
}
public Criteria andDiscussionContentNotBetween(String value1, String value2) {
addCriterion("discussion_content not between", value1, value2, "discussionContent");
return (Criteria) this;
}
public Criteria andMeetingMinutesIsNull() {
addCriterion("meeting_minutes is null");
return (Criteria) this;
}
public Criteria andMeetingMinutesIsNotNull() {
addCriterion("meeting_minutes is not null");
return (Criteria) this;
}
public Criteria andMeetingMinutesEqualTo(String value) {
addCriterion("meeting_minutes =", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesNotEqualTo(String value) {
addCriterion("meeting_minutes <>", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesGreaterThan(String value) {
addCriterion("meeting_minutes >", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesGreaterThanOrEqualTo(String value) {
addCriterion("meeting_minutes >=", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesLessThan(String value) {
addCriterion("meeting_minutes <", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesLessThanOrEqualTo(String value) {
addCriterion("meeting_minutes <=", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesLike(String value) {
addCriterion("meeting_minutes like", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesNotLike(String value) {
addCriterion("meeting_minutes not like", value, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesIn(List<String> values) {
addCriterion("meeting_minutes in", values, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesNotIn(List<String> values) {
addCriterion("meeting_minutes not in", values, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesBetween(String value1, String value2) {
addCriterion("meeting_minutes between", value1, value2, "meetingMinutes");
return (Criteria) this;
}
public Criteria andMeetingMinutesNotBetween(String value1, String value2) {
addCriterion("meeting_minutes not between", value1, value2, "meetingMinutes");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;

17
tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java

@ -2,7 +2,6 @@ package com.ccsens.tcm.persist.mapper;
import com.ccsens.tcm.bean.po.ConferenceRecords;
import com.ccsens.tcm.bean.po.ConferenceRecordsExample;
import com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
@ -13,25 +12,19 @@ public interface ConferenceRecordsMapper {
int deleteByPrimaryKey(Long id);
int insert(ConferenceRecordsWithBLOBs record);
int insert(ConferenceRecords record);
int insertSelective(ConferenceRecordsWithBLOBs record);
List<ConferenceRecordsWithBLOBs> selectByExampleWithBLOBs(ConferenceRecordsExample example);
int insertSelective(ConferenceRecords record);
List<ConferenceRecords> selectByExample(ConferenceRecordsExample example);
ConferenceRecordsWithBLOBs selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") ConferenceRecordsWithBLOBs record, @Param("example") ConferenceRecordsExample example);
ConferenceRecords selectByPrimaryKey(Long id);
int updateByExampleWithBLOBs(@Param("record") ConferenceRecordsWithBLOBs record, @Param("example") ConferenceRecordsExample example);
int updateByExampleSelective(@Param("record") ConferenceRecords record, @Param("example") ConferenceRecordsExample example);
int updateByExample(@Param("record") ConferenceRecords record, @Param("example") ConferenceRecordsExample example);
int updateByPrimaryKeySelective(ConferenceRecordsWithBLOBs record);
int updateByPrimaryKeyWithBLOBs(ConferenceRecordsWithBLOBs record);
int updateByPrimaryKeySelective(ConferenceRecords record);
int updateByPrimaryKey(ConferenceRecords record);
}

154
tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml

@ -8,15 +8,13 @@
<result column="place" jdbcType="VARCHAR" property="place" />
<result column="host" jdbcType="VARCHAR" property="host" />
<result column="participants" jdbcType="VARCHAR" property="participants" />
<result column="discussion_content" jdbcType="VARCHAR" property="discussionContent" />
<result column="meeting_minutes" jdbcType="VARCHAR" property="meetingMinutes" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs">
<result column="discussion_content" jdbcType="LONGVARCHAR" property="discussionContent" />
<result column="meeting_minutes" jdbcType="LONGVARCHAR" property="meetingMinutes" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
@ -76,28 +74,9 @@
</where>
</sql>
<sql id="Base_Column_List">
id, start_time, end_time, place, host, participants, user_id, created_at, update_at,
rec_status
</sql>
<sql id="Blob_Column_List">
discussion_content, meeting_minutes
id, start_time, end_time, place, host, participants, discussion_content, meeting_minutes,
user_id, created_at, update_at, rec_status
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from t_conference_records
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="BaseResultMap">
select
<if test="distinct">
@ -112,11 +91,9 @@
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from t_conference_records
where id = #{id,jdbcType=BIGINT}
</select>
@ -130,24 +107,25 @@
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs">
insert into t_conference_records (id, start_time, end_time,
place, host, participants,
user_id, created_at, update_at,
rec_status, discussion_content, meeting_minutes
)
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{place,jdbcType=VARCHAR}, #{host,jdbcType=VARCHAR}, #{participants,jdbcType=VARCHAR},
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}, #{discussionContent,jdbcType=LONGVARCHAR}, #{meetingMinutes,jdbcType=LONGVARCHAR}
)
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_conference_records (start_time, end_time, place,
host, participants, discussion_content,
meeting_minutes, user_id, created_at,
update_at, rec_status)
values (#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{place,jdbcType=VARCHAR},
#{host,jdbcType=VARCHAR}, #{participants,jdbcType=VARCHAR}, #{discussionContent,jdbcType=VARCHAR},
#{meetingMinutes,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP},
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs">
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into t_conference_records
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="startTime != null">
start_time,
</if>
@ -163,6 +141,12 @@
<if test="participants != null">
participants,
</if>
<if test="discussionContent != null">
discussion_content,
</if>
<if test="meetingMinutes != null">
meeting_minutes,
</if>
<if test="userId != null">
user_id,
</if>
@ -175,17 +159,8 @@
<if test="recStatus != null">
rec_status,
</if>
<if test="discussionContent != null">
discussion_content,
</if>
<if test="meetingMinutes != null">
meeting_minutes,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="startTime != null">
#{startTime,jdbcType=TIMESTAMP},
</if>
@ -201,6 +176,12 @@
<if test="participants != null">
#{participants,jdbcType=VARCHAR},
</if>
<if test="discussionContent != null">
#{discussionContent,jdbcType=VARCHAR},
</if>
<if test="meetingMinutes != null">
#{meetingMinutes,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
@ -213,12 +194,6 @@
<if test="recStatus != null">
#{recStatus,jdbcType=TINYINT},
</if>
<if test="discussionContent != null">
#{discussionContent,jdbcType=LONGVARCHAR},
</if>
<if test="meetingMinutes != null">
#{meetingMinutes,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultType="java.lang.Long">
@ -248,6 +223,12 @@
<if test="record.participants != null">
participants = #{record.participants,jdbcType=VARCHAR},
</if>
<if test="record.discussionContent != null">
discussion_content = #{record.discussionContent,jdbcType=VARCHAR},
</if>
<if test="record.meetingMinutes != null">
meeting_minutes = #{record.meetingMinutes,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=BIGINT},
</if>
@ -260,35 +241,11 @@
<if test="record.recStatus != null">
rec_status = #{record.recStatus,jdbcType=TINYINT},
</if>
<if test="record.discussionContent != null">
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR},
</if>
<if test="record.meetingMinutes != null">
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update t_conference_records
set id = #{record.id,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=TIMESTAMP},
end_time = #{record.endTime,jdbcType=TIMESTAMP},
place = #{record.place,jdbcType=VARCHAR},
host = #{record.host,jdbcType=VARCHAR},
participants = #{record.participants,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
update_at = #{record.updateAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT},
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR},
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_conference_records
set id = #{record.id,jdbcType=BIGINT},
@ -297,6 +254,8 @@
place = #{record.place,jdbcType=VARCHAR},
host = #{record.host,jdbcType=VARCHAR},
participants = #{record.participants,jdbcType=VARCHAR},
discussion_content = #{record.discussionContent,jdbcType=VARCHAR},
meeting_minutes = #{record.meetingMinutes,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
update_at = #{record.updateAt,jdbcType=TIMESTAMP},
@ -305,7 +264,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs">
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords">
update t_conference_records
<set>
<if test="startTime != null">
@ -323,6 +282,12 @@
<if test="participants != null">
participants = #{participants,jdbcType=VARCHAR},
</if>
<if test="discussionContent != null">
discussion_content = #{discussionContent,jdbcType=VARCHAR},
</if>
<if test="meetingMinutes != null">
meeting_minutes = #{meetingMinutes,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
@ -335,30 +300,9 @@
<if test="recStatus != null">
rec_status = #{recStatus,jdbcType=TINYINT},
</if>
<if test="discussionContent != null">
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR},
</if>
<if test="meetingMinutes != null">
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs">
update t_conference_records
set start_time = #{startTime,jdbcType=TIMESTAMP},
end_time = #{endTime,jdbcType=TIMESTAMP},
place = #{place,jdbcType=VARCHAR},
host = #{host,jdbcType=VARCHAR},
participants = #{participants,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
update_at = #{updateAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT},
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR},
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords">
update t_conference_records
set start_time = #{startTime,jdbcType=TIMESTAMP},
@ -366,6 +310,8 @@
place = #{place,jdbcType=VARCHAR},
host = #{host,jdbcType=VARCHAR},
participants = #{participants,jdbcType=VARCHAR},
discussion_content = #{discussionContent,jdbcType=VARCHAR},
meeting_minutes = #{meetingMinutes,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
update_at = #{updateAt,jdbcType=TIMESTAMP},

Loading…
Cancel
Save