feat: 迁移国内标准法规部分1

This commit is contained in:
super_liu
2021-06-02 21:39:20 +08:00
parent ac33a531ec
commit 4cc558befc
140 changed files with 12514 additions and 58 deletions
@@ -0,0 +1,37 @@
package com.adc.da.sys.common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
public class ReadExcelName {
private static final Logger logger = LoggerFactory.getLogger(ReadExcelName.class);
/**
*
* @Title: encodeFileName
* @Description: 导出文件转换文件名称编码
* @param @param fileNames
* @param @param request
* @param @return 设定文件
* @return String 返回类型
* @throws
*/
public static String encodeFileName(String fileNames , HttpServletRequest request) {
String codedFilename = null;
try {
String agent = request.getHeader("USER-AGENT");
if (null != agent && -1 != agent.indexOf("MSIE") || null != agent
&& -1 != agent.indexOf("Trident") || null != agent && -1 != agent.indexOf("Edge")) {// ie浏览器及Edge浏览器
String name = java.net.URLEncoder.encode(fileNames, "UTF-8");
codedFilename = name;
} else if (null != agent && -1 != agent.indexOf("Mozilla")) {// 火狐,Chrome等浏览器
codedFilename = new String(fileNames.getBytes("UTF-8"), "iso-8859-1");
}
} catch (Exception e) {
logger.error(e.getMessage(),e);
}
return codedFilename ;
}
}
@@ -2,7 +2,7 @@ package com.adc.da.sys.common;
/**
* @Description: 用于返回下拉框格式数据
* @Author: yangxuenan
* @Author: super_liu
* date: 2020/9/3 10:05
*/
public class SelectionResult {
@@ -316,7 +316,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
/**
* @return com.adc.da.util.http.ResponseMessage<java.util.Map < java.lang.String , java.lang.String>>
* @Author yangxuenan
* @Author super_liu
* @Description 根据数据字典编码查询字典类型
* Date 2018/9/12 10:12
* @Param [dicCode]
@@ -346,7 +346,7 @@ public class DicTypeEORestController extends BaseController<DicTypeEO> {
/**
* @return com.adc.da.util.http.ResponseMessage<java.util.List < java.util.Map < java.lang.String , java.lang.String>>>
* @Author yangxuenan
* @Author super_liu
* @Description 根据父级code查询
* Date 2018/10/9 14:11
* @Param [dicTypeCode]
@@ -24,7 +24,7 @@ public interface DicTypeEODao extends BaseMapper<DicTypeEO> {
public void deleteDicTypeByDicId(String id);
/**
* @Author yangxuenan
* @Author super_liu
* @Description 根据数据字典编码查询字典类型
* Date 2018/9/11 15:09
* @Param [dictionaryCode]
@@ -21,6 +21,9 @@ public interface OrgEODao extends BaseMapper<OrgEO> {
//liwenxuan:判断组织机构简称不重复
public OrgEO getOrgEOByShotNameAndPidAndId(@Param("shotName") String shotName, @Param("pId") String pId, @Param("id") String id);
String getNamesByIds(@Param("list") String[] list);
String getIdsByNames(@Param("list") String[] list, @Param("orgType") String orgType);
public List<OrgEO> getOrgEOByPid(@Param("pId") String pId);
@@ -24,6 +24,9 @@ public interface RoleEODao extends BaseMapper<RoleEO> {
List<RoleEO> queryByPage(BasePage page);
String getNamesByIds(@Param("list") String[] list);
String getIdsByNames(@Param("list") String[] list);
public void save(RoleEO sysRoleEO);
@@ -23,6 +23,10 @@ public interface UserEODao extends BaseMapper<UserEO> {
public void updateUserEO(UserEO userEO);
String getNamesByIds(@Param("list") String[] list);
String getIdsByNames(@Param("list") String[] list,@Param("orgIdList") String[] orgIdList);
public List<Integer> getRoleIdListByUserId(Integer usid);
public void saveUserRole(@Param("usid") String usid, @Param("roleId") String roleId);
@@ -24,7 +24,7 @@ public interface IDicTypeEOService extends IService<DicTypeEO> {
public void deleteDicTypeByDicId(String id);
/**
* @Author yangxuenan
* @Author super_liu
* @Description 根据数据字典编码查询字典类型
* Date 2018/9/11 15:09
* @Param [dictionaryCode]
@@ -136,7 +136,7 @@ public class DicEOServiceImpl extends ServiceImpl<DicEODao,DictionaryEO> impleme
/***
* @Description: 新增数据字典
* @Author: yangxuenan
* @Author: super_liu
* @Date: 2020/8/21 14:34
* @Param: [dictionaryEO]
* @Return: int
@@ -173,7 +173,7 @@ public class DicEOServiceImpl extends ServiceImpl<DicEODao,DictionaryEO> impleme
/***
* @Description: 修改数据字典
* @Author: yangxuenan
* @Author: super_liu
* @Date: 2020/8/21 15:42
* @Param: [dictionaryEO]
* @Return: java.lang.String
@@ -217,7 +217,7 @@ public class DicEOServiceImpl extends ServiceImpl<DicEODao,DictionaryEO> impleme
/***
* @Description: 以下拉框格式查询所有类别
* @Author: yangxuenan
* @Author: super_liu
* @Date: 2020/9/3 10:08
* @Param: [id]
* @Return: java.util.List<com.adc.da.sys.common.SelectionResult>
@@ -122,7 +122,7 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
}
/**
* @Author yangxuenan
* @Author super_liu
* @Description 根据数据字典编码查询字典类型
* Date 2018/9/12 10:18
* @Param [dictionaryCode]
@@ -192,7 +192,7 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
}
/**
* @Author yangxuenan
* @Author super_liu
* @Description 根据父级code查询
* Date 2018/10/9 14:08
* @Param [dicTypeCode]
@@ -212,7 +212,7 @@ public class DicTypeEOServiceImpl extends ServiceImpl<DicTypeEODao,DicTypeEO> im
}
/**
* @Author yangxuenan
* @Author super_liu
* @Description 传递多个code值
* Date 2019/1/2 16:38
* @Param [dicTypeCode]