CustVehiclePhotoInfoMapper.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  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.ydtech.modules.admin.dao.CustVehiclePhotoInfoMapper">
  6. <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.po.CustVehiclePhotoInfo">
  7. <id property="id" column="id" jdbcType="VARCHAR"/>
  8. <result property="vehicleId" column="vehicle_id" jdbcType="VARCHAR"/>
  9. <result property="custId" column="cust_id" jdbcType="VARCHAR"/>
  10. <result property="subOrderNo" column="sub_order_no" jdbcType="VARCHAR"/>
  11. <result property="type" column="type" jdbcType="VARCHAR"/>
  12. <result property="loaclUrl" column="loacl_url" jdbcType="VARCHAR"/>
  13. <result property="netUrl" column="net_url" jdbcType="VARCHAR"/>
  14. <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
  15. <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
  16. <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
  17. <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
  18. <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
  19. </resultMap>
  20. <sql id="Base_Column_List">
  21. id,vehicle_id,cust_id,
  22. sub_order_no,type,loacl_url,
  23. net_url,create_by,create_time,
  24. update_by,update_time,del_flag
  25. </sql>
  26. <select id="findImgList" resultType="com.ydtech.modules.order.entity.dto.InsTaskImagesDto">
  27. select
  28. type as imageType,
  29. net_url as url,
  30. image_id as imageId
  31. from cust_vehicle_photo_info
  32. where sub_order_no = #{ subOrderNo}
  33. </select>
  34. </mapper>