修复了海外标准法规,配置标准后,在此节点没有显示此标准的问题
This commit is contained in:
@@ -3,6 +3,7 @@ package com.adc.da.slrs.sarResource.dao;
|
||||
import com.adc.da.slrs.sarResource.entity.TsResource;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -19,4 +20,6 @@ public interface TsResourceDao extends BaseMapper<TsResource> {
|
||||
|
||||
List<TsResource> selectMenuByRole(TsResource sarMenuEO);
|
||||
|
||||
int insertTsRoleResource(HashMap<String,Object> map);
|
||||
|
||||
}
|
||||
|
||||
+8
@@ -7,6 +7,7 @@ import com.adc.da.login.util.UserUtils;
|
||||
import com.adc.da.slrs.sarResource.dao.TsResourceDao;
|
||||
import com.adc.da.slrs.sarResource.entity.TsResource;
|
||||
import com.adc.da.slrs.sarResource.service.ITsResourceService;
|
||||
import com.adc.da.util.UUIDUtils;
|
||||
import com.adc.da.utils.treetool.Tree;
|
||||
import com.adc.da.utils.treetool.TreeNode;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
@@ -17,6 +18,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -166,6 +168,12 @@ public class TsResourceServiceImpl extends ServiceImpl<TsResourceDao, TsResource
|
||||
}
|
||||
}
|
||||
dao.insert(TsResource);
|
||||
// 把新生成的子目录加入用户的权限的下----插入ts_role_resource表
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("resourceId",TsResource.getId());
|
||||
map.put("roleId",1);
|
||||
dao.insertTsRoleResource(map);
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
+9
-9
@@ -64,15 +64,15 @@ public class SarStandAttrDetailsController extends BaseController<SarStandAttrDe
|
||||
|
||||
List<SarStandAttrDetails> getForeignStandList = InitStandAttrUtil.standForeignAttrFieldList;
|
||||
//新增字段
|
||||
Iterator<SarStandAttrDetails> iterator = getInlandStandList.iterator();
|
||||
while (iterator.hasNext()){
|
||||
SarStandAttrDetails next = iterator.next();
|
||||
|
||||
if (next.getAttrName().matches("能源类型|适用产品线|适用认证|责任工程师|关联文件")){
|
||||
getForeignStandList.add(next);
|
||||
}
|
||||
|
||||
}
|
||||
// Iterator<SarStandAttrDetails> iterator = getInlandStandList.iterator();
|
||||
// while (iterator.hasNext()){
|
||||
// SarStandAttrDetails next = iterator.next();
|
||||
//
|
||||
// if (next.getAttrName().matches("能源类型|适用产品线|适用认证|责任工程师|关联文件")){
|
||||
// getForeignStandList.add(next);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
resultMap.put(SarTypeEnum.FOREIGN_STAND.getValue(),getForeignStandList);
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
<result column="remarks" property="remarks" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<!-- SAR_MENU table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
parent_id, menu_name, sor_divide, id, modify_time, creation_time, valid_flag, display_seq, parent_ids, remarks
|
||||
@@ -69,6 +71,12 @@
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
|
||||
<insert id="insertTsRoleResource" parameterType="java.util.Map">
|
||||
INSERT INTO ts_role_resource
|
||||
VALUES(#{roleId},#{resourceId} )
|
||||
</insert>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.slrs.sarResource.entity.TsResource" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
|
||||
@@ -273,15 +273,19 @@ public class AttFileEOController {
|
||||
String waterFilePath = newFilePath + attFileEO.getOldFileName();
|
||||
// 添加水印
|
||||
String userMsg = "";
|
||||
String date="";
|
||||
TsUser tsUser = userDao.selectById(userId);
|
||||
if (tsUser != null) {
|
||||
userMsg = tsUser.getUname() + ",";
|
||||
if (StringUtils.isNotEmpty(tsUser.getWorkNum())) {
|
||||
userMsg += tsUser.getWorkNum() + ",";
|
||||
}
|
||||
}else {
|
||||
//没有用户信息时
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
|
||||
date = df.format(new Date());
|
||||
}
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");//设置日期格式
|
||||
String date = df.format(new Date());
|
||||
|
||||
String waterContent = userMsg + date;
|
||||
//2020年9月5日 去掉水印处理
|
||||
//2021年7月25日要求下载生成水印
|
||||
|
||||
Reference in New Issue
Block a user