|
@@ -27,7 +27,10 @@ public interface LoginDao {
|
|
"with(nolock) where openid=#{openid} and del_flag=0")
|
|
"with(nolock) where openid=#{openid} and del_flag=0")
|
|
List<OutpatientCard> getPatientCardListByOpenid(String openid);
|
|
List<OutpatientCard> getPatientCardListByOpenid(String openid);
|
|
|
|
|
|
- @Select("select distinct name,patient_id,social_no from t_wechat_patient_bind " +
|
|
|
|
- "with(nolock) where social_no=#{idCard} and del_flag=0")
|
|
|
|
|
|
+ @Select("select name,patient_id,social_no from t_wechat_patient_bind " +
|
|
|
|
+ "with(nolock) where social_no=#{idCard} and del_flag=0 union " +
|
|
|
|
+ "select rtrim(name) as name,rtrim(patient_id) as patientId, " +
|
|
|
|
+ "rtrim(social_no) as socialNo from mz_patient_mi " +
|
|
|
|
+ "with(nolock) where social_no=#{idCard} and isnull(del_flag,0)=0")
|
|
List<OutpatientCard> getPatientCardListByIdCard(String idCard);
|
|
List<OutpatientCard> getPatientCardListByIdCard(String idCard);
|
|
}
|
|
}
|