LiFei 5 роки тому
батько
коміт
f10607b3d5

+ 4 - 1
happy-job-module-hpjob/src/main/java/com/jeeplus/modules/wsstaff/mapper/xml/WsStaffMapper.xml

@@ -30,10 +30,13 @@
     
 	<select id="get" resultType="WsStaff" >
 		SELECT 
-			<include refid="wsStaffColumns"/>
+			<include refid="wsStaffColumns"/>,
+		    ifnull(hm.authentication_status,0) as "hpMember.authenticationStatus"
 		FROM ws_staff a
 		<include refid="wsStaffJoins"/>
+		left join hp_member hm on hm.id_card_number=a.idcard_number
 		WHERE a.id = #{id}
+		group by a.id
 	</select>
 	
 	<select id="findList" resultType="WsStaff" >