| | |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="compensateTime" column="compensate_time"/> |
| | | <result property="currentSendTime" column="current_send_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskPreachformVo"> |
| | |
| | | taskid, |
| | | preachform, |
| | | sendstate, |
| | | current_send_time, |
| | | remark, |
| | | orgid, |
| | | del_flag, |
| | |
| | | </if> |
| | | <if test="taskid != null "> |
| | | and taskid = #{taskid} |
| | | </if> |
| | | <if test="currentSendTime != null "> |
| | | and current_send_time = #{currentSendTime} |
| | | </if> |
| | | <if test="preachform != null and preachform != ''"> |
| | | and preachform = #{preachform} |
| | |
| | | </if> |
| | | <if test="compensateTime != null">compensate_time, |
| | | </if> |
| | | <if test="currentSendTime != null "> |
| | | current_send_time, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | |
| | | <if test="sort != null">#{sort}, |
| | | </if> |
| | | <if test="compensateTime != null">#{compensateTime}, |
| | | </if> |
| | | <if test="currentSendTime != null "> |
| | | #{currentSendTime}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | </if> |
| | | <if test="compensateTime != null">compensate_time = |
| | | #{compensateTime}, |
| | | </if> |
| | | <if test="currentSendTime != null "> |
| | | current_send_time = #{currentSendTime}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | |
| | | <if test="compensateTime != null">compensate_time = |
| | | #{compensateTime}, |
| | | </if> |
| | | <if test="currentSendTime != null "> |
| | | current_send_time = #{currentSendTime}, |
| | | </if> |
| | | </trim> |
| | | where 1=1 |
| | | <if test="subid != null">and subid = |
| | | #{subid} |
| | | #{subid}, |
| | | </if> |
| | | <if test="taskid != null">and taskid = |
| | | #{taskid} |
| | | #{taskid}, |
| | | </if> |
| | | <if test="preachform != null">and preachform = |
| | | #{preachform} |
| | | #{preachform}, |
| | | </if> |
| | | <if test="remark != null">and remark = |
| | | #{remark} |
| | | #{remark}, |
| | | </if> |
| | | <if test="orgid != null">and orgid = |
| | | #{orgid} |
| | | #{orgid}, |
| | | </if> |
| | | </update> |
| | | |
| | |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="selectBySubtask" parameterType="com.smartor.domain.ServiceSubtask" resultMap="ServiceSubtaskPreachformResult"> |
| | | <select id="selectBySubtask" parameterType="com.smartor.domain.ServiceSubtask" |
| | | resultMap="ServiceSubtaskPreachformResult"> |
| | | <include refid="selectServiceSubtaskPreachformVo"/> |
| | | WHERE del_flag = 0 |
| | | <!-- 其他条件 --> |