AfterSalesMapper.xml 971 B

123456789101112131415161718192021222324252627
  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.fjhx.sale.mapper.after.AfterSalesMapper">
  4. <select id="getPage" resultType="com.fjhx.sale.entity.after.vo.AfterSalesVo">
  5. SELECT as1.id,
  6. as1.`code`,
  7. as1.contract_id,
  8. as1.type,
  9. as1.user_id,
  10. as1.contact_name,
  11. as1.contact_way,
  12. as1.remark,
  13. as1.`status`,
  14. as1.create_user,
  15. as1.create_time,
  16. as1.update_user,
  17. as1.update_time,
  18. as1.contract_product_id,
  19. as1.product_id,
  20. as1.quantity,
  21. c.`code` AS contractCode
  22. FROM after_sales as1
  23. LEFT JOIN contract c ON as1.contract_id = c.id
  24. ${ew.customSqlSegment}
  25. </select>
  26. </mapper>