| | |
| | | <select id="selectServiceTaskdeptList" parameterType="com.smartor.domain.ServiceTaskdept" |
| | | resultMap="ServiceTaskdeptResult"> |
| | | <include refid="selectServiceTaskdeptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | where 1=1 |
| | | and del_flag = 0 |
| | | <if test="taskId != null "> |
| | | and task_id = #{taskId} |
| | | </if> |
| | |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectServiceTaskdeptById" parameterType="Long" |
| | |
| | | <if test="orgid != null">orgid = #{orgid}, |
| | | </if> |
| | | </trim> |
| | | <where> |
| | | where 1=1 |
| | | <if test="id != null">and id = #{id}</if> |
| | | <if test="taskId != null">and task_id = #{taskId}</if> |
| | | </where> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | </update> |
| | | |
| | | <update id="deleteServiceTaskdeptById" parameterType="Long"> |
| | |
| | | del_flag =1, |
| | | update_time = sysdate() |
| | | </trim> |
| | | <where> |
| | | where 1=1 |
| | | <if test="id != null">and id = #{id}</if> |
| | | <if test="taskId != null">and task_id = #{taskId}</if> |
| | | </where> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | </update> |
| | | |
| | | <update id="deleteServiceTaskdeptByIds" parameterType="String"> |