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
f596cff7
Commit
f596cff7
authored
Sep 17, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
9ef834c8
d1d8e146
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
812 additions
and
172 deletions
+812
-172
FailureDetailsDto.java
...in/amos/boot/module/common/api/dto/FailureDetailsDto.java
+5
-5
KeySiteDto.java
...m/yeejoin/amos/boot/module/common/api/dto/KeySiteDto.java
+6
-0
UserDto.java
.../com/yeejoin/amos/boot/module/common/api/dto/UserDto.java
+41
-0
WaterResourceDto.java
...oin/amos/boot/module/common/api/dto/WaterResourceDto.java
+2
-1
FailureDetails.java
...in/amos/boot/module/common/api/entity/FailureDetails.java
+3
-1
KeySite.java
...m/yeejoin/amos/boot/module/common/api/entity/KeySite.java
+0
-2
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+21
-1
FailureDetailsMapper.java
...s/boot/module/common/api/mapper/FailureDetailsMapper.java
+39
-22
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+2
-0
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+13
-31
FailureDetailsMapper.xml
...on-api/src/main/resources/mapper/FailureDetailsMapper.xml
+219
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+28
-0
AirportStandDto.java
...yeejoin/amos/boot/module/jcs/api/dto/AirportStandDto.java
+42
-0
AirportStand.java
...yeejoin/amos/boot/module/jcs/api/entity/AirportStand.java
+61
-0
AirportStandMapper.java
...n/amos/boot/module/jcs/api/mapper/AirportStandMapper.java
+14
-0
IAirportStandService.java
...mos/boot/module/jcs/api/service/IAirportStandService.java
+12
-0
AirportStandMapper.xml
...-jcs-api/src/main/resources/mapper/AirportStandMapper.xml
+5
-0
FailureDetailsController.java
...odule/common/biz/controller/FailureDetailsController.java
+1
-6
KeySiteController.java
.../boot/module/common/biz/controller/KeySiteController.java
+80
-42
OrgUsrController.java
...s/boot/module/common/biz/controller/OrgUsrController.java
+13
-0
FailureAuditServiceImpl.java
...dule/common/biz/service/impl/FailureAuditServiceImpl.java
+4
-1
FailureDetailsServiceImpl.java
...le/common/biz/service/impl/FailureDetailsServiceImpl.java
+23
-42
FailureMaintainServiceImpl.java
...e/common/biz/service/impl/FailureMaintainServiceImpl.java
+11
-2
FailureVerifyServiceImpl.java
...ule/common/biz/service/impl/FailureVerifyServiceImpl.java
+6
-4
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+0
-0
AirportStandController.java
...oot/module/jcs/biz/controller/AirportStandController.java
+54
-0
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+19
-11
AirportStandServiceImpl.java
.../module/jcs/biz/service/impl/AirportStandServiceImpl.java
+34
-0
DataSourcesImpl.java
...mos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
+47
-0
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+6
-0
application.properties
...boot-system-jcs/src/main/resources/application.properties
+1
-1
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+0
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FailureDetailsDto.java
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
java.util.Date
;
import
java.util.List
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* @author system_generator
* @author system_generator
* @date 2021-08-04
* @date 2021-08-04
...
@@ -37,10 +38,9 @@ public class FailureDetailsDto extends BaseDto {
...
@@ -37,10 +38,9 @@ public class FailureDetailsDto extends BaseDto {
@ApiModelProperty
(
value
=
"故障设备"
)
@ApiModelProperty
(
value
=
"故障设备"
)
private
String
failureEquipment
;
private
String
failureEquipment
;
@JsonFormat
(
locale
=
"zh"
,
timezone
=
"GMT+8"
,
pattern
=
"YYYY-MM-dd"
)
@JsonFormat
(
locale
=
"zh"
,
timezone
=
"GMT+8"
,
pattern
=
"YYYY-MM-dd"
)
@ApiModelProperty
(
value
=
"故障时间"
)
@ApiModelProperty
(
value
=
"故障时间"
)
private
Date
faultTime
;
private
String
faultTime
;
@ApiModelProperty
(
value
=
"故障现象"
)
@ApiModelProperty
(
value
=
"故障现象"
)
private
String
faultPhenomenon
;
private
String
faultPhenomenon
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/KeySiteDto.java
View file @
f596cff7
...
@@ -85,6 +85,12 @@ public class KeySiteDto extends BaseDto implements Serializable{
...
@@ -85,6 +85,12 @@ public class KeySiteDto extends BaseDto implements Serializable{
@ApiModelProperty
(
value
=
"使用性质名称"
)
@ApiModelProperty
(
value
=
"使用性质名称"
)
private
String
useNatureName
;
private
String
useNatureName
;
@ApiModelProperty
(
value
=
"经度"
)
private
Double
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
private
Double
latitude
;
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/UserDto.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* 单位归属
*
* @author gaojianqiang
* @date 2021-08-19
*/
@Data
@ApiModel
(
value
=
"UserDto"
,
description
=
"用户信息"
)
public
class
UserDto
{
@ApiModelProperty
(
value
=
"人员类型1-维保公司;2-业主单位"
)
private
String
identityType
;
@ApiModelProperty
(
value
=
"人员id"
)
private
String
personSeq
;
@ApiModelProperty
(
value
=
"人员名称"
)
private
String
personName
;
@ApiModelProperty
(
value
=
"公司id"
)
private
String
companyId
;
@ApiModelProperty
(
value
=
"公司名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"字段名"
)
private
String
fieldCode
;
@ApiModelProperty
(
value
=
"字段值"
)
private
String
fieldValue
;
@ApiModelProperty
(
value
=
"机构编码"
)
private
String
bizOrgCode
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/WaterResourceDto.java
View file @
f596cff7
...
@@ -318,8 +318,9 @@ public class WaterResourceDto extends BaseDto {
...
@@ -318,8 +318,9 @@ public class WaterResourceDto extends BaseDto {
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
"设施分类id"
)
@ApiModelProperty
(
"设施分类id"
)
private
Long
equipCategoryId
;
private
Long
equipCategoryId
;
// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
@ApiModelProperty
(
"设施分类名称"
)
@ApiModelProperty
(
"设施分类名称"
)
@ExplicitConstraint
(
indexNum
=
45
,
sourceClass
=
RoleNameExplicitConstraint
.
class
,
method
=
"getEquipCategory"
)
@ExcelProperty
(
value
=
"设施分类名称"
,
index
=
45
)
@ExcelProperty
(
value
=
"设施分类名称"
,
index
=
45
)
private
String
equipCategoryName
;
private
String
equipCategoryName
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/FailureDetails.java
View file @
f596cff7
...
@@ -4,6 +4,7 @@ import java.util.Date;
...
@@ -4,6 +4,7 @@ import java.util.Date;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -51,8 +52,9 @@ public class FailureDetails extends BaseEntity {
...
@@ -51,8 +52,9 @@ public class FailureDetails extends BaseEntity {
/**
/**
* 故障时间
* 故障时间
*/
*/
@JsonFormat
(
locale
=
"zh"
,
timezone
=
"GMT+8"
,
pattern
=
"YYYY-MM-dd"
)
@TableField
(
"fault_time"
)
@TableField
(
"fault_time"
)
private
Date
faultTime
;
private
String
faultTime
;
/**
/**
* 故障现象
* 故障现象
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/KeySite.java
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
entity
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
f596cff7
...
@@ -94,7 +94,20 @@ public interface EquipFeignClient {
...
@@ -94,7 +94,20 @@ public interface EquipFeignClient {
*/
*/
@RequestMapping
(
value
=
"/building/tree"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/building/tree"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingTree
();
ResponseModel
<
Object
>
getBuildingTree
();
/**
* 获取消防建筑详情
*
* @return
*/
@RequestMapping
(
value
=
"/building/getOne"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getOne
(
@RequestParam
Long
instanceId
);
/**
* 获取指定建筑的经纬度信息
*
* @return
*/
@RequestMapping
(
value
=
"/building/getBuildingToLongitudeAndLatitude"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingToLongitudeAndLatitude
(
@RequestParam
String
instanceId
);
/**
/**
* 更新车辆状态
* 更新车辆状态
*
*
...
@@ -200,4 +213,11 @@ public interface EquipFeignClient {
...
@@ -200,4 +213,11 @@ public interface EquipFeignClient {
@RequestMapping
(
value
=
"/building/getAllBuilding"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/building/getAllBuilding"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
getAllBuilding
();
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
getAllBuilding
();
/**
* 查询所有建筑的数据字典// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
* @return
*/
@RequestMapping
(
value
=
"equipment-category/tree/{type}"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
getEquipmentCategory
(
@PathVariable
String
type
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/FailureDetailsMapper.java
View file @
f596cff7
...
@@ -22,6 +22,7 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -22,6 +22,7 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
/**
/**
* 查询全部 分页
* 查询全部 分页
*
* @param currentStatus 当前任务状态
* @param currentStatus 当前任务状态
* * @param startTime 起始时间
* * @param startTime 起始时间
* * @param endTime 结束时间
* * @param endTime 结束时间
...
@@ -30,27 +31,30 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -30,27 +31,30 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @return
* @return
*/
*/
List
<
FailureDetails
>
selectAllPage
(
Long
current
,
Long
size
,
Long
currentStatus
,
List
<
FailureDetails
>
selectAllPage
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
FailureDetailsDto
>
selectWebPage
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
String
submissionName
,
Long
submissionBranchId
,
Long
sequenceNbr
);
/**
/**
* 查询我发起的 分页
* 查询我发起的 分页
* current 当前页
* current 当前页
* size 条数
* size 条数
*
* @param currentStatus 当前任务状态
* @param currentStatus 当前任务状态
* * @param startTime 起始时间
* * @param startTime 起始时间
* * @param endTime 结束时间
* * @param endTime 结束时间
* * @param submissionPid 报送人
* * @param submissionPid 报送人
* @return
* @return
*/
*/
List
<
FailureDetails
>
selectISubPage
(
Long
current
,
Long
size
,
Long
currentStatus
,
List
<
FailureDetails
>
selectISubPage
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 查询待处理 分页
* 查询待处理 分页
*
* @param currentStatus 当前任务状态
* @param currentStatus 当前任务状态
* * @param startTime 起始时间
* * @param startTime 起始时间
* * @param endTime 结束时间
* * @param endTime 结束时间
...
@@ -58,18 +62,21 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -58,18 +62,21 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param
* @param
* @return
* @return
*/
*/
List
<
FailureDetails
>
selectInProcessing
(
Long
current
,
Long
size
,
Long
currentStatus
,
List
<
FailureDetails
>
selectInProcessing
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 查询待处理 应急指挥科人员分页
* 查询待处理 应急指挥科人员分页
*
*
* @param
* @param
* @return
* @return
*/
*/
List
<
FailureDetails
>
selectStatusWaitTj
(
Long
current
,
Long
size
,
Long
currentStatus
,
List
<
FailureDetails
>
selectStatusWaitTj
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 查询待处理 维修人员分页
* 查询待处理 维修人员分页
*
* @param currentStatus 当前任务状态
* @param currentStatus 当前任务状态
* * @param startTime 起始时间
* * @param startTime 起始时间
* * @param endTime 结束时间
* * @param endTime 结束时间
...
@@ -77,8 +84,8 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -77,8 +84,8 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param
* @param
* @return
* @return
*/
*/
List
<
FailureDetails
>
selectStatusWaitWx
(
Long
current
,
Long
size
,
Long
currentStatus
,
List
<
FailureDetails
>
selectStatusWaitWx
(
Long
current
,
Long
size
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
...
@@ -88,10 +95,9 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -88,10 +95,9 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param startTime 起始时间
* @param startTime 起始时间
* @param endTime 结束时间
* @param endTime 结束时间
* @param submissionPid 报送人
* @param submissionPid 报送人
*
* @return
* @return
*/
*/
List
<
StatusDto
>
selectStatusCount
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectStatusCount
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
...
@@ -101,10 +107,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -101,10 +107,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param startTime 起始时间
* @param startTime 起始时间
* @param endTime 结束时间
* @param endTime 结束时间
* @param submissionPid 报送人
* @param submissionPid 报送人
*
* @return
* @return
*/
*/
List
<
StatusDto
>
selectStatusWx
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectStatusWx
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 统计 应急指挥科人员
* 统计 应急指挥科人员
*
*
...
@@ -112,10 +118,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -112,10 +118,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param startTime 起始时间
* @param startTime 起始时间
* @param endTime 结束时间
* @param endTime 结束时间
* @param submissionPid 报送人
* @param submissionPid 报送人
*
* @return
* @return
*/
*/
List
<
StatusDto
>
selectStatusFq
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectStatusFq
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 统计 我发起
* 统计 我发起
*
*
...
@@ -123,10 +129,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -123,10 +129,10 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param startTime 起始时间
* @param startTime 起始时间
* @param endTime 结束时间
* @param endTime 结束时间
* @param submissionPid 报送人
* @param submissionPid 报送人
*
* @return
* @return
*/
*/
List
<
StatusDto
>
selectStatusFqp
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectStatusFqp
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
/**
/**
* 统计 领导
* 统计 领导
*
*
...
@@ -134,12 +140,23 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
...
@@ -134,12 +140,23 @@ public interface FailureDetailsMapper extends BaseMapper<FailureDetails> {
* @param startTime 起始时间
* @param startTime 起始时间
* @param endTime 结束时间
* @param endTime 结束时间
* @param submissionPid 报送人
* @param submissionPid 报送人
*
* @return
* @return
*/
*/
List
<
StatusDto
>
selectStatusLeader
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectStatusLeader
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
);
List
<
StatusDto
>
selectAudit
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
,
String
userId
);
List
<
StatusDto
>
selectMaintain
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
,
String
userId
);
List
<
StatusDto
>
selectUserId
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
String
userId
);
List
<
FailureDetails
>
selectYJ
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
String
userId
,
Long
current
,
Long
size
);
List
<
FailureDetails
>
selectForAudit
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
,
String
userId
,
Long
current
,
Long
size
);
List
<
FailureDetails
>
selectForMaintain
(
Long
currentStatus
,
String
startTime
,
String
endTime
,
Integer
submissionPid
,
String
userId
,
Long
current
,
Long
size
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
f596cff7
...
@@ -74,6 +74,8 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
...
@@ -74,6 +74,8 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
List
<
UserUnitDto
>
getUserUnit
(
String
id
,
String
type
,
String
code
);
List
<
UserUnitDto
>
getUserUnit
(
String
id
,
String
type
,
String
code
);
List
<
UserDto
>
getUserInfo
(
String
id
,
String
type
,
String
code
,
String
fieldCode
);
/**
/**
* 导出机场单位带过滤 bug2657 by kongfm
* 导出机场单位带过滤 bug2657 by kongfm
* @param parentId
* @param parentId
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.module.common.api.dto.CheckObjectDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
import
com.yeejoin.amos.boot.module.common.api.dto.CompanyDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESOrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgDepartmentFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgMenuDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgPersonFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrExcelDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrFormDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrzhDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.RequestData
;
import
com.yeejoin.amos.boot.module.common.api.dto.UserUnitDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.DynamicFormInstance
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 机构/部门/人员表 服务类
* 机构/部门/人员表 服务类
*
*
...
@@ -159,13 +145,11 @@ public interface IOrgUsrService {
...
@@ -159,13 +145,11 @@ public interface IOrgUsrService {
/**
/**
* * @param null
* * @param null
*
*
* @return
* @return <PRE>
*
* <PRE>
* author tw
* author tw
* date 2021/7/20
* date 2021/7/20
* </PRE>
* </PRE>
*
* <p>
* 列表
* 列表
*/
*/
List
<
CompanyDto
>
listContractDto
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
requestData
);
List
<
CompanyDto
>
listContractDto
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
requestData
);
...
@@ -173,13 +157,11 @@ public interface IOrgUsrService {
...
@@ -173,13 +157,11 @@ public interface IOrgUsrService {
/**
/**
* * @param null
* * @param null
*
*
* @return
* @return <PRE>
*
* <PRE>
* author tw
* author tw
* date 2021/7/20
* date 2021/7/20
* </PRE>
* </PRE>
*
* <p>
* 统计
* 统计
*/
*/
Integer
listContractDtoCount
(
RequestData
par
);
Integer
listContractDtoCount
(
RequestData
par
);
...
@@ -187,9 +169,7 @@ public interface IOrgUsrService {
...
@@ -187,9 +169,7 @@ public interface IOrgUsrService {
/**
/**
* * @param null
* * @param null
*
*
* @return
* @return <PRE>
*
* <PRE>
* author tw
* author tw
* date 2021/7/26
* date 2021/7/26
* </PRE>
* </PRE>
...
@@ -205,6 +185,8 @@ public interface IOrgUsrService {
...
@@ -205,6 +185,8 @@ public interface IOrgUsrService {
UserUnitDto
getUserUnit
(
String
userId
);
UserUnitDto
getUserUnit
(
String
userId
);
List
<
UserDto
>
getUserInfo
(
String
userId
);
/**
/**
* 根据登陆人获取公司部门人员树
* 根据登陆人获取公司部门人员树
*/
*/
...
@@ -229,9 +211,9 @@ public interface IOrgUsrService {
...
@@ -229,9 +211,9 @@ public interface IOrgUsrService {
/**
/**
* 根据parentId 导出机场单位人员 bug2657 by kongfm
* 根据parentId 导出机场单位人员 bug2657 by kongfm
*
* @param parentId
* @param parentId
* @return
* @return
*/
*/
List
<
OrgUsrExcelDto
>
exportPersonToExcelByParentId
(
Long
parentId
);
List
<
OrgUsrExcelDto
>
exportPersonToExcelByParentId
(
Long
parentId
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FailureDetailsMapper.xml
View file @
f596cff7
...
@@ -31,6 +31,42 @@
...
@@ -31,6 +31,42 @@
order by submission_time DESC limit #{current},#{size}
order by submission_time DESC limit #{current},#{size}
</select>
</select>
<select
id=
"selectWebPage"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto"
>
SELECT
sequence_nbr,
current_status,
failure_equipment_id,
failure_equipment,
fault_time,
fault_phenomenon,
submission_name,
submission_pid,
biz_code,
submission_time,
submission_branch,
submission_branch_id
FROM
cb_failure_details
<where>
<if
test=
"currentStatus!= null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"submissionName != null "
>
and submission_name = #{submissionName}
</if>
<if
test=
"submissionBranchId!= null "
>
and submission_branch_id = #{submissionBranchId}
</if>
<if
test=
"sequenceNbr!= null "
>
and sequence_nbr = #{ sequenceNbr}
</if>
</where>
order by submission_time DESC limit #{current},#{size}
</select>
...
@@ -257,5 +293,188 @@
...
@@ -257,5 +293,188 @@
GROUP BY cb_failure_details.current_status
GROUP BY cb_failure_details.current_status
</select>
</select>
<select
id=
"selectAudit"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.StatusDto"
>
SELECT
current_status,
count(current_status)
AS currentStatusCount
FROM
cb_failure_details d
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_audit
where
rec_user_id = #{userId}
)
<if
test=
"currentStatus!= null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"submissionPid!= null "
>
and submission_pid = #{submissionPid}
</if>
</where>
GROUP BY current_status;
</select>
<select
id=
"selectMaintain"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.StatusDto"
>
SELECT
current_status,
count(current_status)
AS currentStatusCount
FROM
cb_failure_details d
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_maintain
where
rec_user_id = #{userId}
)
<if
test=
"currentStatus!= null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"submissionPid!= null "
>
and submission_pid = #{submissionPid}
</if>
</where>
GROUP BY current_status;
</select>
<select
id=
"selectUserId"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.StatusDto"
>
SELECT
current_status,
count(current_status)
AS currentStatusCount
FROM
cb_failure_details d
WHERE
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_audit
where
audit_result = 2
)
<if
test=
"currentStatus!= null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"userId != null "
>
and submission_pid = #{userId}
</if>
</where>
GROUP BY current_status;
</select>
<select
id=
"selectYJ"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.FailureDetails"
>
SELECT
*
FROM
cb_failure_details d
WHERE
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_audit
where
) and
submission_pid = #{userId}
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_audit
where
audit_result = 2
)
<if
test=
"currentStatus != null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"userId != null "
>
and submission_pid = #{userId}
</if>
</where>
order by submission_time DESC
limit #{current},#{size};
</select>
<select
id=
"selectForAudit"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.FailureDetails"
>
SELECT
*
FROM
cb_failure_details d
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_audit
where
rec_user_id = #{userId}
)
<if
test=
"currentStatus != null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"submissionPid!= null "
>
and submission_pid = #{submissionPid}
</if>
</where>
order by submission_time DESC
limit #{current},#{size};
</select>
<select
id=
"selectForMaintain"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.FailureDetails"
>
SELECT
*
FROM
cb_failure_details d
<where>
d.sequence_nbr in
(SELECT
fault_id
FROM
cb_failure_maintain
where
rec_user_id = #{userId}
)
<if
test=
"currentStatus != null "
>
and current_status = #{currentStatus}
</if>
<if
test=
"startTime!= null and endTime != null"
>
and submission_time between #{startTime} and #{endTime}
</if>
<if
test=
"submissionPid!= null "
>
and submission_pid = #{submissionPid}
</if>
</where>
order by submission_time DESC
limit #{current},#{size};
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
f596cff7
...
@@ -421,6 +421,34 @@ GROUP BY
...
@@ -421,6 +421,34 @@ GROUP BY
ORDER BY
ORDER BY
u.sequence_nbr DESC
u.sequence_nbr DESC
</select>
</select>
<select
id=
"getUserInfo"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.UserDto"
>
SELECT
u.sequence_nbr AS personSeq,
u.biz_org_name AS personName,
'2' AS identityType,
u.biz_org_code,
f.field_code,
f.field_value
FROM
`cb_org_usr` u
LEFT JOIN cb_dynamic_form_instance f ON f.instance_id = u.sequence_nbr
<where>
<if
test=
"id != null and id != ''"
>
u.amos_org_id = #{id}
</if>
<if
test=
"type != null and type != ''"
>
AND u.biz_org_type = #{type}
</if>
<if
test=
"code != null and code != ''"
>
AND u.biz_org_code LIKE CONCAT(#{code}, '%')
</if>
<if
test=
"fieldCode != null and fieldCode != ''"
>
AND f.field_code IN ( #{fieldCode})
</if>
</where>
ORDER BY
u.sequence_nbr DESC
</select>
<!--BUG2655 导出机场人员存在已删除数据 bykongfm-->
<!--BUG2655 导出机场人员存在已删除数据 bykongfm-->
<select
id=
"exportToExcel"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.OrgUsrExcelDto"
>
<select
id=
"exportToExcel"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.OrgUsrExcelDto"
>
select
select
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AirportStandDto.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 机场机位旋转角度
*
* @author litw
* @date 2021-09-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"AirportStandDto"
,
description
=
"机场机位旋转角度"
)
public
class
AirportStandDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"机位号"
)
private
String
standCode
;
@ApiModelProperty
(
value
=
"坐标X"
)
private
String
coordinateX
;
@ApiModelProperty
(
value
=
"坐标Y"
)
private
String
coordinateY
;
@ApiModelProperty
(
value
=
"经度"
)
private
String
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
private
String
latitude
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/AirportStand.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 机场机位旋转角度
*
* @author litw
* @date 2021-09-17
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"jc_airport_stand"
)
public
class
AirportStand
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 机位号
*/
@TableField
(
"stand_code"
)
private
String
standCode
;
/**
* 坐标X
*/
@TableField
(
"coordinate_x"
)
private
String
coordinateX
;
/**
* 坐标Y
*/
@TableField
(
"coordinate_y"
)
private
String
coordinateY
;
/**
* 经度
*/
@TableField
(
"longitude"
)
private
String
longitude
;
/**
* 纬度
*/
@TableField
(
"latitude"
)
private
String
latitude
;
/**
* 更新时间
*/
@TableField
(
"update_time"
)
private
Date
updateTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/AirportStandMapper.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AirportStand
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 机场机位旋转角度 Mapper 接口
*
* @author litw
* @date 2021-09-17
*/
public
interface
AirportStandMapper
extends
BaseMapper
<
AirportStand
>
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/service/IAirportStandService.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
service
;
/**
* 机场机位旋转角度接口类
*
* @author litw
* @date 2021-09-17
*/
public
interface
IAirportStandService
{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AirportStandMapper.xml
0 → 100644
View file @
f596cff7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.jcs.api.mapper.AirportStandMapper"
>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/FailureDetailsController.java
View file @
f596cff7
...
@@ -241,12 +241,7 @@ public class FailureDetailsController extends BaseController {
...
@@ -241,12 +241,7 @@ public class FailureDetailsController extends BaseController {
@RequestParam
(
required
=
false
)
Long
submissionBranchId
,
@RequestParam
(
required
=
false
)
Long
submissionBranchId
,
@RequestParam
(
required
=
false
)
Long
sequenceNbr
)
{
@RequestParam
(
required
=
false
)
Long
sequenceNbr
)
{
Page
<
FailureDetailsDto
>
page
=
new
Page
<>();
Page
<
FailureDetailsDto
>
page
=
new
Page
<>();
if
(
current
>
0
)
{
page
.
setCurrent
(
current
*
size
);
page
.
setCurrent
((
current
-
1
)
*
size
);
}
else
{
page
.
setCurrent
(
current
);
}
page
.
setSize
(
size
);
page
.
setSize
(
size
);
ReginParams
userInfo
=
getSelectedOrgInfo
();
ReginParams
userInfo
=
getSelectedOrgInfo
();
IPage
<
FailureDetailsDto
>
failureDetailDTOsIPage
=
new
Page
<>();
IPage
<
FailureDetailsDto
>
failureDetailDTOsIPage
=
new
Page
<>();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/KeySiteController.java
View file @
f596cff7
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgUsrController.java
View file @
f596cff7
...
@@ -399,6 +399,19 @@ public class OrgUsrController extends BaseController {
...
@@ -399,6 +399,19 @@ public class OrgUsrController extends BaseController {
}
}
/**
/**
* 获取用户信息
*
* @param userId
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{userId}/userInfo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取用户信息"
,
notes
=
"获取用户信息"
)
public
ResponseModel
<
List
<
UserDto
>>
getUserInfo
(
@PathVariable
String
userId
)
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
getUserInfo
(
userId
));
}
/**
* 获取登陆人绑定的人员关系
* 获取登陆人绑定的人员关系
*
*
* @param
* @param
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureAuditServiceImpl.java
View file @
f596cff7
...
@@ -4,6 +4,7 @@ import java.util.Date;
...
@@ -4,6 +4,7 @@ import java.util.Date;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.service.IOrgUsrService
;
import
com.yeejoin.amos.boot.module.common.api.service.IOrgUsrService
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -59,7 +60,9 @@ public class FailureAuditServiceImpl extends BaseService<FailureAuditDto, Failur
...
@@ -59,7 +60,9 @@ public class FailureAuditServiceImpl extends BaseService<FailureAuditDto, Failur
model
.
setAuditTime
(
new
Date
());
model
.
setAuditTime
(
new
Date
());
model
.
setAuditDepartmentId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
model
.
setAuditDepartmentId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
model
.
setAuditor
(
userInfo
.
getUserModel
().
getRealName
());
model
.
setAuditor
(
userInfo
.
getUserModel
().
getRealName
());
model
.
setAuditDepartment
(
userInfo
.
getDepartment
().
getDepartmentName
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
model
.
setAuditDepartment
(
orgUsr
.
getBizOrgName
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureDetailsServiceImpl.java
View file @
f596cff7
...
@@ -79,10 +79,11 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -79,10 +79,11 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
public
static
Integer
SELECY_STATUS
=
7
;
public
static
Integer
SELECY_STATUS
=
7
;
public
static
Integer
SELECY_ISUBMIT
=
8
;
public
static
Integer
SELECY_ISUBMIT
=
8
;
public
static
Integer
SELECY_ACCEPT
=
9
;
public
static
Integer
SELECY_ACCEPT
=
9
;
public
String
[]
roleName
=
{
"maintenance_department_maintenance_personnel"
,
"emergency_command_staff"
,
"emergency_command_leader"
,
"maintenance_department"
};
public
String
[]
roleName
=
{
"maintenance_department_maintenance_personnel"
,
"emergency_command_staff"
,
"emergency_command_leader"
,
"maintenance_department"
};
/**
/**
* 分页查询接口
* 分页查询接口
*
* @param type 查询类型
* @param type 查询类型
* @param currentStatus 状态
* @param currentStatus 状态
* @param startTime 起始时间
* @param startTime 起始时间
...
@@ -110,50 +111,20 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -110,50 +111,20 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
if
(
type
.
equals
(
SELECY_ACCEPT
))
{
if
(
type
.
equals
(
SELECY_ACCEPT
))
{
//当角色为维修人员时
//当角色为维修人员时
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
0
]))
{
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
0
]))
{
LambdaQueryWrapper
<
FailureMaintain
>
Wrapper
=
new
LambdaQueryWrapper
<>();
List
<
FailureDetails
>
failureDetails
=
baseMapper
.
selectForMaintain
(
currentStatus
,
startTime
,
endTime
,
userId
,
userInfo
.
getUserModel
().
getUserId
(),
page
.
getCurrent
(),
page
.
getSize
());
Wrapper
.
eq
(
FailureMaintain:
:
getRecUserId
,
userInfo
.
getUserModel
().
getUserId
());
Wrapper
.
orderByDesc
(
FailureMaintain:
:
getMaintainTime
);
List
<
FailureMaintain
>
failureMaintains
=
failureMaintainService
.
getBaseMapper
().
selectList
(
Wrapper
);
List
<
FailureDetails
>
failureDetails
=
new
ArrayList
<
FailureDetails
>();
failureMaintains
.
forEach
(
e
->{
FailureDetails
result
=
getById
(
e
.
getFaultId
());
failureDetails
.
add
(
result
);
});
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
failureDetails
);
iPage
.
setRecords
(
failureDetails
);
return
iPage
;
return
iPage
;
}
else
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
2
])
&&
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
3
]))
{
}
else
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
2
])
||
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
3
]))
{
List
<
FailureDetails
>
failureDetails
=
baseMapper
.
selectForAudit
(
currentStatus
,
startTime
,
endTime
,
userId
,
userInfo
.
getUserModel
().
getUserId
(),
page
.
getCurrent
(),
page
.
getSize
());
LambdaQueryWrapper
<
FailureAudit
>
Wrapper
=
new
LambdaQueryWrapper
<>();
Wrapper
.
eq
(
FailureAudit:
:
getRecUserId
,
userInfo
.
getUserModel
().
getUserId
());
Wrapper
.
orderByDesc
(
FailureAudit:
:
getAuditTime
);
List
<
FailureAudit
>
failureAudit
=
ifailureAuditService
.
getBaseMapper
().
selectList
(
Wrapper
);
List
<
FailureDetails
>
failureDetails
=
new
ArrayList
<
FailureDetails
>();
failureAudit
.
forEach
(
e
->{
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
FailureDetails
result
=
getById
(
e
.
getFaultId
());
failureDetails
.
add
(
result
);
});
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
failureDetails
);
iPage
.
setRecords
(
failureDetails
);
return
iPage
;
return
iPage
;
}
else
{
}
else
{
LambdaQueryWrapper
<
FailureAudit
>
Wrapper
=
new
LambdaQueryWrapper
<>();
List
<
FailureDetails
>
failureDetails
=
baseMapper
.
selectYJ
(
currentStatus
,
startTime
,
endTime
,
userInfo
.
getUserModel
().
getUserId
(),
page
.
getCurrent
(),
page
.
getSize
());
Long
parentId
=
Long
.
valueOf
(
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
()));
Wrapper
.
eq
(
FailureAudit:
:
getAuditDepartmentId
,
parentId
);
Wrapper
.
eq
(
FailureAudit:
:
getAuditResult
,
AuditResultEnum
.
REFUSE
.
getCode
());
Wrapper
.
orderByDesc
(
FailureAudit:
:
getAuditTime
);
List
<
FailureAudit
>
failureAudit
=
ifailureAuditService
.
getBaseMapper
().
selectList
(
Wrapper
);
List
<
FailureDetails
>
failureDetails
=
new
ArrayList
<
FailureDetails
>();
failureAudit
.
forEach
(
e
->{
FailureDetails
result
=
getById
(
e
.
getFaultId
());
if
(
result
.
getSubmissionPid
().
equals
(
userInfo
.
getUserModel
().
getUserId
())){
failureDetails
.
add
(
result
);
}
});
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
IPage
<
FailureDetails
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
failureDetails
);
iPage
.
setRecords
(
failureDetails
);
return
iPage
;
return
iPage
;
...
@@ -168,10 +139,12 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -168,10 +139,12 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
*/
*/
public
IPage
<
FailureDetailsDto
>
queryForPageList
(
Page
<
FailureDetailsDto
>
page
,
ReginParams
userInfo
,
Long
currentStatus
,
public
IPage
<
FailureDetailsDto
>
queryForPageList
(
Page
<
FailureDetailsDto
>
page
,
ReginParams
userInfo
,
Long
currentStatus
,
String
startTime
,
String
endTime
,
String
submissionName
,
Long
submissionBranchId
,
String
startTime
,
String
endTime
,
String
submissionName
,
Long
submissionBranchId
,
Long
sequenceNbr
)
{
Long
sequenceNbr
)
{
List
<
FailureDetailsDto
>
list
=
baseMapper
.
selectWebPage
(
page
.
getCurrent
(),
page
.
getSize
(),
currentStatus
,
startTime
,
endTime
,
submissionName
,
submissionBranchId
,
sequenceNbr
);
return
queryForPage
(
page
,
""
,
false
,
currentStatus
,
startTime
,
endTime
,
submissionName
,
submissionBranchId
,
sequenceNbr
);
IPage
<
FailureDetailsDto
>
iPage
=
new
Page
<>();
iPage
.
setRecords
(
list
);
return
iPage
;
}
}
/**
/**
...
@@ -182,7 +155,7 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -182,7 +155,7 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
0
]))
{
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
0
]))
{
IPage
<
FailureDetails
>
wxIpage
=
new
Page
<
FailureDetails
>();
IPage
<
FailureDetails
>
wxIpage
=
new
Page
<
FailureDetails
>();
List
<
FailureDetails
>
list
=
baseMapper
.
selectStatusWaitWx
(
page
.
getCurrent
(),
page
.
getSize
(),
currentStatus
,
startTime
,
endTime
,
userId
);
List
<
FailureDetails
>
list
=
baseMapper
.
selectStatusWaitWx
(
page
.
getCurrent
(),
page
.
getSize
(),
currentStatus
,
startTime
,
endTime
,
userId
);
wxIpage
.
setRecords
(
list
);
wxIpage
.
setRecords
(
list
);
return
wxIpage
;
return
wxIpage
;
}
else
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
1
]))
{
}
else
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
1
]))
{
...
@@ -247,6 +220,14 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -247,6 +220,14 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
statusDtos
=
baseMapper
.
selectStatusFqp
(
currentStatus
,
startTime
,
endTime
,
Integer
.
parseInt
(
userInfo
.
getUserModel
().
getUserId
()));
statusDtos
=
baseMapper
.
selectStatusFqp
(
currentStatus
,
startTime
,
endTime
,
Integer
.
parseInt
(
userInfo
.
getUserModel
().
getUserId
()));
}
else
if
(
type
.
equals
(
SELECY_ALL
))
{
}
else
if
(
type
.
equals
(
SELECY_ALL
))
{
statusDtos
=
baseMapper
.
selectStatusCount
(
currentStatus
,
startTime
,
endTime
,
userId
);
statusDtos
=
baseMapper
.
selectStatusCount
(
currentStatus
,
startTime
,
endTime
,
userId
);
}
else
if
(
type
.
equals
(
SELECY_ACCEPT
))
{
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
2
])
||
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
3
])){
statusDtos
=
baseMapper
.
selectAudit
(
currentStatus
,
startTime
,
endTime
,
userId
,
userInfo
.
getUserModel
().
getUserId
());
}
else
if
(
userInfo
.
getRole
().
getRoleName
().
equals
(
roleName
[
0
])){
statusDtos
=
baseMapper
.
selectMaintain
(
currentStatus
,
startTime
,
endTime
,
userId
,
userInfo
.
getUserModel
().
getUserId
());
}
else
{
statusDtos
=
baseMapper
.
selectUserId
(
currentStatus
,
startTime
,
endTime
,
userInfo
.
getUserModel
().
getUserId
());
}
}
else
{
}
else
{
statusDtos
=
baseMapper
.
selectStatusLeader
(
currentStatus
,
startTime
,
endTime
,
userId
);
statusDtos
=
baseMapper
.
selectStatusLeader
(
currentStatus
,
startTime
,
endTime
,
userId
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureMaintainServiceImpl.java
View file @
f596cff7
...
@@ -6,6 +6,7 @@ import java.util.List;
...
@@ -6,6 +6,7 @@ import java.util.List;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
...
@@ -61,6 +62,10 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
...
@@ -61,6 +62,10 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
@Autowired
@Autowired
WorkflowFeignService
workflowFeignService
;
WorkflowFeignService
workflowFeignService
;
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
private
static
String
RECORE_TYPE
=
"维修记录"
;
private
static
String
RECORE_TYPE
=
"维修记录"
;
private
static
String
[]
MAINTENANCE_STATUS
=
{
"维修完成"
,
"维修中"
};
private
static
String
[]
MAINTENANCE_STATUS
=
{
"维修完成"
,
"维修中"
};
...
@@ -88,7 +93,9 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
...
@@ -88,7 +93,9 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
}
}
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getRealName
());
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getRealName
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
failureMaintainDto
.
setDepartment
(
userInfo
.
getDepartment
().
getDepartmentName
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
failureMaintainDto
.
setDepartment
(
orgUsr
.
getBizOrgName
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
this
.
createWithModel
(
failureMaintainDto
);
this
.
createWithModel
(
failureMaintainDto
);
...
@@ -135,7 +142,9 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
...
@@ -135,7 +142,9 @@ public class FailureMaintainServiceImpl extends BaseService<FailureMaintainDto,
}
}
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getUserName
());
failureMaintainDto
.
setMaintainMan
(
userInfo
.
getUserModel
().
getUserName
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
failureMaintainDto
.
setMaintainTime
(
new
Date
());
failureMaintainDto
.
setDepartment
(
userInfo
.
getDepartment
().
getDepartmentName
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
failureMaintainDto
.
setDepartment
(
orgUsr
.
getBizOrgName
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setBizId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
failureMaintainDto
.
setRecoreType
(
RECORE_TYPE
);
this
.
createWithModel
(
failureMaintainDto
);
this
.
createWithModel
(
failureMaintainDto
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureVerifyServiceImpl.java
View file @
f596cff7
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.FailureVerifyDto;
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.FailureVerifyDto;
import
com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FailureDetailsDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FailureRepairlogDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FailureRepairlogDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.FailureVerify
;
import
com.yeejoin.amos.boot.module.common.api.entity.FailureVerify
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.api.enums.AuditResultEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.AuditResultEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.FailureStatuEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.FailureStatuEnum
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FailureVerifyMapper
;
import
com.yeejoin.amos.boot.module.common.api.mapper.FailureVerifyMapper
;
...
@@ -33,7 +34,8 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
...
@@ -33,7 +34,8 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
FailureDetailsServiceImpl
failureDetailsService
;
FailureDetailsServiceImpl
failureDetailsService
;
@Autowired
@Autowired
FailureRepairlogServiceImpl
failureRepairlogService
;
FailureRepairlogServiceImpl
failureRepairlogService
;
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
@Transactional
@Transactional
public
Object
savemodel
(
FailureVerifyDto
model
,
ReginParams
userInfo
)
throws
Exception
{
public
Object
savemodel
(
FailureVerifyDto
model
,
ReginParams
userInfo
)
throws
Exception
{
...
@@ -42,7 +44,9 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
...
@@ -42,7 +44,9 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
model
.
setVerifyTime
(
new
Date
());
model
.
setVerifyTime
(
new
Date
());
model
.
setVerifyDepartmentId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
model
.
setVerifyDepartmentId
(
userInfo
.
getDepartment
().
getSequenceNbr
());
model
.
setAcceptor
(
userInfo
.
getUserModel
().
getRealName
());
model
.
setAcceptor
(
userInfo
.
getUserModel
().
getRealName
());
model
.
setVerifyDepartment
(
userInfo
.
getDepartment
().
getDepartmentName
());
String
parentId
=
iOrgUsrService
.
getParentId
(
userInfo
.
getUserModel
().
getUserId
());
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
parentId
);
model
.
setVerifyDepartment
(
orgUsr
.
getBizOrgName
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
...
@@ -79,8 +83,6 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
...
@@ -79,8 +83,6 @@ public class FailureVerifyServiceImpl extends BaseService<FailureVerifyDto, Fail
public
Boolean
updateStatus
(
FailureVerifyDto
model
,
FailureStatuEnum
status
,
ReginParams
userInfo
,
int
condition
)
throws
Exception
{
public
Boolean
updateStatus
(
FailureVerifyDto
model
,
FailureStatuEnum
status
,
ReginParams
userInfo
,
int
condition
)
throws
Exception
{
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
FailureDetailsDto
failureDetailsDto
=
failureDetailsService
.
queryBySeq
(
model
.
getFaultId
());
//当前角色部门id为应急指挥科的时候 并且同意时 不修改主表状态 依然为待验收
//当前角色部门id为维修部门的时候 修改状态
List
<
FailureVerify
>
byfaultId
=
findByfaultId
(
failureDetailsDto
.
getSequenceNbr
());
List
<
FailureVerify
>
byfaultId
=
findByfaultId
(
failureDetailsDto
.
getSequenceNbr
());
if
(
byfaultId
.
size
()
!=
0
)
{
if
(
byfaultId
.
size
()
!=
0
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
f596cff7
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AirportStandController.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AirportStand
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AirportStandServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AirportStandDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 机场机位旋转角度
*
* @author litw
* @date 2021-09-17
*/
@RestController
@Api
(
tags
=
"机场机位旋转角度Api"
)
@RequestMapping
(
value
=
"/airport-stand"
)
public
class
AirportStandController
extends
BaseController
{
@Autowired
AirportStandServiceImpl
airportStandServiceImpl
;
/**
* 根据sequenceNbr查询
*
* @param standCode 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{standCode}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据standCode查询单个机场机位旋转角度"
,
notes
=
"根据standCode查询单个机场机位旋转角度"
)
public
ResponseModel
<
AirportStandDto
>
selectOne
(
@PathVariable
String
standCode
)
{
QueryWrapper
<
AirportStand
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"stand_code"
,
standCode
);
AirportStand
airportStand
=
airportStandServiceImpl
.
getOne
(
queryWrapper
);
AirportStandDto
airportStandDto
=
new
AirportStandDto
();
BeanUtils
.
copyProperties
(
airportStand
,
airportStandDto
);
return
ResponseHelper
.
buildResponse
(
airportStandDto
);
}
}
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 @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
com.netflix.discovery.converters.Auto
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.ExcelDto
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.ExcelEnums
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataSourcesImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ExcelServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestPart
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
@@ -17,8 +19,14 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
...
@@ -17,8 +19,14 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletResponse
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Map
;
import
com.yeejoin.amos.boot.module.common.api.dto.ExcelDto
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.ExcelEnums
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataSourcesImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.ExcelServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
/**
* 导出导入
* 导出导入
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AirportStandServiceImpl.java
0 → 100644
View file @
f596cff7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AirportStand
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AirportStandMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAirportStandService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AirportStandDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 机场机位旋转角度服务实现类
*
* @author litw
* @date 2021-09-17
*/
@Service
public
class
AirportStandServiceImpl
extends
BaseService
<
AirportStandDto
,
AirportStand
,
AirportStandMapper
>
implements
IAirportStandService
{
/**
* 分页查询
*/
public
Page
<
AirportStandDto
>
queryForAirportStandPage
(
Page
<
AirportStandDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
AirportStandDto
>
queryForAirportStandList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/DataSourcesImpl.java
View file @
f596cff7
...
@@ -156,6 +156,9 @@ public class DataSourcesImpl implements DataSources {
...
@@ -156,6 +156,9 @@ public class DataSourcesImpl implements DataSources {
case
"getDutyArea"
:
case
"getDutyArea"
:
str
=
getDutyArea
();
str
=
getDutyArea
();
break
;
break
;
case
"getEquipCategory"
:
str
=
getEquipCategory
();
break
;
}
}
}
}
return
str
;
return
str
;
...
@@ -377,4 +380,48 @@ public class DataSourcesImpl implements DataSources {
...
@@ -377,4 +380,48 @@ public class DataSourcesImpl implements DataSources {
String
[]
str
=
areaList
.
toArray
(
new
String
[
buildingList
.
size
()]);
String
[]
str
=
areaList
.
toArray
(
new
String
[
buildingList
.
size
()]);
return
str
;
return
str
;
}
}
/**
* 获取设施分类// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
* @return
*/
private
String
[]
getEquipCategory
()
{
String
type
=
"1"
;
ResponseModel
<
List
<
LinkedHashMap
<
String
,
Object
>>>
response
=
equipFeignClient
.
getEquipmentCategory
(
type
);
// 筛选第一层
String
categoryCode
=
"90000000"
;
List
<
LinkedHashMap
<
String
,
Object
>>
categoryList
=
response
.
getResult
();
// 筛选第二层
String
fireCode
=
"93000000"
;
List
<
LinkedHashMap
<
String
,
Object
>>
fireList
=
Lists
.
newArrayList
();
// 筛选第三层
String
waterCode
=
"93060000"
;
List
<
LinkedHashMap
<
String
,
Object
>>
waterList
=
Lists
.
newArrayList
();
List
<
LinkedHashMap
<
String
,
Object
>>
category
=
Lists
.
newArrayList
();
List
<
String
>
resultList
=
Lists
.
newArrayList
();
for
(
LinkedHashMap
<
String
,
Object
>
t
:
categoryList
)
{
if
(
categoryCode
.
equals
(
t
.
get
(
"code"
).
toString
())){
fireList
=
(
List
<
LinkedHashMap
<
String
,
Object
>>)
t
.
get
(
"children"
);
}
}
// 筛选第二层
for
(
LinkedHashMap
<
String
,
Object
>
t
:
fireList
)
{
if
(
fireCode
.
equals
(
t
.
get
(
"code"
).
toString
())){
waterList
=
(
List
<
LinkedHashMap
<
String
,
Object
>>)
t
.
get
(
"children"
);
}
}
// 筛选第三层
for
(
LinkedHashMap
<
String
,
Object
>
t
:
waterList
)
{
if
(
waterCode
.
equals
(
t
.
get
(
"code"
).
toString
())){
category
=
(
List
<
LinkedHashMap
<
String
,
Object
>>)
t
.
get
(
"children"
);
}
}
category
.
forEach
(
t
->
{
resultList
.
add
(
t
.
get
(
"name"
)
+
"@"
+
t
.
get
(
"id"
));
});
String
[]
str
=
resultList
.
toArray
(
new
String
[
category
.
size
()]);
return
str
;
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
f596cff7
...
@@ -798,6 +798,12 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -798,6 +798,12 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
item
.
setType
(
type
[
0
]);
item
.
setType
(
type
[
0
]);
item
.
setTypeCode
(
type
[
1
]);
item
.
setTypeCode
(
type
[
1
]);
}
}
// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
if
(
item
.
getEquipCategoryName
()
!=
null
)
{
String
[]
equipCategory
=
item
.
getEquipCategoryName
().
split
(
"@"
);
item
.
setEquipCategoryName
(
equipCategory
[
0
]);
item
.
setEquipCategoryId
(
Long
.
parseLong
(
equipCategory
[
1
]));
}
item
=
Bean
.
toPo
(
getCurrentInfo
(),
item
);
item
=
Bean
.
toPo
(
getCurrentInfo
(),
item
);
waterResourceServiceImpl
.
importByExcel
(
item
);
waterResourceServiceImpl
.
importByExcel
(
item
);
});
});
...
...
amos-boot-system-jcs/src/main/resources/application.properties
View file @
f596cff7
...
@@ -74,7 +74,7 @@ jcs.company.topic.delete=jcs/company/topic/delete
...
@@ -74,7 +74,7 @@ jcs.company.topic.delete=jcs/company/topic/delete
iot.fegin.name
=
AMOS-API-IOT
iot.fegin.name
=
AMOS-API-IOT
equip.fegin.name
=
AMOS-EQUIPMANAGE
-kfm
equip.fegin.name
=
AMOS-EQUIPMANAGE
## 设备联动服务(车库门、广播、警铃)
## 设备联动服务(车库门、广播、警铃)
control.fegin.name
=
JCS-API-CONTROL
control.fegin.name
=
JCS-API-CONTROL
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
f596cff7
This diff is collapsed.
Click to expand it.
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