|
@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -77,6 +78,7 @@ public class BaseStudentDevelopmentController {
|
|
|
@SaCheckPermission("basestudentdevelopment:add")
|
|
|
public RT<Boolean> add(@Valid @RequestBody AddBaseStudentDevelopmentDto dto){
|
|
|
BaseStudentDevelopment baseStudentDevelopment = BeanUtil.toBean(dto, BaseStudentDevelopment.class);
|
|
|
+ baseStudentDevelopment.setCreateDate(new Date());
|
|
|
boolean isSuccess = developmentService.save(baseStudentDevelopment);
|
|
|
return RT.ok(isSuccess);
|
|
|
}
|
|
@@ -87,6 +89,7 @@ public class BaseStudentDevelopmentController {
|
|
|
public RT<Boolean> update(@Valid @RequestBody UpdateBaseStudentDevelopmentDto dto){
|
|
|
|
|
|
BaseStudentDevelopment baseStudentDevelopment = BeanUtil.toBean(dto, BaseStudentDevelopment.class);
|
|
|
+ baseStudentDevelopment.setModifyDate(new Date());
|
|
|
return RT.ok(developmentService.updateById(baseStudentDevelopment));
|
|
|
|
|
|
}
|