Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
java-sunac-report
sunac_report
Commits
79132ae8
Commit
79132ae8
authored
Nov 10, 2017
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放开root的退出
parent
a9318f93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
FrontReportController.java
src/main/java/com/ejweb/modules/front/report/api/FrontReportController.java
+1
-1
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+13
-13
No files found.
src/main/java/com/ejweb/modules/front/report/api/FrontReportController.java
View file @
79132ae8
...
...
@@ -52,7 +52,7 @@ public class FrontReportController {
responseBean
.
setMessage
(
"captcha is incorrect"
);
return
responseBean
;
}
if
(
StringUtils
.
is
Not
Blank
(
bean
.
getReportSource
())){
if
(
StringUtils
.
isBlank
(
bean
.
getReportSource
())){
responseBean
.
setStatus
(
ErrorCode
.
STATUS_CODE_4002
);
responseBean
.
setMessage
(
"report_source为空"
);
return
responseBean
;
...
...
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
79132ae8
...
...
@@ -166,17 +166,16 @@ public class ReportController extends BaseController {
ReportAttachmentEntity
reportAttachment
=
new
ReportAttachmentEntity
();
reportAttachment
.
setReportId
(
reportEntity
.
getId
());
reportAttachment
.
setAttachmentType
(
"0"
);
if
(
StringUtils
.
isNoneBlank
(
reportEntity
.
getSupplementType
()))
{
String
supplementType
=
""
;
String
[]
supplementTypes
={
"营销"
,
"工程"
,
"成本"
,
"招采"
,
"人力"
,
"物业"
,
"投诉"
,
"行政"
,
"财务"
,
"商业管理"
,
"研发"
,
"投资开发"
};
String
typeNumber
[]=
reportEntity
.
getSupplementType
().
split
(
","
);
for
(
int
i
=
0
;
i
<
typeNumber
.
length
;
i
++)
{
supplementType
+=
supplementTypes
[
Integer
.
valueOf
(
typeNumber
[
i
])-
1
]+
","
;
String
[]
supplementTypes
=
{
"营销"
,
"工程"
,
"成本"
,
"招采"
,
"人力"
,
"物业"
,
"投诉"
,
"行政"
,
"财务"
,
"商业管理"
,
"研发"
,
"投资开发"
};
String
typeNumber
[]
=
reportEntity
.
getSupplementType
().
split
(
","
);
for
(
int
i
=
0
;
i
<
typeNumber
.
length
;
i
++)
{
supplementType
+=
supplementTypes
[
Integer
.
valueOf
(
typeNumber
[
i
])
-
1
]
+
","
;
}
supplementType
=
supplementType
.
substring
(
0
,
supplementType
.
length
()-
1
);
supplementType
=
supplementType
.
substring
(
0
,
supplementType
.
length
()
-
1
);
reportEntity
.
setSupplementType
(
supplementType
);
}
List
<
ReportAttachmentEntity
>
reportAttachmentList
=
reportService
.
getAttachmentInfo
(
reportAttachment
);
//获取补充提交文件列表
ReportAttachmentEntity
supplementAttachment
=
new
ReportAttachmentEntity
();
...
...
@@ -231,13 +230,14 @@ public class ReportController extends BaseController {
List
<
ReportAttachmentEntity
>
dealAttachmentList
=
reportService
.
getAttachmentInfo
(
dealAttachment
);
//业务类型
String
supplementTypeStr
=
""
;
String
[]
supplementTypes
=
{
"营销"
,
"工程"
,
"成本"
,
"招采"
,
"人力"
,
"物业"
,
"投诉"
,
"行政"
,
"财务"
,
"商业管理"
,
"研发"
,
"投资开发"
};
if
(
StringUtils
.
isNoneBlank
(
reportEntity
.
getSupplementType
()))
{
String
[]
supplementTypes
=
{
"营销"
,
"工程"
,
"成本"
,
"招采"
,
"人力"
,
"物业"
,
"投诉"
,
"行政"
,
"财务"
,
"商业管理"
,
"研发"
,
"投资开发"
};
String
typeNumber
[]
=
reportEntity
.
getSupplementType
().
split
(
","
);
for
(
int
i
=
0
;
i
<
typeNumber
.
length
;
i
++)
{
supplementTypeStr
+=
supplementTypes
[
Integer
.
valueOf
(
typeNumber
[
i
])-
1
]+
","
;
for
(
int
i
=
0
;
i
<
typeNumber
.
length
;
i
++)
{
supplementTypeStr
+=
supplementTypes
[
Integer
.
valueOf
(
typeNumber
[
i
])
-
1
]
+
","
;
}
supplementTypeStr
=
supplementTypeStr
.
substring
(
0
,
supplementTypeStr
.
length
()
-
1
);
}
supplementTypeStr
=
supplementTypeStr
.
substring
(
0
,
supplementTypeStr
.
length
()-
1
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"user"
,
userEntity
);
model
.
addAttribute
(
"userName"
,
user
.
getName
());
...
...
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