| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.EsModel; |
| | | import com.ruoyi.service.EsService; |
| | | import com.ruoyi.service.ZfEconomyService; |
| | | import com.ruoyi.service.impl.InterfaceBasedSearchRouter; |
| | | import com.ruoyi.service.impl.ZfEconomyServiceImpl; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.websocket.server.PathParam; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | @Resource |
| | | EsService esService; |
| | | |
| | | @Resource |
| | | InterfaceBasedSearchRouter interfaceBasedSearchRouter; |
| | | |
| | | @Resource |
| | | ZfEconomyServiceImpl zfEconomyService; |
| | | |
| | | @GetMapping() |
| | | public AjaxResult search(@PathParam("keyword") String keyword){ |
| | |
| | | List<EsModel> modelList = esService.getAll(); |
| | | return AjaxResult.success(modelList); |
| | | } |
| | | |
| | | @GetMapping("/companion/{moduleCode}") |
| | | public AjaxResult getAllbyCAY( @PathVariable("moduleCode") String moduleCode,@RequestParam(value = "companion", required = false) String companion, |
| | | @RequestParam(value = "happenStartTime", required = false) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") Date happenStartTime, |
| | | @RequestParam(value = "happenEndTime", required = false) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") Date happenEndTime){ |
| | | System.out.println("[[[[[["+moduleCode); |
| | | System.out.println("[[[[[["+companion); |
| | | |
| | | |
| | | System.out.println("[[[[[["+happenStartTime); |
| | | System.out.println("[[[[[["+happenEndTime); |
| | | |
| | | return interfaceBasedSearchRouter.routeSearch(moduleCode,companion,happenStartTime,happenEndTime); |
| | | } |
| | | |
| | | |
| | | } |