Commit 849c1b01 authored by 廖旭伟's avatar 廖旭伟

修改禅道bug,绩效反馈列表状态与详情状态不一致的bug

parent fff9fdfb
package com.mortals.xhx.module.feedback.web;
import cn.hutool.core.date.DateUtil;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException;
......@@ -88,6 +89,24 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
}
}
if(entity!=null) {
Date feedbackTimeStart = entity.getFeedbackTimeStart();
Date feedbackTimeEnd = entity.getFeedbackTimeEnd();
if (DateUtil.compare(new Date(), feedbackTimeStart) < 0) {
entity.setProcessStatus(0);
}
boolean in = DateUtil.isIn(new Date(), entity.getFeedbackTimeStart(), entity.getFeedbackTimeEnd());
if (in) {
entity.setProcessStatus(1);
}
if (DateUtil.compare(new Date(), feedbackTimeEnd) > 0) {
entity.setProcessStatus(2);
}
}
return super.infoAfter(id, model, entity, context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment