|
@ -7,13 +7,14 @@ |
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|
|
<result column="compete_time_id" jdbcType="BIGINT" property="competeTimeId" /> |
|
|
<result column="site_order_id" jdbcType="BIGINT" property="siteOrderId" /> |
|
|
<result column="site" jdbcType="INTEGER" property="site" /> |
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
<result column="chief_judgment" jdbcType="TINYINT" property="chiefJudgment" /> |
|
|
<result column="chief_judgment" jdbcType="TINYINT" property="chiefJudgment" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
|
|
<result column="member_id" jdbcType="BIGINT" property="memberId" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
@ -74,8 +75,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, name, phone, remark, compete_time_id, site_order_id, project_id, user_id, chief_judgment, |
|
|
id, name, phone, remark, compete_time_id, site, project_id, user_id, chief_judgment, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, updated_at, rec_status, member_id |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -109,15 +110,15 @@ |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|
|
<insert id="insert" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|
|
insert into t_compete_judgment (id, name, phone, |
|
|
insert into t_compete_judgment (id, name, phone, |
|
|
remark, compete_time_id, site_order_id, |
|
|
remark, compete_time_id, site, |
|
|
project_id, user_id, chief_judgment, |
|
|
project_id, user_id, chief_judgment, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, updated_at, rec_status, |
|
|
) |
|
|
member_id) |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, |
|
|
#{remark,jdbcType=VARCHAR}, #{competeTimeId,jdbcType=BIGINT}, #{siteOrderId,jdbcType=BIGINT}, |
|
|
#{remark,jdbcType=VARCHAR}, #{competeTimeId,jdbcType=BIGINT}, #{site,jdbcType=INTEGER}, |
|
|
#{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{chiefJudgment,jdbcType=TINYINT}, |
|
|
#{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{chiefJudgment,jdbcType=TINYINT}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|
|
) |
|
|
#{memberId,jdbcType=BIGINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.mt.bean.po.CompeteJudgment"> |
|
|
insert into t_compete_judgment |
|
|
insert into t_compete_judgment |
|
@ -137,8 +138,8 @@ |
|
|
<if test="competeTimeId != null"> |
|
|
<if test="competeTimeId != null"> |
|
|
compete_time_id, |
|
|
compete_time_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="siteOrderId != null"> |
|
|
<if test="site != null"> |
|
|
site_order_id, |
|
|
site, |
|
|
</if> |
|
|
</if> |
|
|
<if test="projectId != null"> |
|
|
<if test="projectId != null"> |
|
|
project_id, |
|
|
project_id, |
|
@ -158,6 +159,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
member_id, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
@ -175,8 +179,8 @@ |
|
|
<if test="competeTimeId != null"> |
|
|
<if test="competeTimeId != null"> |
|
|
#{competeTimeId,jdbcType=BIGINT}, |
|
|
#{competeTimeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="siteOrderId != null"> |
|
|
<if test="site != null"> |
|
|
#{siteOrderId,jdbcType=BIGINT}, |
|
|
#{site,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="projectId != null"> |
|
|
<if test="projectId != null"> |
|
|
#{projectId,jdbcType=BIGINT}, |
|
|
#{projectId,jdbcType=BIGINT}, |
|
@ -196,6 +200,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
#{memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.mt.bean.po.CompeteJudgmentExample" resultType="java.lang.Long"> |
|
@ -222,8 +229,8 @@ |
|
|
<if test="record.competeTimeId != null"> |
|
|
<if test="record.competeTimeId != null"> |
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.siteOrderId != null"> |
|
|
<if test="record.site != null"> |
|
|
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|
|
site = #{record.site,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.projectId != null"> |
|
|
<if test="record.projectId != null"> |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
@ -243,6 +250,9 @@ |
|
|
<if test="record.recStatus != null"> |
|
|
<if test="record.recStatus != null"> |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.memberId != null"> |
|
|
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
@ -255,13 +265,14 @@ |
|
|
phone = #{record.phone,jdbcType=VARCHAR}, |
|
|
phone = #{record.phone,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
compete_time_id = #{record.competeTimeId,jdbcType=BIGINT}, |
|
|
site_order_id = #{record.siteOrderId,jdbcType=BIGINT}, |
|
|
site = #{record.site,jdbcType=INTEGER}, |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT}, |
|
|
chief_judgment = #{record.chiefJudgment,jdbcType=TINYINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -281,8 +292,8 @@ |
|
|
<if test="competeTimeId != null"> |
|
|
<if test="competeTimeId != null"> |
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="siteOrderId != null"> |
|
|
<if test="site != null"> |
|
|
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|
|
site = #{site,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="projectId != null"> |
|
|
<if test="projectId != null"> |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
@ -302,6 +313,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
member_id = #{memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
@ -311,13 +325,14 @@ |
|
|
phone = #{phone,jdbcType=VARCHAR}, |
|
|
phone = #{phone,jdbcType=VARCHAR}, |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
compete_time_id = #{competeTimeId,jdbcType=BIGINT}, |
|
|
site_order_id = #{siteOrderId,jdbcType=BIGINT}, |
|
|
site = #{site,jdbcType=INTEGER}, |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
chief_judgment = #{chiefJudgment,jdbcType=TINYINT}, |
|
|
chief_judgment = #{chiefJudgment,jdbcType=TINYINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
member_id = #{memberId,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |