|
@@ -2,12 +2,13 @@ package thyyxxk.wxservice_server.dao;
|
|
|
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
import thyyxxk.wxservice_server.pojo.patientcards.BindPatientIdParam;
|
|
|
+import thyyxxk.wxservice_server.pojo.patientcards.ModifyBindParam;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@Mapper
|
|
|
public interface PatientCardsDao {
|
|
|
- @Select("select name, patient_id, phone, is_default from t_wechat_patient_bind where open_id=#{openId} and del_flag=0")
|
|
|
+ @Select("select name, patient_id, phone, social_no, is_default from t_wechat_patient_bind where open_id=#{openId} and del_flag=0")
|
|
|
List<BindPatientIdParam> getBindPatientCard(@Param("openId") String openId);
|
|
|
|
|
|
@Select("select rtrim(name) name, rtrim(patient_id) patientId, rtrim(social_no) socialNo, " +
|
|
@@ -43,6 +44,12 @@ public interface PatientCardsDao {
|
|
|
@Param("openId") String openId,
|
|
|
@Param("isDefault") int isDefault);
|
|
|
|
|
|
+ @Update("update mz_patient_mi set phone_no=#{phone},social_no=#{socialNo},name=#{name} where patient_id=#{patientId}")
|
|
|
+ void updateMzPatientMi(ModifyBindParam param);
|
|
|
+
|
|
|
+ @Update("update t_wechat_patient_bind set phone=#{phone},social_no=#{socialNo},name=#{name} where patient_id=#{patientId}")
|
|
|
+ void updateWechatBind(ModifyBindParam param);
|
|
|
+
|
|
|
@Update("update t_wechat_patient_bind set del_flag=0,name=#{name},phone=#{phone}, " +
|
|
|
"province=#{province}, city=#{city}, district=#{district}, street=#{street} " +
|
|
|
"where patient_id=#{patientId} and open_id=#{openId}")
|