| 123456789101112131415161718192021222324252627282930 |
- package com.malk.zhongche.controller;
- import com.malk.server.common.McR;
- import com.malk.zhongche.service.ZhongcheService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Map;
- @RestController
- public class ZhongcheController {
- @Autowired
- private ZhongcheService zhongcheService;
- //获取任务信息
- @GetMapping("/getTaskInfo")
- public McR getTaskInfo(String taskId,String projectId){
- return zhongcheService.getTaskInfo(taskId,projectId);
- }
- //更新任务延期信息
- @PostMapping("/updateTaskDelayInfo")
- public McR updateTaskDelayInfo(@RequestBody Map map){
- return zhongcheService.updateTaskDelayInfo(map);
- }
- }
|