|
@@ -1,5 +1,6 @@
|
|
|
package org.springblade.manager.service.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -295,6 +296,18 @@ public class WbsTreeServiceImpl extends BaseServiceImpl<WbsTreeMapper, WbsTree>
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean submitFullName(String id, String fullNames) {
|
|
|
+ if (StringUtils.isNotEmpty(id)) {
|
|
|
+ LambdaUpdateWrapper<WbsTree> updateWrapper = new LambdaUpdateWrapper<WbsTree>();
|
|
|
+ updateWrapper.set(WbsTree::getFullName, fullNames);
|
|
|
+ updateWrapper.eq(WbsTree::getId, id);
|
|
|
+ baseMapper.update(null, updateWrapper);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
private Boolean initTable(String tableName) {
|
|
|
Integer row = baseMapper.createTable(tableName);
|
|
|
if (row >= 0) {
|