| | |
| | | <if test="userId !=null and userId !=''"> |
| | | sdu.user_id=#{userId} AND |
| | | </if> |
| | | <if test="userType !=null and userType !=''"> |
| | | spu.user_type=#{userType} AND |
| | | </if> |
| | | </trim> |
| | | </where> |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="queryAdminByArea" resultType="com.thhy.staff.modules.biz.platuser.entity.NamePhoneDepart"> |
| | | select rwu.user_id,spu.real_name as realName,spu.phone,spu.photo,sd.departName |
| | | select rwu.user_id,spu.real_name as realName,spu.phone,spu.photo,sd.depart_name as departName |
| | | from t_region_warranty_user rwu |
| | | left join sys_plat_user spu on spu.user_id = rwu.user_id |
| | | left join sys_depart_user sdu on sdu.user_id = spu.user_id |
| | | left join sys_depart sd on sd.depart_id = sdu.depart_id |
| | | where rwu.region_warranty_id = #{regionWarrantyId} |
| | | order by user_type |
| | | order by rwu.user_type |
| | | </select> |
| | | |
| | | <select id="faceArea" resultType="string"> |