BaseStudentDevelopmentMapper.xml 1.6 KB

123456789101112131415161718192021222324
  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.xjrsoft.module.student.mapper.BaseStudentDevelopmentMapper">
  6. <select id="getInfoById" resultType="com.xjrsoft.module.student.vo.BaseStudentDevelopmentVo">
  7. SELECT t1.id,t1.is_entrepreneurship,t1.entrepreneurial_project,t1.is_flexible_work,t1.work_content,
  8. t1.is_company_coop,t1.work_company,t7.name AS company_industry,t8.name AS company_nature,t2.name AS company_scale_cn,t1.is_matching,
  9. t1.money,t1.work_date,t1.work_city,t3.name AS culture_type_cn,t4.name AS ascending_channels_cn,
  10. t1.school,t1.admission_major,t1.score,t5.name AS ascending_arrangement_cn,t6.name AS unemployed_type_cn,t1.remark,t1.enroll_type,
  11. t1.culture_type,t1.ascending_channels,t1.unemployed_type
  12. FROM base_student_development t1
  13. LEFT JOIN xjr_dictionary_detail t2 ON t1.company_scale = t2.code
  14. LEFT JOIN xjr_dictionary_detail t3 ON t1.culture_type = t3.code
  15. LEFT JOIN xjr_dictionary_detail t4 ON t1.ascending_channels = t4.code
  16. LEFT JOIN xjr_dictionary_detail t5 ON t1.ascending_arrangement = t5.code
  17. LEFT JOIN xjr_dictionary_detail t6 ON t1.unemployed_type = t6.code
  18. LEFT JOIN xjr_dictionary_detail t7 ON t1.company_industry = t7.code
  19. LEFT JOIN xjr_dictionary_detail t8 ON t1.company_nature = t8.code
  20. WHERE t1.delete_mark = 0
  21. AND t1.id = #{id}
  22. </select>
  23. </mapper>