KwtWaybillOrderTicketMapper.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.sckw.transport.dao.KwtWaybillOrderTicketMapper">
  4. <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtWaybillOrderTicket">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="w_order_id" jdbcType="BIGINT" property="wOrderId" />
  7. <result column="type" jdbcType="INTEGER" property="type" />
  8. <result column="amount" jdbcType="DECIMAL" property="amount" />
  9. <result column="gross_amount" jdbcType="DECIMAL" property="grossAmount" />
  10. <result column="tare_amount" jdbcType="DECIMAL" property="tareAmount" />
  11. <result column="urls" jdbcType="VARCHAR" property="urls" />
  12. <result column="time" jdbcType="TIMESTAMP" property="time" />
  13. <result column="remark" jdbcType="VARCHAR" property="remark" />
  14. <result column="status" jdbcType="INTEGER" property="status" />
  15. <result column="create_by" jdbcType="BIGINT" property="createBy" />
  16. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  17. <result column="update_by" jdbcType="BIGINT" property="updateBy" />
  18. <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  19. <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
  20. </resultMap>
  21. <sql id="Base_Column_List">
  22. id, w_order_id, `type`, amount, gross_amount, tare_amount, urls, time, remark, `status`,
  23. create_by, create_time, update_by, update_time, del_flag
  24. </sql>
  25. <select id="findWaybillOrderTicket" resultType="com.sckw.transport.model.KwtWaybillOrderTicket" >
  26. select
  27. id, w_order_id wOrderId, `type`, amount, gross_amount grossAmount, tare_amount tareAmount,
  28. urls, time, remark, `status`, create_by createBy, create_time createTime, update_by updateBy,
  29. update_time updateTime
  30. from kwt_waybill_order_ticket
  31. where del_flag = 0
  32. <if test="wOrderId != null and wOrderId != ''">
  33. and w_order_id != #{wOrderId, jdbcType=BIGINT}
  34. </if>
  35. <if test="type != null and type != ''">
  36. and type != #{type, jdbcType=INTEGER}
  37. </if>
  38. </select>
  39. </mapper>