|
@@ -52,7 +52,7 @@
|
|
|
from order_temp
|
|
|
where 1=1
|
|
|
<if test="ot_code != null and ot_code != ''">
|
|
|
- and ot_code = #{ot_code,jdbcType=VARCHAR}
|
|
|
+ and ot_code like "%"#{ot_code,jdbcType=VARCHAR}"%"
|
|
|
</if>
|
|
|
<if test="cm_phone != null and cm_phone != ''">
|
|
|
and cm_phone = #{cm_phone,jdbcType=VARCHAR}
|
|
@@ -72,6 +72,7 @@
|
|
|
<if test="cityid != null and cityid != ''">
|
|
|
and cityid = #{cityid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
+ order by id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
@@ -81,9 +82,9 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
- delete from modoo_log
|
|
|
- where cb_code = #{cb_code,jdbcType=VARCHAR}
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ delete from order_temp
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
|
|
|
<!-- 插入一条培训信息 -->
|
|
@@ -137,4 +138,30 @@
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
+ <!-- 根据id更新一条培训信息 -->
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.ygj.yuemum.domain.order.OrderTemp" >
|
|
|
+ update order_temp
|
|
|
+ <set >
|
|
|
+ <if test="cm_phone != null" >
|
|
|
+ cm_phone = #{cm_phone,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ot_startdate != null" >
|
|
|
+ ot_startdate = #{ot_startdate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ot_enddate != null" >
|
|
|
+ ot_enddate = #{ot_enddate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="jl_mmid != null" >
|
|
|
+ jl_mmid = #{jl_mmid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="packageid != null" >
|
|
|
+ packageid = #{packageid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cityid != null" >
|
|
|
+ cityid = #{cityid,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|