DRyxxsjyMapper.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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.chinaitop.depot.basic.mapper.DRyxxsjyMapper">
  4. <select id="getPageList" parameterType="com.chinaitop.depot.basic.param.DRyxxsjyPageParam" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
  5. select
  6. ry.rybh,
  7. ry.ryxm,
  8. ry.xb,
  9. ry.lxdh,
  10. zwlx.zwlx,
  11. zwlx.qymc
  12. from
  13. base:d_ryxxsjy ry
  14. left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh
  15. left join org_info oi on zwlx.tyshxydm = oi.credit_code
  16. <where>
  17. oi.org_id = #{orgId}
  18. and ry.status = 1
  19. and ry.newly = 1
  20. <if test="ryxm != null and ryxm != ''">
  21. and ry.ryxm like '%'||#{ryxm}||'%'
  22. </if>
  23. </where>
  24. order by
  25. ry.RYBH desc
  26. </select>
  27. <select id="getById" parameterType="string" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
  28. select
  29. ry.sfzh,
  30. ry.ryxm,
  31. zwlx.zwlx,
  32. ry.xb,
  33. ry.mz,
  34. ry.zzmm,
  35. ry.lxdh,
  36. ry.bmmc,
  37. ry.zwmc,
  38. zwlx.zgzt,
  39. ry.rylb,
  40. ry.gwxz,
  41. ry.gwdm,
  42. ry.rzrq,
  43. ry.cjslqygzsj,
  44. ry.cjgzsj,
  45. ry.zgzc,
  46. ry.zgzctqsj,
  47. ry.rotaterotate_type rotaterotateType,
  48. ry.head,
  49. ry.avatorurl avatorUrl,
  50. ry.ryfj
  51. from
  52. base:d_ryxxsjy ry
  53. left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh and zwlx.qymc = ry.qymc
  54. where ry.rybh = #{rybh}
  55. </select>
  56. <select id="getQuanById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.EducationVO">
  57. select
  58. quan_highest_education quanHighestEducation,
  59. quan_institutions quanInstitutions,
  60. quan_speciality quanSpeciality,
  61. quan_foodstuff quanFoodstuff
  62. from
  63. base:d_education
  64. where rybh = #{rybh}
  65. </select>
  66. <select id="getFeiById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.FeiEducationVO">
  67. select
  68. fei_highest_education feiHighestEducation,
  69. fei_institutions feiInstitutions,
  70. fei_speciality feiSpeciality,
  71. fei_foodstuff feiFoodstuff
  72. from
  73. base:d_feieducation
  74. where
  75. rybh = #{rybh}
  76. </select>
  77. <select id="getRotaterotateById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.RotaterotateVO">
  78. select
  79. business_type businessType,
  80. business_time businessTime,
  81. serial_number serialNumber
  82. from
  83. base:d_rotaterotate
  84. where
  85. rybh = #{rybh}
  86. </select>
  87. <select id="getSkillListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.SkillVO">
  88. select
  89. skill_level skillLevel,
  90. skill_name skillName,
  91. skill_date skillDate
  92. from
  93. base:d_skill
  94. where
  95. rybh = #{rybh}
  96. </select>
  97. <select id="getReportListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ReportVO">
  98. select
  99. honorary_name honoraryName,
  100. title,
  101. report_number reportNumber,
  102. authoritys,
  103. release_time releaseTime,
  104. honorary_title honoraryTitle,
  105. report_name reportName,
  106. occupation,
  107. fjid
  108. from
  109. base:d_report
  110. where
  111. rybh = #{rybh}
  112. </select>
  113. <select id="getCertificatesListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.CertificatesVO">
  114. select
  115. speciality,
  116. issuefacility issueFacility,
  117. acquisition_time acquisitionTime,
  118. fjid
  119. from
  120. base:d_certificates
  121. where
  122. rybh = #{rybh}
  123. </select>
  124. <select id="getZwlxbgjlListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ZwlxbgjlVO">
  125. select
  126. zw.bgqzzdwmc,
  127. zwlx.zwlx zwlxQ,
  128. zw.bghzzdwmc,
  129. zwlx1.zwlx zwlxH,
  130. zw.bgr,
  131. zw.bgfsrq
  132. from
  133. base:d_zwlxbgjl zw
  134. left join base:d_ryzwlxb zwlx on zwlx.rysfzh = zw.rysfzh and zwlx.tyshxydm = zw.bgqzzdwtyshxydm
  135. left join base:d_ryzwlxb zwlx1 on zwlx1.rysfzh = zw.rysfzh and zwlx1.tyshxydm = zw.bghzzdwtyshxydm
  136. where
  137. zw.rysfzh = #{sfzh}
  138. </select>
  139. <select id="getSptFileUrl" parameterType="java.lang.Object" resultType="java.lang.String">
  140. select s_val from sys_code where org_id = #{orgId} and s_code = #{sptFileUrl}
  141. </select>
  142. </mapper>