lihong 5 月之前
父節點
當前提交
23958c418f

+ 10 - 0
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -30,6 +30,7 @@ import cn.hnthyy.thmz.entity.thmz.PayInfo;
 import cn.hnthyy.thmz.entity.thmz.TcRefundFeeVo;
 import cn.hnthyy.thmz.entity.thmz.User;
 import cn.hnthyy.thmz.entity.thmz.WhiteList;
+import cn.hnthyy.thmz.entity.thmz.Windows;
 import cn.hnthyy.thmz.enums.ConfirmFlagEnum;
 import cn.hnthyy.thmz.enums.GenderEnum;
 import cn.hnthyy.thmz.enums.PayMarkEnum;
@@ -53,6 +54,7 @@ import cn.hnthyy.thmz.service.thmz.HybirdTestService;
 import cn.hnthyy.thmz.service.thmz.TsmzService;
 import cn.hnthyy.thmz.service.thmz.UserService;
 import cn.hnthyy.thmz.service.thmz.WhiteListService;
+import cn.hnthyy.thmz.service.thmz.WindowsService;
 import cn.hnthyy.thmz.vo.MzDepositFileVo;
 import cn.hnthyy.thmz.vo.MzPrescriptionVo;
 import cn.hnthyy.thmz.vo.MzReceiptSerialVo;
@@ -148,6 +150,8 @@ public class MedicalViewApiController {
     private MzOrderDetailService mzOrderDetailService;
     @Resource
     private DictDataService dictDataService;
+    @Resource
+    private WindowsService windowsService;
 
     //海慈身份证类型
     private static final String ID_CARD_TYPE = "11";
@@ -3414,4 +3418,10 @@ public class MedicalViewApiController {
             return resultMap;
         }
     }
+    @GetMapping("queryWindowsByIp")
+   public R queryWindowsByIp(String ip){
+        Windows windows = windowsService.queryLastWindowsIpAddress(ip);
+        return R.ok().put("data", windows);
+   }
+
 }

+ 12 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/zy/APatientMiMapper.java

@@ -406,4 +406,16 @@ public interface APatientMiMapper {
     List<APatientMi> selectByKeyWard(String keyWard);
     @Update(" update a_patient_mi set mz_no = #{mzNo} where inpatient_no =#{inpatientNo} ")
     int updateMzNoByInpatientNo(@Param("inpatientNo") String inpatientNo, @Param("mzNo") String mzNo);
+    @Update({"<script>",
+            "update zy_actpatient ",
+            "<trim prefix='set' prefixOverrides=',' suffix=' where inpatient_no =#{inpatientNo}' >",
+            "<when test='name!=null'>",
+            "name =#{name,jdbcType=CHAR}",
+            "</when>",
+            "<when test='sex!=null'>",
+            ",sex =#{sex,jdbcType=CHAR}",
+            "</when>",
+            "</trim>"
+            ,"</script>"})
+    void updateZyAcPatient(APatientMi aPatientMi);
 }

+ 1 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/zy/APatientMiServiceImpl.java

@@ -84,6 +84,7 @@ public class APatientMiServiceImpl implements APatientMiService {
      */
     @Override
     public int modifyMzPatientMiByInpatientNo(APatientMi aPatientMi) {
+        aPatientMiMapper.updateZyAcPatient(aPatientMi);
         return aPatientMiMapper.updateMzPatientMiInpatientNo(aPatientMi);
     }