Browse Source

优化门特信息生成。

lighter 4 years ago
parent
commit
068e5b3ceb

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>web-server</artifactId>
-    <version>7.4</version>
+    <version>7.5</version>
     <name>web-server</name>
     <description>server for yibao-web</description>
 

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

@@ -128,8 +128,8 @@ public interface MarkMtFeesDao {
     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 "+
+            "hic_no, icd_code, icd_name, second_icd_code, third_icd_code, mz_serial_no) values "+
             "(#{patientId},#{times},#{icd},#{balance},#{serialApply},#{responceType},#{hicNo},#{icdCode},#{icdName}," +
-            "#{secondIcdCode},#{thirdIcdCode},#{mzSerialNo},#{certificateNo})")
+            "#{secondIcdCode},#{thirdIcdCode},#{mzSerialNo})")
     void insertNewPartInfo(MtPartInfo info);
 }

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

@@ -149,6 +149,7 @@ public class MarkMtFeesService {
                 if (mtCount == 0) {
                     MtPartInfo mtPartInfo = dao.selectLatestMtPartInfo(patientId);
                     mtPartInfo.setTimes(times);
+                    mtPartInfo.setMzSerialNo(SnowFlakeId.instance().nextId());
                     dao.insertNewPartInfo(mtPartInfo);
                 }
                 Map<String, Object> childResult = new HashMap<>(Capacity.FIVE);