|
|
@@ -40,6 +40,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
@@ -157,8 +158,11 @@ public class StudentReportPlanController {
|
|
|
if(reportPlan.getStatus() == 1){
|
|
|
return RT.error("已发布,无法再次发布");
|
|
|
}
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ if(now.isAfter(reportPlan.getStartTime())){
|
|
|
+ studentReportPlanService.release(reportPlan);
|
|
|
+ }
|
|
|
|
|
|
-// studentReportPlanService.release(reportPlan);
|
|
|
reportPlan.setStatus(dto.getStatus());
|
|
|
reportPlan.setModifyDate(new Date());
|
|
|
reportPlan.setModifyUserId(StpUtil.getLoginIdAsLong());
|