|
|
@ -6,11 +6,14 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.kms.yg.znjg.domain.SyDir; |
|
|
|
import com.kms.yg.znjg.domain.SyDirLayer; |
|
|
|
import com.kms.yg.znjg.domain.SyLayer; |
|
|
|
import com.kms.yg.znjg.domain.SySceneDirRelation; |
|
|
|
import com.kms.yg.znjg.mapper.SyDirLayerMapper; |
|
|
|
import com.kms.yg.znjg.mapper.SyLayerMapper; |
|
|
|
import com.kms.yg.znjg.mapper.SySceneDirRelationMapper; |
|
|
|
import com.kms.yg.znjg.service.SyDirLayerService; |
|
|
|
import com.kms.yg.znjg.service.SyDirService; |
|
|
|
import com.kms.yg.znjg.service.SyLayerService; |
|
|
|
import com.kms.yg.znjg.service.SySceneDirRelationService; |
|
|
|
import com.kms.yg.znjg.vo.SyDirVo; |
|
|
|
import com.kms.yxgh.base.Response; |
|
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
@ -21,6 +24,9 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* 图层目录管理 |
|
|
|
*/ |
|
|
@ -38,7 +44,7 @@ public class SyDirController { |
|
|
|
private SyDirService syDirService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SyDirLayerService syDirLayerService; |
|
|
|
private SySceneDirRelationMapper sySceneDirRelationMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SyDirLayerMapper syDirLayerMapper; |
|
|
@ -49,7 +55,7 @@ public class SyDirController { |
|
|
|
* @param spDir 查询参数 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping(value = "/getAllTreeDir") |
|
|
|
@PostMapping(value = "/getAllTreeDir") |
|
|
|
@ApiOperation("分页查询图层目录树信息") |
|
|
|
public Response getAllTreeDir(@RequestBody SearchParam<SyDir> spDir) { |
|
|
|
Response response = new Response(); |
|
|
@ -99,6 +105,28 @@ public class SyDirController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// @GetMapping(value = "/getRelationSceneInfo")
|
|
|
|
// @ApiOperation("根据目录id获取关联的场景信息")
|
|
|
|
// public Response saveDir(String dirId) throws Exception {
|
|
|
|
// try {
|
|
|
|
// List<SySceneDirRelation> dirRelations = sySceneDirRelationMapper.selectByMap(new HashMap<String, Object>() {{
|
|
|
|
// put("dir_id", dirId);
|
|
|
|
// }});
|
|
|
|
// if (dirRelations!=null && dirRelations.size()>0){
|
|
|
|
// return new Response() {{
|
|
|
|
// setCode("200");
|
|
|
|
// setData(dirRelations);
|
|
|
|
// }};
|
|
|
|
//
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// e.printStackTrace();
|
|
|
|
// return new Response() {{
|
|
|
|
// setCode("500");
|
|
|
|
// setMsg(e.getMessage());
|
|
|
|
// }};
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
/** |
|
|
|
* 根据目录id删除图层目录 |
|
|
|
* |
|
|
@ -141,4 +169,6 @@ public class SyDirController { |
|
|
|
} |
|
|
|
return response; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|