InOutStorageMapper.xml 1.1 KB

1234567891011121314151617181920212223242526272829
  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.in.InOutStorageMapper">
  4. <select id="getPage" resultType="com.sd.business.entity.in.vo.InOutStorageVo">
  5. select ios.id,
  6. ios.type,
  7. ios.detail_type,
  8. ios.code,
  9. ios.purchase_id,
  10. ios.warehouse_id,
  11. ios.department_id,
  12. ios.applicant,
  13. ios.remark,
  14. ios.create_user,
  15. ios.create_time,
  16. ios.update_user,
  17. ios.update_time,
  18. w.type warehouseType,
  19. w.name warehouseName,
  20. d.name departmentName,
  21. p.code purchaseCode
  22. from in_out_storage ios
  23. left join warehouse w on ios.warehouse_id = w.id
  24. left join department d on ios.department_id = d.id
  25. left join purchase p on ios.purchase_id = p.id
  26. ${ew.customSqlSegment}
  27. </select>
  28. </mapper>