|
|
@@ -5,6 +5,7 @@ import com.sckw.core.utils.BeanUtils;
|
|
|
import com.sckw.core.utils.CollectionUtils;
|
|
|
import com.sckw.system.api.model.dto.res.*;
|
|
|
import com.sckw.system.api.model.pojo.DeptInfoPojo;
|
|
|
+import com.sckw.system.dao.KwsEntDeptDao;
|
|
|
import com.sckw.system.model.*;
|
|
|
import com.sckw.system.model.vo.res.CertificateResVo;
|
|
|
import com.sckw.system.model.vo.res.KwsDeptResVo;
|
|
|
@@ -39,6 +40,9 @@ public class RemoteBaseService {
|
|
|
@Resource
|
|
|
private KwsRoleService kwsRoleService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private KwsEntDeptDao kwsEntDeptDao;
|
|
|
+
|
|
|
|
|
|
public KwsEnterpriseResDto queryEnterpriseById(Long id) {
|
|
|
KwsEnterprise kwsEnterprise = kwsEnterpriseService.queryKwsEnterpriseById(id);
|
|
|
@@ -110,4 +114,24 @@ public class RemoteBaseService {
|
|
|
public List<KwsEnterprise> queryEntByName(String entName) {
|
|
|
return kwsEnterpriseService.queryEntByName(entName);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param entCacheResDto 返参
|
|
|
+ * @desc: 填充父子属id
|
|
|
+ * @author: czh
|
|
|
+ * @date: 2023/7/17
|
|
|
+ */
|
|
|
+ public void fillRelate(EntCacheResDto entCacheResDto) {
|
|
|
+ Long id = entCacheResDto.getId();
|
|
|
+// List<KwsEntDept> kwsEntDepts = kwsEntDeptDao.selectByEntID(id);
|
|
|
+// if (CollectionUtils.isNotEmpty(kwsEntDepts)) {
|
|
|
+// entCacheResDto.setEntDeptIds(String.join(Global.COMMA, kwsEntDepts.stream().map(KwsEntDept::getEntPid).map(String::valueOf).toList()));
|
|
|
+// return;
|
|
|
+// }
|
|
|
+//
|
|
|
+// kwsEntDepts = kwsEntDeptDao.selectByEntPid(id);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
}
|