feat: 迁移国内标准法规部分1
This commit is contained in:
@@ -118,7 +118,7 @@ public class AttFileEOController {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 下载文件
|
||||
* Date 2018/10/10 18:36
|
||||
* @Param [response, fileId]
|
||||
@@ -293,7 +293,7 @@ public class AttFileEOController {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 根据不同浏览器定义下载文件编码
|
||||
* Date 2018/10/11 10:40
|
||||
* @Param [fileName, request]
|
||||
@@ -316,7 +316,7 @@ public class AttFileEOController {
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 查询文件信息
|
||||
* Date 2018/10/10 18:41
|
||||
* @Param [fileId]
|
||||
@@ -330,7 +330,7 @@ public class AttFileEOController {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 查询多个文件信息
|
||||
* Date 2018/10/24 9:47
|
||||
* @Param [fileIds]
|
||||
|
||||
@@ -29,12 +29,17 @@ public class AttFileEO extends BaseEntity implements Serializable{
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String resId;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 文件下载地址
|
||||
*/
|
||||
private String downLoadUrl;
|
||||
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
@@ -92,26 +97,26 @@ public class AttFileEO extends BaseEntity implements Serializable{
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex!= -1){
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex!= -1){
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}else{
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
if(tableName!=null && !tableName.isEmpty()){
|
||||
this.id = tableName+"_"+id;
|
||||
}
|
||||
//此处注意保存时表结构是否存在
|
||||
this.id=id;
|
||||
if(tableName!=null && !tableName.isEmpty()){
|
||||
this.id = tableName+"_"+id;
|
||||
}
|
||||
//此处注意保存时表结构是否存在
|
||||
this.id=id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
@@ -184,7 +189,7 @@ public class AttFileEO extends BaseEntity implements Serializable{
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
public String getTableName() {
|
||||
if(this.tableName !=null && !this.tableName.isEmpty()){
|
||||
return this.tableName;
|
||||
}else{
|
||||
@@ -197,11 +202,11 @@ public class AttFileEO extends BaseEntity implements Serializable{
|
||||
}
|
||||
return this.tableName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
@@ -214,4 +219,12 @@ public class AttFileEO extends BaseEntity implements Serializable{
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getDownLoadUrl() {
|
||||
return downLoadUrl;
|
||||
}
|
||||
|
||||
public void setDownLoadUrl(String downLoadUrl) {
|
||||
this.downLoadUrl = downLoadUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ public class AttFileEOServiceImpl extends ServiceImpl<AttFileEODao, AttFileEO> i
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 多文件查询
|
||||
* Date 2018/10/24 11:08
|
||||
* @Param [fileIds]
|
||||
@@ -296,7 +296,7 @@ public class AttFileEOServiceImpl extends ServiceImpl<AttFileEODao, AttFileEO> i
|
||||
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Author super_liu
|
||||
* @Description 获取attId
|
||||
* Date 2018/10/30 21:05
|
||||
* @Param [file]
|
||||
|
||||
Reference in New Issue
Block a user