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
c6fd0660
Commit
c6fd0660
authored
Dec 04, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 3808
parent
cd4b3fbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
+39
-3
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+6
-0
WaterResourceServiceImpl.java
...ule/common/biz/service/impl/WaterResourceServiceImpl.java
+33
-3
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 @
c6fd0660
...
...
@@ -536,6 +536,12 @@ public class CommandController extends BaseController {
String
str
=
jsonObject
.
get
(
"buildDate"
).
toString
();
Date
date
=
new
Date
(
Long
.
parseLong
(
str
));
jsonObject
.
put
(
"buildDate"
,
DateUtils
.
convertDateToString
(
date
,
DateUtils
.
DATE_TIME_PATTERN
));
}
else
{
jsonObject
.
put
(
"buildDate"
,
""
);
}
if
(
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"intakeHeight"
)))
{
jsonObject
.
put
(
"intakeHeight"
,
""
);
}
return
ResponseHelper
.
buildResponse
(
jsonObject
);
...
...
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 @
c6fd0660
...
...
@@ -31,6 +31,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Operator
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
...
@@ -204,6 +205,28 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
WaterResourceDto
waterResourceDto
=
this
.
queryBySeq
(
sequenceNbr
);
waterResourceDto
.
setRealityImgList
(
JSONArray
.
parseArray
(
waterResourceDto
.
getRealityImg
(),
Object
.
class
));
waterResourceDto
.
setOrientationImgList
(
JSONArray
.
parseArray
(
waterResourceDto
.
getOrientationImg
()));
if
(
ValidationUtil
.
isEmpty
(
waterResourceDto
.
getContactUser
()))
{
waterResourceDto
.
setContactUser
(
""
);
}
if
(
ValidationUtil
.
isEmpty
(
waterResourceDto
.
getContactPhone
()))
{
waterResourceDto
.
setContactPhone
(
""
);
}
if
(
ValidationUtil
.
isEmpty
(
waterResourceDto
.
getManagementUnit
()))
{
waterResourceDto
.
setManagementUnit
(
""
);
}
if
(
ValidationUtil
.
isEmpty
(
waterResourceDto
.
getSection
()))
{
waterResourceDto
.
setSection
(
""
);
}
if
(
ValidationUtil
.
isEmpty
(
waterResourceDto
.
getWaterSupplyName
()))
{
waterResourceDto
.
setWaterSupplyName
(
""
);
}
Boolean
isDelete
=
waterResourceDto
.
getIsDelete
();
// 查询属性信息
String
resourceType
=
waterResourceDto
.
getResourceType
();
...
...
@@ -214,20 +237,27 @@ public class WaterResourceServiceImpl extends BaseService<WaterResourceDto, Wate
waterResourceHydrantService
.
getOne
(
new
QueryWrapper
<
WaterResourceHydrant
>().
eq
(
"resource_id"
,
sequenceNbr
));
BeanUtils
.
copyProperties
(
waterResourceHydrant
,
waterResourceDto
);
if
(
null
!=
waterResourceHydrant
)
{
BeanUtils
.
copyProperties
(
waterResourceHydrant
,
waterResourceDto
);
}
break
;
case
"crane"
:
WaterResourceCrane
waterResourceCrane
=
waterResourceCraneService
.
getOne
(
new
QueryWrapper
<
WaterResourceCrane
>().
eq
(
"resource_id"
,
sequenceNbr
));
BeanUtils
.
copyProperties
(
waterResourceCrane
,
waterResourceDto
);
if
(
null
!=
waterResourceCrane
)
{
BeanUtils
.
copyProperties
(
waterResourceCrane
,
waterResourceDto
);
}
break
;
case
"natural"
:
WaterResourceNatural
waterResourceNatural
=
waterResourceNaturalService
.
getOne
(
new
QueryWrapper
<
WaterResourceNatural
>().
eq
(
"resource_id"
,
sequenceNbr
));
BeanUtils
.
copyProperties
(
waterResourceNatural
,
waterResourceDto
);
if
(
null
!=
waterResourceNatural
)
{
BeanUtils
.
copyProperties
(
waterResourceNatural
,
waterResourceDto
);
}
break
;
case
"pool"
:
WaterResourcePool
waterResourcePool
=
...
...
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