Browse Source

添加定时任务passtoken

xiaochan 2 years ago
parent
commit
5c77fae7c2

+ 2 - 0
src/main/java/thyyxxk/webserver/controller/coordinatecleaning/UpdatePatientLatitudeAndLongitudeController.java

@@ -5,6 +5,7 @@ import org.apache.commons.collections4.ListUtils;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+import thyyxxk.webserver.config.auth.PassToken;
 import thyyxxk.webserver.dao.his.reports.PatientDistributionAddressDao;
 import thyyxxk.webserver.entity.inpatient.patient.Patient;
 import thyyxxk.webserver.utils.BaiduMapGeocoderUtil;
@@ -30,6 +31,7 @@ public class UpdatePatientLatitudeAndLongitudeController {
      */
 
     @GetMapping("/start")
+    @PassToken
     public void start() {
         String tableName = "a_patient_mi";
         String patNo = "inpatient_no";

+ 2 - 0
src/main/java/thyyxxk/webserver/controller/dailypatientcount/DailyPatientCountController.java

@@ -7,6 +7,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+import thyyxxk.webserver.config.auth.PassToken;
 import thyyxxk.webserver.dao.his.scheduled.DailyPatientCountDao;
 import thyyxxk.webserver.entity.scheduled.ClinicCount;
 import thyyxxk.webserver.entity.scheduled.DailyPatientCount;
@@ -29,6 +30,7 @@ public class DailyPatientCountController {
     }
 
     @GetMapping("/notifyDailyCount")
+    @PassToken
     public void notifyDailyCount() {
         DailyPatientCount count = dao.selectDailyCount();
         List<ClinicCount> list = dao.selectClinicCount();

+ 2 - 0
src/main/java/thyyxxk/webserver/controller/medicalinsurance/AnalyzeSiPatientChargesController.java

@@ -8,6 +8,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+import thyyxxk.webserver.config.auth.PassToken;
 import thyyxxk.webserver.config.exception.ExceptionEnum;
 import thyyxxk.webserver.constants.YesOrNo;
 import thyyxxk.webserver.constants.sidicts.MedChrgitmType;
@@ -36,6 +37,7 @@ public class AnalyzeSiPatientChargesController {
     }
 
     @GetMapping("/analyzeSetlData")
+    @PassToken
     private void startAnalyze() {
         List<SiSetlinfo> unAnalyzedData = dao.selectUnAnalyzedData();
         for (SiSetlinfo setlinfo : unAnalyzedData) {