|
|
|
@ -16,10 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
@ -44,7 +41,7 @@ public class AdminCaseController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("新增")
|
|
|
|
|
@Transactional
|
|
|
|
|
ResultEntity<String> add(@RequestBody AdminCaseDto adminCaseDto) {
|
|
|
|
|
ResultEntity<String> add(@ModelAttribute AdminCaseDto adminCaseDto) {
|
|
|
|
|
if (StringUtils.isBlank(adminCaseDto.getName())) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "请输入名称!");
|
|
|
|
|
}
|
|
|
|
|