工作组批量删除
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ public class WorkGroupController extends BaseController<WorkGroup> {
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty("删除工作组")
|
||||
@ApiModelProperty("批量删除工作组")
|
||||
@DeleteMapping
|
||||
public ResponseMessage deleteWorkGroup(String id){
|
||||
boolean delete = iWorkGroupService.delete(id);
|
||||
|
||||
+5
-1
@@ -12,6 +12,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
@@ -36,7 +39,8 @@ public class WorkGroupServiceImpl extends ServiceImpl<WorkGroupDao, WorkGroup> i
|
||||
|
||||
@Override
|
||||
public boolean delete(String workGroupId) {
|
||||
return this.removeById(workGroupId);
|
||||
List<String> idList = Arrays.asList(workGroupId.split(","));
|
||||
return this.removeByIds(idList);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user