Sfoglia il codice sorgente

修改获取门特患者就诊次数的方式。

lighter 4 anni fa
parent
commit
4d25b22f2c

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/markmtfees/MarkMtFeesDao.java

@@ -13,7 +13,7 @@ public interface MarkMtFeesDao {
     @Select("select rtrim(social_no) from mz_patient_mi where patient_id=#{patientId}")
     String selectSocialNoByPatientId(@Param("patientId") String patientId);
 
-    @Select("select times from mz_patient_mi where patient_id=#{patientId}")
+    @Select("select max(times) from mz_charge_detail where patient_id=#{patientId} and pay_mark='5' ")
     Integer selectMaxTimes(@Param("patientId") String patientId);
 
     @Select("select phone_no from mz_patient_mi where patient_id=#{patientId}")

+ 1 - 1
src/main/java/thyyxxk/webserver/service/markmtfees/MarkMtFeesService.java

@@ -47,7 +47,7 @@ public class MarkMtFeesService {
         }
         Integer times = dao.selectMaxTimes(patientId);
         if (null == times || times == 0) {
-            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "未查询到些患者的就诊信息,请检查!");
+            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "未查询到此患者的待缴费处方,请检查!");
         }
         if (StringUtil.isBlank(param.getIdCard())) {
             param.setIdCard(dao.selectSocialNoByPatientId(patientId));