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
c5120222
Commit
c5120222
authored
Jul 11, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
1e8d1f0c
5c92bbac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
1195 additions
and
171 deletions
+1195
-171
DictTypeEnum.java
.../com/yeejoin/amos/boot/biz/common/enums/DictTypeEnum.java
+28
-0
CommercialDto.java
.../yeejoin/amos/boot/module/hygf/api/dto/CommercialDto.java
+39
-18
ExtendedInformationDto.java
...amos/boot/module/hygf/api/dto/ExtendedInformationDto.java
+5
-2
InformationDto.java
...yeejoin/amos/boot/module/hygf/api/dto/InformationDto.java
+7
-2
PeasantHouseholdDto.java
...in/amos/boot/module/hygf/api/dto/PeasantHouseholdDto.java
+23
-2
PeasantHouseholdDtoP.java
...n/amos/boot/module/hygf/api/dto/PeasantHouseholdDtoP.java
+12
-0
SurveyDetailsDto.java
...ejoin/amos/boot/module/hygf/api/dto/SurveyDetailsDto.java
+34
-14
SurveyInfoAllDto.java
...ejoin/amos/boot/module/hygf/api/dto/SurveyInfoAllDto.java
+26
-0
SurveyInformationDto.java
...n/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
+37
-0
UnitInfoDto.java
...om/yeejoin/amos/boot/module/hygf/api/dto/UnitInfoDto.java
+27
-0
UnitRegisterDto.java
...eejoin/amos/boot/module/hygf/api/dto/UnitRegisterDto.java
+20
-0
Commercial.java
.../yeejoin/amos/boot/module/hygf/api/entity/Commercial.java
+43
-35
ExtendedInformation.java
...amos/boot/module/hygf/api/entity/ExtendedInformation.java
+5
-3
Information.java
...yeejoin/amos/boot/module/hygf/api/entity/Information.java
+7
-5
PeasantHousehold.java
...in/amos/boot/module/hygf/api/entity/PeasantHousehold.java
+25
-5
SurveyDetails.java
...ejoin/amos/boot/module/hygf/api/entity/SurveyDetails.java
+36
-28
SurveyInformation.java
...n/amos/boot/module/hygf/api/entity/SurveyInformation.java
+1
-1
UnitInfo.java
...om/yeejoin/amos/boot/module/hygf/api/entity/UnitInfo.java
+55
-0
PrivilegeFeginService.java
...mos/boot/module/hygf/api/fegin/PrivilegeFeginService.java
+38
-0
IUnitInfoService.java
...n/amos/boot/module/hygf/api/service/IUnitInfoService.java
+7
-0
BeanDtoUtils.java
.../yeejoin/amos/boot/module/hygf/api/util/BeanDtoUtils.java
+37
-0
PeasantHouseholdController.java
...odule/hygf/biz/controller/PeasantHouseholdController.java
+95
-3
SurveyInformationController.java
...dule/hygf/biz/controller/SurveyInformationController.java
+28
-0
UnitInfoController.java
...s/boot/module/hygf/biz/controller/UnitInfoController.java
+194
-14
SurveyInformationServiceImpl.java
...e/hygf/biz/service/impl/SurveyInformationServiceImpl.java
+145
-2
UnitInfoServiceImpl.java
...oot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
+0
-0
application-dev.properties
...le-hygf-biz/src/main/resources/application-dev.properties
+7
-1
application.properties
...module-hygf-biz/src/main/resources/application.properties
+5
-0
MonitorFanIndicatorMapper.java
...ot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
+2
-0
MonitorFanIndicatorMapper.xml
...i/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
+9
-2
DemoController.java
...amos/boot/module/jxiop/biz/controller/DemoController.java
+75
-20
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+14
-0
SystemEnumDto.java
...yeejoin/amos/boot/module/jxiop/biz/dto/SystemEnumDto.java
+17
-0
SystemEnum.java
...yeejoin/amos/boot/module/jxiop/biz/entity/SystemEnum.java
+26
-0
SystemEnumMapper.java
.../amos/boot/module/jxiop/biz/mapper2/SystemEnumMapper.java
+18
-0
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+0
-0
MonitoringServiceIMQTTmpl.java
...ule/jxiop/biz/service/impl/MonitoringServiceIMQTTmpl.java
+0
-0
SystemEnumMapper.xml
...iz/src/main/resources/mapper/cluster/SystemEnumMapper.xml
+10
-0
ICtiService.java
...yeejoin/amos/boot/module/tzs/api/service/ICtiService.java
+5
-0
CtiController.java
...in/amos/boot/module/tzs/biz/controller/CtiController.java
+12
-8
CtiServiceImpl.java
...amos/boot/module/tzs/biz/service/impl/CtiServiceImpl.java
+20
-4
DispatchTaskServiceImpl.java
.../module/tzs/biz/service/impl/DispatchTaskServiceImpl.java
+1
-1
TzsAppService.java
.../amos/boot/module/tzs/biz/service/impl/TzsAppService.java
+0
-1
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/enums/DictTypeEnum.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
enums
;
import
lombok.AllArgsConstructor
;
@AllArgsConstructor
public
enum
DictTypeEnum
{
坐席技能组
(
"ZXJNZ"
,
"坐席技能组"
);
private
String
type
;
//字典类型
private
String
desc
;
//描述
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getDesc
()
{
return
desc
;
}
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/CommercialDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
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
;
import
java.util.
List
;
/**
* 商务信息
...
...
@@ -34,7 +36,8 @@ public class CommercialDto extends BaseDto {
private
String
telephone
;
@ApiModelProperty
(
value
=
"省市区"
)
private
String
projectAddress
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
projectAddress
;
@ApiModelProperty
(
value
=
"设备信息"
)
private
String
device
;
...
...
@@ -55,54 +58,72 @@ public class CommercialDto extends BaseDto {
private
String
legalEmergentTelephone
;
@ApiModelProperty
(
value
=
"结婚证文件标识"
)
private
String
marriageCredit
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
marriageCredit
;
@ApiModelProperty
(
value
=
"房产证文件标识"
)
private
String
realEstateCredit
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
realEstateCredit
;
@ApiModelProperty
(
value
=
"身份证正反面文件标识"
)
private
String
idCardCredit
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
idCardCredit
;
@ApiModelProperty
(
value
=
"户口本文件标识"
)
private
String
householdBookCredit
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
householdBookCredit
;
@ApiModelProperty
(
value
=
"手持身份证文件标识"
)
private
String
handIdCardCredit
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
handIdCardCredit
;
@ApiModelProperty
(
value
=
"踏勘照片文件标识"
)
private
String
surveyPhotosWeb
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
surveyPhotosWeb
;
@ApiModelProperty
(
value
=
"组件平面图与组串连线图文件标识"
)
private
String
formationWeb
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
formationWeb
;
@ApiModelProperty
(
value
=
"房屋所有权继承说明文件标识"
)
private
String
inheritWeb
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
inheritWeb
;
@ApiModelProperty
(
value
=
"户用光伏电站项目合作协议文件标识"
)
private
String
agreementWeb
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
agreementWeb
;
@ApiModelProperty
(
value
=
"用户手持身份证照片文件标识"
)
private
String
handIdCardLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
handIdCardLegal
;
@ApiModelProperty
(
value
=
"法人营业执照文件标识"
)
private
String
licenseLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
licenseLegal
;
@ApiModelProperty
(
value
=
"法定代理人身份证文件标识"
)
private
String
agentLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
agentLegal
;
@ApiModelProperty
(
value
=
"房产证明文件或乡镇街道土管部门房屋产权证明文件文件标识"
)
private
String
realEstateLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
realEstateLegal
;
@ApiModelProperty
(
value
=
"房屋屋顶租赁协议/户用光伏共建开发协议文件标识"
)
private
String
houseAgreementLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
houseAgreementLegal
;
@ApiModelProperty
(
value
=
"法人的企业征信报告、工商内档文件标识"
)
private
String
creditReportLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
creditReportLegal
;
@ApiModelProperty
(
value
=
"项目备案证文件标识"
)
private
String
filingsLegal
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
filingsLegal
;
@ApiModelProperty
(
value
=
" 省市区详细地址"
)
private
String
projectAddressDetail
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/ExtendedInformationDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
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
;
import
java.util.
List
;
/**
* 扩展信息
...
...
@@ -25,7 +27,8 @@ public class ExtendedInformationDto extends BaseDto {
private
String
orderDescription
;
@ApiModelProperty
(
value
=
"联系人"
)
private
String
contacts
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
contacts
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/InformationDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
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
;
import
java.util.List
;
/**
* 资料归档
...
...
@@ -28,10 +31,12 @@ public class InformationDto extends BaseDto {
private
String
archivesNumber
;
@ApiModelProperty
(
value
=
"身份证文件标识"
)
private
String
cardFile
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
cardFile
;
@ApiModelProperty
(
value
=
" 房产证文件标识"
)
private
String
houseProve
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
houseProve
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PeasantHouseholdDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
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
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
import
java.util.List
;
/**
* 农户信息
...
...
@@ -22,6 +26,9 @@ public class PeasantHouseholdDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
@ApiModelProperty
(
value
=
"农户信息编号"
)
private
String
peasantHouseholdNo
;
...
...
@@ -40,14 +47,22 @@ public class PeasantHouseholdDto extends BaseDto {
@ApiModelProperty
(
value
=
"定金"
)
private
Float
deposit
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
creationTime
;
@ApiModelProperty
(
value
=
"项目地址"
)
private
String
projectAddress
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
projectAddress
;
@ApiModelProperty
(
value
=
"常住是否相同"
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
isPermanent
;
@ApiModelProperty
(
value
=
"常住地址"
)
private
String
permanentAddress
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
permanentAddress
;
@ApiModelProperty
(
value
=
"是否勘察 0,1"
)
private
Integer
surveyOrNot
;
...
...
@@ -68,4 +83,10 @@ public class PeasantHouseholdDto extends BaseDto {
private
String
permanentAddressDetail
;
@ApiModelProperty
(
value
=
"开发人"
)
private
String
developer
;
@ApiModelProperty
(
value
=
"常住地址"
)
private
String
permanentAddressName
;
@ApiModelProperty
(
value
=
"项目地址"
)
private
String
projectAddressName
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PeasantHouseholdDtoP.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"PeasantHouseholdDto"
,
description
=
"农户信息"
)
public
class
PeasantHouseholdDtoP
{
PeasantHouseholdDto
farmerInformation
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/SurveyDetailsDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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
;
import
java.util.List
;
/**
* 勘察明细
...
...
@@ -20,12 +24,16 @@ public class SurveyDetailsDto extends BaseDto {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"勘察时间"
)
private
Date
surveyorTime
;
@ApiModelProperty
(
value
=
"房屋类型"
)
private
String
houseType
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
houseType
;
@ApiModelProperty
(
value
=
"房屋整体情况"
)
private
String
houseSituation
;
...
...
@@ -43,7 +51,7 @@ public class SurveyDetailsDto extends BaseDto {
private
Integer
houseHeight
;
@ApiModelProperty
(
value
=
"房屋偏向"
)
private
Integer
houseBias
;
private
String
houseBias
;
@ApiModelProperty
(
value
=
"房屋偏向备注"
)
private
String
houseBiasNotes
;
...
...
@@ -61,25 +69,29 @@ public class SurveyDetailsDto extends BaseDto {
private
String
locationAlt
;
@ApiModelProperty
(
value
=
"屋顶通道"
)
private
String
roofway
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
roofway
;
@ApiModelProperty
(
value
=
"屋顶通道备注"
)
private
String
roofwayNotes
;
@ApiModelProperty
(
value
=
"周边障碍物"
)
private
String
obstacle
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
obstacle
;
@ApiModelProperty
(
value
=
"周边障碍物备注"
)
private
String
obstacleNotes
;
@ApiModelProperty
(
value
=
"遮挡物"
)
private
String
screen
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
screen
;
@ApiModelProperty
(
value
=
"遮挡物备注"
)
private
String
screenNotes
;
@ApiModelProperty
(
value
=
"解决措施"
)
private
String
solutionMeasures
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
solutionMeasures
;
@ApiModelProperty
(
value
=
"房屋产权"
)
private
String
houseProperty
;
...
...
@@ -139,27 +151,35 @@ public class SurveyDetailsDto extends BaseDto {
private
String
daylightingObstruction
;
@ApiModelProperty
(
value
=
"房屋整体文件标识"
)
private
String
overallHousingSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
overallHousingSurvey
;
@ApiModelProperty
(
value
=
"房屋周边文件标识"
)
private
String
surroundingHouseSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
surroundingHouseSurvey
;
@ApiModelProperty
(
value
=
"房屋内部整体照片文件标识"
)
private
String
insideHouseSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
insideHouseSurvey
;
@ApiModelProperty
(
value
=
"电表参数文件标识"
)
private
String
electricitySurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
electricitySurvey
;
@ApiModelProperty
(
value
=
"屋顶全貌文件标识"
)
private
String
panoramaSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
panoramaSurvey
;
@ApiModelProperty
(
value
=
"屋顶平面草图文件标识"
)
private
String
planSketchSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
planSketchSurvey
;
@ApiModelProperty
(
value
=
"房屋方位角文件标识"
)
private
String
azimuthSurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
azimuthSurvey
;
@ApiModelProperty
(
value
=
"其他附件文件标识"
)
private
String
otherAccessorySurvey
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
otherAccessorySurvey
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/SurveyInfoAllDto.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"SurveyInfoAllDto"
,
description
=
"勘察信息提交"
)
public
class
SurveyInfoAllDto
{
// 资料归档
InformationDto
information
;
// 勘察信息详情
SurveyDetailsDto
surveyDetails
;
// 勘察信息
SurveyInformationDto
surveyInformation
;
// 扩展信息
ExtendedInformationDto
extendedInformation
;
// 商务信息
CommercialDto
commercial
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/SurveyInformationDto.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
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
;
import
java.util.List
;
/**
* 勘察信息
...
...
@@ -42,6 +46,7 @@ public class SurveyInformationDto extends BaseDto {
@ApiModelProperty
(
value
=
"制单人"
)
private
String
creator
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@ApiModelProperty
(
value
=
"制单时间"
)
private
Date
creatorTime
;
...
...
@@ -51,4 +56,36 @@ public class SurveyInformationDto extends BaseDto {
@ApiModelProperty
(
value
=
" 审核状态 0未审核,1审核中,2审核结束"
)
private
Integer
review
;
@ApiModelProperty
(
value
=
"来源农户编号"
)
private
String
peasantHouseholdNo
;
@ApiModelProperty
(
value
=
"业主姓名"
)
private
String
ownersName
;
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
telephone
;
@ApiModelProperty
(
value
=
"身份证号"
)
private
String
idCard
;
@ApiModelProperty
(
value
=
"邮箱"
)
private
String
mailbox
;
@ApiModelProperty
(
value
=
"项目详细地址"
)
private
String
projectAddressDetail
;
@ApiModelProperty
(
value
=
"常住详细地址"
)
private
String
permanentAddressDetail
;
@ApiModelProperty
(
value
=
"项目地址"
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
projectAddress
;
@ApiModelProperty
(
value
=
"常住地址"
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
permanentAddress
;
@ApiModelProperty
(
value
=
"常住是否相同"
)
private
List
<
String
>
isPermanent
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/UnitInfoDto.java
View file @
c5120222
...
...
@@ -48,6 +48,9 @@ public class UnitInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"管理员账户名"
)
private
String
adminLoginName
;
@ApiModelProperty
(
value
=
"管理员账户名"
)
private
String
adminUserName
;
@ApiModelProperty
(
value
=
"管理员电话"
)
private
String
adminPhone
;
...
...
@@ -66,4 +69,28 @@ public class UnitInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"角色id"
)
private
String
roleId
;
@ApiModelProperty
(
value
=
"注册地址省-市-区"
)
private
String
registerPcd
;
@ApiModelProperty
(
value
=
"工作地址省-市-区"
)
private
String
workPcd
;
@ApiModelProperty
(
value
=
"注册地址省-市-区code"
)
private
String
registerPcdCode
;
@ApiModelProperty
(
value
=
"工作地址省-市-区code"
)
private
String
workPcdCode
;
@ApiModelProperty
(
value
=
"单位类型"
)
private
String
unitType
;
@ApiModelProperty
(
value
=
"单位类型code"
)
private
String
unitTypeCode
;
@ApiModelProperty
(
value
=
"管辖机构"
)
private
String
managementUnit
;
@ApiModelProperty
(
value
=
"管辖单位id"
)
private
String
managementUnitId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/UnitRegisterDto.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* @author DELL
*/
@Data
@ApiModel
(
value
=
"UnitRegisterDto"
,
description
=
"单位注册"
)
public
class
UnitRegisterDto
{
@ApiModelProperty
(
value
=
"企业名称"
)
private
UnitInfoDto
unitInfoDto
;
@ApiModelProperty
(
value
=
"企业名称"
)
private
CommerceInfoDto
commerceInfoDto
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/Commercial.java
View file @
c5120222
...
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 商务信息
...
...
@@ -17,12 +19,18 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_commercial"
)
@TableName
(
value
=
"hygf_commercial"
,
autoResultMap
=
true
)
public
class
Commercial
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 勘察表id
*/
@TableField
(
"survey_information_id"
)
private
Long
surveyInformationId
;
/**
* 商务类型
*/
@TableField
(
"type"
)
...
...
@@ -49,8 +57,8 @@ public class Commercial extends BaseEntity {
/**
* 省市区
*/
@TableField
(
"project_address"
)
private
String
projectAddress
;
@TableField
(
value
=
"project_address"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
projectAddress
;
/**
* 设备信息
...
...
@@ -91,98 +99,98 @@ public class Commercial extends BaseEntity {
/**
* 结婚证文件标识
*/
@TableField
(
"marriage_credit"
)
private
String
marriageCredit
;
@TableField
(
value
=
"marriage_credit"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
marriageCredit
;
/**
* 房产证文件标识
*/
@TableField
(
"real_estate_credit"
)
private
String
realEstateCredit
;
@TableField
(
value
=
"real_estate_credit"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
realEstateCredit
;
/**
* 身份证正反面文件标识
*/
@TableField
(
"id_card_credit"
)
private
String
idCardCredit
;
@TableField
(
value
=
"id_card_credit"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
idCardCredit
;
/**
* 户口本文件标识
*/
@TableField
(
"household_book_credit"
)
private
String
householdBookCredit
;
@TableField
(
value
=
"household_book_credit"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
householdBookCredit
;
/**
* 手持身份证文件标识
*/
@TableField
(
"hand_id_card_credit"
)
private
String
handIdCardCredit
;
@TableField
(
value
=
"hand_id_card_credit"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
handIdCardCredit
;
/**
* 踏勘照片文件标识
*/
@TableField
(
"survey_photos_web"
)
private
String
surveyPhotosWeb
;
@TableField
(
value
=
"survey_photos_web"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
surveyPhotosWeb
;
/**
* 组件平面图与组串连线图文件标识
*/
@TableField
(
"formation_web"
)
private
String
formationWeb
;
@TableField
(
value
=
"formation_web"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
formationWeb
;
/**
* 房屋所有权继承说明文件标识
*/
@TableField
(
"inherit_web"
)
private
String
inheritWeb
;
@TableField
(
value
=
"inherit_web"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
inheritWeb
;
/**
* 户用光伏电站项目合作协议文件标识
*/
@TableField
(
"agreement_web"
)
private
String
agreementWeb
;
@TableField
(
value
=
"agreement_web"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
agreementWeb
;
/**
* 用户手持身份证照片文件标识
*/
@TableField
(
"hand_id_card_legal"
)
private
String
handIdCardLegal
;
@TableField
(
value
=
"hand_id_card_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
handIdCardLegal
;
/**
* 法人营业执照文件标识
*/
@TableField
(
"license_legal"
)
private
String
licenseLegal
;
@TableField
(
value
=
"license_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
licenseLegal
;
/**
* 法定代理人身份证文件标识
*/
@TableField
(
"agent_legal"
)
private
String
agentLegal
;
@TableField
(
value
=
"agent_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
agentLegal
;
/**
* 房产证明文件或乡镇街道土管部门房屋产权证明文件文件标识
*/
@TableField
(
"real_estate_legal"
)
private
String
realEstateLegal
;
@TableField
(
value
=
"real_estate_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
realEstateLegal
;
/**
* 房屋屋顶租赁协议/户用光伏共建开发协议文件标识
*/
@TableField
(
"house_agreement_legal"
)
private
String
houseAgreementLegal
;
@TableField
(
value
=
"house_agreement_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
houseAgreementLegal
;
/**
* 法人的企业征信报告、工商内档文件标识
*/
@TableField
(
"credit_report_legal"
)
private
String
creditReportLegal
;
@TableField
(
value
=
"credit_report_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
creditReportLegal
;
/**
* 项目备案证文件标识
*/
@TableField
(
"filings_legal"
)
private
String
filingsLegal
;
@TableField
(
value
=
"filings_legal"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
filingsLegal
;
/**
* 省市区详细地址
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/ExtendedInformation.java
View file @
c5120222
...
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 扩展信息
...
...
@@ -17,7 +19,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_extended_information"
)
@TableName
(
value
=
"hygf_extended_information"
,
autoResultMap
=
true
)
public
class
ExtendedInformation
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -31,8 +33,8 @@ public class ExtendedInformation extends BaseEntity {
/**
* 联系人
*/
@TableField
(
"contacts"
)
private
String
contacts
;
@TableField
(
value
=
"contacts"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
contacts
;
/**
* 勘察表id
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/Information.java
View file @
c5120222
...
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 资料归档
...
...
@@ -17,7 +19,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_information"
)
@TableName
(
value
=
"hygf_information"
,
autoResultMap
=
true
)
public
class
Information
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -37,14 +39,14 @@ public class Information extends BaseEntity {
/**
* 身份证文件标识
*/
@TableField
(
"card_file"
)
private
String
cardFile
;
@TableField
(
value
=
"card_file"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
cardFile
;
/**
* 房产证文件标识
*/
@TableField
(
"house_prove"
)
private
String
houseProve
;
@TableField
(
value
=
"house_prove"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
houseProve
;
/**
* 勘察表id
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PeasantHousehold.java
View file @
c5120222
...
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 农户信息
...
...
@@ -17,11 +19,17 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_peasant_household"
)
@TableName
(
value
=
"hygf_peasant_household"
,
autoResultMap
=
true
)
public
class
PeasantHousehold
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 勘察表id
*/
@TableField
(
"survey_information_id"
)
private
Long
surveyInformationId
;
/**
* 农户信息编号
*/
...
...
@@ -67,14 +75,26 @@ public class PeasantHousehold extends BaseEntity {
/**
* 项目地址
*/
@TableField
(
"project_address"
)
private
String
projectAddress
;
@TableField
(
value
=
"project_address"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
projectAddress
;
/**
* 常住地址
*/
@TableField
(
"permanent_address"
)
private
String
permanentAddress
;
@TableField
(
value
=
"permanent_address"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Integer
>
permanentAddress
;
/**
* 常住地址
*/
@TableField
(
"permanent_address_name"
)
private
String
permanentAddressName
;
/**
* 项目地址
*/
@TableField
(
"project_address_name"
)
private
String
projectAddressName
;
/**
* 是否勘察 0,1
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/SurveyDetails.java
View file @
c5120222
...
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 勘察明细
...
...
@@ -17,12 +19,18 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_survey_details"
)
@TableName
(
value
=
"hygf_survey_details"
,
autoResultMap
=
true
)
public
class
SurveyDetails
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 勘察表id
*/
@TableField
(
"survey_information_id"
)
private
Long
surveyInformationId
;
/**
* 勘察时间
*/
@TableField
(
"surveyor_time"
)
...
...
@@ -31,8 +39,8 @@ public class SurveyDetails extends BaseEntity {
/**
* 房屋类型
*/
@TableField
(
"house_type"
)
private
String
houseType
;
@TableField
(
value
=
"house_type"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
houseType
;
/**
* 房屋整体情况
...
...
@@ -68,7 +76,7 @@ public class SurveyDetails extends BaseEntity {
* 房屋偏向
*/
@TableField
(
"house_bias"
)
private
Integer
houseBias
;
private
String
houseBias
;
/**
* 房屋偏向备注
...
...
@@ -103,8 +111,8 @@ public class SurveyDetails extends BaseEntity {
/**
* 屋顶通道
*/
@TableField
(
"roofway"
)
private
String
roofway
;
@TableField
(
value
=
"roofway"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
roofway
;
/**
* 屋顶通道备注
...
...
@@ -115,8 +123,8 @@ public class SurveyDetails extends BaseEntity {
/**
* 周边障碍物
*/
@TableField
(
"obstacle"
)
private
String
obstacle
;
@TableField
(
value
=
"obstacle"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
obstacle
;
/**
* 周边障碍物备注
...
...
@@ -127,8 +135,8 @@ public class SurveyDetails extends BaseEntity {
/**
* 遮挡物
*/
@TableField
(
"screen"
)
private
String
screen
;
@TableField
(
value
=
"screen"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
screen
;
/**
* 遮挡物备注
...
...
@@ -139,8 +147,8 @@ public class SurveyDetails extends BaseEntity {
/**
* 解决措施
*/
@TableField
(
"solution_measures"
)
private
String
solutionMeasures
;
@TableField
(
value
=
"solution_measures"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
solutionMeasures
;
/**
* 房屋产权
...
...
@@ -259,49 +267,49 @@ public class SurveyDetails extends BaseEntity {
/**
* 房屋整体文件标识
*/
@TableField
(
"overall_housing_survey"
)
private
String
overallHousingSurvey
;
@TableField
(
value
=
"overall_housing_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
overallHousingSurvey
;
/**
* 房屋周边文件标识
*/
@TableField
(
"surrounding_house_survey"
)
private
String
surroundingHouseSurvey
;
@TableField
(
value
=
"surrounding_house_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
surroundingHouseSurvey
;
/**
* 房屋内部整体照片文件标识
*/
@TableField
(
"inside_house_survey"
)
private
String
insideHouseSurvey
;
@TableField
(
value
=
"inside_house_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
insideHouseSurvey
;
/**
* 电表参数文件标识
*/
@TableField
(
"electricity_survey"
)
private
String
electricitySurvey
;
@TableField
(
value
=
"electricity_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
electricitySurvey
;
/**
* 屋顶全貌文件标识
*/
@TableField
(
"panorama_survey"
)
private
String
panoramaSurvey
;
@TableField
(
value
=
"panorama_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
panoramaSurvey
;
/**
* 屋顶平面草图文件标识
*/
@TableField
(
"plan_sketch_survey"
)
private
String
planSketchSurvey
;
@TableField
(
value
=
"plan_sketch_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
planSketchSurvey
;
/**
* 房屋方位角文件标识
*/
@TableField
(
"azimuth_survey"
)
private
String
azimuthSurvey
;
@TableField
(
value
=
"azimuth_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
azimuthSurvey
;
/**
* 其他附件文件标识
*/
@TableField
(
"other_accessory_survey"
)
private
String
otherAccessorySurvey
;
@TableField
(
value
=
"other_accessory_survey"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
otherAccessorySurvey
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/SurveyInformation.java
View file @
c5120222
...
...
@@ -17,7 +17,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_survey_information"
)
@TableName
(
value
=
"hygf_survey_information"
,
autoResultMap
=
true
)
public
class
SurveyInformation
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/UnitInfo.java
View file @
c5120222
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.hygf.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
...
...
@@ -112,4 +113,58 @@ public class UnitInfo extends BaseEntity {
@TableField
(
"role_id"
)
private
String
roleId
;
/**
* 管理员账户名
*/
@TableField
(
"admin_user_name"
)
private
String
adminUserName
;
/**
* 注册地址省-市-区
*/
@TableField
(
"register_pcd"
)
private
String
registerPcd
;
/**
* 工作地址省-市-区
*/
@TableField
(
"work_Pcd"
)
private
String
workPcd
;
/**
* 注册地址省-市-区code
*/
@TableField
(
"register_pcd_code"
)
private
String
registerPcdCode
;
/**
* 工作地址省-市-区code
*/
@TableField
(
"work_pcd_code"
)
private
String
workPcdCode
;
/**
* 单位类型
*/
@TableField
(
"unit_type"
)
private
String
unitType
;
/**
* 单位类型code
*/
@TableField
(
"unit_type_code"
)
private
String
unitTypeCode
;
/**
* 管辖机构
*/
@TableField
(
"management_unit"
)
private
String
managementUnit
;
/**
* 管辖单位id
*/
@TableField
(
"management_unit_id"
)
private
String
managementUnitId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/fegin/PrivilegeFeginService.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
fegin
;
import
com.yeejoin.amos.boot.biz.common.feign.FeignConfiguration
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.VerifyCodeAuthModel
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
@FeignClient
(
value
=
"AMOS-API-PRIVILEGE"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
PrivilegeFeginService
{
@RequestMapping
(
value
=
"/privilege/v1/agencyuser/me"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
AgencyUserModel
>
getMe
();
//获取单位树
@RequestMapping
(
value
=
"/privilege/v1/company/tree"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
tree
(
@RequestHeader
(
"token"
)
String
token
,
@RequestHeader
(
"appKey"
)
String
appKey
,
@RequestHeader
(
"product"
)
String
product
);
//获取省级行政区划
@RequestMapping
(
value
=
"systemctl/v1/region/level"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
getProvince
(
@RequestParam
String
level
);
//获取行政区划树
@RequestMapping
(
value
=
"systemctl/v1/region/tree"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
getTree
();
/**
* 手机号验证码登录
*/
@RequestMapping
(
value
=
"/privilege/v1/auth/mobile/verifycode"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
mobileVerifyCode
(
@RequestBody
VerifyCodeAuthModel
model
)
throws
InnerInvokException
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/service/IUnitInfoService.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
service
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.UnitRegisterDto
;
import
java.util.Collection
;
/**
* 经销商人员信息接口类
*
...
...
@@ -9,4 +13,7 @@ package com.yeejoin.amos.boot.module.hygf.api.service;
*/
public
interface
IUnitInfoService
{
Collection
getManagementUnitTree
(
String
orgCode
);
UnitRegisterDto
registerUnit
(
UnitRegisterDto
model
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/util/BeanDtoUtils.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
util
;
import
org.springframework.beans.BeanUtils
;
public
class
BeanDtoUtils
{
/**
* Dot ,Vo ,Entity 相互转换
*
* @param source 原数据
* @param targetClass 目标类
* @param <T> 泛型类
* @return 转换返回值
*/
public
static
<
T
>
T
convert
(
Object
source
,
Class
<
T
>
targetClass
)
{
// 判断source是否为空
if
(
source
==
null
)
{
return
null
;
}
// 判断targetClass是否为空
if
(
targetClass
==
null
)
{
return
null
;
}
try
{
// 创建新的对象实例
T
target
=
targetClass
.
newInstance
();
// 把原对象数据拷贝到新对象
BeanUtils
.
copyProperties
(
source
,
target
);
// 返回新对象
return
target
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
null
;
}
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/PeasantHouseholdController.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PeasantHouseholdDtoP
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.SurveyInformationDto
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.SurveyInformationServiceImpl
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
org.apache.commons.lang3.StringUtils
;
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.ArrayList
;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.PeasantHouseholdServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -28,9 +42,17 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
@RequestMapping
(
value
=
"/peasant-household"
)
public
class
PeasantHouseholdController
extends
BaseController
{
@Autowired
SurveyInformationServiceImpl
surveyInformationServiceImpl
;
@Autowired
PeasantHouseholdServiceImpl
peasantHouseholdServiceImpl
;
@Autowired
RedisUtils
redisUtils
;
private
static
final
String
regionRedis
=
"app_region_redis"
;
/**
* 新增农户信息
*
...
...
@@ -40,8 +62,27 @@ public class PeasantHouseholdController extends BaseController {
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增农户信息"
,
notes
=
"新增农户信息"
)
public
ResponseModel
<
PeasantHouseholdDto
>
save
(
@RequestBody
PeasantHouseholdDto
model
)
{
model
=
peasantHouseholdServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
SurveyInformationDto
surveyInformationDto
=
new
SurveyInformationDto
();
surveyInformationServiceImpl
.
createWithModel
(
surveyInformationDto
);
JSONArray
regionName
=
getRegionName
();
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
// 处理地址
String
area
=
""
;
for
(
Integer
reg
:
model
.
getProjectAddress
())
for
(
RegionModel
re
:
list
)
{
if
(
re
.
getRegionCode
().
equals
(
Integer
.
valueOf
(
reg
)))
{
area
=
area
+
re
.
getRegionName
()
+
"/"
;
}
}
model
.
setProjectAddressName
(
area
.
substring
(
0
,
area
.
length
()
-
2
));
if
(
model
.
getIsPermanent
().
size
()>
0
)
{
model
.
setPermanentAddress
(
model
.
getProjectAddress
());
model
.
setPermanentAddressDetail
(
model
.
getProjectAddressDetail
());
}
model
.
setSurveyInformationId
(
surveyInformationDto
.
getSequenceNbr
());
PeasantHouseholdDto
householdDto
=
peasantHouseholdServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
householdDto
);
}
/**
...
...
@@ -55,6 +96,21 @@ public class PeasantHouseholdController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新农户信息"
,
notes
=
"根据sequenceNbr更新农户信息"
)
public
ResponseModel
<
PeasantHouseholdDto
>
updateBySequenceNbrPeasantHousehold
(
@RequestBody
PeasantHouseholdDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
JSONArray
regionName
=
getRegionName
();
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
// 处理地址
String
area
=
""
;
for
(
Integer
reg
:
model
.
getProjectAddress
())
for
(
RegionModel
re
:
list
)
{
if
(
re
.
getRegionCode
().
equals
(
Integer
.
valueOf
(
reg
)))
{
area
=
area
+
re
.
getRegionName
()
+
"/"
;
}
}
model
.
setProjectAddressName
(
area
.
substring
(
0
,
area
.
length
()
-
2
));
if
(
model
.
getIsPermanent
().
size
()>
0
)
{
model
.
setPermanentAddress
(
model
.
getProjectAddress
());
model
.
setPermanentAddressDetail
(
model
.
getProjectAddressDetail
());
}
return
ResponseHelper
.
buildResponse
(
peasantHouseholdServiceImpl
.
updateWithModel
(
model
));
}
...
...
@@ -81,7 +137,12 @@ public class PeasantHouseholdController extends BaseController {
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个农户信息"
,
notes
=
"根据sequenceNbr查询单个农户信息"
)
public
ResponseModel
<
PeasantHouseholdDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
peasantHouseholdServiceImpl
.
queryBySeq
(
sequenceNbr
));
PeasantHouseholdDto
peasantHouseholdDto
=
peasantHouseholdServiceImpl
.
queryBySeq
(
sequenceNbr
);
if
(
peasantHouseholdDto
.
getPermanentAddress
()
==
null
){
peasantHouseholdDto
.
setPermanentAddress
(
JSON
.
parseArray
(
"[]"
,
Integer
.
class
));
peasantHouseholdDto
.
setIsPermanent
(
JSON
.
parseArray
(
"[1]"
,
String
.
class
));
}
return
ResponseHelper
.
buildResponse
(
peasantHouseholdDto
);
}
/**
...
...
@@ -113,4 +174,35 @@ public class PeasantHouseholdController extends BaseController {
public
ResponseModel
<
List
<
PeasantHouseholdDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
peasantHouseholdServiceImpl
.
queryForPeasantHouseholdList
());
}
public
JSONArray
getRegionName
(){
JSONArray
jsonArray
=
new
JSONArray
();
if
(
redisUtils
.
hasKey
(
regionRedis
))
{
jsonArray
=
JSONArray
.
parseArray
(
redisUtils
.
get
(
regionRedis
).
toString
());
}
else
{
Collection
<
RegionModel
>
regionChild
=
new
ArrayList
<>();
RegionModel
regionModel1
=
new
RegionModel
();
regionChild
.
add
(
regionModel1
);
FeignClientResult
<
Collection
<
RegionModel
>>
collectionFeignClientResult
=
Systemctl
.
regionClient
.
queryForTreeParent
(
610000L
);
Collection
<
RegionModel
>
result
=
collectionFeignClientResult
.
getResult
();
for
(
RegionModel
regionModel
:
result
)
{
if
(
null
!=
regionModel
&&
null
!=
regionModel
.
getChildren
())
{
for
(
RegionModel
child
:
regionModel
.
getChildren
())
{
if
(
null
!=
child
&&
null
!=
child
.
getChildren
())
{
for
(
RegionModel
childChild
:
child
.
getChildren
())
{
jsonArray
.
add
(
childChild
);
}
child
.
setChildren
(
regionChild
);
jsonArray
.
add
(
child
);
}
}
regionModel
.
setChildren
(
regionChild
);
jsonArray
.
add
(
regionModel
);
}
}
redisUtils
.
set
(
regionRedis
,
jsonArray
);
}
return
jsonArray
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/SurveyInformationController.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.SurveyInfoAllDto
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -113,4 +114,31 @@ public class SurveyInformationController extends BaseController {
public
ResponseModel
<
List
<
SurveyInformationDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
surveyInformationServiceImpl
.
queryForSurveyInformationList
());
}
/**
* 勘察信息数据提交
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"勘察信息数据提交"
,
notes
=
"勘察信息数据提交"
)
@PostMapping
(
value
=
"/surveySubmit"
)
public
ResponseModel
<
SurveyInfoAllDto
>
surveySubmit
(
@RequestBody
SurveyInfoAllDto
surveyInfoAllDto
)
{
SurveyInfoAllDto
returnDto
=
surveyInformationServiceImpl
.
saveSurveyInfo
(
surveyInfoAllDto
);
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
/**
* 勘察信息编辑
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"勘察信息编辑"
,
notes
=
"勘察信息编辑"
)
@GetMapping
(
value
=
"/surveyQuery"
)
public
ResponseModel
<
SurveyInfoAllDto
>
surveyQuery
(
@RequestParam
String
surveyInformationId
)
{
SurveyInfoAllDto
returnDto
=
surveyInformationServiceImpl
.
querySurveyInfo
(
surveyInformationId
);
return
ResponseHelper
.
buildResponse
(
returnDto
);
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/UnitInfoController.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.UnitRegisterDto
;
import
com.yeejoin.amos.boot.module.ugp.api.constants.XJConstant
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.HttpStatus
;
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
java.util.*
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.UnitInfoServiceImpl
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
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
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -24,25 +46,28 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
* @date 2023-07-07
*/
@RestController
@Api
(
tags
=
"经销商
人员
信息Api"
)
@Api
(
tags
=
"经销商
单位
信息Api"
)
@RequestMapping
(
value
=
"/unit-info"
)
public
class
UnitInfoController
extends
BaseController
{
@Autowired
UnitInfoServiceImpl
unitInfoServiceImpl
;
/**
* 新增经销商人员信息
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增经销商人员信息"
,
notes
=
"新增经销商人员信息"
)
public
ResponseModel
<
UnitInfoDto
>
save
(
@RequestBody
UnitInfoDto
model
)
{
model
=
unitInfoServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
@Autowired
AmosRequestContext
requestContext
;
@Autowired
RedisUtils
redisUtil
;
@Value
(
"${hygf.sms.tempCode}"
)
private
String
smsTempCode
;
public
static
final
String
HYGF_USER_TEL
=
"hygf_tel_"
;
/**
* 验证码过期时间
*/
private
long
time
=
600
l
;
/**
* 根据sequenceNbr更新
...
...
@@ -113,4 +138,159 @@ public class UnitInfoController extends BaseController {
public
ResponseModel
<
List
<
UnitInfoDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
queryForUnitInfoList
());
}
/**
* 管理员身份证图片上传 无token
*
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/uploadFile"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"管理员身份证图片上传 无token"
,
notes
=
"管理员身份证图片上传 无token"
)
public
ResponseModel
<
String
>
uploadFile
(
@ApiParam
(
value
=
"文件"
,
required
=
true
)
@RequestParam
MultipartFile
file
)
{
if
(
ValidationUtil
.
isEmpty
(
file
)){
throw
new
BadRequest
(
"参数校验失败."
);
}
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
FeignClientResult
<
Map
<
String
,
String
>>
date
=
Systemctl
.
fileStorageClient
.
updateCommonFile
(
file
);
String
urlString
=
""
;
if
(
date
!=
null
)
{
Map
<
String
,
String
>
map
=
date
.
getResult
();
Iterator
<
String
>
it
=
map
.
keySet
().
iterator
();
while
(
it
.
hasNext
())
{
urlString
=
it
.
next
();
}
}
return
ResponseHelper
.
buildResponse
(
urlString
);
}
/**
* 获取组织机构树
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/region/tree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取组织机构树"
,
notes
=
"获取组织机构树"
)
public
ResponseModel
<
Collection
<
RegionModel
>>
getRegionTree
()
{
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
return
ResponseHelper
.
buildResponse
(
Systemctl
.
regionClient
.
queryForTree
(
null
).
getResult
());
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/management-unit/tree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"管辖机构树"
,
notes
=
"管辖机构树"
)
public
ResponseModel
<
Collection
>
managementUnitTree
(
@RequestParam
(
required
=
false
)
String
orgCode
)
{
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
Collection
result
=
unitInfoServiceImpl
.
getManagementUnitTree
(
orgCode
);
return
ResponseHelper
.
buildResponse
(
result
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/unitRegister"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"单位注册"
,
notes
=
"单位注册"
)
public
ResponseModel
<
UnitRegisterDto
>
save
(
@RequestBody
UnitRegisterDto
model
)
{
try
{
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setProduct
(
"AMOS_STUDIO_WEB"
);
RequestContext
.
setToken
(
requestContext
.
getToken
());
model
=
unitInfoServiceImpl
.
registerUnit
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
catch
(
Exception
e
)
{
ResponseModel
<
UnitRegisterDto
>
response
=
new
ResponseModel
<>();
HttpServletRequest
request
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
();
response
.
setResult
(
null
);
response
.
setDevMessage
(
e
.
getMessage
());
response
.
setStatus
(
HttpStatus
.
INTERNAL_SERVER_ERROR
.
value
());
response
.
setTraceId
(
RequestContext
.
getTraceId
());
response
.
setPath
(
request
.
getServletPath
());
return
response
;
}
}
/**
* 判断用户号码是否存在
*
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/hasExistPhone/{phone}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"判断用户号码是否存在"
,
notes
=
"判断用户号码是否存在"
)
public
ResponseModel
hasExistPhone
(
@PathVariable
(
value
=
"phone"
)
String
phone
)
{
try
{
return
CommonResponseUtil
.
success
(
Privilege
.
agencyUserClient
.
checkLoginId
(
phone
).
getResult
());
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"该手机号已经注册"
);
}
}
/**
* 发送手机号验证码
*
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/sendTelCode/{tel}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"发送手机号验证码"
,
notes
=
"发送手机号验证码"
)
public
ResponseModel
<
Boolean
>
sendTelCode
(
@PathVariable
(
value
=
"tel"
)
String
tel
,
@RequestParam
(
value
=
"type"
,
required
=
false
)
String
type
)
{
if
(
ValidationUtil
.
isEmpty
(
tel
))
{
throw
new
BadRequest
(
"参数校验失败."
);
}
Boolean
flag
=
false
;
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
String
code
=
this
.
getRandomCode
();
params
.
put
(
"code"
,
code
);
params
.
put
(
"mobile"
,
tel
);
params
.
put
(
"smsCode"
,
smsTempCode
);
try
{
Systemctl
.
smsClient
.
sendCommonSms
(
params
).
getResult
();
flag
=
true
;
}
catch
(
Exception
e
)
{
throw
new
BadRequest
(
"发送短信失败:"
+
e
.
getMessage
());
}
// code 保存到缓存中
redisUtil
.
set
(
HYGF_USER_TEL
+
tel
,
code
,
time
);
return
ResponseHelper
.
buildResponse
(
flag
);
}
/**
* 验证手机号验证码是否成功
*
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/verifyTelCode/{tel}/{code}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"验证手机号验证码是否成功"
,
notes
=
"验证手机号验证码是否成功"
)
public
ResponseModel
<
Boolean
>
verifyTelCode
(
@PathVariable
(
value
=
"tel"
)
String
adminTel
,
@PathVariable
(
value
=
"code"
)
String
code
)
{
Boolean
flag
=
false
;
if
(
ValidationUtil
.
isEmpty
(
adminTel
)
||
ValidationUtil
.
isEmpty
(
code
))
{
throw
new
BadRequest
(
"参数校验失败."
);
}
if
(
redisUtil
.
hasKey
(
HYGF_USER_TEL
+
adminTel
))
{
String
redisCode
=
redisUtil
.
get
(
HYGF_USER_TEL
+
adminTel
).
toString
();
if
(
code
.
equals
(
redisCode
))
{
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
}
private
String
getRandomCode
(){
String
code
=
""
;
Random
random
=
new
Random
();
for
(
int
i
=
0
;
i
<
6
;
i
++)
{
int
r
=
random
.
nextInt
(
10
);
code
=
code
+
r
;
}
return
code
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SurveyInformationServiceImpl.java
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.SurveyInformation
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.SurveyInformationMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ISurveyInformationService
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.SurveyInformationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.util.BeanDtoUtils
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
org.apache.commons.beanutils.ConvertUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.List
;
/**
...
...
@@ -17,6 +33,29 @@ import java.util.List;
*/
@Service
public
class
SurveyInformationServiceImpl
extends
BaseService
<
SurveyInformationDto
,
SurveyInformation
,
SurveyInformationMapper
>
implements
ISurveyInformationService
{
@Autowired
SurveyDetailsServiceImpl
surveyDetailsService
;
@Autowired
InformationServiceImpl
informationService
;
@Autowired
ExtendedInformationServiceImpl
extendedInformationService
;
@Autowired
CommercialServiceImpl
commercialService
;
@Autowired
PeasantHouseholdServiceImpl
peasantHouseholdServiceImpl
;
@Autowired
RedisUtils
redisUtils
;
private
static
final
String
regionRedis
=
"app_region_redis"
;
/**
* 分页查询
*/
...
...
@@ -30,4 +69,107 @@ public class SurveyInformationServiceImpl extends BaseService<SurveyInformationD
public
List
<
SurveyInformationDto
>
queryForSurveyInformationList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
SurveyInfoAllDto
saveSurveyInfo
(
SurveyInfoAllDto
surveyInfoAllDto
)
{
SurveyInformation
surveyInformation
=
BeanDtoUtils
.
convert
(
surveyInfoAllDto
.
getSurveyInformation
(),
SurveyInformation
.
class
);
surveyInformation
.
setReview
(
0
);
this
.
saveOrUpdate
(
surveyInformation
);
ExtendedInformation
extendedInformation
=
BeanDtoUtils
.
convert
(
surveyInfoAllDto
.
getExtendedInformation
(),
ExtendedInformation
.
class
);
extendedInformation
.
setSurveyInformationId
(
surveyInformation
.
getSequenceNbr
());
extendedInformationService
.
saveOrUpdate
(
extendedInformation
);
SurveyDetailsDto
oldSurveyDetails
=
surveyInfoAllDto
.
getSurveyDetails
();
SurveyDetails
surveyDetails
=
BeanDtoUtils
.
convert
(
oldSurveyDetails
,
SurveyDetails
.
class
);
surveyDetails
.
setSurveyInformationId
(
surveyInformation
.
getSequenceNbr
());
surveyDetailsService
.
saveOrUpdate
(
surveyDetails
);
CommercialDto
oldCommercial
=
surveyInfoAllDto
.
getCommercial
();
Commercial
commercial
=
BeanDtoUtils
.
convert
(
oldCommercial
,
Commercial
.
class
);
commercial
.
setSurveyInformationId
(
surveyInformation
.
getSequenceNbr
());
commercialService
.
saveOrUpdate
(
commercial
);
Information
information
=
BeanDtoUtils
.
convert
(
surveyInfoAllDto
.
getInformation
(),
Information
.
class
);
information
.
setSurveyInformationId
(
surveyInformation
.
getSequenceNbr
());
informationService
.
saveOrUpdate
(
information
);
return
surveyInfoAllDto
;
}
public
SurveyInfoAllDto
querySurveyInfo
(
String
surveyInformationId
)
{
SurveyInfoAllDto
surveyInfoAllDto
=
new
SurveyInfoAllDto
();
LambdaQueryWrapper
<
SurveyInformation
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SurveyInformation:
:
getSequenceNbr
,
surveyInformationId
);
SurveyInformation
surveyInformation
=
this
.
baseMapper
.
selectOne
(
queryWrapper
);
surveyInfoAllDto
.
setSurveyInformation
(
BeanDtoUtils
.
convert
(
surveyInformation
,
SurveyInformationDto
.
class
));
QueryWrapper
<
PeasantHousehold
>
peasantHouseholdQueryWrapper
=
new
QueryWrapper
<>();
peasantHouseholdQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
PeasantHousehold
peasantHousehold
=
peasantHouseholdServiceImpl
.
getBaseMapper
().
selectOne
(
peasantHouseholdQueryWrapper
);
BeanUtils
.
copyProperties
(
peasantHousehold
,
surveyInfoAllDto
.
getSurveyInformation
());
if
(
peasantHousehold
.
getPermanentAddress
()
==
null
){
surveyInfoAllDto
.
getSurveyInformation
().
setPermanentAddress
(
JSON
.
parseArray
(
"[]"
,
Integer
.
class
));
surveyInfoAllDto
.
getSurveyInformation
().
setIsPermanent
(
JSON
.
parseArray
(
"[1]"
,
String
.
class
));
}
surveyInfoAllDto
.
getSurveyInformation
().
setSequenceNbr
(
surveyInformation
.
getSequenceNbr
());
QueryWrapper
<
SurveyDetails
>
surveyDetailsQueryWrapper
=
new
QueryWrapper
<>();
surveyDetailsQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
SurveyDetails
surveyDetails
=
surveyDetailsService
.
getBaseMapper
().
selectOne
(
surveyDetailsQueryWrapper
);
surveyInfoAllDto
.
setSurveyDetails
(
BeanDtoUtils
.
convert
(
surveyDetails
,
SurveyDetailsDto
.
class
));
QueryWrapper
<
Information
>
informationQueryWrapper
=
new
QueryWrapper
<>();
informationQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
Information
information
=
informationService
.
getBaseMapper
().
selectOne
(
informationQueryWrapper
);
surveyInfoAllDto
.
setInformation
(
BeanDtoUtils
.
convert
(
information
,
InformationDto
.
class
));
QueryWrapper
<
Commercial
>
commercialQueryWrapper
=
new
QueryWrapper
<>();
commercialQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
Commercial
commercial
=
commercialService
.
getBaseMapper
().
selectOne
(
commercialQueryWrapper
);
surveyInfoAllDto
.
setCommercial
(
BeanDtoUtils
.
convert
(
commercial
,
CommercialDto
.
class
));
QueryWrapper
<
ExtendedInformation
>
extendedInformationQueryWrapper
=
new
QueryWrapper
<>();
extendedInformationQueryWrapper
.
eq
(
"survey_information_id"
,
surveyInformationId
);
ExtendedInformation
extendedInformation
=
extendedInformationService
.
getBaseMapper
().
selectOne
(
extendedInformationQueryWrapper
);
surveyInfoAllDto
.
setExtendedInformation
(
BeanDtoUtils
.
convert
(
extendedInformation
,
ExtendedInformationDto
.
class
));
return
surveyInfoAllDto
;
}
public
JSONArray
getRegionName
(){
JSONArray
jsonArray
=
new
JSONArray
();
if
(
redisUtils
.
hasKey
(
regionRedis
))
{
jsonArray
=
JSONArray
.
parseArray
(
redisUtils
.
get
(
regionRedis
).
toString
());
}
else
{
Collection
<
RegionModel
>
regionChild
=
new
ArrayList
<>();
RegionModel
regionModel1
=
new
RegionModel
();
regionChild
.
add
(
regionModel1
);
FeignClientResult
<
Collection
<
RegionModel
>>
collectionFeignClientResult
=
Systemctl
.
regionClient
.
queryForTreeParent
(
610000L
);
Collection
<
RegionModel
>
result
=
collectionFeignClientResult
.
getResult
();
for
(
RegionModel
regionModel
:
result
)
{
for
(
RegionModel
child
:
regionModel
.
getChildren
())
{
for
(
RegionModel
childChild
:
child
.
getChildren
())
{
jsonArray
.
add
(
childChild
);
}
child
.
setChildren
(
regionChild
);
jsonArray
.
add
(
child
);
}
regionModel
.
setChildren
(
regionChild
);
jsonArray
.
add
(
regionModel
);
}
redisUtils
.
set
(
regionRedis
,
jsonArray
);
}
return
jsonArray
;
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/UnitInfoServiceImpl.java
View file @
c5120222
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application-dev.properties
View file @
c5120222
## DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.10.220:3306/
production
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://172.16.10.220:3306/
hygf_database
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
Yeejoin@2020
## eureka properties:
...
...
@@ -85,3 +85,9 @@ spring.activemq.user=admin
spring.activemq.password
=
admin
spring.jms.pub-sub-domain
=
false
myqueue
=
amos.privilege.v1.JXIOP.AQSC_FDGL.userBusiness
regulator.unit.code
=
86*258
# Ӧcode
dealer.appcode
=
studio_normalapp_5133538
hygf.sms.tempCode
=
SMS_TZS_0001
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/resources/application.properties
View file @
c5120222
...
...
@@ -60,3 +60,8 @@ spring.http.encoding.force=true
privilege.fegin.name
=
AMOS-API-PRIVILEGE
feign.client.config.default.connect-timeout
=
20000
feign.client.config.default.read-timeout
=
20000
amos.system.user.user-name
=
hygf_admin
amos.system.user.password
=
a1234567
amos.system.user.product
=
AMOS_STUDIO_WEB
amos.system.user.app-key
=
AMOS_STUDIO
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
View file @
c5120222
...
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanIndicator;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
* @description:
...
...
@@ -33,4 +34,5 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
Object
getIndicatoralueTotal
(
String
gateway
,
String
indicator
);
List
<
Map
<
String
,
String
>>
getFanConfigPower
(
@Param
(
"gatewayId"
)
String
gatewayId
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
View file @
c5120222
...
...
@@ -79,6 +79,13 @@
indicator like concat('%',#{indicator},'%')
</select>
<select
id=
"getFanConfigPower"
resultType=
"java.util.Map"
>
select
sequence_nbr as id,
equipment_number as equipmentNumber,
equipment_specific_name as equipmentSpecificName,
gateway_id as gatewayId
from fan_config_power
where gateway_id = #{gatewayId}
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DemoController.java
View file @
c5120222
...
...
@@ -23,6 +23,7 @@ import io.swagger.annotations.ApiOperation;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
...
@@ -70,58 +71,60 @@ public class DemoController extends BaseController {
public
StationBasic
demoTest
()
{
return
stationBasicServiceimpl
.
getById
(
1660231556607774721L
);
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"demo测试中间库"
)
@GetMapping
(
"/test1"
)
public
List
<
Test
>
demoTest1
()
{
return
testServiceimpl
.
getList
();
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"demo测试influxdb"
)
@GetMapping
(
"/test3"
)
public
void
demoTest2
()
{
String
sql
=
"SELECT createdTime ,gatewayId,address,valueLabel FROM \"iot_data\" WHERE equipmentSpecificName=~/.*27风机.*/ and gatewayId='1668801435891929089' GROUP BY equipmentIndex ORDER BY time desc LIMIT 600"
;
List
<
IndexDto
>
list
=
influxDButils
.
getListData
(
sql
,
IndexDto
.
class
);
List
<
IndexDto
>
list
=
influxDButils
.
getListData
(
sql
,
IndexDto
.
class
);
System
.
out
.
println
(
list
.
size
());
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"
测试获取风速平均值
"
)
@ApiOperation
(
value
=
"
初始化风机
"
)
@GetMapping
(
"/test4"
)
public
void
demoTest3
()
{
// Object o=this.monitorFanIndicatorImpl.getIndicatoralueAvage("1668801435891929089","60秒平均风速");
// System.out.println(o.toString());
QueryWrapper
<
MonitorFanIndicator
>
QueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
.
eq
(
"gateway"
,
"1668801435891929089"
);
long
DATE
=
new
Date
().
getTime
();
QueryWrapper
<
MonitorFanIndicator
>
QueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
.
eq
(
"gateway"
,
"1668801435891929089"
);
long
DATE
=
new
Date
().
getTime
();
System
.
out
.
println
(
DATE
);
List
<
MonitorFanIndicator
>
list
=
monitorFanIndicatorregionMapper
.
selectList
(
QueryWrapper
);
List
<
MonitorFanIndicator
>
list
=
monitorFanIndicatorregionMapper
.
selectList
(
QueryWrapper
);
for
(
MonitorFanIndicator
monitorFanIndicator
:
list
)
{
Map
<
String
,
String
>
tag
=
new
HashMap
<>();
Map
<
String
,
Object
>
maps2
=
new
HashMap
<>();
tag
.
put
(
"address"
,
monitorFanIndicator
.
getIndexAddress
()
);
tag
.
put
(
"address"
,
monitorFanIndicator
.
getIndexAddress
()
);
tag
.
put
(
"dataType"
,
monitorFanIndicator
.
getDataType
());
tag
.
put
(
"equipmentSpecificName"
,
monitorFanIndicator
.
getFanCode
()
);
tag
.
put
(
"equipmentsIdx"
,
monitorFanIndicator
.
getAddressGateway
()
);
tag
.
put
(
"equipmentSpecificName"
,
monitorFanIndicator
.
getFanCode
()
);
tag
.
put
(
"equipmentsIdx"
,
monitorFanIndicator
.
getAddressGateway
()
);
tag
.
put
(
"gatewayId"
,
monitorFanIndicator
.
getGateway
());
tag
.
put
(
"isAlarm"
,
monitorFanIndicator
.
getIsAlarm
());
maps2
.
put
(
"createdTime"
,
"2023-07-05 18:30:26"
);
maps2
.
put
(
"unit"
,
monitorFanIndicator
.
getUnit
());
maps2
.
put
(
"value"
,
""
);
maps2
.
put
(
"valueLabel"
,
""
);
maps2
.
put
(
"traceId"
,
""
);
maps2
.
put
(
"equipmentIndexName"
,
monitorFanIndicator
.
getIndicator
());
maps2
.
put
(
"equipmentNumber"
,
monitorFanIndicator
.
getEquipmentNumber
());
//
maps2.put("createdTime", "2023-07-05 18:30:26");
//
maps2.put("unit", monitorFanIndicator.getUnit());
//
maps2.put("value", "");
//
maps2.put("valueLabel","" );
//
maps2.put("traceId", "");
//
maps2.put("equipmentIndexName", monitorFanIndicator.getIndicator());
//
maps2.put("equipmentNumber", monitorFanIndicator.getEquipmentNumber());
maps2
.
put
(
"frontModule"
,
monitorFanIndicator
.
getFrontModule
());
maps2
.
put
(
"systemType"
,
monitorFanIndicator
.
getSystemType
());
influxDbConnection
.
insert
(
"indicators_"
+
monitorFanIndicator
.
getGateway
(),
tag
,
maps2
,
1688558007051L
,
TimeUnit
.
MILLISECONDS
);
influxDbConnection
.
insert
(
"indicators_"
+
monitorFanIndicator
.
getGateway
(),
tag
,
maps2
,
1688558007051L
,
TimeUnit
.
MILLISECONDS
);
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -129,8 +132,8 @@ public class DemoController extends BaseController {
@GetMapping
(
"/test5"
)
public
void
demoTest4
()
{
HashMap
<
String
,
String
>
hashMap
=
new
HashMap
<>();
hashMap
.
put
(
"test"
,
String
.
valueOf
(
Math
.
random
()
*
1000
));
hashMap
.
put
(
"test1"
,
String
.
valueOf
(
Math
.
random
()
*
100
));
hashMap
.
put
(
"test"
,
String
.
valueOf
(
Math
.
random
()
*
1000
));
hashMap
.
put
(
"test1"
,
String
.
valueOf
(
Math
.
random
()
*
100
));
try
{
emqKeeper
.
getMqttClient
().
publish
(
"test_topic"
,
JSON
.
toJSON
(
hashMap
).
toString
().
getBytes
(
"UTF-8"
),
1
,
true
);
emqKeeper
.
getMqttClient
().
publish
(
"test_topic1"
,
JSON
.
toJSON
(
hashMap
).
toString
().
getBytes
(
"UTF-8"
),
1
,
true
);
...
...
@@ -140,5 +143,57 @@ public class DemoController extends BaseController {
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"初始化升压站"
)
@GetMapping
(
"/test6"
)
public
void
demoTest5
()
{
// Object o=this.monitorFanIndicatorImpl.getIndicatoralueAvage("1668801435891929089","60秒平均风速");
// System.out.println(o.toString());
QueryWrapper
<
MonitorFanIndicator
>
QueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
.
eq
(
"gateway"
,
"1668801570352926721"
);
long
DATE
=
new
Date
().
getTime
();
System
.
out
.
println
(
DATE
);
List
<
MonitorFanIndicator
>
list
=
monitorFanIndicatorregionMapper
.
selectList
(
QueryWrapper
);
for
(
MonitorFanIndicator
monitorFanIndicator
:
list
)
{
Map
<
String
,
String
>
tag
=
new
HashMap
<>();
Map
<
String
,
Object
>
maps2
=
new
HashMap
<>();
tag
.
put
(
"address"
,
monitorFanIndicator
.
getIndexAddress
());
tag
.
put
(
"dataType"
,
""
);
if
(!
ObjectUtils
.
isEmpty
(
monitorFanIndicator
.
getDataType
()))
{
tag
.
put
(
"dataType"
,
monitorFanIndicator
.
getDataType
());
}
tag
.
put
(
"equipmentSpecificName"
,
monitorFanIndicator
.
getFanCode
());
tag
.
put
(
"equipmentsIdx"
,
monitorFanIndicator
.
getAddressGateway
());
tag
.
put
(
"gatewayId"
,
monitorFanIndicator
.
getGateway
());
tag
.
put
(
"isAlarm"
,
monitorFanIndicator
.
getIsAlarm
());
maps2
.
put
(
"createdTime"
,
"2023-07-05 18:30:26"
);
maps2
.
put
(
"unit"
,
""
);
maps2
.
put
(
"value"
,
""
);
maps2
.
put
(
"valueLabel"
,
""
);
maps2
.
put
(
"traceId"
,
""
);
maps2
.
put
(
"equipmentIndexName"
,
monitorFanIndicator
.
getIndicator
());
maps2
.
put
(
"equipmentNumber"
,
""
);
maps2
.
put
(
"frontModule"
,
""
);
maps2
.
put
(
"systemType"
,
""
);
//升压站的字段显示名称
maps2
.
put
(
"displayName"
,
""
);
if
(!
ObjectUtils
.
isEmpty
(
monitorFanIndicator
.
getFrontModule
()))
{
maps2
.
put
(
"frontModule"
,
monitorFanIndicator
.
getFrontModule
());
}
if
(!
ObjectUtils
.
isEmpty
(
monitorFanIndicator
.
getSystemType
()))
{
maps2
.
put
(
"systemType"
,
monitorFanIndicator
.
getSystemType
());
}
if
(!
ObjectUtils
.
isEmpty
(
monitorFanIndicator
.
getSystemType
()))
{
maps2
.
put
(
"unit"
,
monitorFanIndicator
.
getUnit
());
}
influxDbConnection
.
insert
(
"indicators_"
+
monitorFanIndicator
.
getGateway
(),
tag
,
maps2
,
1688558007051L
,
TimeUnit
.
MILLISECONDS
);
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
c5120222
...
...
@@ -234,5 +234,19 @@ public class MonitorFanIdxController extends BaseController {
return
ResponseHelper
.
buildResponse
(
detailsWindSpeed
);
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"状态监控"
)
@GetMapping
(
"/statusMonitoring"
)
public
ResponseModel
<
IPage
<
Map
<
String
,
Object
>>>
getStatusMonitoring
(
@RequestParam
(
value
=
"stationId"
,
required
=
true
)
String
stationId
,
String
equipNum
,
String
systemType
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
List
<
Map
<
String
,
Object
>>
statusMonitoring
=
monitorFanIndicator
.
getStatusMonitoring
(
gatewayId
,
equipNum
,
systemType
);
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
result
.
setRecords
(
statusMonitoring
);
result
.
setCurrent
(
1
);
result
.
setTotal
(
statusMonitoring
.
size
());
return
ResponseHelper
.
buildResponse
(
result
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/dto/SystemEnumDto.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
@Data
public
class
SystemEnumDto
{
private
Long
sequenceNumber
;
private
String
type
;
private
String
syetemName
;
private
String
code
;
private
String
enumDesc
;
private
String
eunmValue
;
private
String
gatewayId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/SystemEnum.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"system_enum"
)
public
class
SystemEnum
{
@TableField
(
"sequence_nbr"
)
private
Long
sequenceNumber
;
@TableField
(
"type"
)
private
String
type
;
@TableField
(
"system_name"
)
private
String
syetemName
;
@TableField
(
"code"
)
private
String
code
;
@TableField
(
"enum_desc"
)
private
String
enumDesc
;
@TableField
(
"eunm_value"
)
private
String
eunmValue
;
@TableField
(
"gatewayId"
)
private
String
gatewayId
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/mapper2/SystemEnumMapper.java
0 → 100644
View file @
c5120222
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
mapper2
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.SystemEnumDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.SystemEnum
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.TemporaryData
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
import
java.util.Map
;
public
interface
SystemEnumMapper
extends
BaseMapper
<
SystemEnum
>
{
List
<
SystemEnumDto
>
getStatusMonitoring
(
String
type
,
String
systemName
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
c5120222
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitoringServiceIMQTTmpl.java
View file @
c5120222
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/resources/mapper/cluster/SystemEnumMapper.xml
0 → 100644
View file @
c5120222
<?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.jxiop.biz.mapper2.SystemEnumMapper"
>
<select
id=
"getStatusMonitoring"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.dto.SystemEnumDto"
>
SELECT * FROM `system_enum` WHERE type = #{type} and system_name = #{systemName}
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/ICtiService.java
View file @
c5120222
...
...
@@ -44,4 +44,9 @@ public interface ICtiService {
* @return
*/
Map
<
Object
,
Object
>
getUserStatus
();
/**
* 根据坐席配置获取主叫号码
*/
String
getCallPhone
();
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/CtiController.java
View file @
c5120222
...
...
@@ -3,12 +3,9 @@ package com.yeejoin.amos.boot.module.tzs.biz.controller;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.CtiDto
;
import
com.yeejoin.amos.boot.module.tzs.api.service.ICtiService
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.HttpUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -25,11 +22,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
java.security.MessageDigest
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
...
...
@@ -109,5 +102,16 @@ public class CtiController extends BaseController {
return
ResponseHelper
.
buildResponse
(
recordInfo
);
}
/**
* 获取坐席技能组对应主叫号码信息
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/callPhone"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取坐席技能组对应主叫号码信息"
,
notes
=
"获取坐席技能组对应主叫号码信息"
)
public
ResponseModel
<
String
>
getCallPhone
()
{
String
callPhone
=
ctiService
.
getCallPhone
();
return
ResponseHelper
.
buildResponse
(
callPhone
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/CtiServiceImpl.java
View file @
c5120222
...
...
@@ -4,6 +4,9 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.enums.DictTypeEnum
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsCitInfo
;
...
...
@@ -40,6 +43,9 @@ public class CtiServiceImpl implements ICtiService {
@Autowired
TzsCitInfoServiceImpl
ctiInfoService
;
@Autowired
DataDictionaryServiceImpl
dictionaryService
;
/**
* token 过期时间, cti 系统为7200 ,tzs 系统小于7200 防止获取到无效token
*/
...
...
@@ -229,8 +235,17 @@ public class CtiServiceImpl implements ICtiService {
return
encryptStr
;
}
@Override
public
String
getCallPhone
()
{
AgencyUserModel
me
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
LambdaQueryWrapper
<
TzsCitInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
TzsCitInfo:
:
getCtiUserId
,
me
.
getUserId
());
TzsCitInfo
ctiInfo
=
ctiInfoService
.
getOne
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
ctiInfo
))
{
String
groupCode
=
ctiInfo
.
getGid
().
split
(
","
)[
0
];
DataDictionary
dataDictionary
=
dictionaryService
.
getByCode
(
groupCode
,
DictTypeEnum
.
坐席技能组
.
getType
());
return
dataDictionary
.
getName
();
}
return
""
;
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/DispatchTaskServiceImpl.java
View file @
c5120222
...
...
@@ -188,7 +188,7 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
if
(!
ValidationUtil
.
isEmpty
(
elevator
.
getUseSiteCategory
()))
{
String
categoryCode
=
elevator
.
getUseSiteCategory
();
DataDictionary
categoryDict
=
iDataDictionaryService
.
getByCode
(
categoryCode
,
"USE_SITE_CATEGORY"
);
useSiteCategory
=
categoryDict
.
getName
();
useSiteCategory
=
ValidationUtil
.
isEmpty
(
categoryDict
)
?
""
:
categoryDict
.
getName
();
}
String
useUnit
=
elevator
.
getUseUnit
();
content
=
content
.
replace
(
"$call_time"
,
createTime
).
replace
(
"$address"
,
address
).
replace
(
"$rescue_code"
,
rescueCode
).
replace
(
"$use_site_category"
,
useSiteCategory
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzsAppService.java
View file @
c5120222
...
...
@@ -33,7 +33,6 @@ import com.yeejoin.amos.feign.systemctl.Systemctl;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
liquibase.pro.packaged.O
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
...
...
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