Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
62e6aa3e
Commit
62e6aa3e
authored
Oct 18, 2019
by
高鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixbug-1015367' into 'master'
'导出授权码去掉授权码字段' See merge request rays/pcloud-book!202
parents
4c915644
a2a126b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
BookAuthCodeBizImpl.java
...m/pcloud/book/copyright/biz/impl/BookAuthCodeBizImpl.java
+12
-12
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/copyright/biz/impl/BookAuthCodeBizImpl.java
View file @
62e6aa3e
...
...
@@ -371,7 +371,7 @@ public class BookAuthCodeBizImpl implements BookAuthCodeBiz {
}
//表名
String
title
=
"《"
+
bookDto
.
getBookName
()
+
"》"
+
"的授权码"
;
String
[]
rowsName
=
{
"序号"
,
"
授权码"
,
"
完整授权码"
,
"生成方式"
,
"状态"
,
"创建时间"
};
String
[]
rowsName
=
{
"序号"
,
"完整授权码"
,
"生成方式"
,
"状态"
,
"创建时间"
};
String
fileUrl
=
""
;
String
finalTitle
=
title
;
//不管是全部导出还是导出部分,都使用异步处理
...
...
@@ -443,13 +443,13 @@ public class BookAuthCodeBizImpl implements BookAuthCodeBiz {
}
Object
[]
objs
=
new
Object
[
rowsNameList
.
size
()];
objs
[
0
]
=
i
+
1
;
objs
[
1
]
=
bookAuthCode
.
getAuthCode
();
objs
[
2
]
=
bookAuthCode
.
getFullCode
();
//
objs[1] = bookAuthCode.getAuthCode();
objs
[
1
]
=
bookAuthCode
.
getFullCode
();
CopyrightConstants
.
CreateType
createType
=
CopyrightConstants
.
CreateType
.
CRATE_TYPE_MAP
.
get
(
bookAuthCode
.
getCreateType
());
objs
[
3
]
=
null
==
createType
?
"-"
:
createType
.
getName
();
objs
[
4
]
=
bookAuthCode
.
getUseCount
()
>
0
?
"已使用"
:
"未使用"
;
objs
[
2
]
=
null
==
createType
?
"-"
:
createType
.
getName
();
objs
[
3
]
=
bookAuthCode
.
getUseCount
()
>
0
?
"已使用"
:
"未使用"
;
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
objs
[
5
]
=
bookAuthCode
.
getCreatedDate
()
!=
null
?
df
.
format
(
bookAuthCode
.
getCreatedDate
())
:
""
;
objs
[
4
]
=
bookAuthCode
.
getCreatedDate
()
!=
null
?
df
.
format
(
bookAuthCode
.
getCreatedDate
())
:
""
;
dataList
.
add
(
objs
);
fileUrl
=
exportConsr
.
exportExcel
(
title
,
rowsName
,
dataList
);
}
...
...
@@ -516,20 +516,20 @@ public class BookAuthCodeBizImpl implements BookAuthCodeBiz {
SXSSFCell
cell0
=
srow
.
createCell
(
0
);
cell0
.
setCellStyle
(
dataStyle
);
cell0
.
setCellValue
(
k
++);
SXSSFCell
cell1
=
srow
.
createCell
(
1
);
/*
SXSSFCell cell1 = srow.createCell(1);
cell1.setCellStyle(dataStyle);
cell1
.
setCellValue
(
bookAuthCodeDTO
.
getAuthCode
());
SXSSFCell
cell2
=
srow
.
createCell
(
2
);
cell1.setCellValue(bookAuthCodeDTO.getAuthCode());
*/
SXSSFCell
cell2
=
srow
.
createCell
(
1
);
cell2
.
setCellStyle
(
dataStyle
);
cell2
.
setCellValue
(
bookAuthCodeDTO
.
getFullCode
());
SXSSFCell
cell3
=
srow
.
createCell
(
3
);
SXSSFCell
cell3
=
srow
.
createCell
(
2
);
cell3
.
setCellStyle
(
dataStyle
);
CopyrightConstants
.
CreateType
createType
=
CopyrightConstants
.
CreateType
.
CRATE_TYPE_MAP
.
get
(
bookAuthCodeDTO
.
getCreateType
());
cell3
.
setCellValue
(
null
==
createType
?
"-"
:
createType
.
getName
());
SXSSFCell
cell4
=
srow
.
createCell
(
4
);
SXSSFCell
cell4
=
srow
.
createCell
(
3
);
cell4
.
setCellStyle
(
dataStyle
);
cell4
.
setCellValue
(
bookAuthCodeDTO
.
getUseCount
()
>
0
?
"已使用"
:
"未使用"
);
SXSSFCell
cell5
=
srow
.
createCell
(
5
);
SXSSFCell
cell5
=
srow
.
createCell
(
4
);
cell5
.
setCellStyle
(
dataStyle
);
cell5
.
setCellValue
(
bookAuthCodeDTO
.
getCreatedDate
()
!=
null
?
df
.
format
(
bookAuthCodeDTO
.
getCreatedDate
())
:
""
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment