123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.willalp.flow.mapper.BizLeaveImgMapper">
- <resultMap type="com.willalp.flow.domain.BizLeaveImg" id="BizLeaveImgResult">
- <result property="id" column="id"/>
- <result property="bizLeaveId" column="biz_leave_id"/>
- <result property="url" column="url"/>
- <result property="size" column="size"/>
- <result property="type" column="type"/>
- <result property="isDelete" column="is_delete"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- <result property="remark" column="remark"/>
- </resultMap>
- <sql id="selectBizLeaveImgVo">
- select id,
- biz_leave_id,
- url,
- size,
- type,
- is_delete,
- create_by,
- create_time,
- update_by,
- update_time,
- remark
- from biz_leave_img
- </sql>
- <select id="selectBizLeaveImgList" parameterType="BizLeaveImg" resultMap="BizLeaveImgResult">
- <include refid="selectBizLeaveImgVo"/>
- <where>
- is_delete = 0
- <if test="bizLeaveId != null and bizLeaveId != ''">
- and biz_leave_id = #{bizLeaveId}
- </if>
- <if test="url != null and url != ''">
- and url = #{url}
- </if>
- <if test="size != null ">
- and size = #{size}
- </if>
- <if test="type != null and type != ''">
- and type = #{type}
- </if>
- <if test="isDelete != null ">
- and is_delete = #{isDelete}
- </if>
- </where>
- </select>
- </mapper>
|