| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.ServiceSubtaskRecordMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskRecord" id="ServiceSubtaskRecordResult"> |
| | | <resultMap type="com.ruoyi.task.domain.ServiceSubtaskRecord" id="ServiceSubtaskRecordResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="subtaskId" column="subtask_id"/> |
| | |
| | | from service_subtask_record |
| | | </sql> |
| | | |
| | | <select id="selectServiceSubtaskRecordList" parameterType="com.smartor.domain.ServiceSubtaskRecord" |
| | | <select id="selectServiceSubtaskRecordList" parameterType="com.ruoyi.task.domain.ServiceSubtaskRecord" |
| | | resultMap="ServiceSubtaskRecordResult"> |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | where 1=1 |
| | |
| | | <if test="remark != null and remark != ''">and remark = #{remark}</if> |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskRecordBySubtaskIds" resultMap="ServiceSubtaskRecordResult"> |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | where subtask_id IN |
| | | <foreach collection="list" item="subtaskId" open="(" separator="," close=")"> |
| | | #{subtaskId} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="selectServiceSubtaskRecordById" parameterType="Long" resultMap="ServiceSubtaskRecordResult"> |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertServiceSubtaskRecord" parameterType="com.smartor.domain.ServiceSubtaskRecord"> |
| | | <insert id="insertServiceSubtaskRecord" parameterType="com.ruoyi.task.domain.ServiceSubtaskRecord"> |
| | | insert into service_subtask_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateServiceSubtaskRecord" parameterType="com.smartor.domain.ServiceSubtaskRecord"> |
| | | <update id="updateServiceSubtaskRecord" parameterType="com.ruoyi.task.domain.ServiceSubtaskRecord"> |
| | | update service_subtask_record |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |