| | |
| | | <result column="soil" property="soil"/> |
| | | <result column="reason_for_leav" property="reasonForLeav"/> |
| | | <result column="accreditationStatus" property="accreditationStatus"/> |
| | | <result column="ancestors" property="ancestors"/> |
| | | </resultMap> |
| | | |
| | | <!--带坐标--> |
| | |
| | | bud.unit_name, |
| | | bud.permanent_residence_address as registered, |
| | | bd.dept_name, |
| | | bd.ancestors, |
| | | CASE WHEN sar.audit_status is not null THEN sar.audit_status ELSE -1 END AS accreditationStatus |
| | | from |
| | | blade_user bu |
| | |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and bu.jurisdiction = #{user.jurisdiction} |
| | | </if> |
| | | <if test="user.unitName!=null and user.unitName != ''"> |
| | | and bud.unit_name like concat('%', #{user.unitName},'%') |
| | | </if> |
| | | <!-- <if test="user.unitName!=null and user.unitName != ''">--> |
| | | <!-- and bud.unit_name like concat('%', #{user.unitName},'%')--> |
| | | <!-- </if>--> |
| | | <if test="user.securitynumber!=null and user.securitynumber != ''"> |
| | | and bu.securitynumber = #{user.securitynumber} |
| | | </if> |
| | |
| | | and bud.id is null |
| | | </select> |
| | | <select id="getUserInfoDetail" resultType="org.springblade.modules.system.vo.UserInfoDetail"> |
| | | SELECT * FROM BLADE_USER bu |
| | | LEFT JOIN BLADE_USER_DETAIL BUD on bud.user_id = bu.id and bud.is_deleted = 0 |
| | | SELECT * FROM blade_user bu |
| | | LEFT JOIN blade_user_detail bud on bud.user_id = bu.id and bud.is_deleted = 0 |
| | | WHERE bu.is_deleted = 0 and bu.id = #{id} |
| | | |
| | | </select> |
| | | <select id="getUserInfoByIdCardNoAndSecurityNumber" |
| | | resultType="org.springblade.modules.system.entity.User"> |