BizLeaveImgMapper.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.willalp.flow.mapper.BizLeaveImgMapper">
  6. <resultMap type="com.willalp.flow.domain.BizLeaveImg" id="BizLeaveImgResult">
  7. <result property="id" column="id"/>
  8. <result property="bizLeaveId" column="biz_leave_id"/>
  9. <result property="url" column="url"/>
  10. <result property="size" column="size"/>
  11. <result property="type" column="type"/>
  12. <result property="isDelete" column="is_delete"/>
  13. <result property="createBy" column="create_by"/>
  14. <result property="createTime" column="create_time"/>
  15. <result property="updateBy" column="update_by"/>
  16. <result property="updateTime" column="update_time"/>
  17. <result property="remark" column="remark"/>
  18. </resultMap>
  19. <sql id="selectBizLeaveImgVo">
  20. select id,
  21. biz_leave_id,
  22. url,
  23. size,
  24. type,
  25. is_delete,
  26. create_by,
  27. create_time,
  28. update_by,
  29. update_time,
  30. remark
  31. from biz_leave_img
  32. </sql>
  33. <select id="selectBizLeaveImgList" parameterType="BizLeaveImg" resultMap="BizLeaveImgResult">
  34. <include refid="selectBizLeaveImgVo"/>
  35. <where>
  36. is_delete = 0
  37. <if test="bizLeaveId != null and bizLeaveId != ''">
  38. and biz_leave_id = #{bizLeaveId}
  39. </if>
  40. <if test="url != null and url != ''">
  41. and url = #{url}
  42. </if>
  43. <if test="size != null ">
  44. and size = #{size}
  45. </if>
  46. <if test="type != null and type != ''">
  47. and type = #{type}
  48. </if>
  49. <if test="isDelete != null ">
  50. and is_delete = #{isDelete}
  51. </if>
  52. </where>
  53. </select>
  54. </mapper>