2025-01-22 11:49:09 +08:00
|
|
|
<?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="cn.iocoder.yudao.module.inspection.mapper.InspectionStaffMapper">
|
2025-01-22 17:55:40 +08:00
|
|
|
<select id="getList" resultType="cn.iocoder.yudao.module.inspection.vo.InspectionStaffSaveVo">
|
|
|
|
|
SELECT distinct
|
|
|
|
|
su.id,
|
|
|
|
|
su.nickname,
|
|
|
|
|
su.username,
|
|
|
|
|
su.user_type,
|
|
|
|
|
su.remark,
|
|
|
|
|
su.dept_id,
|
|
|
|
|
su.mobile,
|
|
|
|
|
su.password,
|
|
|
|
|
su.avatar,
|
|
|
|
|
su.sex,
|
|
|
|
|
su.status,
|
|
|
|
|
iss.id_card,
|
|
|
|
|
iss.address,
|
|
|
|
|
iss.educational,
|
|
|
|
|
iss.school,
|
|
|
|
|
iss.short_number,
|
|
|
|
|
iss.join_date,
|
|
|
|
|
iss.probation_period,
|
|
|
|
|
iss.social_security_buy_date,
|
|
|
|
|
iss.emergency_contact_name,
|
|
|
|
|
iss.emergency_contact_phone,
|
|
|
|
|
iss.driver_license_type
|
|
|
|
|
FROM system_users su
|
|
|
|
|
left join system_user_role sur on su.id = sur.user_id
|
|
|
|
|
left join system_role sr on sur.role_id = sr.id
|
|
|
|
|
left join inspection_staff iss on iss.user_id = su.id
|
|
|
|
|
<where>
|
|
|
|
|
sr.service_package_id = 'jiance' and sr.code != 'jcyh'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="get" resultType="cn.iocoder.yudao.module.inspection.vo.InspectionStaffSaveVo">
|
|
|
|
|
SELECT distinct
|
|
|
|
|
su.id as id,
|
|
|
|
|
su.nickname,
|
|
|
|
|
su.username,
|
|
|
|
|
su.user_type,
|
|
|
|
|
su.remark,
|
|
|
|
|
su.dept_id,
|
|
|
|
|
su.mobile,
|
|
|
|
|
su.password,
|
|
|
|
|
su.avatar,
|
|
|
|
|
su.sex,
|
|
|
|
|
su.status,
|
|
|
|
|
iss.id_card,
|
|
|
|
|
iss.address,
|
|
|
|
|
iss.educational,
|
|
|
|
|
iss.school,
|
|
|
|
|
iss.short_number,
|
|
|
|
|
iss.join_date,
|
|
|
|
|
iss.probation_period,
|
|
|
|
|
iss.social_security_buy_date,
|
|
|
|
|
iss.emergency_contact_name,
|
|
|
|
|
iss.emergency_contact_phone,
|
|
|
|
|
iss.driver_license_type
|
|
|
|
|
FROM system_users su
|
|
|
|
|
left join system_user_role sur on su.id = sur.user_id
|
|
|
|
|
left join system_role sr on sur.role_id = sr.id
|
|
|
|
|
left join inspection_staff iss on iss.user_id = su.id
|
|
|
|
|
<where>
|
|
|
|
|
sr.service_package_id = 'jiance' and sr.code != 'jcyh'
|
|
|
|
|
and su.id = #{id}
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
2025-01-22 11:49:09 +08:00
|
|
|
</mapper>
|