Commit 058fac496242afc27aa846d3805755239bfb9788
1 parent
da612570a0
Exists in
master
update
Showing 1 changed file with 23 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/TestController.java
View file @
058fac4
| 1 | 1 | package com.lyms.talkonlineweb.controller; |
| 2 | 2 | |
| 3 | 3 | |
| 4 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
| 5 | +import com.lyms.talkonlineweb.annotation.TokenRequired; | |
| 6 | +import com.lyms.talkonlineweb.domain.LymsPcase; | |
| 7 | +import com.lyms.talkonlineweb.service.LymsPcaseService; | |
| 8 | +import com.lyms.talkonlineweb.task.GetPatientInfoTask; | |
| 4 | 9 | import com.lyms.talkonlineweb.task.PushArticleTask; |
| 5 | 10 | import com.lyms.talkonlineweb.task.PushArticleTaskData; |
| 6 | 11 | import lombok.extern.java.Log; |
| ... | ... | @@ -8,6 +13,10 @@ |
| 8 | 13 | import org.springframework.web.bind.annotation.GetMapping; |
| 9 | 14 | import org.springframework.web.bind.annotation.RestController; |
| 10 | 15 | |
| 16 | +import java.util.Calendar; | |
| 17 | +import java.util.Date; | |
| 18 | +import java.util.List; | |
| 19 | + | |
| 11 | 20 | @RestController |
| 12 | 21 | @Log |
| 13 | 22 | public class TestController { |
| 14 | 23 | |
| 15 | 24 | |
| 16 | 25 | |
| ... | ... | @@ -15,11 +24,25 @@ |
| 15 | 24 | public PushArticleTask pushArticleTask; |
| 16 | 25 | @Autowired |
| 17 | 26 | public PushArticleTaskData pushArticleTaskData; |
| 27 | + @Autowired | |
| 28 | + public GetPatientInfoTask getPatientInfoTask; | |
| 29 | + @Autowired | |
| 30 | + private LymsPcaseService lymsPcaseService;//病例 | |
| 31 | + | |
| 32 | + @GetMapping("test") | |
| 33 | + @TokenRequired | |
| 34 | + public void test() throws Exception { | |
| 35 | + getPatientInfoTask.getPatientInfo(); | |
| 36 | + } | |
| 37 | + | |
| 18 | 38 | @GetMapping("test9") |
| 39 | + @TokenRequired | |
| 19 | 40 | public void test9() { |
| 20 | 41 | pushArticleTask.pushArtcle(); |
| 21 | 42 | } |
| 43 | + | |
| 22 | 44 | @GetMapping("test0") |
| 45 | + @TokenRequired | |
| 23 | 46 | public void test0() { |
| 24 | 47 | pushArticleTaskData.pushArtcleData(); |
| 25 | 48 | } |