| | |
| | | package com.ltkj.web.jmreport; |
| | | |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.hosp.mapper.TestMapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.io.FileInputStream; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Properties; |
| | | |
| | | import static jdk.nashorn.internal.runtime.regexp.joni.Config.log; |
| | |
| | | |
| | | |
| | | private static String CONFIG_PATH; |
| | | @Autowired |
| | | private TestMapper testMapper; |
| | | |
| | | @Value ("${config.properties}") |
| | | public void setConfigPath(String path) { |
| | |
| | | // public int view(){ |
| | | // return 1; |
| | | // } |
| | | |
| | | @GetMapping("/getBingZhong") |
| | | public String getBingZhongInfo(@RequestParam("start") String start, @RequestParam("end") String end){ |
| | | JSONObject object = JSONUtil.createObj(); |
| | | object.putOpt("data",testMapper.getBingZhongInfo(start,end)); |
| | | return JSONUtil.toJsonStr(object); |
| | | } |
| | | } |