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
062025b1
Commit
062025b1
authored
May 06, 2023
by
曹盼盼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
403645c8
63b0448e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
364 additions
and
178 deletions
+364
-178
EXPersonUser.java
.../yeejoin/amos/boot/module/jxiop/api/dto/EXPersonUser.java
+0
-0
ExStationBasicDto.java
...oin/amos/boot/module/jxiop/api/dto/ExStationBasicDto.java
+1
-1
HouseholdPvImport.java
...oin/amos/boot/module/jxiop/api/dto/HouseholdPvImport.java
+13
-13
PersonBasicDto.java
...eejoin/amos/boot/module/jxiop/api/dto/PersonBasicDto.java
+2
-0
PersonUser.java
...om/yeejoin/amos/boot/module/jxiop/api/dto/PersonUser.java
+13
-1
StationBasicDto.java
...ejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
+3
-0
StationInfoDto.java
...eejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
+2
-2
UserMapperDto.java
...yeejoin/amos/boot/module/jxiop/api/dto/UserMapperDto.java
+6
-4
PersonBasic.java
...eejoin/amos/boot/module/jxiop/api/entity/PersonBasic.java
+2
-0
PersonSkillEducation.java
...os/boot/module/jxiop/api/entity/PersonSkillEducation.java
+1
-1
StationBasic.java
...ejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
+3
-0
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+3
-1
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+4
-4
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+17
-11
PrivilegeController.java
...boot/module/jxiop/biz/controller/PrivilegeController.java
+50
-3
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+80
-74
ExDataSourcesImpl.java
...boot/module/jxiop/biz/service/impl/ExDataSourcesImpl.java
+35
-5
ExcelServiceImpl.java
.../boot/module/jxiop/biz/service/impl/ExcelServiceImpl.java
+8
-0
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+0
-0
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+64
-38
application.properties
...odule-jxiop-biz/src/main/resources/application.properties
+2
-2
pom.xml
amos-boot-system-jxiop/pom.xml
+21
-1
EquipmentCategoryEnum.java
...amos/boot/module/tzs/api/enums/EquipmentCategoryEnum.java
+33
-16
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/EXPersonUser.java
View file @
062025b1
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/ExStationBasicDto.java
View file @
062025b1
...
@@ -21,7 +21,7 @@ public class ExStationBasicDto {
...
@@ -21,7 +21,7 @@ public class ExStationBasicDto {
@ExcelProperty
(
value
=
"场站编号"
,
index
=
1
)
@ExcelProperty
(
value
=
"场站编号"
,
index
=
1
)
@ApiModelProperty
(
value
=
"场站编号"
)
@ApiModelProperty
(
value
=
"场站编号"
)
private
String
stationCode
;
private
String
stationCode
;
@ExplicitConstraint
(
indexNum
=
2
,
source
=
{
"建设方"
,
"总承包方"
,
"分包方"
}
)
//固定下拉内容
@ExplicitConstraint
(
indexNum
=
2
,
source
Class
=
CommonExplicitConstraint
.
class
,
method
=
"getstationType"
)
//固定下拉内容
@ExcelProperty
(
value
=
"场站类型"
,
index
=
2
)
@ExcelProperty
(
value
=
"场站类型"
,
index
=
2
)
@ApiModelProperty
(
value
=
"场站类型"
)
@ApiModelProperty
(
value
=
"场站类型"
)
private
String
stationType
;
private
String
stationType
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/HouseholdPvImport.java
View file @
062025b1
...
@@ -7,43 +7,43 @@ import lombok.Data;
...
@@ -7,43 +7,43 @@ import lombok.Data;
@Data
@Data
public
class
HouseholdPvImport
{
public
class
HouseholdPvImport
{
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"所属场站"
,
index
=
1
)
@ExcelProperty
(
value
=
"所属场站"
,
index
=
0
)
private
String
platformCompanyId
;
private
String
platformCompanyId
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"乡镇"
,
index
=
2
)
@ExcelProperty
(
value
=
"乡镇"
,
index
=
1
)
private
String
districtId
;
private
String
districtId
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"户号"
,
index
=
3
)
@ExcelProperty
(
value
=
"户号"
,
index
=
2
)
private
String
number
;
private
String
number
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"户主姓名"
,
index
=
4
)
@ExcelProperty
(
value
=
"户主姓名"
,
index
=
3
)
private
String
name
;
private
String
name
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"性别"
,
index
=
5
)
@ExcelProperty
(
value
=
"性别"
,
index
=
4
)
private
String
sex
;
private
String
sex
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"身份证号"
,
index
=
6
)
@ExcelProperty
(
value
=
"身份证号"
,
index
=
5
)
private
String
idNumber
;
private
String
idNumber
;
@ColumnWidth
(
20
)
@ColumnWidth
(
20
)
@ExcelProperty
(
value
=
"证件过期时间"
,
index
=
7
)
@ExcelProperty
(
value
=
"证件过期时间"
,
index
=
6
)
private
String
expiryTime
;
private
String
expiryTime
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"签发机关"
,
index
=
8
)
@ExcelProperty
(
value
=
"签发机关"
,
index
=
7
)
private
String
issuingAuthority
;
private
String
issuingAuthority
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"户籍地址"
,
index
=
9
)
@ExcelProperty
(
value
=
"户籍地址"
,
index
=
8
)
private
String
residenceAddress
;
private
String
residenceAddress
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"手机号码"
,
index
=
10
)
@ExcelProperty
(
value
=
"手机号码"
,
index
=
9
)
private
String
phone
;
private
String
phone
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"居住地"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"居住地"
,
index
=
1
0
)
private
String
address
;
private
String
address
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"居住地邮编"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"居住地邮编"
,
index
=
1
1
)
private
String
postcode
;
private
String
postcode
;
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
@ExcelProperty
(
value
=
"送达地址"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"送达地址"
,
index
=
1
2
)
private
String
serviceAddress
;
private
String
serviceAddress
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonBasicDto.java
View file @
062025b1
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jxiop.api.dto;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.CommonFile
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.CommonFile
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -80,6 +81,7 @@ public class PersonBasicDto extends BaseDto {
...
@@ -80,6 +81,7 @@ public class PersonBasicDto extends BaseDto {
private
List
<
CommonFile
>
backCertificatePhoto
;
private
List
<
CommonFile
>
backCertificatePhoto
;
@ApiModelProperty
(
value
=
"进入本单位工作时间"
)
@ApiModelProperty
(
value
=
"进入本单位工作时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
stationWorkTime
;
private
Date
stationWorkTime
;
@ApiModelProperty
(
value
=
"工作所在地key"
)
@ApiModelProperty
(
value
=
"工作所在地key"
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/PersonUser.java
View file @
062025b1
...
@@ -32,7 +32,7 @@ public class PersonUser {
...
@@ -32,7 +32,7 @@ public class PersonUser {
private
Integer
age
;
private
Integer
age
;
@ApiModelProperty
(
value
=
"籍贯"
)
@ApiModelProperty
(
value
=
"籍贯"
)
private
String
nativePlace
;
private
List
<
Integer
>
nativePlace
;
@ApiModelProperty
(
value
=
"民族"
)
@ApiModelProperty
(
value
=
"民族"
)
private
String
folkKey
;
private
String
folkKey
;
...
@@ -77,6 +77,18 @@ public class PersonUser {
...
@@ -77,6 +77,18 @@ public class PersonUser {
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
CommonFile
>
backCertificatePhoto
;
private
List
<
CommonFile
>
backCertificatePhoto
;
@ApiModelProperty
(
value
=
"进入本单位工作时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
stationWorkTime
;
@ApiModelProperty
(
value
=
"工作所在地key"
)
private
String
workPlaceKey
;
@ApiModelProperty
(
value
=
"岗位"
)
private
String
postName
;
/**
/**
* 技能学历
* 技能学历
* */
* */
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
View file @
062025b1
...
@@ -33,6 +33,9 @@ public class StationBasicDto extends BaseDto {
...
@@ -33,6 +33,9 @@ public class StationBasicDto extends BaseDto {
@ApiModelProperty
(
value
=
"场站类型"
)
@ApiModelProperty
(
value
=
"场站类型"
)
private
String
stationType
;
private
String
stationType
;
@ApiModelProperty
(
value
=
"场站类型名称"
)
private
String
stationTypeName
;
@ApiModelProperty
(
value
=
"项目状态"
)
@ApiModelProperty
(
value
=
"项目状态"
)
private
String
stationFlag
;
private
String
stationFlag
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/StationInfoDto.java
View file @
062025b1
...
@@ -44,6 +44,6 @@ public class StationInfoDto {
...
@@ -44,6 +44,6 @@ public class StationInfoDto {
@ApiModelProperty
(
value
=
"纬度"
)
@ApiModelProperty
(
value
=
"纬度"
)
private
String
laitude
;
private
String
laitude
;
@ApiModelProperty
(
value
=
"所属片区code"
)
private
String
areaCode
;
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/UserMapperDto.java
View file @
062025b1
...
@@ -39,17 +39,19 @@ public class UserMapperDto {
...
@@ -39,17 +39,19 @@ public class UserMapperDto {
}
}
public
void
setHeadPhoto
(
String
headPhoto
)
{
public
void
setHeadPhoto
(
String
headPhoto
)
{
this
.
headPhoto
=
headPhoto
;
this
.
photo
=
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
this
.
photo
=
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
if
(!
this
.
photo
.
isEmpty
()){
this
.
headPhoto
=
this
.
photo
.
get
(
0
).
getUrl
();
}
}
}
public
List
<
CommonFile
>
getPhoto
()
{
public
List
<
CommonFile
>
getPhoto
()
{
return
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
return
photo
;
}
}
public
void
setPhoto
(
List
<
CommonFile
>
photo
)
{
public
void
setPhoto
(
List
<
CommonFile
>
photo
)
{
this
.
photo
=
headPhoto
!=
null
?
JSON
.
parseArray
(
headPhoto
,
CommonFile
.
class
):
null
;
this
.
photo
=
photo
;
}
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonBasic.java
View file @
062025b1
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jxiop.api.entity;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jxiop.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -133,6 +134,7 @@ public class PersonBasic extends BaseEntity {
...
@@ -133,6 +134,7 @@ public class PersonBasic extends BaseEntity {
* 进入本单位工作时间
* 进入本单位工作时间
*/
*/
@TableField
(
"station_work_time"
)
@TableField
(
"station_work_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
stationWorkTime
;
private
Date
stationWorkTime
;
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonSkillEducation.java
View file @
062025b1
...
@@ -34,7 +34,7 @@ public class PersonSkillEducation extends BaseEntity {
...
@@ -34,7 +34,7 @@ public class PersonSkillEducation extends BaseEntity {
* 是否特殊工种
* 是否特殊工种
*/
*/
@TableField
(
"is_special_work"
)
@TableField
(
"is_special_work"
)
private
Integer
isSpecialWork
;
private
String
isSpecialWork
;
/**
/**
* 工种名称
* 工种名称
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/StationBasic.java
View file @
062025b1
...
@@ -43,6 +43,9 @@ public class StationBasic extends BaseEntity {
...
@@ -43,6 +43,9 @@ public class StationBasic extends BaseEntity {
*/
*/
@TableField
(
"station_type"
)
@TableField
(
"station_type"
)
private
String
stationType
;
private
String
stationType
;
@TableField
(
"station_type_name"
)
private
String
stationTypeName
;
/**
/**
* 项目状态
* 项目状态
*/
*/
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
062025b1
...
@@ -30,7 +30,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
...
@@ -30,7 +30,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"orgCode"
)
String
orgCode
);
@Param
(
"orgCode"
)
String
orgCode
);
//删除
//删除
int
deleteList
(
String
[]
ids
);
int
deleteList
(
String
ids
);
//导出
//导出
List
<
ExStationBasicDto
>
getExStationBasicDto
(
@Param
(
"stationMasterName"
)
String
stationMasterName
,
List
<
ExStationBasicDto
>
getExStationBasicDto
(
@Param
(
"stationMasterName"
)
String
stationMasterName
,
@Param
(
"stationName"
)
String
stationName
,
@Param
(
"stationName"
)
String
stationName
,
...
@@ -39,6 +39,8 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
...
@@ -39,6 +39,8 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
//获取场站列表信息
//获取场站列表信息
List
<
StationInfoDto
>
getStationList
(
@Param
(
"areaCode"
)
String
areaCode
);
List
<
StationInfoDto
>
getStationList
(
@Param
(
"areaCode"
)
String
areaCode
);
int
deleteStationCoordinateByStationid
(
@Param
(
"sequence_nbr"
)
Long
sequence_nbr
);
int
getStationPersonByStationID
(
@Param
(
"sequence_nbr"
)
String
sequence_nbr
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
062025b1
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
AND person_basic.project_org_code like concat('%',#{orgCode},'%')
AND person_basic.project_org_code like concat('%',#{orgCode},'%')
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND person_
basic
.name like concat('%',#{name},'%')
AND person_
account
.name like concat('%',#{name},'%')
</if>
</if>
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat('%',#{accountName},'%')
AND person_account.account_name like concat('%',#{accountName},'%')
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
AND person_basic.project_org_code like concat('%',#{orgCode},'%')
AND person_basic.project_org_code like concat('%',#{orgCode},'%')
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND person_
basic
.name like concat('%',#{name},'%')
AND person_
account
.name like concat('%',#{name},'%')
</if>
</if>
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat('%',#{accountName},'%')
AND person_account.account_name like concat('%',#{accountName},'%')
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<where>
<where>
person_basic.is_delete=0
person_basic.is_delete=0
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND person_
basic
.name like concat('%',#{name},'%')
AND person_
account
.name like concat('%',#{name},'%')
</if>
</if>
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat('%',#{accountName},'%')
AND person_account.account_name like concat('%',#{accountName},'%')
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<where>
<where>
person_basic.is_delete=0
person_basic.is_delete=0
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
AND person_
basic
.name like concat('%',#{name},'%')
AND person_
account
.name like concat('%',#{name},'%')
</if>
</if>
<if
test=
"accountName != null and accountName != ''"
>
<if
test=
"accountName != null and accountName != ''"
>
AND person_account.account_name like concat('%',#{accountName},'%')
AND person_account.account_name like concat('%',#{accountName},'%')
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
062025b1
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
station_basic.station_master_name stationMasterName ,
station_basic.station_master_name stationMasterName ,
station_basic.mobile_phone mobilePhone ,
station_basic.mobile_phone mobilePhone ,
station_basic.station_type stationType ,
station_basic.station_type stationType ,
station_basic.station_type_name stationTypeName ,
station_basic.address address ,
station_basic.address address ,
station_basic.owner_unit ownerUnit
station_basic.owner_unit ownerUnit
from station_basic
from station_basic
...
@@ -56,23 +57,19 @@
...
@@ -56,23 +57,19 @@
</select>
</select>
<delete
id=
"deleteList"
parameterType=
"int"
>
<delete
id=
"deleteList"
parameterType=
"int"
>
delete from station_basic where sequence_nbr in
delete from station_basic where sequence_nbr = #{id};
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
delete from station_coordinate where station_id = #{id}
#{id}
</delete>
</foreach>
;
<delete
id =
"deleteStationCoordinateByStationid"
>
delete from station_coordinate where station_id in
delete from station_coordinate where station_id = #{sequence_nbr}
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</delete>
<select
id=
"getExStationBasicDto"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.ExStationBasicDto"
>
<select
id=
"getExStationBasicDto"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.ExStationBasicDto"
>
select
select
station_basic.station_name stationName ,
station_basic.station_name stationName ,
station_basic.station_code stationCode,
station_basic.station_code stationCode,
station_basic.station_type stationType,
station_basic.station_type
_name
stationType,
station_basic.station_flag stationFlag,
station_basic.station_flag stationFlag,
station_basic.address address,
station_basic.address address,
station_basic.station_master_name stationMasterName ,
station_basic.station_master_name stationMasterName ,
...
@@ -106,6 +103,7 @@
...
@@ -106,6 +103,7 @@
station_basic.station_name stationName ,
station_basic.station_name stationName ,
station_basic.station_type stationType,
station_basic.station_type stationType,
station_basic.station_flag stationFlag,
station_basic.station_flag stationFlag,
station_basic.area_code areaCode,
station_coordinate.longitude,
station_coordinate.longitude,
station_coordinate.laitude ,
station_coordinate.laitude ,
station_coordinate.is_main_coordinate
station_coordinate.is_main_coordinate
...
@@ -125,6 +123,14 @@
...
@@ -125,6 +123,14 @@
AND station_basic.area_code like concat('%',#{areaCode},'%')
AND station_basic.area_code like concat('%',#{areaCode},'%')
</if>
</if>
</select>
</select>
<select
id=
"getStationPersonByStationID"
resultType=
"int"
>
SELECT
COUNT( 1 )
FROM
person_account
LEFT JOIN station_basic ON person_account.project_id = station_basic.platform_station_id
WHERE
station_basic.sequence_nbr = #{sequence_nbr}
</select>
</mapper>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PrivilegeController.java
View file @
062025b1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
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.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.CompanyTreeDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.ListCompanyModel
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.ListCompanyModel
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
...
@@ -24,9 +26,8 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -24,9 +26,8 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Collection
;
import
java.util.stream.Collectors
;
import
java.util.List
;
/**
/**
* @description:
* @description:
...
@@ -84,7 +85,53 @@ public class PrivilegeController extends BaseController{
...
@@ -84,7 +85,53 @@ public class PrivilegeController extends BaseController{
return
ResponseHelper
.
buildResponse
(
date
);
return
ResponseHelper
.
buildResponse
(
date
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/stationTree"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询所属场站"
,
notes
=
"查询所属场站"
)
public
ResponseModel
<
Collection
<
CompanyModel
>>
stationTree
(
String
orgCode
)
{
Long
companyId
=
null
;
if
(
orgCode
!=
null
){
LinkedHashMap
<
Object
,
Object
>
l
=
(
LinkedHashMap
<
Object
,
Object
>)
Privilege
.
companyClient
.
queryByOrgcode
(
orgCode
).
getResult
();
for
(
Map
.
Entry
<
Object
,
Object
>
it
:
l
.
entrySet
())
{
CompanyModel
companyModel
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
it
.
getValue
()),
CompanyModel
.
class
);
if
(
companyModel
!=
null
)
{
companyId
=
companyModel
.
getSequenceNbr
();
}
break
;
}
}
else
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
companyId
=
reginParams
.
getCompany
().
getSequenceNbr
();
}
List
<
ListCompanyModel
>
data
=
new
ArrayList
();
FeignClientResult
<
Collection
<
CompanyModel
>>
de
=
Privilege
.
companyClient
.
querySubAgencyTree
(
companyId
);
FeignClientResult
<
CompanyModel
>
dat
=
Privilege
.
companyClient
.
seleteOne
(
companyId
);
CompanyModel
companyModel
=
dat
.
getResult
();
companyModel
.
setChildren
(
de
.
getResult
());
List
<
CompanyModel
>
list
=
new
ArrayList
<>();
list
.
add
(
companyModel
);
return
ResponseHelper
.
buildResponse
(
list
);
}
// public List<ListCompanyModel> getdata(Collection<CompanyModel> datas){
// List<ListCompanyModel> list =new ArrayList<>();
// for (CompanyModel companyModel : datas) {
// ListCompanyModel companyModeld = new ListCompanyModel();
// companyModeld.setSequenceNbr(companyModel.getSequenceNbr());
// companyModeld.setCompanyName(companyModel.getCompanyName());
// companyModeld.setChildren(getdata(companyModel.getChildren()));
// list.add(companyModeld);
// }
// return list;
// }
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
062025b1
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/ExDataSourcesImpl.java
View file @
062025b1
...
@@ -35,7 +35,7 @@ public class ExDataSourcesImpl implements DataSources {
...
@@ -35,7 +35,7 @@ public class ExDataSourcesImpl implements DataSources {
@Autowired
@Autowired
private
RedisUtils
redisUtils
;
private
RedisUtils
redisUtils
;
private
final
String
CZLX
=
"CZLX"
;
@Override
@Override
public
String
[]
selectList
(
String
type
,
String
method
)
throws
Exception
{
public
String
[]
selectList
(
String
type
,
String
method
)
throws
Exception
{
String
[]
str
=
{};
String
[]
str
=
{};
...
@@ -46,6 +46,10 @@ public class ExDataSourcesImpl implements DataSources {
...
@@ -46,6 +46,10 @@ public class ExDataSourcesImpl implements DataSources {
case
"getArea"
:
case
"getArea"
:
str
=
getArea
();
str
=
getArea
();
break
;
break
;
case
"getstationType"
:
str
=
getstationType
(
CZLX
);
break
;
}
}
}
}
return
str
;
return
str
;
...
@@ -111,17 +115,43 @@ public class ExDataSourcesImpl implements DataSources {
...
@@ -111,17 +115,43 @@ public class ExDataSourcesImpl implements DataSources {
if
(!
data
.
isEmpty
())
{
if
(!
data
.
isEmpty
())
{
for
(
ListCompanyModel
datum
:
data
)
{
for
(
ListCompanyModel
datum
:
data
)
{
datas
.
add
(
datum
.
getCompanyName
()
+
"@"
+
datum
.
getSequenceNbr
());
datas
.
add
(
datum
.
getCompanyName
()
+
"@"
+
datum
.
getSequenceNbr
());
// if (datum.getChildren() != null) {
// this.getCompanyModel(datum.getChildren(),datas);
// }
}
}
}
}
return
datas
;
return
datas
;
}
}
private
String
[]
getstationType
(
String
dictCode
)
{
FeignClientResult
<
List
<
DictionarieValueModel
>>
Model
=
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
);
List
<
DictionarieValueModel
>
user
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
Model
))
{
if
(
Model
.
getStatus
()==
200
){
user
=
Model
.
getResult
();
}
else
{
throw
new
RuntimeException
(
Model
.
getMessage
());
}
}
String
[]
str
=
null
;
List
<
String
>
collect
=
new
ArrayList
<>();
this
.
getstationTypeList
(
user
,
collect
);
str
=
collect
.
toArray
(
new
String
[
collect
.
size
()]);
return
str
;
}
public
List
<
String
>
getstationTypeList
(
List
<
DictionarieValueModel
>
data
,
List
<
String
>
datas
)
{
if
(!
data
.
isEmpty
())
{
for
(
DictionarieValueModel
datum
:
data
)
{
datas
.
add
(
datum
.
getDictDataValue
()
+
"@"
+
datum
.
getDictDataKey
());
}
}
return
datas
;
}
private
String
[]
getDataDictionary
(
String
type
)
{
private
String
[]
getDataDictionary
(
String
type
)
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/ExcelServiceImpl.java
View file @
062025b1
...
@@ -132,6 +132,13 @@ public class ExcelServiceImpl {
...
@@ -132,6 +132,13 @@ public class ExcelServiceImpl {
CompanyModel
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
type
[
1
]));
CompanyModel
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
type
[
1
]));
fireChemical
.
setAreaCode
(
companyModel
.
getCompanyCode
());
fireChemical
.
setAreaCode
(
companyModel
.
getCompanyCode
());
}
}
if
(
fireChemical
.
getStationType
()
!=
null
)
{
String
[]
type
=
fireChemical
.
getStationType
().
split
(
"@"
);
fireChemical
.
setStationTypeName
(
type
[
0
]);
fireChemical
.
setStationType
(
type
[
1
]);
}
//平台增加场站
//平台增加场站
CompanyModel
companyModeldata
=
new
CompanyModel
();
CompanyModel
companyModeldata
=
new
CompanyModel
();
...
@@ -141,6 +148,7 @@ public class ExcelServiceImpl {
...
@@ -141,6 +148,7 @@ public class ExcelServiceImpl {
companyModeldata
.
setParentId
(
Long
.
valueOf
(
fireChemical
.
getArea
()));
companyModeldata
.
setParentId
(
Long
.
valueOf
(
fireChemical
.
getArea
()));
companyModeldata
.
setCompanyCode
(
fireChemical
.
getStationCode
());
companyModeldata
.
setCompanyCode
(
fireChemical
.
getStationCode
());
companyModeldata
=
this
.
addCompanyModel
(
companyModeldata
);
companyModeldata
=
this
.
addCompanyModel
(
companyModeldata
);
fireChemical
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
fireChemical
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
fireChemical
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
fireChemical
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
excelEntityList
.
add
(
fireChemical
);
excelEntityList
.
add
(
fireChemical
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
062025b1
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
062025b1
...
@@ -15,15 +15,20 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult;
...
@@ -15,15 +15,20 @@ 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
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -45,6 +50,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -45,6 +50,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
PersonBasicServiceImpl
personBasicServiceImpl
;
PersonBasicServiceImpl
personBasicServiceImpl
;
@Autowired
@Autowired
StationBasicMapper
stationBasicMapper
;
StationBasicMapper
stationBasicMapper
;
private
final
String
CZLX
=
"CZLX"
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -88,15 +95,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -88,15 +95,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
@Transactional
@Transactional
public
void
add
(
StationBasic
stationBasic
)
{
public
void
add
(
StationBasic
stationBasic
)
{
//平台增加场站
CompanyModel
companyModeldata
=
new
CompanyModel
();
companyModeldata
.
setCompanyName
(
stationBasic
.
getStationName
());
companyModeldata
.
setCompanyType
(
"company"
);
companyModeldata
.
setLevel
(
"station"
);
companyModeldata
.
setParentId
(
Long
.
valueOf
(
stationBasic
.
getArea
()));
companyModeldata
.
setCompanyCode
(
stationBasic
.
getStationCode
());
companyModeldata
=
this
.
addCompanyModel
(
companyModeldata
);
//场站坐标信息
//场站坐标信息
List
<
StationCoordinate
>
list
=
stationBasic
.
getStationCoordinate
();
List
<
StationCoordinate
>
list
=
stationBasic
.
getStationCoordinate
();
List
<
StationCoordinate
>
listdate
=
new
ArrayList
<>();
List
<
StationCoordinate
>
listdate
=
new
ArrayList
<>();
...
@@ -108,19 +106,33 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -108,19 +106,33 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
//获取类型名称
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
String
typeName
=
this
.
queryByCode
(
CZLX
,
stationBasic
.
getStationType
());
stationBasic
.
setStationTypeName
(
typeName
);
//场站基本信息
//场站基本信息
this
.
save
(
stationBasic
);
this
.
save
(
stationBasic
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
for
(
StationCoordinate
stationCoordinate
:
list
)
{
StationCoordinate
stationCoordinate
=
new
StationCoordinate
();
stationCoordinate
.
setStationId
(
stationBasic
.
getSequenceNbr
());
stationCoordinate
.
setStationId
(
stationBasic
.
getSequenceNbr
());
listdate
.
add
(
stationCoordinate
);
}
else
{
for
(
StationCoordinate
stationCoordinate
:
list
)
{
stationCoordinate
.
setStationId
(
stationBasic
.
getSequenceNbr
());
listdate
.
add
(
stationCoordinate
);
}
}
}
stationCoordinateServiceImpl
.
saveBatch
(
listdate
);
stationCoordinateServiceImpl
.
saveBatch
(
listdate
);
//平台增加场站
CompanyModel
companyModeldata
=
new
CompanyModel
();
companyModeldata
.
setCompanyName
(
stationBasic
.
getStationName
());
companyModeldata
.
setCompanyType
(
"company"
);
companyModeldata
.
setLevel
(
"station"
);
companyModeldata
.
setParentId
(
Long
.
valueOf
(
stationBasic
.
getArea
()));
companyModeldata
.
setCompanyCode
(
stationBasic
.
getStationCode
());
companyModeldata
=
this
.
addCompanyModel
(
companyModeldata
);
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
this
.
update
(
stationBasic
);
}
}
...
@@ -153,7 +165,19 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -153,7 +165,19 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
}
}
private
String
queryByCode
(
String
dictCode
,
String
dictDataKey
)
{
FeignClientResult
<
DictionarieValueModel
>
Model
=
Systemctl
.
dictionarieClient
.
value
(
dictCode
,
dictDataKey
);
DictionarieValueModel
user
=
new
DictionarieValueModel
();
if
(!
ObjectUtils
.
isEmpty
(
Model
))
{
if
(
Model
.
getStatus
()==
200
){
user
=
Model
.
getResult
();
}
else
{
throw
new
RuntimeException
(
Model
.
getMessage
());
}
}
return
user
.
getDictDataValue
();
}
...
@@ -176,17 +200,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -176,17 +200,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
public
void
update
(
StationBasic
stationBasic
)
{
public
void
update
(
StationBasic
stationBasic
)
{
//平台增加场站
CompanyModel
companyModeldata
=
new
CompanyModel
();
companyModeldata
.
setCompanyName
(
stationBasic
.
getStationName
());
companyModeldata
.
setCompanyType
(
"company"
);
companyModeldata
.
setLevel
(
"station"
);
companyModeldata
.
setParentId
(
Long
.
valueOf
(
stationBasic
.
getArea
()));
companyModeldata
.
setCompanyCode
(
stationBasic
.
getStationCode
());
companyModeldata
=
this
.
updateCompanyModel
(
companyModeldata
,
Long
.
valueOf
(
stationBasic
.
getPlatformStationId
()));
//场站坐标信息
//场站坐标信息
List
<
StationCoordinate
>
list
=
stationBasic
.
getStationCoordinate
();
List
<
StationCoordinate
>
list
=
stationBasic
.
getStationCoordinate
();
List
<
StationCoordinate
>
listdate
=
new
ArrayList
<>();
List
<
StationCoordinate
>
listdate
=
new
ArrayList
<>();
...
@@ -198,24 +211,35 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -198,24 +211,35 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
companyModel
=
personBasicServiceImpl
.
getCompanyModel
(
Long
.
parseLong
(
stationBasic
.
getArea
()));
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setAreaName
(
companyModel
.
getCompanyName
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
//场站基本信息
stationBasicMapper
.
updateById
(
stationBasic
);
//获取类型名称
String
typeName
=
this
.
queryByCode
(
CZLX
,
stationBasic
.
getStationType
());
stationBasic
.
setStationTypeName
(
typeName
);
//场站基本信息
stationBasicMapper
.
updateById
(
stationBasic
);
stationBasicMapper
.
deleteStationCoordinateByStationid
(
stationBasic
.
getSequenceNbr
());
for
(
StationCoordinate
stationCoordinate
:
list
)
{
for
(
StationCoordinate
stationCoordinate
:
list
)
{
stationCoordinate
.
setStationId
(
stationBasic
.
getSequenceNbr
());
stationCoordinate
.
setStationId
(
stationBasic
.
getSequenceNbr
());
listdate
.
add
(
stationCoordinate
);
listdate
.
add
(
stationCoordinate
);
}
}
stationCoordinateServiceImpl
.
saveOrUpdateBatch
(
listdate
);
stationCoordinateServiceImpl
.
saveOrUpdateBatch
(
listdate
);
//平台增加场站
CompanyModel
companyModeldata
=
new
CompanyModel
();
companyModeldata
.
setCompanyName
(
stationBasic
.
getStationName
());
companyModeldata
.
setCompanyType
(
"company"
);
companyModeldata
.
setLevel
(
"station"
);
companyModeldata
.
setParentId
(
Long
.
valueOf
(
stationBasic
.
getArea
()));
companyModeldata
.
setCompanyCode
(
stationBasic
.
getStationCode
());
companyModeldata
=
this
.
updateCompanyModel
(
companyModeldata
,
Long
.
valueOf
(
stationBasic
.
getPlatformStationId
()));
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
stationBasicMapper
.
updateById
(
stationBasic
);
}
}
public
int
deleteList
(
String
[]
ids
){
public
int
deleteList
(
String
ids
){
QueryWrapper
<
StationBasic
>
wrapper
=
new
QueryWrapper
();
QueryWrapper
<
StationBasic
>
wrapper
=
new
QueryWrapper
();
wrapper
.
in
(
"sequence_nbr"
,
ids
);
wrapper
.
in
(
"sequence_nbr"
,
ids
);
List
<
StationBasic
>
list
=
this
.
list
(
wrapper
);
List
<
StationBasic
>
list
=
this
.
list
(
wrapper
);
...
@@ -224,10 +248,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -224,10 +248,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
idscom
.
add
(
personAccount
.
getPlatformStationId
());
idscom
.
add
(
personAccount
.
getPlatformStationId
());
}
}
//删除平台
//删除平台
int
deleteResult
=
stationBasicMapper
.
deleteList
(
ids
);
this
.
deleteCompany
(
String
.
join
(
","
,
idscom
));
this
.
deleteCompany
(
String
.
join
(
","
,
idscom
));
return
deleteResult
;
return
stationBasicMapper
.
deleteList
(
ids
);
}
}
public
StationBasic
getById
(
Long
sequenceNbr
){
public
StationBasic
getById
(
Long
sequenceNbr
){
...
@@ -251,5 +275,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -251,5 +275,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
public
List
<
StationInfoDto
>
getStationList
(
String
areaCode
){
public
List
<
StationInfoDto
>
getStationList
(
String
areaCode
){
return
stationBasicMapper
.
getStationList
(
areaCode
);
return
stationBasicMapper
.
getStationList
(
areaCode
);
}
}
public
int
getStationPersonByStationID
(
String
id
)
{
return
stationBasicMapper
.
getStationPersonByStationID
(
id
);};
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/application.properties
View file @
062025b1
...
@@ -30,8 +30,8 @@ spring.liquibase.enabled=true
...
@@ -30,8 +30,8 @@ spring.liquibase.enabled=true
## eureka properties:
## eureka properties:
eureka.instance.prefer-ip-address
=
true
#
eureka.instance.prefer-ip-address=true
eureka.instance.ip-address
=
172.16.3.41
#
eureka.instance.ip-address=172.16.3.41
eureka.client.registry-fetch-interval-seconds
=
5
eureka.client.registry-fetch-interval-seconds
=
5
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.health-check-url-path
=
/actuator/health
eureka.instance.lease-expiration-duration-in-seconds
=
10
eureka.instance.lease-expiration-duration-in-seconds
=
10
...
...
amos-boot-system-jxiop/pom.xml
View file @
062025b1
...
@@ -25,7 +25,27 @@
...
@@ -25,7 +25,27 @@
<artifactId>
poi-ooxml
</artifactId>
<artifactId>
poi-ooxml
</artifactId>
<groupId>
org.apache.poi
</groupId>
<groupId>
org.apache.poi
</groupId>
</exclusion>
</exclusion>
</exclusions>
<exclusion>
<artifactId>
easypoi-base
</artifactId>
<groupId>
cn.afterturn
</groupId>
</exclusion>
<exclusion>
<artifactId>
easypoi-annotation
</artifactId>
<groupId>
cn.afterturn
</groupId>
</exclusion>
<exclusion>
<artifactId>
easypoi-web
</artifactId>
<groupId>
cn.afterturn
</groupId>
</exclusion>
<exclusion>
<artifactId>
poi-ooxml-schemas
</artifactId>
<groupId>
org.apache.poi
</groupId>
</exclusion>
<exclusion>
<artifactId>
poi
</artifactId>
<groupId>
org.apache.poi
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/EquipmentCategoryEnum.java
View file @
062025b1
...
@@ -11,30 +11,47 @@ import java.util.Map;
...
@@ -11,30 +11,47 @@ import java.util.Map;
public
enum
EquipmentCategoryEnum
{
public
enum
EquipmentCategoryEnum
{
/**
/**
*
*行政区划分及对应初始监管码
*
*行政区划分及对应初始监管码
*/
*/
XZQHDT
(
"行政区划电梯"
,
"XZQHDT"
),
XZQHDT
(
"行政区划电梯"
,
"XZQHDT"
,
"行政区划电梯"
),
XZQH
(
"行政区划"
,
"XZQH"
),
XZQH
(
"行政区划"
,
"XZQH"
,
"行政区划"
),
BLW
(
"补零位"
,
"0"
),
BLW
(
"补零位"
,
"0"
,
"补零位"
),
JGM
(
"监管码初始码"
,
"0000001"
),
JGM
(
"监管码初始码"
,
"0000001"
,
"监管码初始码"
),
CSM
(
"96333初始码"
,
"00001"
),
XXCSM
(
"西咸96333初始码"
,
"85000"
,
"31"
),
YJL
(
"已拒领"
,
"6037"
),
BJCSM
(
"宝鸡96333初始码"
,
"13000"
,
"32"
),
YRL
(
"已认领"
,
"6035"
),
XYCSM
(
"咸阳96333初始码"
,
"75000"
,
"33"
),
DRL
(
"待认领"
,
"6036"
),
TCCSM
(
"铜川96333初始码"
,
"05000"
,
"34"
),
CSZT
(
"初始状态"
,
"0"
),
WNCSM
(
"渭南96333初始码"
,
"13000"
,
"35"
),
YSY
(
"已使用"
,
"1"
),
YACSM
(
"延安96333初始码"
,
"11000"
,
"36"
),
WSY
(
"未使用"
,
"2"
),
YUCSM
(
"榆林96333初始码"
,
"10000"
,
"37"
),
BF
(
"报废"
,
"6"
);
HZCSM
(
"汉中96333初始码"
,
"09000"
,
"38"
),
AKCSM
(
"安康96333初始码"
,
"11000"
,
"39"
),
SLCSM
(
"商洛96333初始码"
,
"06000"
,
"40"
),
YLCSM
(
"杨凌96333初始码"
,
"70000"
,
"41"
),
HCCSM
(
"韩城96333初始码"
,
"08000"
,
"42"
),
SMCSM
(
"神木96333初始码"
,
"06000"
,
"43"
),
FGCSM
(
"府谷96333初始码"
,
"02000"
,
"44"
),
YJL
(
"已拒领"
,
"6037"
,
"已拒领"
),
YRL
(
"已认领"
,
"6035"
,
"已认领"
),
DRL
(
"待认领"
,
"6036"
,
"待认领"
),
CSZT
(
"初始状态"
,
"0"
,
"初始状态"
),
YSY
(
"已使用"
,
"1"
,
"已使用"
),
WSY
(
"未使用"
,
"2"
,
"未使用"
),
BF
(
"报废"
,
"6"
,
"报废"
);
private
String
name
;
private
String
name
;
private
String
code
;
private
String
code
;
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
private
String
value
;
public
static
Map
<
String
,
String
>
getCode
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getCode
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getValue
=
new
HashMap
<>();
static
{
static
{
for
(
EquipmentCategoryEnum
e
:
EquipmentCategoryEnum
.
values
()){
for
(
EquipmentCategoryEnum
e
:
EquipmentCategoryEnum
.
values
())
{
getName
.
put
(
e
.
code
,
e
.
name
);
getName
.
put
(
e
.
code
,
e
.
name
);
getCode
.
put
(
e
.
name
,
e
.
code
);
getCode
.
put
(
e
.
name
,
e
.
code
);
getValue
.
put
(
e
.
value
,
e
.
code
);
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
062025b1
...
@@ -455,7 +455,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -455,7 +455,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
zero
.
append
(
num
);
zero
.
append
(
num
);
elevatorCode
.
append
(
zero
);
elevatorCode
.
append
(
zero
);
}
else
{
}
else
{
elevatorCode
.
append
(
EquipmentCategoryEnum
.
CSM
.
getCode
(
));
elevatorCode
.
append
(
EquipmentCategoryEnum
.
getValue
.
get
(
elevator
));
}
}
return
elevatorCode
.
toString
();
return
elevatorCode
.
toString
();
}
}
...
...
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