|
@@ -2,6 +2,8 @@ package com.usky.iot.controller.web;
|
|
|
|
|
|
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.security.utils.SecurityUtils;
|
|
|
+import com.usky.iot.domain.PmTimeConf;
|
|
|
import com.usky.iot.domain.PmWorkReport;
|
|
|
import com.usky.iot.service.PmTimeConfService;
|
|
|
import com.usky.iot.service.vo.PmSubmitCountResponseVO;
|
|
@@ -52,6 +54,15 @@ public class PmTimeConfController {
|
|
|
return pmTimeConfService.submitCount(submitDate);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 提交记录分页
|
|
|
+ * @param queryType 查询类型
|
|
|
+ * @param submitDate 提交日期
|
|
|
+ * @param reportId 报告id
|
|
|
+ * @param pageNum 页码
|
|
|
+ * @param pageSize 页大小
|
|
|
+ * @return 分页结果
|
|
|
+ */
|
|
|
@GetMapping("/submitPage")
|
|
|
public CommonPage<Object> submitPage(@RequestParam(value = "queryType", required = false, defaultValue = "0") Integer queryType,
|
|
|
@RequestParam(value = "submitDate", required = false) String submitDate,
|
|
@@ -64,5 +75,15 @@ public class PmTimeConfController {
|
|
|
return pmTimeConfService.submitPage(submitDate, queryType, reportId, pageNum, pageSize);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取配置时间
|
|
|
+ * @return 配置时间
|
|
|
+ */
|
|
|
+ @GetMapping("/timeQuery")
|
|
|
+ public PmTimeConf timeQuery() {
|
|
|
+ Integer tenantId = SecurityUtils.getTenantId();
|
|
|
+ return pmTimeConfService.getTimeConf(tenantId);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|