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
9c605f0c
Commit
9c605f0c
authored
Sep 04, 2023
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、96333多个坐席绑定一个话机
2、小程序微信扫一扫修改
parent
0d0cb1f9
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
334 additions
and
276 deletions
+334
-276
TzsCitInfoServiceImpl.java
...dule/elevator/biz/service/impl/TzsCitInfoServiceImpl.java
+6
-6
CylinderEquBaseInfoForWXModel.java
...oot/module/app/api/dto/CylinderEquBaseInfoForWXModel.java
+22
-0
ElevatorBaseInfoForWXModel.java
...s/boot/module/app/api/dto/ElevatorBaseInfoForWXModel.java
+1
-16
EquBaseInfoForWXModel.java
...n/amos/boot/module/app/api/dto/EquBaseInfoForWXModel.java
+27
-0
OtherEquBaseInfoForWXModel.java
...s/boot/module/app/api/dto/OtherEquBaseInfoForWXModel.java
+1
-20
IdxFeignService.java
...n/amos/boot/module/app/flc/api/feign/IdxFeignService.java
+2
-1
TzsAppService.java
.../amos/boot/module/app/biz/service/impl/TzsAppService.java
+275
-233
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/TzsCitInfoServiceImpl.java
View file @
9c605f0c
...
@@ -88,12 +88,12 @@ public class TzsCitInfoServiceImpl extends BaseService<TzsCitInfoDto, TzsCitInfo
...
@@ -88,12 +88,12 @@ public class TzsCitInfoServiceImpl extends BaseService<TzsCitInfoDto, TzsCitInfo
return
massage
;
return
massage
;
}
}
}
}
if
(!
extphone
.
equals
(
tzsCitInfo
.
getExtphone
()))
{
//
if(!extphone.equals(tzsCitInfo.getExtphone())) {
if
(!
ValidationUtil
.
isEmpty
(
this
.
list
(
new
LambdaQueryWrapper
<
TzsCitInfo
>().
eq
(
TzsCitInfo:
:
getExtphone
,
tzsCitInfo
.
getExtphone
()))))
{
//
if (!ValidationUtil.isEmpty(this.list(new LambdaQueryWrapper<TzsCitInfo>().eq(TzsCitInfo::getExtphone, tzsCitInfo.getExtphone())))) {
massage
=
"登录坐席参数extphone已存在,不可重复添加!"
;
//
massage = "登录坐席参数extphone已存在,不可重复添加!";
return
massage
;
//
return massage;
}
//
}
}
//
}
//保存数据
//保存数据
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getCtiUserId
()))
{
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getCtiUserId
()))
{
...
...
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/api/dto/CylinderEquBaseInfoForWXModel.java
0 → 100644
View file @
9c605f0c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
app
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"OtherEquBaseInfoForWXModel"
,
description
=
""
)
public
class
CylinderEquBaseInfoForWXModel
extends
EquipTechParamBoilerModel
{
@ApiModelProperty
(
value
=
"气瓶充装介M质"
)
private
String
fillingMedium
;
@ApiModelProperty
(
value
=
"充装量"
)
private
String
fillingCapacity
;
@ApiModelProperty
(
value
=
"最近一次充装时间"
)
private
String
lastFillingTime
;
@ApiModelProperty
(
value
=
"使用期限"
)
private
String
termOfUse
;
}
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/api/dto/ElevatorBaseInfoForWXModel.java
View file @
9c605f0c
...
@@ -6,32 +6,17 @@ import lombok.Data;
...
@@ -6,32 +6,17 @@ import lombok.Data;
@Data
@Data
@ApiModel
(
value
=
"ElevatorBaseInfoForWXModel"
,
description
=
""
)
@ApiModel
(
value
=
"ElevatorBaseInfoForWXModel"
,
description
=
""
)
public
class
ElevatorBaseInfoForWXModel
{
public
class
ElevatorBaseInfoForWXModel
extends
EquBaseInfoForWXModel
{
@ApiModelProperty
(
value
=
"电梯识别码"
)
@ApiModelProperty
(
value
=
"电梯识别码"
)
private
String
code96333
;
private
String
code96333
;
@ApiModelProperty
(
value
=
"设备代码"
)
private
String
equCode
;
@ApiModelProperty
(
value
=
"使用登记证编号"
)
private
String
useOrgCode
;
@ApiModelProperty
(
value
=
"设备类别"
)
private
String
equCategory
;
@ApiModelProperty
(
value
=
"制造单位名"
)
@ApiModelProperty
(
value
=
"制造单位名"
)
private
String
produceUnitName
;
private
String
produceUnitName
;
@ApiModelProperty
(
value
=
"出厂编号"
)
@ApiModelProperty
(
value
=
"出厂编号"
)
private
String
factoryNum
;
private
String
factoryNum
;
@ApiModelProperty
(
value
=
"所属区域"
)
private
String
area
;
@ApiModelProperty
(
value
=
"使用地址"
)
@ApiModelProperty
(
value
=
"使用地址"
)
private
String
address
;
private
String
address
;
@ApiModelProperty
(
value
=
"单位内编号"
)
private
String
intraUnitNumber
;
}
}
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/api/dto/EquBaseInfoForWXModel.java
0 → 100644
View file @
9c605f0c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
app
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"EquBaseInfoForWXModel"
,
description
=
""
)
public
class
EquBaseInfoForWXModel
{
@ApiModelProperty
(
value
=
"设备代码"
)
private
String
equCode
;
@ApiModelProperty
(
value
=
"使用登记证编号"
)
private
String
useOrgCode
;
@ApiModelProperty
(
value
=
"设备类别"
)
private
String
equCategory
;
@ApiModelProperty
(
value
=
"所属区域"
)
private
String
county
;
@ApiModelProperty
(
value
=
"单位内编号"
)
private
String
intraUnitNumber
;
}
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/api/dto/OtherEquBaseInfoForWXModel.java
View file @
9c605f0c
...
@@ -6,30 +6,11 @@ import lombok.Data;
...
@@ -6,30 +6,11 @@ import lombok.Data;
@Data
@Data
@ApiModel
(
value
=
"OtherEquBaseInfoForWXModel"
,
description
=
""
)
@ApiModel
(
value
=
"OtherEquBaseInfoForWXModel"
,
description
=
""
)
public
class
OtherEquBaseInfoForWXModel
{
public
class
OtherEquBaseInfoForWXModel
extends
EquBaseInfoForWXModel
{
@ApiModelProperty
(
value
=
"设备代码"
)
private
String
equCode
;
@ApiModelProperty
(
value
=
"使用登记证编号"
)
private
String
useOrgCode
;
@ApiModelProperty
(
value
=
"设备类别"
)
private
String
equCategory
;
@ApiModelProperty
(
value
=
"制造单位名"
)
@ApiModelProperty
(
value
=
"制造单位名"
)
private
String
produceUnitName
;
private
String
produceUnitName
;
@ApiModelProperty
(
value
=
"出厂编号"
)
@ApiModelProperty
(
value
=
"出厂编号"
)
private
String
factoryNum
;
private
String
factoryNum
;
@ApiModelProperty
(
value
=
"所属区域"
)
private
String
area
;
@ApiModelProperty
(
value
=
"使用地址"
)
private
String
address
;
@ApiModelProperty
(
value
=
"单位内编号"
)
private
String
intraUnitNumber
;
}
}
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/flc/api/feign/IdxFeignService.java
View file @
9c605f0c
...
@@ -11,7 +11,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
...
@@ -11,7 +11,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@FeignClient
(
value
=
"AMOS-IDX"
,
path
=
"idx"
,
configuration
=
{
FeignConfiguration
.
class
})
@FeignClient
(
value
=
"AMOS-IDX"
,
path
=
"idx"
,
configuration
=
{
FeignConfiguration
.
class
})
public
interface
IdxFeignService
{
public
interface
IdxFeignService
{
@RequestMapping
(
"/dimensionTable/getTreeChildIds"
)
@RequestMapping
(
"/dimensionTable/getTreeChildIds"
)
...
...
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/service/impl/TzsAppService.java
View file @
9c605f0c
...
@@ -8,14 +8,57 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -8,14 +8,57 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.TableInfoHelper
;
import
com.baomidou.mybatisplus.core.metadata.TableInfoHelper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.app.api.common.CommonException
;
import
com.yeejoin.amos.boot.module.app.api.common.CommonException
;
import
com.yeejoin.amos.boot.module.app.api.common.MobileLoginParam
;
import
com.yeejoin.amos.boot.module.app.api.common.MobileLoginParam
;
import
com.yeejoin.amos.boot.module.app.api.dto.*
;
import
com.yeejoin.amos.boot.module.app.api.dto.ConstructionInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.entity.*
;
import
com.yeejoin.amos.boot.module.app.api.dto.CylinderEquBaseInfoForWXModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.DesignInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.ElevatorBaseInfoForWXModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquBaseInfoForWXModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamBoilerModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamElevatorModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamLiftingModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamPipelineModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamRidesModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamRopewayModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamVehicleModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.EquipTechParamVesselModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.InspectionDetectionInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.InspectionDetectionInfoModelForWX
;
import
com.yeejoin.amos.boot.module.app.api.dto.MainPartsModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.MaintenanceInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.MaintenanceInfoModelForWX
;
import
com.yeejoin.amos.boot.module.app.api.dto.OtherEquBaseInfoForWXModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.OtherInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.ProduceInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.ProtectionDevicesModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.RegistrationInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.dto.UseInfoModel
;
import
com.yeejoin.amos.boot.module.app.api.entity.CategoryOtherInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.ConstructionInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.DesignInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamBoiler
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamElevator
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamLifting
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamPipeline
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamRides
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamRopeway
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamVehicle
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipTechParamVessel
;
import
com.yeejoin.amos.boot.module.app.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.app.api.entity.InspectionDetectionInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.MainParts
;
import
com.yeejoin.amos.boot.module.app.api.entity.MaintenanceInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.OtherInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.ProduceInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.ProtectionDevices
;
import
com.yeejoin.amos.boot.module.app.api.entity.RegistrationInfo
;
import
com.yeejoin.amos.boot.module.app.api.entity.UseInfo
;
import
com.yeejoin.amos.boot.module.app.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.app.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.app.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.app.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.app.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.app.api.mapper.EquipmentCategoryMapper
;
...
@@ -23,7 +66,6 @@ import com.yeejoin.amos.boot.module.app.api.mapper.ViewJgClaimMapper;
...
@@ -23,7 +66,6 @@ import com.yeejoin.amos.boot.module.app.api.mapper.ViewJgClaimMapper;
import
com.yeejoin.amos.boot.module.app.biz.utils.HttpUtils
;
import
com.yeejoin.amos.boot.module.app.biz.utils.HttpUtils
;
import
com.yeejoin.amos.boot.module.app.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.app.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.app.flc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.app.flc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.app.flc.api.mapper.RegUnitInfoMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
...
@@ -59,122 +101,90 @@ import java.io.InputStream;
...
@@ -59,122 +101,90 @@ import java.io.InputStream;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.security.AlgorithmParameters
;
import
java.security.AlgorithmParameters
;
import
java.security.Security
;
import
java.security.Security
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Base64
;
import
java.util.Collection
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
@Slf4j
@Slf4j
public
class
TzsAppService
{
public
class
TzsAppService
{
/**
* 产品appkey
*/
private
static
final
String
appKey
=
"AMOS_STUDIO"
;
/**
* 产品product
*/
private
static
final
String
product
=
"AMOS_STUDIO_WEB"
;
private
static
final
String
regionRedis
=
"app_region_redis"
;
private
final
int
successsCode
=
200
;
@Autowired
@Autowired
DesignInfoService
designInfoService
;
DesignInfoService
designInfoService
;
@Value
(
"classpath:/json/equipCategory.json"
)
private
Resource
equipCategory
;
@Autowired
@Autowired
DataDictionaryMapper
dataDictionaryMapper
;
DataDictionaryMapper
dataDictionaryMapper
;
@Autowired
@Autowired
IdxFeignService
idxFeignService
;
IdxFeignService
idxFeignService
;
@Autowired
@Autowired
EquipmentCategoryMapper
equipmentCategoryMapper
;
EquipmentCategoryMapper
equipmentCategoryMapper
;
@Autowired
@Autowired
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
EquipmentCategoryServiceImpl
equipmentCategoryServiceImpl
;
@Autowired
@Autowired
ProduceInfoService
produceInfoService
;
ProduceInfoService
produceInfoService
;
@Autowired
@Autowired
ConstructionInfoService
constructionInfoService
;
ConstructionInfoService
constructionInfoService
;
@Autowired
@Autowired
RegistrationInfoService
registrationInfoService
;
RegistrationInfoService
registrationInfoService
;
@Autowired
@Autowired
EquipTechParamBoilerService
boilerService
;
EquipTechParamBoilerService
boilerService
;
@Autowired
@Autowired
EquipTechParamElevatorService
elevatorService
;
EquipTechParamElevatorService
elevatorService
;
@Autowired
@Autowired
EquipTechParamLiftingService
liftingService
;
EquipTechParamLiftingService
liftingService
;
@Autowired
@Autowired
EquipTechParamPipelineService
pipelineService
;
EquipTechParamPipelineService
pipelineService
;
@Autowired
@Autowired
EquipTechParamRidesService
ridesService
;
EquipTechParamRidesService
ridesService
;
@Autowired
@Autowired
EquipTechParamRopewayService
ropewayService
;
EquipTechParamRopewayService
ropewayService
;
@Autowired
@Autowired
EquipTechParamVehicleService
vehicleService
;
EquipTechParamVehicleService
vehicleService
;
@Autowired
@Autowired
EquipTechParamVesselService
vesselService
;
EquipTechParamVesselService
vesselService
;
@Autowired
@Autowired
MainPartsServiceImpl
mainPartsService
;
MainPartsServiceImpl
mainPartsService
;
@Autowired
@Autowired
ProtectionDevicesServiceImpl
protectionDevicesService
;
ProtectionDevicesServiceImpl
protectionDevicesService
;
@Autowired
@Autowired
UseInfoService
unseInfoService
;
UseInfoService
unseInfoService
;
@Autowired
@Autowired
MaintenanceInfoService
maintenanceInfoService
;
MaintenanceInfoService
maintenanceInfoService
;
@Autowired
@Autowired
InspectionDetectionInfoServiceImpl
inspectionDetectionInfoService
;
InspectionDetectionInfoServiceImpl
inspectionDetectionInfoService
;
@Autowired
@Autowired
OtherInfoService
otherInfoService
;
OtherInfoService
otherInfoService
;
@Autowired
@Autowired
CategoryOtherInfoMapper
categoryOtherInfoMapper
;
CategoryOtherInfoMapper
categoryOtherInfoMapper
;
@Autowired
@Autowired
RedisUtils
redisUtils
;
RedisUtils
redisUtils
;
@Value
(
"${tzs.WxApp.appId}"
)
@Value
(
"${tzs.WxApp.appId}"
)
String
WxAppAppId
;
String
WxAppAppId
;
@Value
(
"${tzs.WxApp.secret}"
)
@Value
(
"${tzs.WxApp.secret}"
)
String
WxAppSecret
;
String
WxAppSecret
;
@Value
(
"${tzs.WxApp.grant-type}"
)
@Value
(
"${tzs.WxApp.grant-type}"
)
String
WxAppGrantType
;
String
WxAppGrantType
;
@Value
(
"${minio.url.path}"
)
@Value
(
"${minio.url.path}"
)
String
minioPath
;
String
minioPath
;
@Autowired
@Autowired
private
RegUnitInfoMapper
regUnitInfoMapper
;
@Autowired
ViewJgClaimMapper
viewJgClaimMapper
;
ViewJgClaimMapper
viewJgClaimMapper
;
public
static
final
String
WXUSER_TOKEN
=
"wxUser_token"
;
@Value
(
"classpath:/json/equipCategory.json"
)
private
Resource
equipCategory
;
/**
* token 过期时间,wechat 系统为7200 ,tzs 系统小于7200 防止获取到无效token
*/
private
long
time
=
6000
l
;
/**
* 产品appkey
*/
private
static
final
String
appKey
=
"AMOS_STUDIO"
;
/**
* 产品product
*/
private
static
final
String
product
=
"AMOS_STUDIO_WEB"
;
private
static
final
String
regionRedis
=
"app_region_redis"
;
private
final
int
successsCode
=
200
;
public
Map
<
String
,
Object
>
getEquipmentInfo
(
String
record
)
{
public
Map
<
String
,
Object
>
getEquipmentInfo
(
String
record
)
{
List
<
DataDictionary
>
dictionaryList
=
getDictionary
();
List
<
DataDictionary
>
dictionaryList
=
getDictionary
();
...
@@ -182,10 +192,10 @@ public class TzsAppService {
...
@@ -182,10 +192,10 @@ public class TzsAppService {
Map
<
String
,
Object
>
map
=
new
HashMap
();
Map
<
String
,
Object
>
map
=
new
HashMap
();
map
.
put
(
"SEQUENCE_NBR"
,
record
);
map
.
put
(
"SEQUENCE_NBR"
,
record
);
map
.
put
(
"tableName"
,
"idx_biz_view_jg_claim"
);
map
.
put
(
"tableName"
,
"idx_biz_view_jg_claim"
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
model
=
idxFeignService
.
getPage
(
map
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
model
=
idxFeignService
.
getPage
(
map
);
List
<
Map
<
String
,
Object
>>
detia
lMapList
=
model
.
getResult
().
getRecords
();
List
<
Map
<
String
,
Object
>>
detai
lMapList
=
model
.
getResult
().
getRecords
();
if
(!
ValidationUtil
.
isEmpty
(
detia
lMapList
))
{
if
(!
ValidationUtil
.
isEmpty
(
detai
lMapList
))
{
map
=
detia
lMapList
.
iterator
().
next
();
map
=
detai
lMapList
.
iterator
().
next
();
}
}
map
.
putAll
(
getQRCode
(
record
));
map
.
putAll
(
getQRCode
(
record
));
...
@@ -193,8 +203,8 @@ public class TzsAppService {
...
@@ -193,8 +203,8 @@ public class TzsAppService {
// 出厂
// 出厂
JSONObject
exFactoryJsonObject
=
new
JSONObject
();
JSONObject
exFactoryJsonObject
=
new
JSONObject
();
List
exFactoryList
=
new
ArrayList
();
List
exFactoryList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
DesignInfo
.
class
,
DesignInfoModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
DesignInfo
.
class
,
DesignInfoModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
ProduceInfo
.
class
,
ProduceInfoModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
ProduceInfo
.
class
,
ProduceInfoModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
exFactoryJsonObject
.
put
(
"title"
,
"出厂"
);
exFactoryJsonObject
.
put
(
"title"
,
"出厂"
);
exFactoryJsonObject
.
put
(
"tabValue"
,
exFactoryList
);
exFactoryJsonObject
.
put
(
"tabValue"
,
exFactoryList
);
jsonArray
.
add
(
exFactoryJsonObject
);
jsonArray
.
add
(
exFactoryJsonObject
);
...
@@ -202,7 +212,7 @@ public class TzsAppService {
...
@@ -202,7 +212,7 @@ public class TzsAppService {
// 施工
// 施工
JSONObject
constructionJsonObject
=
new
JSONObject
();
JSONObject
constructionJsonObject
=
new
JSONObject
();
List
constructionList
=
new
ArrayList
();
List
constructionList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
ConstructionInfo
.
class
,
ConstructionInfoModel
.
class
,
constructionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
ConstructionInfo
.
class
,
ConstructionInfoModel
.
class
,
constructionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
constructionJsonObject
.
put
(
"title"
,
"施工"
);
constructionJsonObject
.
put
(
"title"
,
"施工"
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
jsonArray
.
add
(
constructionJsonObject
);
jsonArray
.
add
(
constructionJsonObject
);
...
@@ -210,17 +220,17 @@ public class TzsAppService {
...
@@ -210,17 +220,17 @@ public class TzsAppService {
// 注册
// 注册
JSONObject
registrationJsonObject
=
new
JSONObject
();
JSONObject
registrationJsonObject
=
new
JSONObject
();
List
registrationList
=
new
ArrayList
();
List
registrationList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
RegistrationInfo
.
class
,
RegistrationInfoModel
.
class
,
registrationInfoService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
RegistrationInfo
.
class
,
RegistrationInfoModel
.
class
,
registrationInfoService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamBoiler
.
class
,
EquipTechParamBoilerModel
.
class
,
boilerService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamBoiler
.
class
,
EquipTechParamBoilerModel
.
class
,
boilerService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamElevator
.
class
,
EquipTechParamElevatorModel
.
class
,
elevatorService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamElevator
.
class
,
EquipTechParamElevatorModel
.
class
,
elevatorService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamLifting
.
class
,
EquipTechParamLiftingModel
.
class
,
elevatorService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamLifting
.
class
,
EquipTechParamLiftingModel
.
class
,
elevatorService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamPipeline
.
class
,
EquipTechParamPipelineModel
.
class
,
pipelineService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamPipeline
.
class
,
EquipTechParamPipelineModel
.
class
,
pipelineService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamRides
.
class
,
EquipTechParamRidesModel
.
class
,
ridesService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamRides
.
class
,
EquipTechParamRidesModel
.
class
,
ridesService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamRopeway
.
class
,
EquipTechParamRopewayModel
.
class
,
ropewayService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamRopeway
.
class
,
EquipTechParamRopewayModel
.
class
,
ropewayService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamVehicle
.
class
,
EquipTechParamVehicleModel
.
class
,
vehicleService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamVehicle
.
class
,
EquipTechParamVehicleModel
.
class
,
vehicleService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamVessel
.
class
,
EquipTechParamVesselModel
.
class
,
vesselService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
EquipTechParamVessel
.
class
,
EquipTechParamVesselModel
.
class
,
vesselService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
MainParts
.
class
,
MainPartsModel
.
class
,
mainPartsService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
MainParts
.
class
,
MainPartsModel
.
class
,
mainPartsService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
ProtectionDevices
.
class
,
ProtectionDevicesModel
.
class
,
protectionDevicesService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
ProtectionDevices
.
class
,
ProtectionDevicesModel
.
class
,
protectionDevicesService
,
registrationList
,
false
,
dictionaryList
,
equipmentCategories
);
registrationJsonObject
.
put
(
"title"
,
"注册"
);
registrationJsonObject
.
put
(
"title"
,
"注册"
);
registrationJsonObject
.
put
(
"tabValue"
,
registrationList
);
registrationJsonObject
.
put
(
"tabValue"
,
registrationList
);
jsonArray
.
add
(
registrationJsonObject
);
jsonArray
.
add
(
registrationJsonObject
);
...
@@ -228,7 +238,7 @@ public class TzsAppService {
...
@@ -228,7 +238,7 @@ public class TzsAppService {
// 使用
// 使用
JSONObject
useJsonObject
=
new
JSONObject
();
JSONObject
useJsonObject
=
new
JSONObject
();
List
useList
=
new
ArrayList
();
List
useList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
UseInfo
.
class
,
UseInfoModel
.
class
,
unseInfoService
,
useList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
UseInfo
.
class
,
UseInfoModel
.
class
,
unseInfoService
,
useList
,
false
,
dictionaryList
,
equipmentCategories
);
useJsonObject
.
put
(
"title"
,
"使用"
);
useJsonObject
.
put
(
"title"
,
"使用"
);
useJsonObject
.
put
(
"tabValue"
,
useList
);
useJsonObject
.
put
(
"tabValue"
,
useList
);
jsonArray
.
add
(
useJsonObject
);
jsonArray
.
add
(
useJsonObject
);
...
@@ -236,7 +246,7 @@ public class TzsAppService {
...
@@ -236,7 +246,7 @@ public class TzsAppService {
// 维保
// 维保
JSONObject
maintenanceJsonObject
=
new
JSONObject
();
JSONObject
maintenanceJsonObject
=
new
JSONObject
();
List
maintenanceList
=
new
ArrayList
();
List
maintenanceList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModel
.
class
,
maintenanceInfoService
,
maintenanceList
,
true
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModel
.
class
,
maintenanceInfoService
,
maintenanceList
,
true
,
dictionaryList
,
equipmentCategories
);
maintenanceJsonObject
.
put
(
"title"
,
"维保"
);
maintenanceJsonObject
.
put
(
"title"
,
"维保"
);
maintenanceJsonObject
.
put
(
"tabValue"
,
maintenanceList
);
maintenanceJsonObject
.
put
(
"tabValue"
,
maintenanceList
);
jsonArray
.
add
(
maintenanceJsonObject
);
jsonArray
.
add
(
maintenanceJsonObject
);
...
@@ -244,7 +254,7 @@ public class TzsAppService {
...
@@ -244,7 +254,7 @@ public class TzsAppService {
// 检验
// 检验
JSONObject
inspectionJsonObject
=
new
JSONObject
();
JSONObject
inspectionJsonObject
=
new
JSONObject
();
List
inspectionList
=
new
ArrayList
();
List
inspectionList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModel
.
class
,
inspectionDetectionInfoService
,
inspectionList
,
true
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModel
.
class
,
inspectionDetectionInfoService
,
inspectionList
,
true
,
dictionaryList
,
equipmentCategories
);
inspectionJsonObject
.
put
(
"title"
,
"检验"
);
inspectionJsonObject
.
put
(
"title"
,
"检验"
);
inspectionJsonObject
.
put
(
"tabValue"
,
inspectionList
);
inspectionJsonObject
.
put
(
"tabValue"
,
inspectionList
);
jsonArray
.
add
(
inspectionJsonObject
);
jsonArray
.
add
(
inspectionJsonObject
);
...
@@ -252,7 +262,7 @@ public class TzsAppService {
...
@@ -252,7 +262,7 @@ public class TzsAppService {
// 其他
// 其他
JSONObject
otherJsonObject
=
new
JSONObject
();
JSONObject
otherJsonObject
=
new
JSONObject
();
List
otherList
=
new
ArrayList
();
List
otherList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
OtherInfo
.
class
,
OtherInfoModel
.
class
,
otherInfoService
,
otherList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
OtherInfo
.
class
,
OtherInfoModel
.
class
,
otherInfoService
,
otherList
,
false
,
dictionaryList
,
equipmentCategories
);
otherJsonObject
.
put
(
"title"
,
"其他"
);
otherJsonObject
.
put
(
"title"
,
"其他"
);
otherJsonObject
.
put
(
"tabValue"
,
otherList
);
otherJsonObject
.
put
(
"tabValue"
,
otherList
);
jsonArray
.
add
(
otherJsonObject
);
jsonArray
.
add
(
otherJsonObject
);
...
@@ -267,38 +277,41 @@ public class TzsAppService {
...
@@ -267,38 +277,41 @@ public class TzsAppService {
Map
<
String
,
Object
>
map
=
new
HashMap
();
Map
<
String
,
Object
>
map
=
new
HashMap
();
map
.
put
(
"SEQUENCE_NBR"
,
record
);
map
.
put
(
"SEQUENCE_NBR"
,
record
);
map
.
put
(
"tableName"
,
"idx_biz_view_jg_claim"
);
map
.
put
(
"tableName"
,
"idx_biz_view_jg_claim"
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
model
=
idxFeignService
.
getPage
(
map
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
model
=
idxFeignService
.
getPage
(
map
);
List
<
Map
<
String
,
Object
>>
detia
lMapList
=
model
.
getResult
().
getRecords
();
List
<
Map
<
String
,
Object
>>
detai
lMapList
=
model
.
getResult
().
getRecords
();
if
(!
ValidationUtil
.
isEmpty
(
detia
lMapList
))
{
if
(!
ValidationUtil
.
isEmpty
(
detai
lMapList
))
{
map
=
detia
lMapList
.
iterator
().
next
();
map
=
detai
lMapList
.
iterator
().
next
();
}
}
map
.
putAll
(
getQRCode
(
record
));
map
.
putAll
(
getQRCode
(
record
));
if
(
map
.
get
(
"EQU_LIST_CODE"
).
equals
(
"3000"
))
{
JSONArray
jsonArray
=
new
JSONArray
();
JSONArray
jsonArray
=
new
JSONArray
();
// 基本信息
JSONObject
exFactoryJsonObject
=
new
JSONObject
();
JSONObject
exFactoryJsonObject
=
new
JSONObject
();
List
exFactoryList
=
new
ArrayList
();
List
exFactoryList
=
new
ArrayList
();
HashMap
putMap
=
new
HashMap
();
HashMap
putMap
=
new
HashMap
();
Field
[]
fields
=
ElevatorBaseInfoForWXModel
.
class
.
getDeclaredFields
();
Field
[]
fields
=
EquBaseInfoForWXModel
.
class
.
getDeclaredFields
();
for
(
Field
f
:
fields
for
(
Field
f
:
fields
)
{
)
{
putMap
.
put
(
f
.
getName
(),
""
);
putMap
.
put
(
f
.
getName
(),
""
);
}
if
(
EquipmentClassifityEnum
.
DT
.
getCode
().
equals
(
map
.
get
(
"EQU_LIST_CODE"
)))
{
// 基本信息
Field
[]
fields1
=
ElevatorBaseInfoForWXModel
.
class
.
getDeclaredFields
();
for
(
Field
f
:
fields1
)
{
putMap
.
put
(
f
.
getName
(),
""
);
}
}
getGroupList
(
putMap
,
record
,
RegistrationInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
registrationInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
RegistrationInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
registrationInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
DesignInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
DesignInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
OtherInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
otherInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
OtherInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
otherInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
UseInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
unseInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
UseInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
unseInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
ProduceInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
ProduceInfo
.
class
,
ElevatorBaseInfoForWXModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
if
(
exFactoryList
.
size
()
>
0
)
{
if
(
exFactoryList
.
size
()
>
0
)
{
String
area
=
map
.
get
(
"USE_PLACE"
).
toString
();
String
area
=
map
.
get
(
"USE_PLACE"
).
toString
();
JSONObject
jsonObject
=
(
JSONObject
)
exFactoryList
.
get
(
0
);
JSONObject
jsonObject
=
(
JSONObject
)
exFactoryList
.
get
(
0
);
List
<
HashMap
<
String
,
Object
>>
groupValue
=
(
List
<
HashMap
<
String
,
Object
>>)
jsonObject
.
get
(
"groupValue"
);
List
<
HashMap
<
String
,
Object
>>
groupValue
=
(
List
<
HashMap
<
String
,
Object
>>)
jsonObject
.
get
(
"groupValue"
);
groupValue
.
forEach
(
e
->
{
groupValue
.
forEach
(
e
->
{
e
.
put
(
"fieldValue"
,
putMap
.
get
(
e
.
get
(
"fieldKey"
)));
e
.
put
(
"fieldValue"
,
putMap
.
get
(
e
.
get
(
"fieldKey"
)));
if
(
e
.
get
(
"fieldKey"
).
equals
(
"area"
))
{
if
(
e
.
get
(
"fieldKey"
).
equals
(
"area"
))
{
e
.
put
(
"fieldValue"
,
area
);
e
.
put
(
"fieldValue"
,
area
);
}
}
});
});
...
@@ -314,7 +327,7 @@ public class TzsAppService {
...
@@ -314,7 +327,7 @@ public class TzsAppService {
// 最近检验信息
// 最近检验信息
JSONObject
constructionJsonObject
=
new
JSONObject
();
JSONObject
constructionJsonObject
=
new
JSONObject
();
List
constructionList
=
new
ArrayList
();
List
constructionList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModelForWX
.
class
,
constructionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModelForWX
.
class
,
inspectionDetectionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
constructionJsonObject
.
put
(
"title"
,
"最近检验信息"
);
constructionJsonObject
.
put
(
"title"
,
"最近检验信息"
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
jsonArray
.
add
(
constructionJsonObject
);
jsonArray
.
add
(
constructionJsonObject
);
...
@@ -322,33 +335,28 @@ public class TzsAppService {
...
@@ -322,33 +335,28 @@ public class TzsAppService {
// 设备维保信息
// 设备维保信息
JSONObject
useJsonObject
=
new
JSONObject
();
JSONObject
useJsonObject
=
new
JSONObject
();
List
useList
=
new
ArrayList
();
List
useList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModelForWX
.
class
,
unseInfoService
,
useList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
MaintenanceInfo
.
class
,
MaintenanceInfoModelForWX
.
class
,
unseInfoService
,
useList
,
false
,
dictionaryList
,
equipmentCategories
);
useJsonObject
.
put
(
"title"
,
"设备维保信息"
);
useJsonObject
.
put
(
"title"
,
"设备维保信息"
);
useJsonObject
.
put
(
"tabValue"
,
useList
);
useJsonObject
.
put
(
"tabValue"
,
useList
);
jsonArray
.
add
(
useJsonObject
);
jsonArray
.
add
(
useJsonObject
);
map
.
put
(
"tab"
,
jsonArray
);
map
.
put
(
"tab"
,
jsonArray
);
}
else
{
}
else
if
(
"气瓶"
.
equals
(
map
.
get
(
"EQU_CATEGORY"
)))
{
JSONArray
jsonArray
=
new
JSONArray
();
// 基本信息
// 基本信息
JSONObject
exFactoryJsonObject
=
new
JSONObject
();
Field
[]
fields2
=
CylinderEquBaseInfoForWXModel
.
class
.
getDeclaredFields
();
List
exFactoryList
=
new
ArrayList
();
for
(
Field
f
:
fields2
)
{
HashMap
putMap
=
new
HashMap
();
putMap
.
put
(
f
.
getName
(),
""
);
Field
[]
fields
=
OtherEquBaseInfoForWXModel
.
class
.
getDeclaredFields
();
for
(
Field
f
:
fields
)
{
putMap
.
put
(
f
.
getName
(),
""
);
}
}
getGroupList
(
putMap
,
record
,
RegistrationInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
registrationInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
RegistrationInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
registrationInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
DesignInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
DesignInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
OtherInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
otherInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
OtherInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
otherInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
UseInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
unseInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
UseInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
unseInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
ProduceInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
ProduceInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
if
(
exFactoryList
.
size
()
>
0
)
{
if
(
exFactoryList
.
size
()
>
0
)
{
JSONObject
jsonObject
=
(
JSONObject
)
exFactoryList
.
get
(
0
);
JSONObject
jsonObject
=
(
JSONObject
)
exFactoryList
.
get
(
0
);
List
<
HashMap
<
String
,
Object
>>
groupValue
=
(
List
<
HashMap
<
String
,
Object
>>)
jsonObject
.
get
(
"groupValue"
);
List
<
HashMap
<
String
,
Object
>>
groupValue
=
(
List
<
HashMap
<
String
,
Object
>>)
jsonObject
.
get
(
"groupValue"
);
groupValue
.
forEach
(
e
->
{
groupValue
.
forEach
(
e
->
{
e
.
put
(
"fieldValue"
,
putMap
.
get
(
e
.
get
(
"fieldKey"
)));
e
.
put
(
"fieldValue"
,
putMap
.
get
(
e
.
get
(
"fieldKey"
)));
});
});
Object
ob
=
exFactoryList
.
get
(
0
);
Object
ob
=
exFactoryList
.
get
(
0
);
...
@@ -363,16 +371,52 @@ public class TzsAppService {
...
@@ -363,16 +371,52 @@ public class TzsAppService {
// 最近检验信息
// 最近检验信息
JSONObject
constructionJsonObject
=
new
JSONObject
();
JSONObject
constructionJsonObject
=
new
JSONObject
();
List
constructionList
=
new
ArrayList
();
List
constructionList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModelForWX
.
class
,
constructionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModelForWX
.
class
,
inspectionDetectionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
constructionJsonObject
.
put
(
"title"
,
"最近检验信息"
);
constructionJsonObject
.
put
(
"title"
,
"最近检验信息"
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
jsonArray
.
add
(
constructionJsonObject
);
jsonArray
.
add
(
constructionJsonObject
);
map
.
put
(
"tab"
,
jsonArray
);
}
else
{
// 基本信息
Field
[]
fields3
=
OtherEquBaseInfoForWXModel
.
class
.
getDeclaredFields
();
for
(
Field
f
:
fields3
)
{
putMap
.
put
(
f
.
getName
(),
""
);
}
getGroupList
(
putMap
,
record
,
RegistrationInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
registrationInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
DesignInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
designInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
OtherInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
otherInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
UseInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
unseInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
getGroupList
(
putMap
,
record
,
ProduceInfo
.
class
,
OtherEquBaseInfoForWXModel
.
class
,
produceInfoService
,
exFactoryList
,
false
,
dictionaryList
,
equipmentCategories
);
if
(
exFactoryList
.
size
()
>
0
)
{
JSONObject
jsonObject
=
(
JSONObject
)
exFactoryList
.
get
(
0
);
List
<
HashMap
<
String
,
Object
>>
groupValue
=
(
List
<
HashMap
<
String
,
Object
>>)
jsonObject
.
get
(
"groupValue"
);
groupValue
.
forEach
(
e
->
{
e
.
put
(
"fieldValue"
,
putMap
.
get
(
e
.
get
(
"fieldKey"
)));
});
Object
ob
=
exFactoryList
.
get
(
0
);
exFactoryList
.
clear
();
exFactoryList
.
add
(
ob
);
}
exFactoryJsonObject
.
put
(
"title"
,
"基本信息"
);
exFactoryJsonObject
.
put
(
"tabValue"
,
exFactoryList
);
jsonArray
.
add
(
exFactoryJsonObject
);
// 最近检验信息
JSONObject
constructionJsonObject
=
new
JSONObject
();
List
constructionList
=
new
ArrayList
();
getGroupList
(
null
,
record
,
InspectionDetectionInfo
.
class
,
InspectionDetectionInfoModelForWX
.
class
,
inspectionDetectionInfoService
,
constructionList
,
true
,
dictionaryList
,
equipmentCategories
);
constructionJsonObject
.
put
(
"title"
,
"最近检验信息"
);
constructionJsonObject
.
put
(
"tabValue"
,
constructionList
);
jsonArray
.
add
(
constructionJsonObject
);
map
.
put
(
"tab"
,
jsonArray
);
}
}
return
map
;
return
map
;
}
}
public
void
getGroupList
(
HashMap
putMap
,
String
record
,
Class
entity
,
Class
dto
,
BaseService
service
,
List
list
,
boolean
isOne
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
public
void
getGroupList
(
HashMap
putMap
,
String
record
,
Class
entity
,
Class
dto
,
BaseService
service
,
List
list
,
boolean
isOne
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
TableInfoHelper
.
initTableInfo
(
new
MapperBuilderAssistant
(
new
MybatisConfiguration
(),
""
),
entity
);
TableInfoHelper
.
initTableInfo
(
new
MapperBuilderAssistant
(
new
MybatisConfiguration
(),
""
),
entity
);
QueryWrapper
wrapper
=
new
QueryWrapper
();
QueryWrapper
wrapper
=
new
QueryWrapper
();
wrapper
.
eq
(
"RECORD"
,
record
);
wrapper
.
eq
(
"RECORD"
,
record
);
...
@@ -382,41 +426,36 @@ public class TzsAppService {
...
@@ -382,41 +426,36 @@ public class TzsAppService {
List
entityList
=
service
.
list
(
wrapper
);
List
entityList
=
service
.
list
(
wrapper
);
Iterator
iterator
=
entityList
.
iterator
();
Iterator
iterator
=
entityList
.
iterator
();
JSONObject
result
=
new
JSONObject
()
;
JSONObject
result
;
if
(!
isOne
)
{
if
(!
isOne
)
{
if
(!
ValidationUtil
.
isEmpty
(
entityList
))
{
if
(!
ValidationUtil
.
isEmpty
(
entityList
))
{
if
(
entityList
.
size
()>
0
)
{
if
(
entityList
.
size
()
>
0
)
{
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
iterator
.
next
()));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
iterator
.
next
()));
result
=
getFieldList
(
putMap
,
dto
,
jsonObject
,
null
,
dictionaryList
,
equipmentCategories
);
result
=
getFieldList
(
putMap
,
dto
,
jsonObject
,
null
,
dictionaryList
,
equipmentCategories
);
list
.
add
(
result
);
list
.
add
(
result
);
}
}
}
}
}
}
}
else
{
}
else
{
int
count
=
entityList
.
size
();
int
count
=
entityList
.
size
();
JSONObject
jsonObject
=
null
;
JSONObject
jsonObject
=
null
;
if
(
count
>
0
)
{
if
(
count
>
0
)
{
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
iterator
.
next
()));
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
iterator
.
next
()));
}
else
{
}
else
{
jsonObject
=
new
JSONObject
();
jsonObject
=
new
JSONObject
();
}
}
result
=
getFieldList
(
putMap
,
dto
,
jsonObject
,
count
,
dictionaryList
,
equipmentCategories
);
result
=
getFieldList
(
putMap
,
dto
,
jsonObject
,
count
,
dictionaryList
,
equipmentCategories
);
list
.
add
(
result
);
list
.
add
(
result
);
}
}
}
}
public
JSONObject
getFieldList
(
HashMap
putMap
,
Class
clazz
,
JSONObject
jsonObject
,
Integer
count
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
public
JSONObject
getFieldList
(
HashMap
putMap
,
Class
clazz
,
JSONObject
jsonObject
,
Integer
count
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
JSONObject
result
=
new
JSONObject
();
JSONObject
result
=
new
JSONObject
();
JSONObject
ApiModel
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
clazz
.
getAnnotation
(
ApiModel
.
class
)));
JSONObject
ApiModel
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
clazz
.
getAnnotation
(
ApiModel
.
class
)));
String
groupName
=
ApiModel
.
getString
(
"description"
);
List
<
Field
>
declaredFields
=
Lists
.
newArrayList
(
clazz
.
getSuperclass
().
getDeclaredFields
());
Field
[]
declaredFields
=
clazz
.
getDeclaredFields
();
declaredFields
.
addAll
(
Arrays
.
asList
(
clazz
.
getDeclaredFields
()));
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(!
ValidationUtil
.
isEmpty
(
declaredFields
))
{
if
(!
ValidationUtil
.
isEmpty
(
declaredFields
))
{
for
(
Field
field
:
declaredFields
)
{
for
(
Field
field
:
declaredFields
)
{
...
@@ -429,13 +468,13 @@ public class TzsAppService {
...
@@ -429,13 +468,13 @@ public class TzsAppService {
map
.
put
(
"fieldKey"
,
field
.
getName
());
map
.
put
(
"fieldKey"
,
field
.
getName
());
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
))
{
if
(!
ValidationUtil
.
isEmpty
(
jsonObject
))
{
map
.
put
(
"fieldValue"
,
jsonObject
.
getString
(
field
.
getName
()));
map
.
put
(
"fieldValue"
,
jsonObject
.
getString
(
field
.
getName
()));
getCon
(
field
.
getName
(),
jsonObject
,
map
,
clazz
,
dictionaryList
,
equipmentCategories
);
getCon
(
field
.
getName
(),
jsonObject
,
map
,
dictionaryList
,
equipmentCategories
);
}
else
{
}
else
{
map
.
put
(
"fieldValue"
,
""
);
map
.
put
(
"fieldValue"
,
""
);
}
}
if
(
null
!=
putMap
&&
putMap
.
containsKey
(
field
.
getName
()))
{
if
(
null
!=
putMap
&&
putMap
.
containsKey
(
field
.
getName
()))
{
if
(
null
!=
map
.
get
(
"fieldValue"
))
{
if
(
null
!=
map
.
get
(
"fieldValue"
))
{
putMap
.
put
(
field
.
getName
(),
map
.
get
(
"fieldValue"
));
putMap
.
put
(
field
.
getName
(),
map
.
get
(
"fieldValue"
));
}
}
}
}
...
@@ -464,7 +503,7 @@ public class TzsAppService {
...
@@ -464,7 +503,7 @@ public class TzsAppService {
JSONObject
object
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
obj
));
JSONObject
object
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
obj
));
if
(!
ValidationUtil
.
isEmpty
(
object
))
{
if
(!
ValidationUtil
.
isEmpty
(
object
))
{
object
.
getString
(
"url"
);
object
.
getString
(
"url"
);
object
.
put
(
"url"
,
object
.
getString
(
"url"
));
object
.
put
(
"url"
,
object
.
getString
(
"url"
));
json
.
add
(
object
);
json
.
add
(
object
);
}
}
}
}
...
@@ -579,7 +618,7 @@ public class TzsAppService {
...
@@ -579,7 +618,7 @@ public class TzsAppService {
byte
[]
keyByte
=
Base64
.
getDecoder
().
decode
(
sessionKey
);
byte
[]
keyByte
=
Base64
.
getDecoder
().
decode
(
sessionKey
);
//偏移量
//偏移量
byte
[]
ivByte
=
Base64
.
getDecoder
().
decode
(
wx
.
getString
(
"iv"
));
byte
[]
ivByte
=
Base64
.
getDecoder
().
decode
(
wx
.
getString
(
"iv"
));
JSONObject
res
=
null
;
JSONObject
res
=
null
;
// 如果密钥不足16位,那么就补足. 这个if 中的内容很重要
// 如果密钥不足16位,那么就补足. 这个if 中的内容很重要
int
base
=
16
;
int
base
=
16
;
if
(
keyByte
.
length
%
base
!=
0
)
{
if
(
keyByte
.
length
%
base
!=
0
)
{
...
@@ -591,7 +630,7 @@ public class TzsAppService {
...
@@ -591,7 +630,7 @@ public class TzsAppService {
}
}
// 初始化
// 初始化
Security
.
addProvider
(
new
BouncyCastleProvider
());
Security
.
addProvider
(
new
BouncyCastleProvider
());
Cipher
cipher
=
Cipher
.
getInstance
(
"AES/CBC/PKCS7Padding"
,
"BC"
);
Cipher
cipher
=
Cipher
.
getInstance
(
"AES/CBC/PKCS7Padding"
,
"BC"
);
SecretKeySpec
spec
=
new
SecretKeySpec
(
keyByte
,
"AES"
);
SecretKeySpec
spec
=
new
SecretKeySpec
(
keyByte
,
"AES"
);
AlgorithmParameters
parameters
=
AlgorithmParameters
.
getInstance
(
"AES"
);
AlgorithmParameters
parameters
=
AlgorithmParameters
.
getInstance
(
"AES"
);
parameters
.
init
(
new
IvParameterSpec
(
ivByte
));
parameters
.
init
(
new
IvParameterSpec
(
ivByte
));
...
@@ -599,8 +638,8 @@ public class TzsAppService {
...
@@ -599,8 +638,8 @@ public class TzsAppService {
byte
[]
resultByte
=
cipher
.
doFinal
(
dataByte
);
byte
[]
resultByte
=
cipher
.
doFinal
(
dataByte
);
if
(
null
!=
resultByte
&&
resultByte
.
length
>
0
)
{
if
(
null
!=
resultByte
&&
resultByte
.
length
>
0
)
{
String
result
=
new
String
(
resultByte
,
"UTF-8"
);
String
result
=
new
String
(
resultByte
,
"UTF-8"
);
res
=
JSONObject
.
parseObject
(
result
);
res
=
JSONObject
.
parseObject
(
result
);
return
res
;
return
res
;
}
}
return
res
;
return
res
;
...
@@ -618,7 +657,6 @@ public class TzsAppService {
...
@@ -618,7 +657,6 @@ public class TzsAppService {
}
}
public
Page
equipmentCount
(
String
companyCode
)
{
public
Page
equipmentCount
(
String
companyCode
)
{
Page
page
=
new
Page
<>();
Page
page
=
new
Page
<>();
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
resourceJson
=
JsonUtils
.
getResourceJson
(
equipCategory
);
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
resourceJson
=
JsonUtils
.
getResourceJson
(
equipCategory
);
...
@@ -643,12 +681,12 @@ public class TzsAppService {
...
@@ -643,12 +681,12 @@ public class TzsAppService {
return
page
;
return
page
;
}
}
public
Page
<
Map
<
String
,
Object
>>
getTable
(
Map
<
String
,
Object
>
map
)
{
public
Page
<
Map
<
String
,
Object
>>
getTable
(
Map
<
String
,
Object
>
map
)
{
Page
<
Map
<
String
,
Object
>>
table
=
null
;
Page
<
Map
<
String
,
Object
>>
table
=
null
;
String
teqy
=
(
String
)
map
.
get
(
"teqy"
);
String
teqy
=
(
String
)
map
.
get
(
"teqy"
);
if
(
ValidationUtil
.
isEmpty
(
teqy
)
)
{
if
(
ValidationUtil
.
isEmpty
(
teqy
)
)
{
table
=
equipmentCategoryServiceImpl
.
getTable
(
map
);
table
=
equipmentCategoryServiceImpl
.
getTable
(
map
);
}
else
{
}
else
{
map
.
remove
(
"teqy"
);
map
.
remove
(
"teqy"
);
table
=
idxFeignService
.
getPage
(
map
).
getResult
();
table
=
idxFeignService
.
getPage
(
map
).
getResult
();
}
}
...
@@ -656,11 +694,11 @@ public class TzsAppService {
...
@@ -656,11 +694,11 @@ public class TzsAppService {
}
}
public
JSONArray
getRegionName
()
{
public
JSONArray
getRegionName
()
{
JSONArray
jsonArray
=
new
JSONArray
();
JSONArray
jsonArray
=
new
JSONArray
();
if
(
redisUtils
.
hasKey
(
regionRedis
))
{
if
(
redisUtils
.
hasKey
(
regionRedis
))
{
jsonArray
=
JSONArray
.
parseArray
(
redisUtils
.
get
(
regionRedis
).
toString
());
jsonArray
=
JSONArray
.
parseArray
(
redisUtils
.
get
(
regionRedis
).
toString
());
}
else
{
}
else
{
Collection
<
RegionModel
>
regionChild
=
new
ArrayList
<>();
Collection
<
RegionModel
>
regionChild
=
new
ArrayList
<>();
RegionModel
regionModel1
=
new
RegionModel
();
RegionModel
regionModel1
=
new
RegionModel
();
regionChild
.
add
(
regionModel1
);
regionChild
.
add
(
regionModel1
);
...
@@ -678,115 +716,119 @@ public class TzsAppService {
...
@@ -678,115 +716,119 @@ public class TzsAppService {
jsonArray
.
add
(
regionModel
);
jsonArray
.
add
(
regionModel
);
}
}
redisUtils
.
set
(
regionRedis
,
jsonArray
);
redisUtils
.
set
(
regionRedis
,
jsonArray
);
}
}
return
jsonArray
;
return
jsonArray
;
}
}
//查询字典值(只针对设备一码通详情字典,其他勿用)
//查询字典值(只针对设备一码通详情字典,其他勿用)
public
List
<
DataDictionary
>
getDictionary
()
{
public
List
<
DataDictionary
>
getDictionary
()
{
LambdaQueryWrapper
<
DataDictionary
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
DataDictionary
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
ge
(
DataDictionary:
:
getSequenceNbr
,
5951L
).
le
(
DataDictionary:
:
getSequenceNbr
,
6529L
);
wrapper
.
ge
(
DataDictionary:
:
getSequenceNbr
,
5951L
).
le
(
DataDictionary:
:
getSequenceNbr
,
6529L
);
List
<
DataDictionary
>
dataDictionaryList
=
dataDictionaryMapper
.
selectList
(
wrapper
);
List
<
DataDictionary
>
dataDictionaryList
=
dataDictionaryMapper
.
selectList
(
wrapper
);
return
dataDictionaryList
;
return
dataDictionaryList
;
}
}
public
void
getCon
(
String
fileName
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
,
Class
clazz
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
if
(
"province"
.
indexOf
(
fileName
)
!=
-
1
||
"city"
.
indexOf
(
fileName
)
!=
-
1
||
"county"
.
indexOf
(
fileName
)
!=
-
1
)
{
// 处理字典值
public
void
getCon
(
String
fileName
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
if
(
"province"
.
contains
(
fileName
)
||
"city"
.
contains
(
fileName
)
||
"county"
.
contains
(
fileName
))
{
JSONArray
regionName
=
getRegionName
();
JSONArray
regionName
=
getRegionName
();
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
for
(
RegionModel
re
:
list
)
{
if
(!
ValidationUtil
.
isEmpty
(
list
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
)))
{
if
(
re
.
getRegionCode
().
equals
(
Integer
.
valueOf
(
jsonObject
.
getString
(
fileName
))))
{
String
cityName
=
map
.
put
(
"fieldValue"
,
re
.
getRegionName
());
list
.
stream
().
filter
(
i
->
i
.
getRegionCode
().
equals
(
Integer
.
valueOf
(
jsonObject
.
getString
(
"city"
)))).
findFirst
().
orElse
(
new
RegionModel
()).
getRegionName
();
}
String
countyName
=
list
.
stream
().
filter
(
i
->
i
.
getRegionCode
().
equals
(
Integer
.
valueOf
(
jsonObject
.
getString
(
"county"
)))).
findFirst
().
orElse
(
new
RegionModel
()).
getRegionName
();
map
.
put
(
"fieldValue"
,
cityName
+
"/"
+
countyName
);
}
}
}
}
if
(
"designStandard"
.
indexOf
(
fileName
)
!=
-
1
)
{
if
(
"designStandard"
.
indexOf
(
fileName
)
!=
-
1
)
{
JSONArray
jsonArray
=
JSONArray
.
parseArray
(
jsonObject
.
getString
(
fileName
));
JSONArray
jsonArray
=
JSONArray
.
parseArray
(
jsonObject
.
getString
(
fileName
));
map
.
put
(
"fieldValue"
,
jsonArray
);
map
.
put
(
"fieldValue"
,
jsonArray
);
}
}
getIf
(
"imported"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"imported"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"changes"
,
fileName
,
"BGSX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"changes"
,
fileName
,
"BGSX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"usePlace"
,
fileName
,
"ADDRESS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"usePlace"
,
fileName
,
"ADDRESS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"equManageDt"
,
fileName
,
"ZGBM"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"equManageDt"
,
fileName
,
"ZGBM"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"equState"
,
fileName
,
"SHZT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"equState"
,
fileName
,
"SHZT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"denselyPopulatedAreas"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"denselyPopulatedAreas"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"importantPlaces"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"importantPlaces"
,
fileName
,
"BOOLEN"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"registerState"
,
fileName
,
"ZC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"registerState"
,
fileName
,
"ZC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"inspectType"
,
fileName
,
"JYLX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"inspectType"
,
fileName
,
"JYLX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"inspectConclusion"
,
fileName
,
"JYJL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"inspectConclusion"
,
fileName
,
"JYJL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"constructionType"
,
fileName
,
"SGLX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"constructionType"
,
fileName
,
"SGLX"
,
dictionaryList
,
jsonObject
,
map
);
for
(
EquipmentCategory
equipmentCategory
:
equipmentCategories
)
{
for
(
EquipmentCategory
equipmentCategory
:
equipmentCategories
)
{
if
(
"equDefine"
.
indexOf
(
fileName
)
!=
-
1
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
.
getCode
())
&&
if
(
"equDefine"
.
contains
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
.
getCode
())
&&
!
ValidationUtil
.
isEmpty
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
))
&&
equipmentCategory
.
getCode
().
indexOf
(
jsonObject
.
getString
(
fileName
))
!=-
1
)
{
!
ValidationUtil
.
isEmpty
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
))
&&
equipmentCategory
.
getCode
().
contains
(
jsonObject
.
getString
(
fileName
))
)
{
map
.
put
(
"fieldValue"
,
equipmentCategory
.
getName
()
);
map
.
put
(
"fieldValue"
,
equipmentCategory
.
getName
()
);
}
}
if
(
"equCategory"
.
indexOf
(
fileName
)
!=
-
1
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
.
getCode
())
&&
if
(
"equCategory"
.
contains
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
)
&&
!
ValidationUtil
.
isEmpty
(
equipmentCategory
.
getCode
())
&&
!
ValidationUtil
.
isEmpty
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
))
&&
equipmentCategory
.
getCode
().
indexOf
(
jsonObject
.
getString
(
fileName
))
!=-
1
)
{
!
ValidationUtil
.
isEmpty
(
fileName
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
))
&&
equipmentCategory
.
getCode
().
contains
(
jsonObject
.
getString
(
fileName
))
)
{
map
.
put
(
"fieldValue"
,
equipmentCategory
.
getName
()
);
map
.
put
(
"fieldValue"
,
equipmentCategory
.
getName
()
);
}
}
}
}
getIf
(
"carrierLine"
,
fileName
,
"YZS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"carrierLine"
,
fileName
,
"YZS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"deviceLevel"
,
fileName
,
"GLJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"deviceLevel"
,
fileName
,
"GLJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"fuelType"
,
fileName
,
"GLZL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"fuelType"
,
fileName
,
"GLZL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"nameOfPressureParts"
,
fileName
,
"GLBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"nameOfPressureParts"
,
fileName
,
"GLBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"nonDestructiveTestingMethodsForPressureParts"
,
fileName
,
"GLWSJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"nonDestructiveTestingMethodsForPressureParts"
,
fileName
,
"GLWSJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"qpLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"qpLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"glLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"glLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainStructureType"
,
fileName
,
"RQJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainStructureType"
,
fileName
,
"RQJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"checkLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"checkLossless"
,
fileName
,
"RQJCFF"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"pipelineClass"
,
fileName
,
"GDLB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"pipelineClass"
,
fileName
,
"GDLB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"deviceLevel"
,
fileName
,
"GBI"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"deviceLevel"
,
fileName
,
"GBI"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"workLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"workLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainStructureType"
,
fileName
,
"JGS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainStructureType"
,
fileName
,
"JGS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"luffingMode"
,
fileName
,
"BFFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"luffingMode"
,
fileName
,
"BFFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"towerStandardType"
,
fileName
,
"JXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"towerStandardType"
,
fileName
,
"JXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"baseType"
,
fileName
,
"JZXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"baseType"
,
fileName
,
"JZXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"outriggerType"
,
fileName
,
"ZT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"outriggerType"
,
fileName
,
"ZT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainBeamType"
,
fileName
,
"ZLXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"mainBeamType"
,
fileName
,
"ZLXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"boomType"
,
fileName
,
"BJXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"boomType"
,
fileName
,
"BJXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"boomStructureType"
,
fileName
,
"BJJGXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"boomStructureType"
,
fileName
,
"BJJGXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"gantryStructureType"
,
fileName
,
"MJJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"gantryStructureType"
,
fileName
,
"MJJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"use"
,
fileName
,
"YT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"use"
,
fileName
,
"YT"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"controlMode"
,
fileName
,
"CZFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"controlMode"
,
fileName
,
"CZFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hangingCagesNumber"
,
fileName
,
"DLSL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hangingCagesNumber"
,
fileName
,
"DLSL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"driveMechanismType"
,
fileName
,
"QDJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"driveMechanismType"
,
fileName
,
"QDJG"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"guideRailFrame"
,
fileName
,
"DS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"guideRailFrame"
,
fileName
,
"DS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"liftingDriveMode"
,
fileName
,
"QD"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"liftingDriveMode"
,
fileName
,
"QD"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"operationMode"
,
fileName
,
"JXCZ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"operationMode"
,
fileName
,
"JXCZ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"liftingMode"
,
fileName
,
"QSFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"liftingMode"
,
fileName
,
"QSFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionProofGrade"
,
fileName
,
"FBDJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionProofGrade"
,
fileName
,
"FBDJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hoistWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hoistWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"bigcarTraveWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"bigcarTraveWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"smallcarTraveWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"smallcarTraveWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hoistWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"hoistWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"smallcarSideswayWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"smallcarSideswayWorkingLevel"
,
fileName
,
"GZJB"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"partName"
,
fileName
,
"ZYLBJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"partName"
,
fileName
,
"ZYLBJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"workType"
,
fileName
,
"GZLX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"workType"
,
fileName
,
"GZLX"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"controlMode"
,
fileName
,
"KZFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"controlMode"
,
fileName
,
"KZFS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"jackingType"
,
fileName
,
"DSXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"jackingType"
,
fileName
,
"DSXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionproofType"
,
fileName
,
"FBXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionproofType"
,
fileName
,
"FBXS"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionproofGrade"
,
fileName
,
"FBDJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"explosionproofGrade"
,
fileName
,
"FBDJ"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"xgxlMediaType"
,
fileName
,
"XGJZZL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"xgxlMediaType"
,
fileName
,
"XGJZZL"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"designation"
,
fileName
,
"KYSDBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"designation"
,
fileName
,
"KYSDBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"designation"
,
fileName
,
"CCFJDCLLBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"designation"
,
fileName
,
"CCFJDCLLBJMC"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"isMonitor"
,
fileName
,
"HAVE"
,
dictionaryList
,
jsonObject
,
map
);
getIf
(
"isMonitor"
,
fileName
,
"HAVE"
,
dictionaryList
,
jsonObject
,
map
);
if
(
"equList"
.
indexOf
(
fileName
)
!=
-
1
)
{
if
(
"equList"
.
indexOf
(
fileName
)
!=
-
1
)
{
String
equList
=
EquipmentClassifityEnum
.
getName
.
get
(
jsonObject
.
getString
(
fileName
));
String
equList
=
EquipmentClassifityEnum
.
getName
.
get
(
jsonObject
.
getString
(
fileName
));
map
.
put
(
"fieldValue"
,
equList
);
map
.
put
(
"fieldValue"
,
equList
);
}
}
}
}
public
void
getIf
(
String
name
,
String
fileName
,
String
type
,
List
<
DataDictionary
>
dictionaryList
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
){
public
void
getIf
(
String
name
,
String
fileName
,
String
type
,
List
<
DataDictionary
>
dictionaryList
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
)
{
if
(
name
.
indexOf
(
fileName
)
!=
-
1
)
{
if
(
name
.
indexOf
(
fileName
)
!=
-
1
)
{
List
<
DataDictionary
>
list
=
dictionaryList
.
stream
().
filter
(
t
->
t
.
getType
().
equals
(
type
)
&&
t
.
getCode
().
equals
(
jsonObject
.
getString
(
fileName
))).
collect
(
Collectors
.
toList
());
List
<
DataDictionary
>
list
=
dictionaryList
.
stream
().
filter
(
t
->
t
.
getType
().
equals
(
type
)
&&
t
.
getCode
().
equals
(
jsonObject
.
getString
(
fileName
))).
collect
(
Collectors
.
toList
());
if
(
list
.
size
()>
0
)
{
if
(
list
.
size
()
>
0
)
{
map
.
put
(
"fieldValue"
,
list
.
get
(
0
).
getName
());
map
.
put
(
"fieldValue"
,
list
.
get
(
0
).
getName
());
}
}
}
}
}
}
}
}
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