package com.tofly.watermeter.custom.service.impl;//package com.tofly.watermeter.custom.service.impl;
//
//import com.tofly.watermeter.custom.service.SysCodeService;
//import lombok.AllArgsConstructor;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * @author by Wangjieliu
// * @date 2021/3/18.
// */
//@Service
//@AllArgsConstructor
//public class SysCodeServiceImpl implements SysCodeService {
//
//    private final SyschildcodeService codeService;
//    private final SysparentcodeService parentService;
//
//    @Override
//    public List<Syschildcode> getbyPcid(Long pCid) {
//        return codeService.getByPcid(pCid);
//    }
//
//    @Override
//    public List<CustomCode> getAll() {
//        //获取所有父级以及父级下的子级
//        List<CustomCode> code=parentService.getList();
////        List<CustomCode> jsonList = JSONObject.parseArray(JSON.toJSONString(sysList), CustomCode.class);
////        List<CustomCode> json=JSONUtil.parTree(jsonList,CustomCode::getId,CustomCode::getPcid,CustomCode::getCodeList);
//        return code;
//    }
//
//    @Override
//    public List<Syschildcode> getBylistPcid(List<String> list) {
//        return parentService.getBylistPcid(list);
//    }
//}
