|
@@ -4,6 +4,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -44,7 +45,7 @@ public class MusicGroupPlanMakingController extends BaseController {
|
|
|
|
|
|
List<MusicGroupPlanMakingDto> result = new ArrayList<MusicGroupPlanMakingDto>();
|
|
|
|
|
|
- List<MusicGroupPlanMaking> list = musicGroupPlanMakingService.findAll(null);
|
|
|
+ List<MusicGroupPlanMaking> list = musicGroupPlanMakingService.findAll(new HashMap<String, Object>());
|
|
|
|
|
|
for (MusicGroupPlanMaking pm : list) {
|
|
|
MusicGroupPlanMakingDto dto = new MusicGroupPlanMakingDto();
|
|
@@ -82,18 +83,18 @@ public class MusicGroupPlanMakingController extends BaseController {
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "查询所有乐团编制")
|
|
|
+ @ApiOperation(value = "新增乐团编制")
|
|
|
@PostMapping(value = "/add", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
- @AuditLogAnnotation(operateName = "乐团基本信息修改",interfaceURL = "musicGroupPlanMaking/add")
|
|
|
+ @AuditLogAnnotation(operateName = "新增乐团编制",interfaceURL = "musicGroupPlanMaking/add")
|
|
|
@PreAuthorize("@pcs.hasPermissions('musicGroupPlanMaking/add')")
|
|
|
public Object add(@RequestBody MusicGroupPlanMaking musicGroupPlanMaking) throws Exception {
|
|
|
musicGroupPlanMakingService.insert(musicGroupPlanMaking);
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "查询所有乐团编制")
|
|
|
+ @ApiOperation(value = "修改乐团编制")
|
|
|
@PostMapping(value = "/update", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
- @AuditLogAnnotation(operateName = "乐团基本信息修改",interfaceURL = "musicGroupPlanMaking/update")
|
|
|
+ @AuditLogAnnotation(operateName = "修改乐团编制",interfaceURL = "musicGroupPlanMaking/update")
|
|
|
@PreAuthorize("@pcs.hasPermissions('musicGroupPlanMaking/update')")
|
|
|
public Object update(@RequestBody MusicGroupPlanMaking musicGroupPlanMaking) throws Exception {
|
|
|
musicGroupPlanMakingService.update(musicGroupPlanMaking);
|