|
@@ -45,9 +45,9 @@ public class PatentFiledController {
|
|
|
@GetMapping("delete")
|
|
|
@Operation(summary = "删除自定义字段")
|
|
|
public String delete(Integer id,Integer reportId) {
|
|
|
- if(reportId!=null){
|
|
|
- return reportFieldService.deleteReportId(reportId,id);
|
|
|
- }
|
|
|
+// if(reportId!=null){
|
|
|
+// return reportFieldService.deleteReportId(reportId,id);
|
|
|
+// }
|
|
|
return reportFieldService.delete(id);
|
|
|
}
|
|
|
|
|
@@ -60,20 +60,12 @@ public class PatentFiledController {
|
|
|
@GetMapping("option/list")
|
|
|
@Operation(summary = "选项列表")
|
|
|
public String getList(Integer fieldId,Integer type ,Integer reportId)throws IOException {
|
|
|
- if(reportId!=null){
|
|
|
- if(type == 6){
|
|
|
- return Response.success(reportFieldTreeService.get(fieldId,reportId));
|
|
|
- }else {
|
|
|
- return Response.success(reportFieldService.getReportField(reportId, fieldId));
|
|
|
- }
|
|
|
-
|
|
|
- }else {
|
|
|
if (type == 6) {
|
|
|
return Response.success(reportFieldTreeService.getReportFieldTreeNodeByFieldId(fieldId));
|
|
|
} else {
|
|
|
return Response.success(reportFieldOptionService.getListByFieldId(fieldId));
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
@PostMapping("update")
|
|
|
@Operation(summary = "更新选项")
|
|
@@ -84,11 +76,11 @@ public class PatentFiledController {
|
|
|
@GetMapping("option/delete")
|
|
|
@Operation(summary = "删除选项")
|
|
|
public String delete(Integer type, Integer id,Integer reportId) {
|
|
|
- if(reportId!=null){
|
|
|
- return reportFieldService.deleteReportId(reportId,id);
|
|
|
- }
|
|
|
+// if(reportId!=null){
|
|
|
+// return reportFieldService.deleteReportId(reportId,id);
|
|
|
+// }
|
|
|
if (type == 6) {
|
|
|
- reportFieldService.delete(id);
|
|
|
+ reportFieldTreeService.delete(id);
|
|
|
} else {
|
|
|
reportFieldOptionService.delete(id);
|
|
|
}
|