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
82550849
Commit
82550849
authored
May 05, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
53dfb1f3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
111 additions
and
13 deletions
+111
-13
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
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
+12
-0
StationBasicDto.java
...ejoin/amos/boot/module/jxiop/api/dto/StationBasicDto.java
+3
-0
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.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+2
-1
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+4
-0
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
+6
-0
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+26
-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 @
82550849
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 @
82550849
...
@@ -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/PersonBasicDto.java
View file @
82550849
...
@@ -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 @
82550849
...
@@ -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 @
82550849
...
@@ -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/UserMapperDto.java
View file @
82550849
...
@@ -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 @
82550849
...
@@ -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 @
82550849
...
@@ -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 @
82550849
...
@@ -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/resources/mapper/StationBasicMapper.xml
View file @
82550849
...
@@ -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
...
@@ -72,7 +73,7 @@
...
@@ -72,7 +73,7 @@
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 ,
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
82550849
...
@@ -72,6 +72,10 @@ public class StationBasicController extends BaseController {
...
@@ -72,6 +72,10 @@ public class StationBasicController extends BaseController {
public
ResponseModel
<
StationBasicDto
>
updateBySequenceNbrStationBasic
(
@RequestBody
StationBasic
model
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
StationBasicDto
>
updateBySequenceNbrStationBasic
(
@RequestBody
StationBasic
model
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
try
{
try
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
stationBasicServiceImpl
.
update
(
model
);
stationBasicServiceImpl
.
update
(
model
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
catch
(
InnerInvokException
e
){
}
catch
(
InnerInvokException
e
){
...
...
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 @
82550849
...
@@ -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 @
82550849
...
@@ -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 @
82550849
...
@@ -207,7 +207,13 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
...
@@ -207,7 +207,13 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto,PersonBas
PersonSkillEducation
personSkillEducation
=
new
PersonSkillEducation
();
PersonSkillEducation
personSkillEducation
=
new
PersonSkillEducation
();
BeanUtils
.
copyProperties
(
personUser
,
personSkillEducation
);
BeanUtils
.
copyProperties
(
personUser
,
personSkillEducation
);
personSkillEducation
.
setPersonId
(
personBasic
.
getSequenceNbr
());
personSkillEducation
.
setPersonId
(
personBasic
.
getSequenceNbr
());
PersonSkillEducation
personSkillEducationd
=
personSkillEducationService
.
getOne
(
new
QueryWrapper
<
PersonSkillEducation
>().
eq
(
"person_id"
,
personBasic
.
getSequenceNbr
()));
personSkillEducation
.
setSequenceNbr
(
personSkillEducationd
.
getSequenceNbr
());
personSkillEducationService
.
updateById
(
personSkillEducation
);
personSkillEducationService
.
updateById
(
personSkillEducation
);
//人员资质信息
//人员资质信息
personCertificateService
.
updateById
(
personCertificate
);
personCertificateService
.
updateById
(
personCertificate
);
//人员账号信息
//人员账号信息
...
...
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 @
82550849
...
@@ -15,6 +15,8 @@ import com.yeejoin.amos.component.feign.model.FeignClientResult;
...
@@ -15,6 +15,8 @@ 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
;
...
@@ -25,7 +27,7 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -25,7 +27,7 @@ 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
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -46,6 +48,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -46,6 +48,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
PersonBasicServiceImpl
personBasicServiceImpl
;
PersonBasicServiceImpl
personBasicServiceImpl
;
@Autowired
@Autowired
StationBasicMapper
stationBasicMapper
;
StationBasicMapper
stationBasicMapper
;
private
final
String
CZLX
=
"CZLX"
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -111,6 +115,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -111,6 +115,10 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
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
)){
if
(
CollectionUtils
.
isEmpty
(
list
)){
...
@@ -155,7 +163,19 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -155,7 +163,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
();
}
...
@@ -202,6 +222,11 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
...
@@ -202,6 +222,11 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setAreaCode
(
companyModel
.
getCompanyCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setProjectOrgCode
(
companyModeldata
.
getOrgCode
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
stationBasic
.
setPlatformStationId
(
companyModeldata
.
getSequenceNbr
().
toString
());
//获取类型名称
String
typeName
=
this
.
queryByCode
(
CZLX
,
stationBasic
.
getStationType
());
stationBasic
.
setStationTypeName
(
typeName
);
//场站基本信息
//场站基本信息
stationBasicMapper
.
updateById
(
stationBasic
);
stationBasicMapper
.
updateById
(
stationBasic
);
...
...
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