fix: 修复查询模块单元数据时数据接口查询报错的BUG

This commit is contained in:
zyd
2022-01-27 22:58:47 +08:00
parent a8f34b227c
commit 411fe8bba5
2 changed files with 11 additions and 1 deletions
@@ -8,6 +8,7 @@ import com.adc.da.slrs.sarModelTree.service.ISarModelTreeService;
import com.adc.da.slrs.sarModelTree.service.ISarModuleTreeService;
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.Head;
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.ResponseDto;
import com.adc.da.util.utils.StringUtils;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -64,7 +65,9 @@ public class SarModelTreeController extends BaseController<SarModelTree> {
@GetMapping("/childByList")
public ResponseMessage<List<SarModelTree>> childByList(SarModelTree parentTree){
// List<SarModuleTree> tsResources = iSarModuleTreeService.recursionGetChildren(parentTree);
if(StringUtils.isNotBlank(parentTree.getType())){
parentTree.setModelType(parentTree.getType());
}
List<SarModelTree> tsResources = iSarModelTreeService.recursionGetChildren(parentTree);
return Result.success(tsResources);
@@ -94,4 +94,11 @@ public class SarModelTree extends BaseEntity {
@TableField("MODEL_LEVEL")
private int modelLevel;
/**
* 前端数据查询字段
*/
@TableField(exist=false)
private String type;
}