作者 tangxvhui

修复一下bug

... ... @@ -39,10 +39,10 @@ func (t *TaskItem) GenStatusDescript() {
if domain.TaskState(t.Status) == domain.TaskStop {
statusNamed = "已停止"
}
if t.CurrentStage.Id == 0 && t.LastStage.PlanCompletedAt < t.LastStage.RealCompletedAt {
if t.LastStage.Id > 0 && t.CurrentStage.Id == 0 && t.LastStage.PlanCompletedAt < t.LastStage.RealCompletedAt {
statusNamed = "逾期完成"
}
if t.CurrentStage.Id == 0 && t.LastStage.PlanCompletedAt >= t.LastStage.RealCompletedAt {
if t.LastStage.Id > 0 && t.CurrentStage.Id == 0 && t.LastStage.PlanCompletedAt >= t.LastStage.RealCompletedAt {
statusNamed = "如期完成"
}
... ...
... ... @@ -245,6 +245,7 @@ func (c *TaskController) CancelIgnore() {
}
userReq := middlewares.GetUser(c.Ctx)
paramReq.CompanyId = int(userReq.CompanyId)
paramReq.UserId = int(userReq.UserId)
_, err = srv.CancleTaskIgnore(paramReq)
c.Response(nil, err)
... ...