Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dt_analysis
Project
Project
Details
Activity
Releases
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
haoyanbin
dt_analysis
Commits
6f8d3115
Commit
6f8d3115
authored
Sep 11, 2023
by
haoyanbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ab6c8451
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
survey.go
api/mobile/survey.go
+1
-1
common.go
utils/common.go
+12
-0
No files found.
api/mobile/survey.go
View file @
6f8d3115
...
...
@@ -187,7 +187,7 @@ func ExportSurveyUserExcel(c *gin.Context) {
f
.
SetCellValue
(
fileName
,
"C"
+
a
,
region
)
f
.
SetCellValue
(
fileName
,
"D"
+
a
,
city
)
f
.
SetCellValue
(
fileName
,
"E"
+
a
,
v
.
CZone
)
f
.
SetCellValue
(
fileName
,
"F"
+
a
,
v
.
CreateTime
)
f
.
SetCellValue
(
fileName
,
"F"
+
a
,
utils
.
StringToTime
(
v
.
CreateTime
)
)
f
.
SetCellValue
(
fileName
,
"G"
+
a
,
optionData
)
f
.
SetCellValue
(
fileName
,
"H"
+
a
,
""
)
f
.
SetCellValue
(
fileName
,
"I"
+
a
,
""
)
...
...
utils/common.go
View file @
6f8d3115
...
...
@@ -92,6 +92,18 @@ func Time2Str(timeVal time.Time) string {
return
strTime
}
func
StringToTime
(
data
string
)
string
{
to
,
_
:=
time
.
Parse
(
"2006-01-02T15:04:05+08:00"
,
data
)
strTime
:=
to
.
Format
(
"2006-01-02 15:04:05"
)
if
strTime
==
"0001-01-01 00:00:00"
{
strTime
=
""
}
return
strTime
}
func
Time2StrHMS
(
timeVal
int
)
string
{
s
:=
timeVal
%
60
if
timeVal
/
60
==
0
{
...
...
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