浏览代码

暂存缴费代码

hurugang 4 年之前
父节点
当前提交
e3f78e37ba

+ 13 - 0
src/main/java/cn/hnthyy/thmz/entity/his/ZyDepositFile.java

@@ -10,6 +10,19 @@ import java.util.Date;
  */
 @Data
 public class ZyDepositFile {
+    /**
+     * 缴费状态
+     */
+    public static String PAY_STATUS="1";
+    /**
+     * 退费状态
+     */
+    public static String REFUND_STATUS="2";
+    /**
+     * 补交状态
+     */
+    public static String HAND_OVER_STATUS="4";
+
     //住院号
     private String inpatientNo;
     //住院次数

+ 7 - 0
src/main/java/cn/hnthyy/thmz/service/his/ZyDepositFileService.java

@@ -12,4 +12,11 @@ public interface ZyDepositFileService {
      */
     List<ZyDepositFile> queryZyDepositFileBYInpatientNoAndTimes(ZyDepositFile zyDepositFile);
 
+    /**
+     * 保存住院收费
+     * @param zyDepositFile
+     * @return
+     */
+    int saveZyDepositFile(ZyDepositFile zyDepositFile);
+
 }

+ 2 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/ZyDayclosingRecordServiceImpl.java

@@ -16,8 +16,9 @@ public class ZyDayclosingRecordServiceImpl implements ZyDayclosingRecordService
     @Autowired
     private ZyDayclosingRecordMapper zyDayclosingRecordMapper;
 
-    @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
+
     @Override
+    @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
     public void dayclosing() {
         Date lastCloseDate = zyDayclosingRecordMapper.selectLastCloseDate();
         Date closeDate = new Date();

+ 9 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/ZyDepositFileServiceImpl.java

@@ -5,6 +5,9 @@ import cn.hnthyy.thmz.mapper.his.ZyDepositFileMapper;
 import cn.hnthyy.thmz.service.his.ZyDepositFileService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Isolation;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.transaction.annotation.Transactional;
 
 import java.util.List;
 @Service
@@ -16,4 +19,10 @@ public class ZyDepositFileServiceImpl implements ZyDepositFileService {
     public List<ZyDepositFile> queryZyDepositFileBYInpatientNoAndTimes(ZyDepositFile zyDepositFile) {
         return zyDepositFileMapper.selectZyDepositFileBYInpatientNoAndTimes(zyDepositFile);
     }
+
+    @Override
+    @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
+    public int saveZyDepositFile(ZyDepositFile zyDepositFile) {
+        return 0;
+    }
 }