|
@@ -34,12 +34,10 @@
|
|
|
<insert id="insert" parameterType="com.usoftchina.smartschool.school.po.Messagelog" >
|
|
<insert id="insert" parameterType="com.usoftchina.smartschool.school.po.Messagelog" >
|
|
|
insert into messagelog ( ml_code, ml_content,
|
|
insert into messagelog ( ml_code, ml_content,
|
|
|
ml_result, ml_caller, ml_man,
|
|
ml_result, ml_caller, ml_man,
|
|
|
- companyId, createTime, creatorId,
|
|
|
|
|
- updateTime, updaterId,ml_keyvalue,ml_name)
|
|
|
|
|
|
|
+ school_id, createTime,ml_keyvalue,ml_name)
|
|
|
values (#{ml_code,jdbcType=VARCHAR}, #{ml_content,jdbcType=VARCHAR},
|
|
values (#{ml_code,jdbcType=VARCHAR}, #{ml_content,jdbcType=VARCHAR},
|
|
|
#{ml_result,jdbcType=VARCHAR}, #{ml_caller,jdbcType=VARCHAR}, #{ml_man,jdbcType=VARCHAR},
|
|
#{ml_result,jdbcType=VARCHAR}, #{ml_caller,jdbcType=VARCHAR}, #{ml_man,jdbcType=VARCHAR},
|
|
|
- #{companyId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP}, #{updaterId,jdbcType=INTEGER},#{ml_keyvalue,jdbcType=INTEGER},#{ml_name,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{school_id,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{ml_keyvalue,jdbcType=INTEGER},#{ml_name,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.smartschool.school.po.Messagelog" >
|
|
<insert id="insertSelective" parameterType="com.usoftchina.smartschool.school.po.Messagelog" >
|
|
|
insert into messagelog
|
|
insert into messagelog
|
|
@@ -62,20 +60,11 @@
|
|
|
<if test="ml_man != null" >
|
|
<if test="ml_man != null" >
|
|
|
ml_man,
|
|
ml_man,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null" >
|
|
|
|
|
- companyId,
|
|
|
|
|
|
|
+ <if test="school_id != null" >
|
|
|
|
|
+ school_id,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
<if test="createTime != null" >
|
|
|
- createTime,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="creatorId != null" >
|
|
|
|
|
- creatorId,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null" >
|
|
|
|
|
- updateTime,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updaterId != null" >
|
|
|
|
|
- updaterId,
|
|
|
|
|
|
|
+ createTime
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
@@ -97,20 +86,11 @@
|
|
|
<if test="ml_man != null" >
|
|
<if test="ml_man != null" >
|
|
|
#{ml_man,jdbcType=VARCHAR},
|
|
#{ml_man,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null" >
|
|
|
|
|
- #{companyId,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="school_id != null" >
|
|
|
|
|
+ #{school_id,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
<if test="createTime != null" >
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="creatorId != null" >
|
|
|
|
|
- #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null" >
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updaterId != null" >
|
|
|
|
|
- #{updaterId,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -133,20 +113,11 @@
|
|
|
<if test="ml_man != null" >
|
|
<if test="ml_man != null" >
|
|
|
ml_man = #{ml_man,jdbcType=VARCHAR},
|
|
ml_man = #{ml_man,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null" >
|
|
|
|
|
- companyId = #{companyId,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="school_id != null" >
|
|
|
|
|
+ school_id = #{school_id,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
<if test="createTime != null" >
|
|
|
- createTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="creatorId != null" >
|
|
|
|
|
- creatorId = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null" >
|
|
|
|
|
- updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updaterId != null" >
|
|
|
|
|
- updaterId = #{updaterId,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ createTime = #{createTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where ml_id = #{id,jdbcType=INTEGER}
|
|
where ml_id = #{id,jdbcType=INTEGER}
|
|
@@ -158,11 +129,8 @@
|
|
|
ml_result = #{ml_result,jdbcType=VARCHAR},
|
|
ml_result = #{ml_result,jdbcType=VARCHAR},
|
|
|
ml_caller = #{ml_caller,jdbcType=VARCHAR},
|
|
ml_caller = #{ml_caller,jdbcType=VARCHAR},
|
|
|
ml_man = #{ml_man,jdbcType=VARCHAR},
|
|
ml_man = #{ml_man,jdbcType=VARCHAR},
|
|
|
- companyId = #{companyId,jdbcType=INTEGER},
|
|
|
|
|
- createTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- creatorId = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
- updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- updaterId = #{updaterId,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ school_id = #{school_id,jdbcType=INTEGER},
|
|
|
|
|
+ createTime = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where ml_id = #{id,jdbcType=INTEGER}
|
|
where ml_id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
<select id="selectMessageLog" resultMap="BaseResultMap">
|
|
<select id="selectMessageLog" resultMap="BaseResultMap">
|
|
@@ -171,8 +139,8 @@
|
|
|
<if test="con != null">
|
|
<if test="con != null">
|
|
|
${con}
|
|
${con}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyId != null">
|
|
|
|
|
- and companyId = #{companyId}
|
|
|
|
|
|
|
+ <if test="school_id != null">
|
|
|
|
|
+ and school_id = #{school_id}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
order by ml_id DESC
|
|
order by ml_id DESC
|