|
@@ -4,6 +4,7 @@ package com.dragoninfo.dcuc.app.sub.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.dragoninfo.dcuc.app.cons.CommonCons;
|
|
|
+import com.dragoninfo.dcuc.app.enumresources.DataAuthTypeCodeEnum;
|
|
|
import com.dragoninfo.dcuc.app.sub.dto.DataClaAcceptDTO;
|
|
|
import com.dragoninfo.dcuc.app.sub.dto.DataClaDTO;
|
|
|
import com.dragoninfo.dcuc.app.sub.entity.DataCla;
|
|
@@ -11,6 +12,7 @@ import com.dragoninfo.dcuc.app.sub.enumresources.DataClaTypeEnum;
|
|
|
import com.dragoninfo.dcuc.app.sub.mapper.DataClaMapper;
|
|
|
import com.dragoninfo.dcuc.app.sub.service.IDataClaService;
|
|
|
import com.dragoninfo.dcuc.app.vo.DataResourceTreeVo;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.enumresources.AuthDataTypeEnum;
|
|
|
import com.dragonsoft.duceap.base.entity.search.SearchDTO;
|
|
|
import com.dragonsoft.duceap.base.enums.BooleanEnum;
|
|
|
import com.dragonsoft.duceap.commons.util.collections.CollectionUtils;
|
|
@@ -46,6 +48,7 @@ public class DataClaServiceImpl implements IDataClaService {
|
|
|
if(StringUtils.isBlank(firId)) {
|
|
|
DataClaDTO dataClaDTO = new DataClaDTO(dto.getFirCode()
|
|
|
,dto.getFirName(), DataClaTypeEnum.FIR.getLevel(), DataClaTypeEnum.FIR.getCode());
|
|
|
+ dataClaDTO.setDataType(DataAuthTypeCodeEnum.AUTH_DATA_CLA_FIR.value);
|
|
|
DataClaDTO firDTO = save(dataClaDTO);
|
|
|
firId = firDTO.getId();
|
|
|
}
|
|
@@ -55,6 +58,7 @@ public class DataClaServiceImpl implements IDataClaService {
|
|
|
DataClaDTO dataClaDTO = new DataClaDTO(dto.getSecCode()
|
|
|
,dto.getSecName(), DataClaTypeEnum.SEC.getLevel(), DataClaTypeEnum.SEC.getCode());
|
|
|
dataClaDTO.setFirId(firId);
|
|
|
+ dataClaDTO.setDataType(DataAuthTypeCodeEnum.AUTH_DATA_CLA_SEC.value);
|
|
|
DataClaDTO secDTO = save(dataClaDTO);
|
|
|
secId = secDTO.getId();
|
|
|
}
|
|
@@ -65,6 +69,7 @@ public class DataClaServiceImpl implements IDataClaService {
|
|
|
,dto.getLabClaName(), DataClaTypeEnum.LAB_CLA.getLevel(), DataClaTypeEnum.LAB_CLA.getCode());
|
|
|
dataClaDTO.setFirId(firId);
|
|
|
dataClaDTO.setSecId(secId);
|
|
|
+ dataClaDTO.setDataType(dto.getLabClaCode());
|
|
|
DataClaDTO labClaDTO = save(dataClaDTO);
|
|
|
labClaId = labClaDTO.getId();
|
|
|
}
|
|
@@ -76,6 +81,7 @@ public class DataClaServiceImpl implements IDataClaService {
|
|
|
dataClaDTO.setRemark(dto.getRemark());
|
|
|
dataClaDTO.setFirId(firId);
|
|
|
dataClaDTO.setSecId(secId);
|
|
|
+ dataClaDTO.setDataType(dto.getLabClaCode());
|
|
|
dataClaDTO.setLabClaId(labClaId);
|
|
|
save(dataClaDTO);
|
|
|
}
|
|
@@ -343,6 +349,7 @@ public class DataClaServiceImpl implements IDataClaService {
|
|
|
DataCla dataCla = new DataCla();
|
|
|
dataCla.setName(node.getLabel());
|
|
|
dataCla.setCode(node.getCode());
|
|
|
+ dataCla.setDataType(node.getDataType());
|
|
|
dataCla.setDeleted(BooleanEnum.FALSE.value);
|
|
|
dataCla.setCreateTime(date);
|
|
|
int length = 1;
|