| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.aps.core.mapper.ApsWorkEventMapper"> |
| | | |
| | | <resultMap type="ApsWorkEvent" id="ApsWorkEventResult"> |
| | | <resultMap type="com.aps.core.domain.ApsWorkEvent" id="ApsWorkEventResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="description" column="description" /> |
| | | <result property="duration" column="duration" /> |
| | |
| | | select id, description, duration, start_date, end_date, start_time, end_time, applicable_factory, applicable_workshop, applicable_process, applicable_calendar, create_by, create_time, update_by, update_time from aps_work_event |
| | | </sql> |
| | | |
| | | <select id="selectApsWorkEventList" parameterType="ApsWorkEvent" resultMap="ApsWorkEventResult"> |
| | | <select id="selectApsWorkEventList" parameterType="com.aps.core.domain.ApsWorkEvent" resultMap="ApsWorkEventResult"> |
| | | <include refid="selectApsWorkEventVo"/> |
| | | <where> |
| | | <if test="description != null and description != ''"> and description like '%' || #{description} || '%'</if> |
| | |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertApsWorkEvent" parameterType="ApsWorkEvent"> |
| | | <insert id="insertApsWorkEvent" parameterType="com.aps.core.domain.ApsWorkEvent"> |
| | | insert into aps_work_event |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateApsWorkEvent" parameterType="ApsWorkEvent"> |
| | | <update id="updateApsWorkEvent" parameterType="com.aps.core.domain.ApsWorkEvent"> |
| | | update aps_work_event |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="description != null and description != ''">description = #{description},</if> |