|
|
@ -23,6 +23,7 @@ |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="college_name" jdbcType="VARCHAR" property="collegeName" /> |
|
|
|
<result column="dormitory_name" jdbcType="VARCHAR" property="dormitoryName" /> |
|
|
|
<result column="submit_time" jdbcType="BIGINT" property="submitTime" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -85,7 +86,7 @@ |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, user_id, name, stu_num, phone, id_card, college_id, dormitory_id, address, symptom, |
|
|
|
broken, remark, plan_time, real_time, status, operator, created_at, updated_at, rec_status, |
|
|
|
college_name, dormitory_name |
|
|
|
college_name, dormitory_name, submit_time |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.delivery.bean.po.StuOrderExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -124,16 +125,16 @@ |
|
|
|
symptom, broken, remark, |
|
|
|
plan_time, real_time, status, |
|
|
|
operator, created_at, updated_at, |
|
|
|
rec_status, college_name, dormitory_name |
|
|
|
) |
|
|
|
rec_status, college_name, dormitory_name, |
|
|
|
submit_time) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|
|
|
#{stuNum,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{idCard,jdbcType=VARCHAR}, |
|
|
|
#{collegeId,jdbcType=BIGINT}, #{dormitoryId,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR}, |
|
|
|
#{symptom,jdbcType=VARCHAR}, #{broken,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, |
|
|
|
#{planTime,jdbcType=BIGINT}, #{realTime,jdbcType=BIGINT}, #{status,jdbcType=TINYINT}, |
|
|
|
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{collegeName,jdbcType=VARCHAR}, #{dormitoryName,jdbcType=VARCHAR} |
|
|
|
) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{collegeName,jdbcType=VARCHAR}, #{dormitoryName,jdbcType=VARCHAR}, |
|
|
|
#{submitTime,jdbcType=BIGINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.delivery.bean.po.StuOrder"> |
|
|
|
insert into t_stu_order |
|
|
@ -201,6 +202,9 @@ |
|
|
|
<if test="dormitoryName != null"> |
|
|
|
dormitory_name, |
|
|
|
</if> |
|
|
|
<if test="submitTime != null"> |
|
|
|
submit_time, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -266,6 +270,9 @@ |
|
|
|
<if test="dormitoryName != null"> |
|
|
|
#{dormitoryName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="submitTime != null"> |
|
|
|
#{submitTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.delivery.bean.po.StuOrderExample" resultType="java.lang.Long"> |
|
|
@ -340,6 +347,9 @@ |
|
|
|
<if test="record.dormitoryName != null"> |
|
|
|
dormitory_name = #{record.dormitoryName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.submitTime != null"> |
|
|
|
submit_time = #{record.submitTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -367,7 +377,8 @@ |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
college_name = #{record.collegeName,jdbcType=VARCHAR}, |
|
|
|
dormitory_name = #{record.dormitoryName,jdbcType=VARCHAR} |
|
|
|
dormitory_name = #{record.dormitoryName,jdbcType=VARCHAR}, |
|
|
|
submit_time = #{record.submitTime,jdbcType=BIGINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -435,6 +446,9 @@ |
|
|
|
<if test="dormitoryName != null"> |
|
|
|
dormitory_name = #{dormitoryName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="submitTime != null"> |
|
|
|
submit_time = #{submitTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -459,7 +473,8 @@ |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
college_name = #{collegeName,jdbcType=VARCHAR}, |
|
|
|
dormitory_name = #{dormitoryName,jdbcType=VARCHAR} |
|
|
|
dormitory_name = #{dormitoryName,jdbcType=VARCHAR}, |
|
|
|
submit_time = #{submitTime,jdbcType=BIGINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |