工作组批量删除

This commit is contained in:
zhaokaiyao@91isoft.com
2022-01-20 17:19:52 +08:00
parent f3101d6e74
commit eb15c06699
2 changed files with 6 additions and 2 deletions
@@ -57,7 +57,7 @@ public class WorkGroupController extends BaseController<WorkGroup> {
@ApiModelProperty("删除工作组")
@ApiModelProperty("批量删除工作组")
@DeleteMapping
public ResponseMessage deleteWorkGroup(String id){
boolean delete = iWorkGroupService.delete(id);
@@ -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