zhaowenxuan
8 天以前 0892d843cd394f383ff50f480f7f22f2ec3829bc
ltkj-admin/src/main/java/com/ltkj/web/jmreport/JimuController.java
@@ -1,6 +1,9 @@
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;
@@ -10,6 +13,7 @@
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;
@@ -34,6 +38,9 @@
    private static String CONFIG_PATH;
    @Autowired
    private TestMapper testMapper;
    @Value ("${config.properties}")
    public void setConfigPath(String path) {
@@ -100,4 +107,11 @@
//    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);
    }
}