| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.chinaitop.depot.basic.mapper.DRyxxsjyMapper">
- <select id="getPageList" parameterType="com.chinaitop.depot.basic.param.DRyxxsjyPageParam" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
- select
- ry.rybh,
- ry.ryxm,
- ry.xb,
- ry.lxdh,
- zwlx.zwlx,
- zwlx.qymc
- from
- base:d_ryxxsjy ry
- left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh
- left join org_info oi on zwlx.tyshxydm = oi.credit_code
- <where>
- oi.org_id = #{orgId}
- and ry.status = 1
- and ry.newly = 1
- <if test="ryxm != null and ryxm != ''">
- and ry.ryxm like '%'||#{ryxm}||'%'
- </if>
- </where>
- order by
- ry.RYBH desc
- </select>
- <select id="getById" parameterType="string" resultType="com.chinaitop.depot.basic.model.DRyxxsjyVO">
- select
- ry.sfzh,
- ry.ryxm,
- zwlx.zwlx,
- ry.xb,
- ry.mz,
- ry.zzmm,
- ry.lxdh,
- ry.bmmc,
- ry.zwmc,
- zwlx.zgzt,
- ry.rylb,
- ry.gwxz,
- ry.gwdm,
- ry.rzrq,
- ry.cjslqygzsj,
- ry.cjgzsj,
- ry.zgzc,
- ry.zgzctqsj,
- ry.rotaterotate_type rotaterotateType,
- ry.head,
- ry.avatorurl avatorUrl,
- ry.ryfj
- from
- base:d_ryxxsjy ry
- left join base:d_ryzwlxb zwlx on zwlx.rysfzh = ry.sfzh and zwlx.qymc = ry.qymc
- where ry.rybh = #{rybh}
- </select>
- <select id="getQuanById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.EducationVO">
- select
- quan_highest_education quanHighestEducation,
- quan_institutions quanInstitutions,
- quan_speciality quanSpeciality,
- quan_foodstuff quanFoodstuff
- from
- base:d_education
- where rybh = #{rybh}
- </select>
- <select id="getFeiById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.FeiEducationVO">
- select
- fei_highest_education feiHighestEducation,
- fei_institutions feiInstitutions,
- fei_speciality feiSpeciality,
- fei_foodstuff feiFoodstuff
- from
- base:d_feieducation
- where
- rybh = #{rybh}
- </select>
- <select id="getRotaterotateById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.RotaterotateVO">
- select
- business_type businessType,
- business_time businessTime,
- serial_number serialNumber
- from
- base:d_rotaterotate
- where
- rybh = #{rybh}
- </select>
- <select id="getSkillListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.SkillVO">
- select
- skill_level skillLevel,
- skill_name skillName,
- skill_date skillDate
- from
- base:d_skill
- where
- rybh = #{rybh}
- </select>
- <select id="getReportListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ReportVO">
- select
- honorary_name honoraryName,
- title,
- report_number reportNumber,
- authoritys,
- release_time releaseTime,
- honorary_title honoraryTitle,
- report_name reportName,
- occupation,
- fjid
- from
- base:d_report
- where
- rybh = #{rybh}
- </select>
- <select id="getCertificatesListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.CertificatesVO">
- select
- speciality,
- issuefacility issueFacility,
- acquisition_time acquisitionTime,
- fjid
- from
- base:d_certificates
- where
- rybh = #{rybh}
- </select>
- <select id="getZwlxbgjlListById" parameterType="string" resultType="com.chinaitop.depot.basic.model.vo.ZwlxbgjlVO">
- select
- zw.bgqzzdwmc,
- zwlx.zwlx zwlxQ,
- zw.bghzzdwmc,
- zwlx1.zwlx zwlxH,
- zw.bgr,
- zw.bgfsrq
- from
- base:d_zwlxbgjl zw
- left join base:d_ryzwlxb zwlx on zwlx.rysfzh = zw.bgqzzdwtyshxydm and zwlx.tyshxydm = zw.bgqzzdwtyshxydm
- left join base:d_ryzwlxb zwlx1 on zwlx1.rysfzh = zw.bgqzzdwtyshxydm and zwlx1.tyshxydm = zw.bgqzzdwtyshxydm
- where
- zw.rysfzh = #{sfzh}
- </select>
- </mapper>
|