TopOldOrderCheckLogMapper.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.zhongzheng.modules.top.goods.mapper.TopOldOrderCheckLogMapper">
  6. <resultMap type="com.zhongzheng.modules.top.goods.domain.TopOldOrderCheckLog" id="TopOldOrderCheckLogResult">
  7. <result property="id" column="id"/>
  8. <result property="refundSn" column="refund_sn"/>
  9. <result property="roleId" column="role_id"/>
  10. <result property="checkStatus" column="check_status"/>
  11. <result property="checkReason" column="check_reason"/>
  12. <result property="checkSign" column="check_sign"/>
  13. <result property="status" column="status"/>
  14. <result property="createTime" column="create_time"/>
  15. <result property="updateTime" column="update_time"/>
  16. <result property="checkFrom" column="check_from"/>
  17. <result property="orderSn" column="order_sn"/>
  18. </resultMap>
  19. <select id="getCheckList" parameterType="com.zhongzheng.modules.top.goods.bo.TopOldOrderCheckLogQueryBo" resultType="com.zhongzheng.modules.top.goods.vo.TopOldOrderCheckLogVo">
  20. SELECT
  21. cl.*,
  22. r.role_name
  23. FROM
  24. top_old_order_check_log cl
  25. LEFT JOIN top_sys_role r ON cl.role_id = r.role_id
  26. WHERE
  27. 1 = 1
  28. <if test="orderSn != null and orderSn != ''">
  29. AND cl.order_sn = #{orderSn}
  30. </if>
  31. <if test="checkFrom != null and checkFrom != ''">
  32. AND cl.check_from = #{checkFrom}
  33. </if>
  34. <if test="tenantId != null and tenantId != ''">
  35. AND cl.tenant_id = #{tenantId}
  36. </if>
  37. order by cl.check_sort
  38. </select>
  39. </mapper>