diff --git a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandProjectLibrary/service/impl/SarStandProjectLibraryServiceImpl.java b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandProjectLibrary/service/impl/SarStandProjectLibraryServiceImpl.java
index 642e3830..7816f1f8 100644
--- a/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandProjectLibrary/service/impl/SarStandProjectLibraryServiceImpl.java
+++ b/adc-da-slrs/src/main/java/com/adc/da/slrs/sarStandProjectLibrary/service/impl/SarStandProjectLibraryServiceImpl.java
@@ -242,6 +242,9 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl
+ * 标准委员会 前端控制器
+ *
+*
+* @author yzh
+* @since 2022-03-10
+*/
+@RestController
+@Api(description = "|WgCommittee|")
+@RequestMapping("/${restPath}/wgCommittee/wg-committee")
+public class WgCommitteeController extends BaseController {
+
+ @Autowired
+ IWgCommitteeService iWgCommitteeService;
+
+ @Autowired
+ IWgCommitteeUserService iWgCommitteeUserService;
+
+ @ApiModelProperty("新增工作组")
+ @PostMapping("/insert")
+ public ResponseMessage addWorkCommitter(WgCommittee wgCommittee) {
+
+ if (isDistinct(wgCommittee.getCommitteeName(),null)){
+ if (iWgCommitteeService.add(wgCommittee)){
+ return Result.success("200","新增成功");
+ }else {
+ return Result.error("201","新增失败");
+ }
+ }else {
+ return Result.error("202","组名已存在");
+ }
+ }
+
+
+
+ @ApiModelProperty("批量删除工作组")
+ @DeleteMapping("/deleteBatch")
+ public ResponseMessage deleteWorkGroup(String id){
+ List ids=new ArrayList<>();
+ if (id.contains(",")){
+ ids.addAll(new ArrayList<>(Arrays.asList(id.split(","))));
+ }else {
+ ids.add(id);
+ }
+ QueryWrapper wrapper=new QueryWrapper<>();
+ wrapper.select("committeer");
+ wrapper.in("id",ids);
+ wrapper.isNotNull("committeer");
+ List removes = iWgCommitteeService.list(wrapper);
+ if (!removes.isEmpty()) {
+ List reids = removes.stream().distinct().map(WgCommittee::getCommitteer).collect(Collectors.toList());
+ iWgCommitteeUserService.removeByIds(reids);
+ }
+ if (iWgCommitteeService.removeByIds(ids)) {
+ return Result.success();
+ }else {
+ return Result.error("");
+ }
+ }
+
+ @ApiModelProperty("根据组长民或者组名查询工作组,参数为空时查询全部")
+ @GetMapping("/page")
+ public ResponseMessage> getWgCommitteeLists(WgCommittee wgCommittee){
+ IPage workGroup = iWgCommitteeService.getWgCommittee(wgCommittee);
+ return Result.success(workGroup);
+ }
+
+ @ApiModelProperty("根据组长民或者组名查询工作组,参数为空时查询全部")
+ @GetMapping("/pageWk")
+ public ResponseMessage> getWgCommitteeList(WgCommittee wgCommittee){
+ IPage workGroup = iWgCommitteeService.getWgCommittee(wgCommittee);
+ return Result.success(workGroup);
+ }
+
+
+ @ApiModelProperty("修改标准委员会")
+ @PutMapping("/update")
+ public ResponseMessage updateWgCommittee(WgCommittee wgCommittee){
+
+ ResponseMessage