|
@@ -1,12 +1,14 @@
|
|
package com.xlht.xlhtproject.controller;
|
|
package com.xlht.xlhtproject.controller;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
import com.xlht.xlhtproject.domain.HomeCountInfo;
|
|
import com.xlht.xlhtproject.domain.HomeCountInfo;
|
|
import com.xlht.xlhtproject.domain.TShuju1;
|
|
import com.xlht.xlhtproject.domain.TShuju1;
|
|
import com.xlht.xlhtproject.domain.TTbDu;
|
|
import com.xlht.xlhtproject.domain.TTbDu;
|
|
import com.xlht.xlhtproject.mapper.TTbDuMapper;
|
|
import com.xlht.xlhtproject.mapper.TTbDuMapper;
|
|
import com.xlht.xlhtproject.respParse.bean.AjaxResult;
|
|
import com.xlht.xlhtproject.respParse.bean.AjaxResult;
|
|
import com.xlht.xlhtproject.respParse.bean.R;
|
|
import com.xlht.xlhtproject.respParse.bean.R;
|
|
|
|
+import com.xlht.xlhtproject.respParse.page.TableDataInfo;
|
|
import com.xlht.xlhtproject.service.IFrontService;
|
|
import com.xlht.xlhtproject.service.IFrontService;
|
|
import com.xlht.xlhtproject.service.ITShuju1Service;
|
|
import com.xlht.xlhtproject.service.ITShuju1Service;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -24,7 +26,7 @@ import static com.xlht.xlhtproject.enums.MyConstants.LONG_1;
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/front")
|
|
@RequestMapping("/front")
|
|
@Slf4j
|
|
@Slf4j
|
|
-public class FrontController {
|
|
|
|
|
|
+public class FrontController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IFrontService frontService;
|
|
private IFrontService frontService;
|
|
@@ -119,6 +121,22 @@ public class FrontController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ *首页-报表信息-分页
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/bigModel/smartAdd/homePageList")
|
|
|
|
+ public TableDataInfo homePageList(@RequestParam(required = false, name = "timeBegin") String timeBegin, @RequestParam(required = false, name = "timeEnd") String timeEnd, Integer pageNum, Integer pageSize)
|
|
|
|
+ {
|
|
|
|
+ log.info("进入了 修改碳源投加 首页-报表信息-分页 接口");
|
|
|
|
+ if(Objects.isNull(pageNum) || Objects.isNull(pageSize))
|
|
|
|
+ throw new RuntimeException("请输入分页参数");
|
|
|
|
+ TShuju1 req = TShuju1.builder().timeBegin(timeBegin).timeEnd(timeEnd).build();
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ return getDataTable(this.tShuju1Service.selectTShuju1List(req));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
*首页-化验统计信息
|
|
*首页-化验统计信息
|
|
* @return
|
|
* @return
|