| | |
| | | <result property="nexttaskflag" column="nexttaskflag"/> |
| | | <result property="nexttaskid" column="nexttaskid"/> |
| | | <result property="nexttaskname" column="nexttaskname"/> |
| | | <result property="appltype" column="appltype"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceTaskVo"> |
| | | select taskid, |
| | | task_name, |
| | | appltype, |
| | | send_day, |
| | | long_task, |
| | | show_date, |
| | |
| | | <if test="nexttaskflag != null ">and nexttaskflag = #{nexttaskflag}</if> |
| | | <if test="nexttaskid != null ">and nexttaskid = #{nexttaskid}</if> |
| | | <if test="nexttaskname != null ">and nexttaskname = #{nexttaskname}</if> |
| | | <if test="appltype != null ">and appltype = #{appltype}</if> |
| | | <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = |
| | | #{leavehospitaldistrictname} |
| | | </if> |
| | |
| | | resultMap="ServiceTaskResult"> |
| | | select service_task.taskid, |
| | | service_task.task_name, |
| | | service_task.appltype, |
| | | service_task.send_day, |
| | | service_task.long_task, |
| | | service_task.show_date, |
| | |
| | | <if test="nexttaskflag != null ">and nexttaskflag = #{nexttaskflag}</if> |
| | | <if test="nexttaskid != null ">and nexttaskid = #{nexttaskid}</if> |
| | | <if test="nexttaskname != null ">and nexttaskname = #{nexttaskname}</if> |
| | | <if test="appltype != null ">and appltype = #{appltype}</if> |
| | | <if test="leavehospitaldistrictname != null ">and service_task.leavehospitaldistrictname = |
| | | #{leavehospitaldistrictname} |
| | | </if> |
| | |
| | | <if test="leavehospitaldistrictcode != null ">leavehospitaldistrictcode,</if> |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="appltype != null ">appltype,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="leavehospitaldistrictcode != null ">#{leavehospitaldistrictcode},</if> |
| | | <if test="compensateDate != null and compensateDate != ''">#{compensateDate}</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="appltype != null ">#{appltype},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | </if> |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date = #{compensateDate}</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay}</if> |
| | | <if test="appltype != null ">appltype = #{appltype}</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |