fix: 修复查询模块单元数据时数据接口查询报错的BUG
This commit is contained in:
+4
-1
@@ -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.sarModelTree.service.ISarModuleTreeService;
|
||||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.Head;
|
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.Head;
|
||||||
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.ResponseDto;
|
import com.adc.da.slrs.sarStandProjectLibrary.entity.myResponse.ResponseDto;
|
||||||
|
import com.adc.da.util.utils.StringUtils;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@@ -64,7 +65,9 @@ public class SarModelTreeController extends BaseController<SarModelTree> {
|
|||||||
@GetMapping("/childByList")
|
@GetMapping("/childByList")
|
||||||
public ResponseMessage<List<SarModelTree>> childByList(SarModelTree parentTree){
|
public ResponseMessage<List<SarModelTree>> childByList(SarModelTree parentTree){
|
||||||
// List<SarModuleTree> tsResources = iSarModuleTreeService.recursionGetChildren(parentTree);
|
// List<SarModuleTree> tsResources = iSarModuleTreeService.recursionGetChildren(parentTree);
|
||||||
|
if(StringUtils.isNotBlank(parentTree.getType())){
|
||||||
|
parentTree.setModelType(parentTree.getType());
|
||||||
|
}
|
||||||
List<SarModelTree> tsResources = iSarModelTreeService.recursionGetChildren(parentTree);
|
List<SarModelTree> tsResources = iSarModelTreeService.recursionGetChildren(parentTree);
|
||||||
|
|
||||||
return Result.success(tsResources);
|
return Result.success(tsResources);
|
||||||
|
|||||||
@@ -94,4 +94,11 @@ public class SarModelTree extends BaseEntity {
|
|||||||
@TableField("MODEL_LEVEL")
|
@TableField("MODEL_LEVEL")
|
||||||
private int modelLevel;
|
private int modelLevel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 前端数据查询字段
|
||||||
|
*/
|
||||||
|
@TableField(exist=false)
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user