| | |
| | | <result property="nexttaskname" column="nexttaskname"/> |
| | | <result property="appltype" column="appltype"/> |
| | | <result property="patCycle" column="pat_cycle"/> |
| | | <result property="diagType" column="diag_type"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceTaskVo"> |
| | |
| | | orgid, |
| | | nexttaskflag, |
| | | nexttaskid, |
| | | nexttaskname |
| | | nexttaskname, |
| | | diag_type |
| | | from service_task |
| | | </sql> |
| | | |
| | |
| | | <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="diagType != null and diagType != ''">and diag_type = #{diagType}</if> |
| | | <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = |
| | | #{leavehospitaldistrictname} |
| | | </if> |
| | |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="appltype != null ">appltype,</if> |
| | | <if test="patCycle != null ">pat_cycle,</if> |
| | | <if test="diagType != null and diagType != ''">diag_type,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="appltype != null ">#{appltype},</if> |
| | | <if test="patCycle != null ">#{patCycle},</if> |
| | | <if test="diagType != null and diagType != ''">#{diagType},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | <if test="appltype != null ">appltype = #{appltype},</if> |
| | | <if test="patCycle != null ">pat_cycle = #{patCycle},</if> |
| | | <if test="diagType != null and diagType != ''">diag_type = #{diagType},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |