Przeglądaj źródła

绑卡时同时更新mz_patient_mi的个人基本信息

lighter 2 lat temu
rodzic
commit
21c8edd72c

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>wxservice-server</artifactId>
-    <version>8.3</version>
+    <version>8.5</version>
     <name>wxservice-server</name>
     <description>server for wxservice-web</description>
 

+ 6 - 1
src/main/java/thyyxxk/wxservice_server/dao/PatientCardsDao.java

@@ -54,7 +54,12 @@ public interface PatientCardsDao {
                            @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);
+    void modifyPatientBindInfo(ModifyBindParam param);
+
+    @Update("update mz_patient_mi set phone_no=#{phone},name=#{name} where patient_id=#{patientId}")
+    void updateMzPatientMi(@Param("patientId") String patientId,
+                               @Param("name") String name,
+                               @Param("phone") String phone);
 
     @Update("update t_wechat_patient_bind set phone=#{phone},social_no=#{socialNo},name=#{name} where patient_id=#{patientId}")
     void updateWechatBind(ModifyBindParam param);

+ 1 - 0
src/main/java/thyyxxk/wxservice_server/service/IdCardAnalyzeService.java

@@ -116,6 +116,7 @@ public class IdCardAnalyzeService {
             if (resobj.getInteger("resultCode") == 0) {
                 param.setPatientId(resobj.getString("patHisNo"));
                 param.setIcCardNo(resobj.getString("patCardNo"));
+                cardsDao.updateMzPatientMi(param.getPatientId(), param.getName(), param.getPhone());
                 return bindExistCard(param);
             }
         }

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/service/PatientCardsService.java

@@ -141,7 +141,7 @@ public class PatientCardsService {
 
     public ResultVo<String> updateBindInfo(ModifyBindParam param) {
         log.info("修改个人信息:{}", param);
-        dao.updateMzPatientMi(param);
+        dao.modifyPatientBindInfo(param);
         dao.updateWechatBind(param);
         return ResultVoUtil.success();
     }