| | |
| | | <result property="executeBy" column="execute_by" /> |
| | | <result property="executeTime" column="execute_time" /> |
| | | <result property="taskType" column="task_type" /> |
| | | <result property="taskDescription" column="task_description" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdRouteMissionVo"> |
| | |
| | | update_time, |
| | | execute_by, |
| | | execute_time, |
| | | task_type |
| | | task_type, |
| | | task_description |
| | | from ard_route_mission |
| | | </sql> |
| | | |
| | |
| | | <if test="executeTime != null "> and execute_time = #{executeTime}</if> |
| | | <if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if> |
| | | </where> |
| | | order by create_time asc |
| | | order by create_time DESC |
| | | </select> |
| | | |
| | | <select id="selectArdRouteMissionById" parameterType="String" resultMap="ArdRouteMissionResult"> |
| | | <include refid="selectArdRouteMissionVo"/> |
| | | where id = #{id} |
| | | order by create_time asc |
| | | order by create_time DESC |
| | | </select> |
| | | |
| | | <insert id="insertArdRouteMission" parameterType="ArdRouteMission"> |
| | |
| | | <if test="executeBy != null">execute_by,</if> |
| | | <if test="executeTime != null">execute_time,</if> |
| | | <if test="taskType != null">task_type,</if> |
| | | <if test="taskDescription != null">task_description,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="executeBy != null">#{executeBy},</if> |
| | | <if test="executeTime != null">#{executeTime},</if> |
| | | <if test="taskType != null">#{taskType},</if> |
| | | <if test="taskDescription != null">#{taskDescription},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="executeBy != null">execute_by = #{executeBy},</if> |
| | | <if test="executeTime != null">execute_time = #{executeTime},</if> |
| | | <if test="taskType != null">task_type = #{taskType},</if> |
| | | <if test="taskDescription != null">task_description = #{taskDescription},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |