|
@@ -14,10 +14,7 @@ import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
|
|
|
-import java.util.Comparator;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Objects;
|
|
|
|
-import java.util.Optional;
|
|
|
|
|
|
+import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -113,6 +110,20 @@ public class ProjectUserService extends ServiceImpl<ProjectUserMapper, ProjectUs
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @param id 项目id
|
|
|
|
+ * @param mtCompanyId 公司id
|
|
|
|
+ * @return 是否成功
|
|
|
|
+ * @description 批量删除项目组成员
|
|
|
|
+ * @date 2020/5/26 5:33 下午
|
|
|
|
+ */
|
|
|
|
+ public boolean removeByMap(Long id, Long mtCompanyId) {
|
|
|
|
+ Map<String, Object> columnMap = new HashMap<>(2);
|
|
|
|
+ columnMap.put("mt_company_id", mtCompanyId);
|
|
|
|
+ columnMap.put("project_id", id);
|
|
|
|
+ return removeByMap(columnMap);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @param request 批量删除项目组成员
|
|
* @param request 批量删除项目组成员
|
|
* @return Integer 成功1或失败0
|
|
* @return Integer 成功1或失败0
|