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
01306688
Commit
01306688
authored
Dec 02, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG 3817 3815 3809
parent
f17dbfbf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+12
-1
FireStationServiceImpl.java
...odule/common/biz/service/impl/FireStationServiceImpl.java
+10
-0
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+2
-1
PowerrTransferLogServiceImpl.java
...le/jcs/biz/service/impl/PowerrTransferLogServiceImpl.java
+2
-2
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 @
01306688
...
...
@@ -12,6 +12,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.dto.PermissionModelDto
;
import
com.yeejoin.amos.boot.biz.common.enums.HomePageEnum
;
import
com.yeejoin.amos.boot.biz.common.service.IDataDictionaryService
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.WordConverterUtils
;
import
com.yeejoin.amos.boot.module.command.api.dao.SeismometeorologyDtoDao
;
import
com.yeejoin.amos.boot.module.command.api.dto.CarTaskDto
;
...
...
@@ -66,7 +67,10 @@ import javax.servlet.http.HttpServletResponse;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.lang.reflect.Method
;
import
java.time.LocalDateTime
;
import
java.time.ZoneOffset
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -527,7 +531,14 @@ public class CommandController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询水源"
,
notes
=
"根据id查询水源"
)
public
ResponseModel
<
JSONObject
>
selectOne
(
Long
id
)
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
iWaterResourceService
.
selectBySequenceNbr
(
id
)));
jsonObject
.
remove
(
"managementUnit"
);
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
.
get
(
"buildDate"
)))
{
LocalDateTime
dateTime
=
(
LocalDateTime
)
jsonObject
.
get
(
"buildDate"
);
Date
date
=
Date
.
from
(
dateTime
.
toInstant
(
ZoneOffset
.
of
(
"+8"
)));
jsonObject
.
remove
(
"buildDate"
);
jsonObject
.
put
(
"buildDate"
,
DateUtils
.
convertDateToString
(
date
,
DateUtils
.
DATE_TIME_PATTERN
));
}
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/FireStationServiceImpl.java
View file @
01306688
...
...
@@ -3,6 +3,8 @@ package com.yeejoin.amos.boot.module.common.biz.service.impl;
import
java.util.List
;
import
java.util.Map
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.constants.BizConstant
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
...
...
@@ -109,6 +111,14 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
OrgUsr
orgUsr
=
orgUsrMapper
.
selectById
(
model
.
getBizCompanyId
());
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
.
save
(
entity
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/ExcelController.java
View file @
01306688
...
...
@@ -24,6 +24,7 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.Map
;
...
...
@@ -165,7 +166,7 @@ public class ExcelController extends BaseController {
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"导出值班模板"
,
notes
=
"导出值班模板"
)
@
Ge
tMapping
(
value
=
"/duty_template"
)
@
Pos
tMapping
(
value
=
"/duty_template"
)
public
void
dutyCarTemplate
(
HttpServletResponse
response
,
@RequestParam
(
"beginDate"
)
String
beginDate
,
@RequestParam
(
"endDate"
)
String
endDate
,
ExcelDto
excelDto
,
@RequestParam
(
"ids"
)
String
ids
)
{
try
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/PowerrTransferLogServiceImpl.java
View file @
01306688
...
...
@@ -68,10 +68,10 @@ public class PowerrTransferLogServiceImpl extends BaseService<PowerrTransferLogD
PowerTransferCompany
company
=
powerTransferCompanyService
.
getById
(
id
);
list
.
stream
().
forEach
(
e
->{
dto
.
setReceiveName
(
dto
.
getRec
UserName
()
==
null
?
""
.
concat
(
e
.
getReceiveName
())
:
dto
.
getReceiveName
().
concat
(
"/"
).
concat
(
e
.
getReceiveName
())
);
dto
.
setReceiveName
(
dto
.
getRec
eiveName
()
==
null
?
""
.
concat
(
e
.
getReceiveName
()
==
null
?
""
:
e
.
getReceiveName
())
:
dto
.
getReceiveName
().
concat
(
"/"
).
concat
(
e
.
getReceiveName
()
==
null
?
""
:
e
.
getReceiveName
())
);
dto
.
setSendTime
(
e
.
getSendTime
());
dto
.
setSendContent
(
e
.
getSendContent
());
dto
.
setRecUserName
(
e
.
getRec
eive
Name
());
dto
.
setRecUserName
(
e
.
getRec
User
Name
());
if
(!
ValidationUtil
.
isEmpty
(
company
))
{
dto
.
setSendContent
(
company
.
getTaskInformation
());
...
...
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