|
|
@@ -6,6 +6,7 @@ import com.goafanti.common.controller.BaseController;
|
|
|
import com.goafanti.common.model.TaskDetails;
|
|
|
import com.goafanti.common.model.TaskDetailsLog;
|
|
|
import com.goafanti.common.model.TaskFeature;
|
|
|
+import com.goafanti.common.utils.DateUtils;
|
|
|
import com.goafanti.techproject.bo.InputTaskFeature;
|
|
|
import com.goafanti.techproject.service.TaskDetailsService;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@@ -85,6 +86,20 @@ public class TaskDetailsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 修改进度下载时间
|
|
|
+ *
|
|
|
+ * @return 编辑结果
|
|
|
+ */
|
|
|
+ @PostMapping("/updateDownload")
|
|
|
+ public Result updateDownload(Integer id,String downloadTimeStr) {
|
|
|
+ TaskDetails newTd=new TaskDetails();
|
|
|
+ newTd.setId(id);
|
|
|
+ newTd.setDownloadTime(DateUtils.parseDate(downloadTimeStr));
|
|
|
+ return new Result<>().data(this.taskDetailsService.updateDownload(newTd));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
* 删除数据
|
|
|
*
|
|
|
* @param id 主键
|