|
|
@@ -19,6 +19,7 @@ import cn.com.yusys.yusp.domain.entity.AitagTagInfoEntity;
|
|
|
import cn.com.yusys.yusp.domain.vo.AitagTagInfoQueryVo;
|
|
|
import cn.com.yusys.yusp.service.AitagTagInfoService;
|
|
|
import cn.com.yusys.yusp.service.TagImportListener;
|
|
|
+import cn.com.yusys.yusp.util.SessionCommonUtil;
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
@@ -143,6 +144,7 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
aitagTagInfo.setTagVersion("1");
|
|
|
aitagTagInfo.setIsDelete(TAG_UNDELETED);
|
|
|
aitagTagInfo.setState(TAG_ENABLED);
|
|
|
+ aitagTagInfo.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
this.save(aitagTagInfo);
|
|
|
return aitagTagInfo.getId();
|
|
|
}
|
|
|
@@ -185,6 +187,7 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
AitagTagInfoEntity parentTagInfo = this.baseMapper.selectById(aitagTagInfoEntity.getParentId());
|
|
|
aitagTagInfoEntity.setTagPath(parentTagInfo.getTagPath()+"/"+aitagTagInfoEntity.getTagNm());
|
|
|
aitagTagInfoEntity.setTagLevel(parentTagInfo.getTagLevel()+1);
|
|
|
+ aitagTagInfoEntity.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
this.baseMapper.updateById(aitagTagInfoEntity);
|
|
|
}
|
|
|
|
|
|
@@ -195,6 +198,7 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
for (String id:list){
|
|
|
aitagTagInfoEntity.setId(id);
|
|
|
aitagTagInfoEntity.setIsDelete(TAG_DELETED);
|
|
|
+ aitagTagInfoEntity.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
this.baseMapper.updateById(aitagTagInfoEntity);
|
|
|
}
|
|
|
}
|
|
|
@@ -212,11 +216,13 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
aitagTagInfoEntity.setId(versionRollback.getId());
|
|
|
aitagTagInfoEntity.setRevisionTime(DateUtils.getCurrDateTimeStr());
|
|
|
aitagTagInfoEntity.setReviser(versionRollback.getReviser());
|
|
|
+ aitagTagInfoEntity.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
this.baseMapper.updateById(aitagTagInfoEntity);
|
|
|
LambdaUpdateWrapper<AitagTagInfoVersionEntity> updateTagVersion = new LambdaUpdateWrapper<>();
|
|
|
updateTagVersion.eq(AitagTagInfoVersionEntity::getTagCode,versionRollback.getTagCode());
|
|
|
updateTagVersion.ge(AitagTagInfoVersionEntity::getTagVersion,versionRollback.getVersion());
|
|
|
AitagTagInfoVersionEntity aitagTagInfoVersionEntity = new AitagTagInfoVersionEntity();
|
|
|
+ aitagTagInfoVersionEntity.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
aitagTagInfoVersionEntity.setIsDelete(TAG_DELETED);
|
|
|
this.aitagTagInfoVersionDao.update(aitagTagInfoVersionEntity,updateTagVersion);
|
|
|
return aitagTagInfoEntity.getId();
|
|
|
@@ -312,6 +318,7 @@ public class AitagTagInfoServiceImpl extends ServiceImpl<AitagTagInfoDao, AitagT
|
|
|
aitagTagInfo.setIsDelete(TAG_UNDELETED);
|
|
|
aitagTagInfo.setCategoryId(categoryId);
|
|
|
aitagTagInfo.setState(TAG_ENABLED);
|
|
|
+ aitagTagInfo.setReviser(SessionCommonUtil.getUserInfo());
|
|
|
this.save(aitagTagInfo);
|
|
|
}
|
|
|
|