|
|
@ -880,4 +880,23 @@ |
|
|
|
ORDER BY |
|
|
|
( ONE_SHOT_COMPLETED_NUM + TWO_SHOT_COMPLETED_NUM + THREE_SHOT_COMPLETED_NUM + STEADY_SHOT_COMPLETED_NUM ) DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getEpidemicUserInfoList" parameterType="com.elink.esua.epdc.dto.analysis.pc.screen.form.ApiEpidemicUserInfoListFormDTO" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.ApiEpidemicUserInfoResultDTO"> |
|
|
|
|
|
|
|
select |
|
|
|
u.USER_NAME, |
|
|
|
dd.dict_name as GENDER, |
|
|
|
u.MOBILE, |
|
|
|
(case u.CHECK_STATE when '0' then '已检测' when '1' then '未检测' else '' end) CHECK_STATE, |
|
|
|
d.dict_name as PEOPLE_CATEGORIES |
|
|
|
from yushan_esua_epdc_custom.epidemic_user_info u |
|
|
|
left join yushan_esua_epdc_admin.sys_dict d on d.dict_value = u.PEOPLE_CATEGORIES and d.dict_type = 'people_categories' and d.pid != '0' |
|
|
|
left join yushan_esua_epdc_admin.sys_dict dd on dd.dict_value = u.GENDER and dd.dict_type = 'gender' and dd.pid != '0' |
|
|
|
where u.DEL_FLAG = '0' |
|
|
|
and u.CHECK_STATE = #{checkState} |
|
|
|
and u.DEPT_ID = #{deptId} |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|