标准法规清单-国家/地区清单修改提示信息
This commit is contained in:
+9
-2
@@ -26,6 +26,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -152,8 +153,14 @@ public class SarLawsDetailedListController extends BaseController<SarLawsDetaile
|
||||
@PutMapping("/updateList")
|
||||
public ResponseMessage updateList(@RequestBody DetailedUpDto detailedUpDto) {
|
||||
String src = sarLawsDetailedListService.updateList(detailedUpDto);
|
||||
return Result.success("200",src,true);
|
||||
if (Objects.equals(src, "国家/地区清单修改失败") || Objects.equals(src, "车型类别清单修改失败")){
|
||||
return Result.error("200","",false);
|
||||
}else if (Objects.equals(src, "国家/地区清单修改成功") || Objects.equals(src, "车型类别清单修改成功")){
|
||||
return Result.success("200","",true);
|
||||
}else {
|
||||
return Result.success("200","",true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user