Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
cd4b3fbc
Commit
cd4b3fbc
authored
Dec 04, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
3817 3815
parent
285cb763
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+2
-3
FireStationServiceImpl.java
...odule/common/biz/service/impl/FireStationServiceImpl.java
+9
-0
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
cd4b3fbc
...
...
@@ -533,9 +533,8 @@ public class CommandController extends BaseController {
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
iWaterResourceService
.
selectBySequenceNbr
(
id
)));
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"buildDate"
)))
{
LocalDateTime
dateTime
=
(
LocalDateTime
)
jsonObject
.
get
(
"buildDate"
);
Date
date
=
Date
.
from
(
dateTime
.
toInstant
(
ZoneOffset
.
of
(
"+8"
)));
jsonObject
.
remove
(
"buildDate"
);
String
str
=
jsonObject
.
get
(
"buildDate"
).
toString
();
Date
date
=
new
Date
(
Long
.
parseLong
(
str
));
jsonObject
.
put
(
"buildDate"
,
DateUtils
.
convertDateToString
(
date
,
DateUtils
.
DATE_TIME_PATTERN
));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireStationServiceImpl.java
View file @
cd4b3fbc
...
...
@@ -134,6 +134,15 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
model
.
setBizCompany
(
orgUsr
.
getBizOrgName
());
model
.
setBizCompanyCode
(
orgUsr
.
getBizOrgCode
());
}
// 地址处理
if
(
model
.
getAddress
()
!=
null
)
{
JSONObject
address
=
WaterResourceServiceImpl
.
getLongLatFromAddress
(
model
.
getAddress
());
model
.
setAddress
(
address
.
getString
(
BizConstant
.
ADDRESS
));
model
.
setLongitude
(
Double
.
valueOf
(
address
.
getString
(
BizConstant
.
LONGITUDE
)));
model
.
setLatitude
(
Double
.
valueOf
(
address
.
getString
(
BizConstant
.
LATITUDE
)));
}
FireStation
entity
=
this
.
prepareEntity
(
model
);
this
.
updateById
(
entity
);
return
Bean
.
toModel
(
entity
,
model
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/WaterResourceServiceImpl.java
View file @
cd4b3fbc
...
...
@@ -233,7 +233,9 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
WaterResourcePool
waterResourcePool
=
waterResourcePoolService
.
getOne
(
new
QueryWrapper
<
WaterResourcePool
>().
eq
(
"resource_id"
,
sequenceNbr
));
BeanUtils
.
copyProperties
(
waterResourcePool
,
waterResourceDto
);
if
(
null
!=
waterResourcePool
)
{
BeanUtils
.
copyProperties
(
waterResourcePool
,
waterResourceDto
);
}
break
;
}
}
...
...
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