Commit 9f0308fa9f857d146634dedf47f1bfc3f3f142f5
1 parent
41ef89320c
Exists in
master
and in
1 other branch
code update
Showing 2 changed files with 4 additions and 2 deletions
platform-job-index/src/main/java/com/lyms/platform/job/index/service/SyncDataService.java
View file @
9f0308f
platform-job-index/src/main/java/com/lyms/platform/job/index/web/controller/SyncDataController.java
View file @
9f0308f
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.job.index.service.SyncDataService; |
| 4 | 4 | import org.springframework.beans.factory.annotation.Autowired; |
| 5 | +import org.springframework.beans.factory.annotation.Qualifier; | |
| 5 | 6 | import org.springframework.stereotype.Controller; |
| 6 | 7 | import org.springframework.web.bind.annotation.RequestMapping; |
| 7 | 8 | import org.springframework.web.bind.annotation.RequestMethod; |
| ... | ... | @@ -18,6 +19,7 @@ |
| 18 | 19 | public class SyncDataController { |
| 19 | 20 | |
| 20 | 21 | @Autowired |
| 22 | + @Qualifier("job-index-syncdataservice") | |
| 21 | 23 | private SyncDataService syncDataService; |
| 22 | 24 | |
| 23 | 25 | /** |
| ... | ... | @@ -37,7 +39,7 @@ |
| 37 | 39 | @RequestMapping(value = "/syncBabyData", method = RequestMethod.GET) |
| 38 | 40 | @ResponseBody |
| 39 | 41 | public String syncBabyData(@RequestParam(required = true) String oracleHid,@RequestParam(required = true) Integer mysqlHid) { |
| 40 | - syncDataService.syncBabyData(oracleHid,mysqlHid); | |
| 42 | + syncDataService.syncBabyData(oracleHid, mysqlHid); | |
| 41 | 43 | return "baby starting..........."; |
| 42 | 44 | } |
| 43 | 45 | } |