package com.pqs9900.controller.HisData;

import com.njcn.pojo.commons.HttpResult;
import com.pqs9900.util.Homeostasis;
import org.apache.ibatis.annotations.Param;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author denghuajun
 * @Description //TODO 数据的导入
 * @Date 2019/3/6 9:16
 **/
@Controller
@RequestMapping(value = "hisdata")
public class HisDataDaoController {
    // 日志记录
    private static final Logger logger = LoggerFactory.getLogger(HisDataDaoController.class);
    @Autowired
    private Homeostasis homeostasis;

    @RequestMapping(value = "/hisdatadao", method = RequestMethod.POST)
    @ResponseBody
    public HttpResult hisdatadao(@RequestParam(value = "file", required = false) MultipartFile multipartFile){
        HttpResult result = new HttpResult();
        try {
            String path;
            //获取选取文件的路径

        }catch (Exception e){

        }
        return result;
    }
}
