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
0592f77d
Commit
0592f77d
authored
Jan 05, 2022
by
helinlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
42388b5d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
155 additions
and
89 deletions
+155
-89
SeismometeorologyDtoDao.java
.../boot/module/command/api/dao/SeismometeorologyDtoDao.java
+34
-37
LatentDanger.java
...om/yeejoin/amos/latentdanger/dao/entity/LatentDanger.java
+1
-1
pom.xml
...-boot-module-api/amos-boot-module-supervision-api/pom.xml
+3
-3
CheckInput.java
...a/com/yeejoin/amos/supervision/dao/entity/CheckInput.java
+0
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+14
-0
CheckController.java
...amos/supervision/business/controller/CheckController.java
+10
-5
CheckInputParam.java
...join/amos/supervision/business/param/CheckInputParam.java
+18
-16
CheckServiceImpl.java
...s/supervision/business/service/impl/CheckServiceImpl.java
+2
-0
HiddenDangerServiceImpl.java
...vision/business/service/impl/HiddenDangerServiceImpl.java
+4
-0
FileHelper.java
...om/yeejoin/amos/supervision/business/util/FileHelper.java
+0
-2
CheckVo.java
...ava/com/yeejoin/amos/supervision/business/vo/CheckVo.java
+4
-1
pom.xml
amos-boot-system-supervision/pom.xml
+0
-4
mt-1.0.0.xml
...-supervision/src/main/resources/db/changelog/mt-1.0.0.xml
+62
-20
dbTemplate_check.xml
...rvision/src/main/resources/db/mapper/dbTemplate_check.xml
+1
-0
pointMapper.xml
...-supervision/src/main/resources/db/mapper/pointMapper.xml
+2
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-command-api/src/main/java/com/yeejoin/amos/boot/module/command/api/dao/SeismometeorologyDtoDao.java
View file @
0592f77d
...
...
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Component;
import
com.yeejoin.amos.boot.module.command.api.dto.SeismometeorologyDto
;
import
org.springframework.data.mongodb.core.query.Criteria
;
import
org.springframework.stereotype.Service
;
/**
* @description:
* @author: tw
...
...
@@ -28,65 +29,61 @@ public class SeismometeorologyDtoDao {
/**
* 保存对象SeismometeorologyDto
* @param
*
* @param
*/
public
void
saveObj
(
SeismometeorologyDto
book
)
{
mongoTemplate
.
save
(
book
);
}
/**
*
* 24小時预警
*
* **/
public
List
<
SeismometeorologyDto
>
findCarStateByWatchSn
(){
System
.
out
.
println
(
new
Date
().
getTime
());
Query
query
=
new
Query
(
Criteria
.
where
(
"releaseTime"
).
gte
(
getStartTime
())
.
lte
(
getEndTime
()));
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"releaseTime"
);
query
.
with
(
sort
);
List
<
SeismometeorologyDto
>
gpsList
=
mongoTemplate
.
find
(
query
,
SeismometeorologyDto
.
class
);
return
gpsList
;
**/
public
List
<
SeismometeorologyDto
>
findCarStateByWatchSn
()
{
System
.
out
.
println
(
new
Date
().
getTime
());
Query
query
=
new
Query
(
Criteria
.
where
(
"releaseTime"
).
gte
(
getStartTime
())
.
lte
(
getEndTime
()));
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"releaseTime"
);
query
.
with
(
sort
);
List
<
SeismometeorologyDto
>
gpsList
=
mongoTemplate
.
find
(
query
,
SeismometeorologyDto
.
class
);
return
gpsList
;
}
/**
*
*当天气象预警
*
* **/
public
List
<
SeismometeorologyDto
>
findDutyCarStateBy
(){
* 当天气象预警
**/
public
List
<
SeismometeorologyDto
>
findDutyCarStateBy
()
{
System
.
out
.
println
(
new
Date
().
getTime
());
Query
query
=
new
Query
(
Criteria
.
where
(
"releaseTime"
).
gte
(
getStartTime
())
.
lte
(
getEndTime
()));
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"releaseTime"
);
.
lte
(
getEndTime
()));
Sort
sort
=
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"releaseTime"
);
query
.
with
(
sort
);
List
<
SeismometeorologyDto
>
gpsList
=
mongoTemplate
.
find
(
query
,
SeismometeorologyDto
.
class
);
return
gpsList
;
}
private
static
Date
getStartTime
()
{
Calendar
todayStart
=
Calendar
.
getInstance
();
todayStart
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
todayStart
.
set
(
Calendar
.
MINUTE
,
0
);
todayStart
.
set
(
Calendar
.
SECOND
,
0
);
todayStart
.
set
(
Calendar
.
MILLISECOND
,
0
);
return
todayStart
.
getTime
();
Calendar
todayStart
=
Calendar
.
getInstance
();
todayStart
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
todayStart
.
set
(
Calendar
.
MINUTE
,
0
);
todayStart
.
set
(
Calendar
.
SECOND
,
0
);
todayStart
.
set
(
Calendar
.
MILLISECOND
,
0
);
return
todayStart
.
getTime
();
}
private
static
Date
getEndTime
()
{
Calendar
todayEnd
=
Calendar
.
getInstance
();
todayEnd
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
todayEnd
.
set
(
Calendar
.
MINUTE
,
59
);
todayEnd
.
set
(
Calendar
.
SECOND
,
59
);
todayEnd
.
set
(
Calendar
.
MILLISECOND
,
999
);
return
todayEnd
.
getTime
();
Calendar
todayEnd
=
Calendar
.
getInstance
();
todayEnd
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
todayEnd
.
set
(
Calendar
.
MINUTE
,
59
);
todayEnd
.
set
(
Calendar
.
SECOND
,
59
);
todayEnd
.
set
(
Calendar
.
MILLISECOND
,
999
);
return
todayEnd
.
getTime
();
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/dao/entity/LatentDanger.java
View file @
0592f77d
...
...
@@ -90,7 +90,7 @@ public class LatentDanger extends BasicEntity {
/**
* 限制时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
reformLimitDate
;
private
Integer
overtimeState
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-supervision-api/pom.xml
View file @
0592f77d
...
...
@@ -21,7 +21,7 @@
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-base
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
<exclusions>
<exclusion>
<artifactId>
poi-ooxml
</artifactId>
...
...
@@ -32,12 +32,12 @@
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-web
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
<dependency>
<groupId>
cn.afterturn
</groupId>
<artifactId>
easypoi-annotation
</artifactId>
<version>
3.0.3
</version>
<version>
4.0.0
</version>
</dependency>
<dependency>
<groupId>
org.jsoup
</groupId>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-supervision-api/src/main/java/com/yeejoin/amos/supervision/dao/entity/CheckInput.java
View file @
0592f77d
This diff is collapsed.
Click to expand it.
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 @
0592f77d
...
...
@@ -39,7 +39,9 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.client.RestTemplate
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
...
...
@@ -146,6 +148,8 @@ public class CommandController extends BaseController {
@Autowired
IUserCarService
userCarService
;
@Autowired
RestTemplate
restTemplate
;
/**
* 警情列表
...
...
@@ -1530,4 +1534,13 @@ public class CommandController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"getAMapWeather"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取百度地图天气"
,
notes
=
"获取百度地图天气"
)
public
ResponseModel
<
Object
>
getAMapWeather
()
{
ResponseEntity
<
HashMap
>
weather
=
restTemplate
.
getForEntity
(
"https://restapi.amap.com/v3/weather/weatherInfo?key=4bee67717254d93067fdbc09cd61c7d9&city=610100&extensions=all"
,
HashMap
.
class
);
return
ResponseHelper
.
buildResponse
(
weather
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/CheckController.java
View file @
0592f77d
...
...
@@ -4,10 +4,7 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import
com.yeejoin.amos.supervision.business.constants.XJConstant
;
import
com.yeejoin.amos.supervision.business.dto.CheckDto
;
import
com.yeejoin.amos.supervision.business.dto.CheckInputItemDto
;
import
com.yeejoin.amos.supervision.business.param.CheckInfoPageParam
;
import
com.yeejoin.amos.supervision.business.param.CheckPageParam
;
import
com.yeejoin.amos.supervision.business.param.CheckRecordParam
;
import
com.yeejoin.amos.supervision.business.param.CheckStatisticalParam
;
import
com.yeejoin.amos.supervision.business.param.*
;
import
com.yeejoin.amos.supervision.business.service.intfc.ICheckService
;
import
com.yeejoin.amos.supervision.business.service.intfc.IPlanTaskService
;
import
com.yeejoin.amos.supervision.business.service.intfc.ISafety3DDataSendService
;
...
...
@@ -50,6 +47,7 @@ import java.util.Date;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.function.Consumer
;
@RestController
@RequestMapping
(
value
=
"/api/check"
)
...
...
@@ -546,8 +544,15 @@ public class CheckController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"保存检查记录"
,
notes
=
"保存检查记录"
)
@RequestMapping
(
value
=
"/saveRecord"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
ResponseModel
saveSupervisionCheckRecord
(
@ApiParam
(
value
=
"检查信息"
,
required
=
false
)
@RequestBody
(
required
=
true
)
CheckRecordParam
requestParam
)
{
public
ResponseModel
saveSupervisionCheckRecord
(
@ApiParam
(
value
=
"检查信息"
,
required
=
false
)
@RequestBody
CheckRecordParam
requestParam
)
{
try
{
//存放检查人信息
requestParam
.
getCheckItems
().
forEach
(
checkInputParam
->
{
checkInputParam
.
setUserId
(
getUserId
());
checkInputParam
.
setUserName
(
getUserInfo
().
getRealName
());
});
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
orgCode
=
getOrgCode
(
reginParams
);
requestParam
.
setOrgCode
(
orgCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/param/CheckInputParam.java
View file @
0592f77d
...
...
@@ -12,21 +12,23 @@ import java.util.List;
*/
@Data
public
class
CheckInputParam
{
private
Long
id
;
private
long
inputItemId
;
private
String
inputValue
;
private
String
selectName
;
private
boolean
isCheck
;
private
String
remark
;
private
Long
routePointItemId
;
private
String
userId
;
private
String
userName
;
private
String
depId
;
private
String
depName
;
private
List
<
CheckShot
>
checkInputShot
=
new
ArrayList
<>();
private
Long
id
;
private
long
inputItemId
;
private
String
inputValue
;
private
String
selectName
;
private
boolean
isCheck
;
private
String
remark
;
private
Long
routePointItemId
;
private
String
userId
;
//检查人ID
private
String
userName
;
//检查人姓名
private
String
accompanyUserId
;
//陪同检查人姓名
private
String
accompanyUserName
;
//陪同检查人姓名
private
String
depId
;
private
String
depName
;
private
List
<
CheckShot
>
checkInputShot
=
new
ArrayList
<>();
/**
* 隐患列表
*/
private
List
<
DangerDto
>
dangerList
=
new
ArrayList
<>();
/**
* 隐患列表
*/
private
List
<
DangerDto
>
dangerList
=
new
ArrayList
<>();
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/CheckServiceImpl.java
View file @
0592f77d
...
...
@@ -1455,6 +1455,8 @@ public class CheckServiceImpl implements ICheckService {
checkInput
.
setRemark
(
item
.
getRemark
());
checkInput
.
setUserId
(
item
.
getUserId
());
checkInput
.
setUserName
(
item
.
getUserName
());
checkInput
.
setAccompanyUserId
(
item
.
getAccompanyUserId
());
checkInput
.
setAccompanyUserName
(
item
.
getAccompanyUserName
());
checkInput
.
setDepId
(
item
.
getDepId
());
checkInput
.
setDepName
(
item
.
getDepName
());
//1.校验结果
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/HiddenDangerServiceImpl.java
View file @
0592f77d
...
...
@@ -315,6 +315,10 @@ public class HiddenDangerServiceImpl implements IHiddenDangerService {
List
<
CheckShot
>
shotList
=
iCheckShotDao
.
findAllByCheckIdAndCheckInputId
(
checkInput
.
getCheckId
(),
checkInput
.
getId
());
result
.
put
(
"checkUserId"
,
checkInput
.
getUserId
());
result
.
put
(
"checkUserName"
,
checkInput
.
getUserName
());
result
.
put
(
"accompanyUserId"
,
checkInput
.
getAccompanyUserId
());
result
.
put
(
"accompanyUserName"
,
checkInput
.
getAccompanyUserName
());
result
.
put
(
"accompanyingUserId"
,
checkInput
.
getAccompanyUserId
());
result
.
put
(
"accompanyingUserName"
,
checkInput
.
getAccompanyUserName
());
result
.
put
(
"planExecuteTime"
,
checkInput
.
getCreateDate
());
result
.
put
(
"checkPhotoUrl"
,
shotList
.
stream
().
map
(
CheckShot:
:
getPhotoData
).
collect
(
Collectors
.
joining
(
","
)));
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/util/FileHelper.java
View file @
0592f77d
...
...
@@ -5,7 +5,6 @@ import cn.afterturn.easypoi.excel.ExcelImportUtil;
import
cn.afterturn.easypoi.excel.entity.ExportParams
;
import
cn.afterturn.easypoi.excel.entity.ImportParams
;
import
cn.afterturn.easypoi.excel.entity.enmus.ExcelType
;
import
com.alibaba.excel.metadata.Sheet
;
import
com.google.zxing.BarcodeFormat
;
import
com.google.zxing.MultiFormatWriter
;
import
com.google.zxing.client.j2se.MatrixToImageWriter
;
...
...
@@ -13,7 +12,6 @@ import com.google.zxing.common.BitMatrix;
import
com.yeejoin.amos.supervision.business.vo.PointVo
;
import
com.yeejoin.amos.supervision.exception.YeeException
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.poi.hslf.usermodel.HSLFSlideShow
;
import
org.apache.poi.hssf.usermodel.*
;
import
org.apache.poi.hwpf.HWPFDocument
;
import
org.apache.poi.ss.usermodel.*
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/vo/CheckVo.java
View file @
0592f77d
...
...
@@ -44,7 +44,10 @@ public class CheckVo {
* 检查人
*/
private
String
userName
;
/**
* 陪同检查人
*/
private
String
accompanyUserName
;
/**
* 责任单位ID
*/
...
...
amos-boot-system-supervision/pom.xml
View file @
0592f77d
...
...
@@ -16,10 +16,6 @@
<version>
${amos-biz-boot.version}
</version>
<exclusions>
<exclusion>
<artifactId>
easypoi-base
</artifactId>
<groupId>
cn.afterturn
</groupId>
</exclusion>
<exclusion>
<artifactId>
poi-ooxml
</artifactId>
<groupId>
org.apache.poi
</groupId>
</exclusion>
...
...
amos-boot-system-supervision/src/main/resources/db/changelog/mt-1.0.0.xml
View file @
0592f77d
This diff is collapsed.
Click to expand it.
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
0592f77d
...
...
@@ -2012,6 +2012,7 @@
ci.major_danger_num,
ci.create_date checkTime,
ci.user_name,
ci.accompany_user_name,
pp.original_id,
pp.name companyName,
...
...
amos-boot-system-supervision/src/main/resources/db/mapper/pointMapper.xml
View file @
0592f77d
...
...
@@ -1152,6 +1152,8 @@
pii.picture_json picJson,
pci.user_id userId,
pci.user_name userName,
pci.accompany_user_id accompanyUserId,
pci.accompany_user_name accompanyUserName,
pii.id itemId,
group_concat(pcs.photo_data) photoData,
COALESCE (pci.input_value, '') selectValue,
...
...
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