DepartmentMapper.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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.sd.business.mapper.department.DepartmentMapper">
  4. <select id="getPage" resultType="com.sd.business.entity.department.vo.DepartmentVo">
  5. select d.id,
  6. d.admin_username,
  7. d.admin_password,
  8. d.name,
  9. d.telephone,
  10. d.address,
  11. d.contact_person,
  12. d.contact_number,
  13. d.price_system_id,
  14. d.order_mode,
  15. d.commission_rule,
  16. d.status,
  17. d.line_credit,
  18. d.used_credit,
  19. d.wln_warehouse_code,
  20. d.wln_brand,
  21. d.create_user,
  22. d.create_time,
  23. d.update_user,
  24. d.update_time,
  25. ps.name priceSystemName,
  26. d.price_billing_standard_id,
  27. pbs.name priceBillingStandardName
  28. from department d
  29. left join price_system ps on d.price_system_id = ps.id
  30. left join price_billing_standard pbs on d.price_billing_standard_id = pbs.id
  31. ${ew.customSqlSegment}
  32. </select>
  33. </mapper>