Browse Source

门特。

lighter 4 years ago
parent
commit
62f030b1b8
2 changed files with 14 additions and 11 deletions
  1. 5 2
      pom.xml
  2. 9 9
      src/main/java/thyyxxk/webserver/service/markmtfees/MarkMtFeesService.java

+ 5 - 2
pom.xml

@@ -56,8 +56,11 @@
             <version>2.0</version>
         </dependency>
 
-
-
+        <dependency>
+            <groupId>com.oracle.database.jdbc</groupId>
+            <artifactId>ojdbc6</artifactId>
+            <version>11.2.0.4</version>
+        </dependency>
 
         <dependency>
             <groupId>org.springframework.boot</groupId>

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

@@ -44,15 +44,15 @@ public class MarkMtFeesService {
         Map<String, Object> data = new HashMap<>();
         data.put("patientId", patientId);
         data.put("times", times);
-//        int mtCount;
-//        if (param.getResponceType().equals("02")) {
-//            mtCount = dao.selectCountMtPartInfo(patientId, times);
-//        } else {
-//            mtCount = dao.selectCountMtPartInfoForSyb(patientId, times, param.getBizType());
-//        }
-//        if (mtCount > 0) {
-//            return ResultVoUtil.success(data);
-//        }
+        int mtCount;
+        if (param.getResponceType().equals("02")) {
+            mtCount = dao.selectCountMtPartInfo(patientId, times);
+        } else {
+            mtCount = dao.selectCountMtPartInfoForSyb(patientId, times, param.getBizType());
+        }
+        if (mtCount > 0) {
+            return ResultVoUtil.success(data);
+        }
         param.setIdCard(socialNo);
         param.setStaffId(TokenUtil.getTokenUserId());
         RestTemplate template = new RestTemplate();