| | |
| | | package com.ycl.controller; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.core.controller.BaseController; |
| | | import com.ycl.common.core.domain.R; |
| | | import com.ycl.common.core.page.TableDataInfo; |
| | | import com.ycl.domain.entity.AuditHistory; |
| | | import com.ycl.domain.vo.*; |
| | | import com.ycl.service.AuditHistoryService; |
| | | import com.ycl.service.ProjectInfoService; |
| | | import com.ycl.service.ProjectProcessService; |
| | | import com.ycl.system.domain.base.AbsQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/") |
| | | public class IndexController { |
| | | public class IndexController extends BaseController { |
| | | |
| | | |
| | | @Autowired |
| | | private ProjectInfoService projectInfoService; |
| | | private final ProjectInfoService projectInfoService; |
| | | private final AuditHistoryService auditHistoryService; |
| | | private final ProjectProcessService projectProcessService; |
| | | |
| | | /** |
| | | * 项目数量统计 |
| | |
| | | */ |
| | | @GetMapping("/audit-message") |
| | | public TableDataInfo<Object> auditMessage(PageQuery pageQuery) { |
| | | return null; |
| | | AuditHistory auditHistory = new AuditHistory(); |
| | | auditHistory.setTaskId("001"); |
| | | auditHistory.setTaskDefinitionKey("key"); |
| | | auditHistory.setViewer("张三"); |
| | | auditHistory.setCommitDept("部门1"); |
| | | auditHistory.setAuditType("01"); |
| | | auditHistory.setIsRead("0"); |
| | | auditHistory.setBusinessKey("12"); |
| | | auditHistory.setBusinessTable("t_plan"); |
| | | auditHistory.setContent("消息回复"); |
| | | // auditHistoryService.save(auditHistory); |
| | | return getDataTable(auditHistoryService.list()); |
| | | } |
| | | |
| | | /** |
| | | * 消息条数 |
| | | */ |
| | | @GetMapping("/message-count") |
| | | public R<IndexMsgCountVO> messageCount() { |
| | | IndexMsgCountVO vo = new IndexMsgCountVO(); |
| | | vo.setAuditCount(0L); |
| | | return R.ok(vo); |
| | | public Result messageCount(AbsQuery query) { |
| | | return projectProcessService.getProcessMsg(query); |
| | | } |
| | | |
| | | /** |