|
@@ -26,8 +26,8 @@ public interface MarkMtFeesDao {
|
|
|
void updateSocialNo(@Param("patientId") String patientId, @Param("socialNo") String socialNo);
|
|
|
|
|
|
@Select("select count(1) from mt_part_info where patient_id=#{patientId} and times=#{times} and responce_type='02'")
|
|
|
- int selectCountMtPartInfo(@Param("patientId") String patientId,
|
|
|
- @Param("times") Integer times);
|
|
|
+ int selectCountMtPartInfoForHnsyb(@Param("patientId") String patientId,
|
|
|
+ @Param("times") Integer times);
|
|
|
|
|
|
@Select("select count(1) from mt_part_info where patient_id=#{patientId} and times=#{times} and serial_apply=#{bizType}")
|
|
|
int selectCountMtPartInfoForSyb(@Param("patientId") String patientId,
|
|
@@ -119,4 +119,17 @@ public interface MarkMtFeesDao {
|
|
|
|
|
|
@Select("select rtrim(name) from yp_zd_unit where code=#{code}")
|
|
|
String selectDrugUnit(@Param("code") String code);
|
|
|
+
|
|
|
+ @Select("select count(1) from mt_part_info where patient_id=#{patientId} and times=#{times} ")
|
|
|
+ int selectMtPartInfoCount(@Param("patientId") String patientId,
|
|
|
+ @Param("times") Integer times);
|
|
|
+
|
|
|
+ @Select("select top 1 * from mt_part_info where patient_id=#{patientId} order by times desc")
|
|
|
+ MtPartInfo selectLatestMtPartInfo(@Param("patientId") String patientId);
|
|
|
+
|
|
|
+ @Insert("insert into mt_part_info (patient_id, times, icd, balance, serial_apply, responce_type, " +
|
|
|
+ "hic_no, icd_code, icd_name, second_icd_code, third_icd_code, mz_serial_no, certificate_no) values "+
|
|
|
+ "(#{patientId},#{times},#{icd},#{balance},#{serialApply},#{responceType},#{hicNo},#{icdCode},#{icdName}," +
|
|
|
+ "#{secondIcdCode},#{thirdIcdCode},#{mzSerialNo},#{certificateNo})")
|
|
|
+ void insertNewPartInfo(MtPartInfo info);
|
|
|
}
|