|
@@ -16,7 +16,7 @@ import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.secure.BladeUser;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.support.Kv;
|
|
|
-import org.springblade.core.tool.utils.Func;
|
|
|
+import org.springblade.core.tool.utils.StringUtil;
|
|
|
import org.springblade.manager.dto.WbsTreePrivateDTO2;
|
|
|
import org.springblade.manager.dto.WbsTreePrivateDTO3;
|
|
|
import org.springblade.manager.entity.ProjectInfo;
|
|
@@ -316,6 +316,14 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
@RequestParam("projectId") String projectId) {
|
|
|
List<WbsNodeTableVO> rs = wbsTreePrivateService.selectByNodeTable(parentId, wbsId, projectId);
|
|
|
if (rs.size() > 0) {
|
|
|
+ for (WbsNodeTableVO r : rs) {
|
|
|
+ if (StringUtil.isBlank(r.getInitTableId())){
|
|
|
+ WbsTree wbsTree = wbsTreeService.getById(r.getId());
|
|
|
+ if (wbsTree != null){
|
|
|
+ r.setInitTableId(wbsTree.getInitTableId().toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return R.data(rs);
|
|
|
}
|
|
|
return R.fail(200, "未查询到数据");
|