Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
ac9b292a
Commit
ac9b292a
authored
Mar 07, 2019
by
qiankunpingtai
Browse files
日期转化时添加非空判断
parent
4801502e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/controller/OrganizationController.java
View file @
ac9b292a
...
...
@@ -55,7 +55,7 @@ public class OrganizationController {
outer
.
put
(
"orgFullName"
,
org
.
getOrgFullName
());
outer
.
put
(
"orgAbr"
,
org
.
getOrgAbr
());
outer
.
put
(
"orgParentNo"
,
org
.
getOrgParentNo
());
List
<
Organization
>
dataParentList
=
organizationService
.
findByOrgNo
(
org
.
getOrgNo
());
List
<
Organization
>
dataParentList
=
organizationService
.
findByOrgNo
(
org
.
getOrg
Parent
No
());
if
(
dataParentList
!=
null
&&
dataParentList
.
size
()>
0
){
//父级机构名称显示简称
outer
.
put
(
"orgParentName"
,
dataParentList
.
get
(
0
).
getOrgAbr
());
...
...
@@ -64,8 +64,15 @@ public class OrganizationController {
outer
.
put
(
"orgStcd"
,
org
.
getOrgStcd
());
outer
.
put
(
"orgNo"
,
org
.
getOrgNo
());
outer
.
put
(
"sort"
,
org
.
getSort
());
outer
.
put
(
"orgCreateTime"
,
sdf
.
format
(
org
.
getOrgCreateTime
()));
outer
.
put
(
"orgStopTime"
,
sdf
.
format
(
org
.
getOrgStopTime
()));
/**
* 判断时间不为空再做转化
* */
if
(
org
.
getOrgCreateTime
()!=
null
){
outer
.
put
(
"orgCreateTime"
,
sdf
.
format
(
org
.
getOrgCreateTime
()));
}
if
(
org
.
getOrgStopTime
()!=
null
){
outer
.
put
(
"orgStopTime"
,
sdf
.
format
(
org
.
getOrgStopTime
()));
}
outer
.
put
(
"remark"
,
org
.
getRemark
());
}
}
...
...
Write
Preview
Supports
Markdown
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