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
df537d21
Commit
df537d21
authored
Sep 13, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发需求3667
parent
777d2540
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
268 additions
and
50 deletions
+268
-50
FireChemicalDto.java
...join/amos/boot/module/common/api/dto/FireChemicalDto.java
+11
-11
FirefightersExcelDto.java
...amos/boot/module/common/api/dto/FirefightersExcelDto.java
+85
-6
KeySiteExcleDto.java
...join/amos/boot/module/common/api/dto/KeySiteExcleDto.java
+13
-14
FirefightersMapper.xml
...mmon-api/src/main/resources/mapper/FirefightersMapper.xml
+73
-16
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+79
-3
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+7
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FireChemicalDto.java
View file @
df537d21
...
@@ -52,46 +52,46 @@ public class FireChemicalDto extends BaseDto {
...
@@ -52,46 +52,46 @@ public class FireChemicalDto extends BaseDto {
private
String
formula
;
private
String
formula
;
@ApiModelProperty
(
value
=
"主要成分"
)
@ApiModelProperty
(
value
=
"主要成分"
)
@Excel
Property
(
value
=
"主要成分"
,
index
=
7
)
@Excel
Ignore
private
String
ingredient
;
private
String
ingredient
;
@ApiModelProperty
(
value
=
"泄漏处理"
)
@ApiModelProperty
(
value
=
"泄漏处理"
)
@ExcelProperty
(
value
=
"泄漏处理"
,
index
=
8
)
@ExcelProperty
(
value
=
"泄漏处理"
,
index
=
7
)
private
String
leakWay
;
private
String
leakWay
;
@ExcelProperty
(
value
=
"中文名"
,
index
=
0
)
@ExcelProperty
(
value
=
"中文名"
,
index
=
0
)
@ApiModelProperty
(
value
=
"中文名"
)
@ApiModelProperty
(
value
=
"中文名"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"性状"
)
@ApiModelProperty
(
value
=
"性状"
)
@ExcelProperty
(
value
=
"性状"
,
index
=
9
)
@ExcelProperty
(
value
=
"性状"
,
index
=
8
)
private
String
property
;
private
String
property
;
@ApiModelProperty
(
value
=
"贮藏方法"
)
@ApiModelProperty
(
value
=
"贮藏方法"
)
@ExcelProperty
(
value
=
"贮藏方法"
,
index
=
10
)
@ExcelProperty
(
value
=
"贮藏方法"
,
index
=
9
)
private
String
store
;
private
String
store
;
@ApiModelProperty
(
value
=
"症状"
)
@ApiModelProperty
(
value
=
"症状"
)
@ExcelProperty
(
value
=
"症状"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"症状"
,
index
=
1
0
)
private
String
symptom
;
private
String
symptom
;
@ApiModelProperty
(
value
=
"禁忌物/禁忌"
)
@ApiModelProperty
(
value
=
"禁忌物/禁忌"
)
@ExcelProperty
(
value
=
"禁忌物/禁忌"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"禁忌物/禁忌"
,
index
=
1
1
)
private
String
tabu
;
private
String
tabu
;
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
value
=
"类型code"
)
@ApiModelProperty
(
value
=
"类型code"
)
private
String
typeCode
;
private
String
typeCode
;
@ExplicitConstraint
(
type
=
"CHEMICALTYPE"
,
indexNum
=
1
3
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"CHEMICALTYPE"
,
indexNum
=
1
2
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ApiModelProperty
(
value
=
"类型名称"
)
@ApiModelProperty
(
value
=
"类型名称"
)
@ExcelProperty
(
value
=
"类型名称"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"类型名称"
,
index
=
1
2
)
private
String
type
;
private
String
type
;
// @ExplicitConstraint(indexNum=14,source = {"男","女"}) //固定下拉内容
// @ExplicitConstraint(indexNum=14,source = {"男","女"}) //固定下拉内容
@ExcelProperty
(
value
=
"国标号"
,
index
=
1
4
)
@ExcelProperty
(
value
=
"国标号"
,
index
=
1
3
)
@ApiModelProperty
(
value
=
"国标号"
)
@ApiModelProperty
(
value
=
"国标号"
)
private
String
un
;
private
String
un
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"化学品图片"
)
@ApiModelProperty
(
value
=
"化学品图片"
)
@ExcelProperty
(
value
=
"化学品图片"
,
index
=
15
)
private
String
image
;
private
String
image
;
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
value
=
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/FirefightersExcelDto.java
View file @
df537d21
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
java.util.Date
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExplicitConstraint
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExplicitConstraint
;
import
com.yeejoin.amos.boot.module.common.api.excel.RoleNameExplicitConstraint
;
import
com.yeejoin.amos.boot.module.common.api.excel.RoleNameExplicitConstraint
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
/**
* 消防队员
* 消防队员
*
*
...
@@ -168,13 +172,88 @@ public class FirefightersExcelDto extends BaseDto {
...
@@ -168,13 +172,88 @@ public class FirefightersExcelDto extends BaseDto {
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
value
=
"操作人名称"
)
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
private
String
recUserName
;
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
value
=
"岗位资质"
)
@ApiModelProperty
(
value
=
"人员id"
)
private
Long
firefightersId
;
/*************************岗位职级***********************/
@ApiModelProperty
(
value
=
"员工层级"
)
@ExcelProperty
(
value
=
"员工层级"
,
index
=
20
)
@ExplicitConstraint
(
type
=
"YGCJ"
,
indexNum
=
20
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
private
String
employeeHierarchy
;
@ApiModelProperty
(
value
=
"行政职务"
)
@ExplicitConstraint
(
type
=
"XZZW"
,
indexNum
=
21
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"行政职务"
,
index
=
21
)
private
String
administrativePosition
;
@ApiModelProperty
(
value
=
"岗位资质"
)
@ExplicitConstraint
(
type
=
"GWZZ"
,
indexNum
=
22
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"岗位资质"
,
index
=
22
)
private
String
postQualification
;
private
String
postQualification
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"消防救援人员类别"
)
@ApiModelProperty
(
value
=
"专家领域"
)
@ExplicitConstraint
(
type
=
"XFRYLB"
,
indexNum
=
23
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防救援人员类别"
,
index
=
23
)
private
String
category
;
// @ApiModelProperty(value = "消防救援人员状态")
// private String state;
@ApiModelProperty
(
value
=
"消防救援衔级别代码"
)
@ExplicitConstraint
(
type
=
"XFJYJB"
,
indexNum
=
24
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防救援衔级别代码"
,
index
=
24
)
private
String
level
;
@ApiModelProperty
(
value
=
"消防专家领域"
)
@ExplicitConstraint
(
type
=
"ZJLY"
,
indexNum
=
25
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"消防专家领域"
,
index
=
25
)
private
String
areasExpertise
;
private
String
areasExpertise
;
/*************************学历教育***********************/
@ApiModelProperty
(
value
=
"第一学历"
)
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
26
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"第一学历"
,
index
=
26
)
private
String
firstDegree
;
@ApiModelProperty
(
value
=
"最高学历"
)
@ExplicitConstraint
(
type
=
"XLLX"
,
indexNum
=
27
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"最高学历"
,
index
=
27
)
private
String
highestEducation
;
@ApiModelProperty
(
value
=
"学位"
)
@ExplicitConstraint
(
type
=
"XWLX"
,
indexNum
=
28
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"学位"
,
index
=
28
)
private
String
academicDegree
;
@ApiModelProperty
(
value
=
"毕业院校"
)
@ExcelProperty
(
value
=
"毕业院校"
,
index
=
29
)
private
String
school
;
@ApiModelProperty
(
value
=
"毕业专业名称"
)
@ExcelProperty
(
value
=
"毕业专业名称"
,
index
=
30
)
private
String
professionalName
;
/*************************工作履历岗***********************/
@ApiModelProperty
(
value
=
"参加工作时间"
)
@ExcelProperty
(
value
=
"参加工作时间"
,
index
=
31
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
workingHours
;
@ApiModelProperty
(
value
=
"参加消防部门工作时间"
)
@ExcelProperty
(
value
=
"参加消防部门工作时间"
,
index
=
32
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fireWorkingHours
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/KeySiteExcleDto.java
View file @
df537d21
...
@@ -53,53 +53,52 @@ public class KeySiteExcleDto implements Serializable {
...
@@ -53,53 +53,52 @@ public class KeySiteExcleDto implements Serializable {
private
String
buildingArea
;
private
String
buildingArea
;
@ExcelIgnore
@ExcelIgnore
@ExcelProperty
(
value
=
"建筑高度(m)"
,
index
=
5
)
@ApiModelProperty
(
value
=
"建筑高度(m)"
)
@ApiModelProperty
(
value
=
"建筑高度(m)"
)
private
String
buildingHeight
;
private
String
buildingHeight
;
@ExplicitConstraint
(
type
=
"NHDJ"
,
indexNum
=
6
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"NHDJ"
,
indexNum
=
5
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"耐火等级"
,
index
=
6
)
@ExcelProperty
(
value
=
"耐火等级"
,
index
=
5
)
@ApiModelProperty
(
value
=
"耐火等级"
)
@ApiModelProperty
(
value
=
"耐火等级"
)
private
String
fireEnduranceRate
;
private
String
fireEnduranceRate
;
@ExplicitConstraint
(
type
=
"JZWSYXZ"
,
indexNum
=
7
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExplicitConstraint
(
type
=
"JZWSYXZ"
,
indexNum
=
6
,
sourceClass
=
RoleNameExplicitConstraint
.
class
)
//动态下拉内容
@ExcelProperty
(
value
=
"使用性质"
,
index
=
7
)
@ExcelProperty
(
value
=
"使用性质"
,
index
=
6
)
@ApiModelProperty
(
value
=
"使用性质"
)
@ApiModelProperty
(
value
=
"使用性质"
)
private
String
useNature
;
private
String
useNature
;
@ExcelProperty
(
value
=
"责任人"
,
index
=
8
)
@ExcelProperty
(
value
=
"责任人"
,
index
=
7
)
@ApiModelProperty
(
value
=
"责任人"
)
@ApiModelProperty
(
value
=
"责任人"
)
private
String
chargePerson
;
private
String
chargePerson
;
@ExcelProperty
(
value
=
"责任人身份证"
,
index
=
9
)
@ExcelProperty
(
value
=
"责任人身份证"
,
index
=
8
)
@ApiModelProperty
(
value
=
"责任人身份证"
)
@ApiModelProperty
(
value
=
"责任人身份证"
)
private
String
chargePersonId
;
private
String
chargePersonId
;
@ExcelProperty
(
value
=
"确定重点防火部位的原因"
,
index
=
10
)
@ExcelProperty
(
value
=
"确定重点防火部位的原因"
,
index
=
9
)
@ApiModelProperty
(
value
=
"确定重点防火部位的原因"
)
@ApiModelProperty
(
value
=
"确定重点防火部位的原因"
)
private
String
keyPreventionReason
;
private
String
keyPreventionReason
;
@ExcelProperty
(
value
=
"消防设施情况"
,
index
=
1
1
)
@ExcelProperty
(
value
=
"消防设施情况"
,
index
=
1
0
)
@ExplicitConstraint
(
indexNum
=
11
,
source
=
{
"有"
,
"无"
})
@ExplicitConstraint
(
indexNum
=
11
,
source
=
{
"有"
,
"无"
})
@ApiModelProperty
(
value
=
"消防设施情况"
)
@ApiModelProperty
(
value
=
"消防设施情况"
)
private
String
fireFacilitiesInfo
;
private
String
fireFacilitiesInfo
;
@ExcelProperty
(
value
=
"防火标志设立情况"
,
index
=
1
2
)
@ExcelProperty
(
value
=
"防火标志设立情况"
,
index
=
1
1
)
@ApiModelProperty
(
value
=
"防火标志设立情况"
)
@ApiModelProperty
(
value
=
"防火标志设立情况"
)
private
String
firePreventionFlagName
;
private
String
firePreventionFlagName
;
@ExcelProperty
(
value
=
"危险源"
,
index
=
1
3
)
@ExcelProperty
(
value
=
"危险源"
,
index
=
1
2
)
@ApiModelProperty
(
value
=
"危险源"
)
@ApiModelProperty
(
value
=
"危险源"
)
private
String
hazard
;
private
String
hazard
;
@ExcelProperty
(
value
=
"消防安全管理措施"
,
index
=
1
4
)
@ExcelProperty
(
value
=
"消防安全管理措施"
,
index
=
1
3
)
@ApiModelProperty
(
value
=
"消防安全管理措施"
)
@ApiModelProperty
(
value
=
"消防安全管理措施"
)
private
String
safetyManagementMeasures
;
private
String
safetyManagementMeasures
;
@ExcelProperty
(
value
=
"防范手段措施"
,
index
=
1
5
)
@ExcelProperty
(
value
=
"防范手段措施"
,
index
=
1
4
)
@ApiModelProperty
(
value
=
"防范手段措施"
)
@ApiModelProperty
(
value
=
"防范手段措施"
)
private
String
preventiveMeasures
;
private
String
preventiveMeasures
;
@ExcelProperty
(
value
=
"备注"
,
index
=
1
6
)
@ExcelProperty
(
value
=
"备注"
,
index
=
1
5
)
@ApiModelProperty
(
value
=
"备注"
)
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
private
String
remark
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/FirefightersMapper.xml
View file @
df537d21
...
@@ -5,10 +5,12 @@
...
@@ -5,10 +5,12 @@
<select
id=
"getFirefightersJobTitleCount"
<select
id=
"getFirefightersJobTitleCount"
resultType=
"com.yeejoin.amos.boot.biz.common.utils.FirefightersTreeDto"
>
resultType=
"com.yeejoin.amos.boot.biz.common.utils.FirefightersTreeDto"
>
select COUNT(a.sequence_nbr) num, a.job_title_code jobTitleCode
select COUNT(a.sequence_nbr) num, a.job_title_code
jobTitleCode
from cb_firefighters a
from cb_firefighters a
where a.is_delete = 0
where a.is_delete = 0
GROUP BY a.job_title_code
GROUP BY
a.job_title_code
</select>
</select>
<!--消防队员列表按时间倒叙排列add desc 2021-09-08 by kongfm -->
<!--消防队员列表按时间倒叙排列add desc 2021-09-08 by kongfm -->
<select
id=
"getFirefighters"
<select
id=
"getFirefighters"
...
@@ -16,7 +18,8 @@
...
@@ -16,7 +18,8 @@
select a.*,b.areas_expertise areasExpertise ,b.areas_expertise_code
select a.*,b.areas_expertise areasExpertise ,b.areas_expertise_code
areasExpertiseCode from cb_firefighters a LEFT JOIN
areasExpertiseCode from cb_firefighters a LEFT JOIN
cb_firefighters_post b on
cb_firefighters_post b on
a.sequence_nbr=b.firefighters_id where a.is_delete=0
a.sequence_nbr=b.firefighters_id where
a.is_delete=0
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.postQualification!=null'
>
and b.post_qualification_code = #{par.postQualification}
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}
</if>
<if
test=
'par.areasExpertise!=null'
>
and b.areas_expertise_code= #{par.areasExpertise}
</if>
<if
test=
'par.name!=null'
>
and a.name like concat ('%',#{par.name},'%')
</if>
<if
test=
'par.name!=null'
>
and a.name like concat ('%',#{par.name},'%')
</if>
...
@@ -48,7 +51,8 @@
...
@@ -48,7 +51,8 @@
<select
id=
"listToSelectById"
resultType=
"Map"
>
<select
id=
"listToSelectById"
resultType=
"Map"
>
SELECT IFNULL(a.personnel_photos, '') personnelPhotos,
SELECT
IFNULL(a.personnel_photos, '') personnelPhotos,
a.sequence_nbr
a.sequence_nbr
sequenceNbr,
sequenceNbr,
IFNULL(a.`name`, '无') `name`,
IFNULL(a.`name`, '无') `name`,
...
@@ -65,31 +69,84 @@
...
@@ -65,31 +69,84 @@
IFNULL(b.post_qualification, '无')
IFNULL(b.post_qualification, '无')
postQualification, year ( from_days( datediff( now( ),
postQualification, year ( from_days( datediff( now( ),
a.birthday_time))) age
a.birthday_time))) age
FROM cb_firefighters a LEFT JOIN cb_firefighters_post b
FROM cb_firefighters a LEFT JOIN
cb_firefighters_post b
ON a.sequence_nbr
ON a.sequence_nbr
= b.firefighters_id LEFT JOIN cb_fire_team c on
= b.firefighters_id LEFT JOIN
cb_fire_team c on
c.sequence_nbr=a.fire_team_id
c.sequence_nbr=a.fire_team_id
WHERE a.is_delete =0
WHERE a.is_delete =0
and a.sequence_nbr=#{id}
and
a.sequence_nbr=#{id}
</select>
</select>
<!-- BUG3553 BY kongfm 人员关系显示汉字 -->
<!-- BUG3553 BY kongfm 人员关系显示汉字 -->
<!---陈浩修改导出的数据量 2021-09-13-->
<select
id=
"exportToExcel"
<select
id=
"exportToExcel"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FirefightersExcelDto"
>
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.FirefightersExcelDto"
>
<!-- SELECT f.*, ( SELECT cb_fire_team.NAME FROM cb_fire_team WHERE cb_fire_team.sequence_nbr
= f.fire_team_id ) fireTeam, emergency_contact, da.NAME AS relationship,
emergency_contact_phone FROM cb_firefighters f LEFT JOIN cb_firefighters_contacts
fc ON f.sequence_nbr = fc.firefighters_id left join cb_data_dictionary da
on da.CODE = fc.relationship where f.is_delete = #{isDelete} -->
SELECT
SELECT
f.*,
f.*, (
( SELECT cb_fire_team.NAME FROM cb_fire_team WHERE
SELECT
cb_fire_team.sequence_nbr = f.fire_team_id ) fireTeam,
cb_fire_team. NAME
FROM
cb_fire_team
WHERE
cb_fire_team.sequence_nbr = f.fire_team_id
) fireTeam,
emergency_contact,
emergency_contact,
da.NAME AS relationship,
da. NAME AS relationship,
emergency_contact_phone
emergency_contact_phone,
fw.working_hours,
fw.fire_working_hours,
(
SELECT
NAME
FROM
cb_data_dictionary
WHERE
CODE = fe.first_degree
AND type = 'XLLX'
) AS
first_degree,
(
SELECT
NAME
FROM
cb_data_dictionary
WHERE
CODE =
fe.highest_education
AND type = 'XLLX'
) AS highest_education,
(
SELECT
NAME
FROM
cb_data_dictionary
WHERE
CODE = fe.academic_degree
AND type ='XWLX'
) AS academic_degree,
fe.school,
fe.professional_name,
fp.*
FROM
FROM
cb_firefighters f
cb_firefighters f
LEFT JOIN cb_firefighters_contacts fc ON f.sequence_nbr =
LEFT JOIN cb_firefighters_contacts fc ON f.sequence_nbr = fc.firefighters_id
fc.firefighters_id
LEFT JOIN cb_data_dictionary da ON da. CODE = fc.relationship
left join cb_data_dictionary da on da.CODE = fc.relationship
LEFT JOIN cb_firefighters_workexperience fw ON f.sequence_nbr = fw.firefighters_id
where f.is_delete = #{isDelete}
LEFT JOIN cb_firefighters_education fe ON f.sequence_nbr = fe.firefighters_id
LEFT JOIN cb_firefighters_post fp ON f.sequence_nbr = fp.firefighters_id
WHERE
f.is_delete = 0 and fc.is_delete=0 and
fw.is_delete=0 and fe.is_delete=0 and
fp.is_delete=0
</select>
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
df537d21
...
@@ -33,7 +33,6 @@ import com.baomidou.mybatisplus.core.toolkit.Sequence;
...
@@ -33,7 +33,6 @@ import com.baomidou.mybatisplus.core.toolkit.Sequence;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.CompanyPerson
;
import
com.yeejoin.amos.boot.module.common.api.dto.CompanyPerson
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyCarDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyCarDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyPersonDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyPersonDto
;
...
@@ -66,6 +65,9 @@ import com.yeejoin.amos.boot.module.common.api.entity.FireStation;
...
@@ -66,6 +65,9 @@ import com.yeejoin.amos.boot.module.common.api.entity.FireStation;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.api.entity.FireTeam
;
import
com.yeejoin.amos.boot.module.common.api.entity.Firefighters
;
import
com.yeejoin.amos.boot.module.common.api.entity.Firefighters
;
import
com.yeejoin.amos.boot.module.common.api.entity.FirefightersContacts
;
import
com.yeejoin.amos.boot.module.common.api.entity.FirefightersContacts
;
import
com.yeejoin.amos.boot.module.common.api.entity.FirefightersEducation
;
import
com.yeejoin.amos.boot.module.common.api.entity.FirefightersPost
;
import
com.yeejoin.amos.boot.module.common.api.entity.FirefightersWorkexperience
;
import
com.yeejoin.amos.boot.module.common.api.entity.MaintenanceCompany
;
import
com.yeejoin.amos.boot.module.common.api.entity.MaintenanceCompany
;
import
com.yeejoin.amos.boot.module.common.api.entity.RescueEquipment
;
import
com.yeejoin.amos.boot.module.common.api.entity.RescueEquipment
;
import
com.yeejoin.amos.boot.module.common.api.entity.SpecialPositionStaff
;
import
com.yeejoin.amos.boot.module.common.api.entity.SpecialPositionStaff
;
...
@@ -82,7 +84,11 @@ import com.yeejoin.amos.boot.module.common.biz.service.impl.DynamicFormColumnSer
...
@@ -82,7 +84,11 @@ import com.yeejoin.amos.boot.module.common.biz.service.impl.DynamicFormColumnSer
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireChemicalServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireChemicalServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireExpertsServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireExpertsServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireStationServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FireStationServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersContactsServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersEducationServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersPostServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.FirefightersWorkexperienceServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.LinkageUnitServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.LinkageUnitServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.RescueEquipmentServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.RescueEquipmentServiceImpl
;
...
@@ -103,8 +109,6 @@ public class ExcelServiceImpl {
...
@@ -103,8 +109,6 @@ public class ExcelServiceImpl {
private
static
final
String
MAINTENANCE_PERSON
=
"maintenancePerson"
;
private
static
final
String
MAINTENANCE_PERSON
=
"maintenancePerson"
;
@Autowired
@Autowired
private
RedisUtils
redisUtils
;
@Autowired
DataSourcesImpl
dataSourcesImpl
;
DataSourcesImpl
dataSourcesImpl
;
@Autowired
@Autowired
FireChemicalServiceImpl
fireChemicalServiceImpl
;
FireChemicalServiceImpl
fireChemicalServiceImpl
;
...
@@ -150,6 +154,15 @@ public class ExcelServiceImpl {
...
@@ -150,6 +154,15 @@ public class ExcelServiceImpl {
RescueEquipmentServiceImpl
rescueEquipmentServiceImpl
;
RescueEquipmentServiceImpl
rescueEquipmentServiceImpl
;
@Autowired
@Autowired
IOrgUsrService
orgUsrServer
;
IOrgUsrService
orgUsrServer
;
@Autowired
FirefightersPostServiceImpl
iFirefightersPostService
;
@Autowired
FirefightersContactsServiceImpl
ifirefightersContactsService
;
@Autowired
FirefightersEducationServiceImpl
ifirefightersEducationService
;
@Autowired
FirefightersWorkexperienceServiceImpl
ifirefightersWorkexperienceService
;
public
void
templateExport
(
HttpServletResponse
response
,
ExcelDto
excelDto
)
throws
ClassNotFoundException
{
public
void
templateExport
(
HttpServletResponse
response
,
ExcelDto
excelDto
)
throws
ClassNotFoundException
{
String
url
=
excelDto
.
getClassUrl
();
String
url
=
excelDto
.
getClassUrl
();
...
@@ -511,7 +524,20 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -511,7 +524,20 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
FirefightersContacts
firefightersContacts
=
new
FirefightersContacts
();
FirefightersContacts
firefightersContacts
=
new
FirefightersContacts
();
firefighters
=
Bean
.
toPo
(
item
,
firefighters
);
firefighters
=
Bean
.
toPo
(
item
,
firefighters
);
firefighters
=
Bean
.
toPo
(
getCurrentInfo
(),
firefighters
);
firefighters
=
Bean
.
toPo
(
getCurrentInfo
(),
firefighters
);
//手动添加主键,以便于给岗位、职位等实体赋值id
Long
sequenceId
=
sequence
.
nextId
();
firefighters
.
setSequenceNbr
(
sequenceId
);
item
.
setFirefightersId
(
sequenceId
);
firefightersContacts
=
Bean
.
toPo
(
item
,
firefightersContacts
);
firefightersContacts
=
Bean
.
toPo
(
item
,
firefightersContacts
);
FirefightersWorkexperience
firefightersWorkexperience
=
new
FirefightersWorkexperience
();
FirefightersEducation
firefightersEducation
=
new
FirefightersEducation
();
FirefightersPost
firefightersPost
=
new
FirefightersPost
();
firefightersWorkexperience
=
Bean
.
toPo
(
item
,
firefightersWorkexperience
);
firefightersEducation
=
Bean
.
toPo
(
item
,
firefightersEducation
);
firefightersPost
=
Bean
.
toPo
(
item
,
firefightersPost
);
if
(
item
.
getFireTeam
()
!=
null
)
{
if
(
item
.
getFireTeam
()
!=
null
)
{
Long
fireTeamId
=
Long
.
valueOf
(
item
.
getFireTeam
().
split
(
"@"
)[
1
]);
Long
fireTeamId
=
Long
.
valueOf
(
item
.
getFireTeam
().
split
(
"@"
)[
1
]);
firefighters
.
setFireTeamId
(
fireTeamId
);
firefighters
.
setFireTeamId
(
fireTeamId
);
...
@@ -550,6 +576,56 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -550,6 +576,56 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
firefighters
.
setResidence
(
tempCity
[
0
]);
firefighters
.
setResidence
(
tempCity
[
0
]);
firefighters
.
setResidenceDetails
(
tempCity
[
1
]);
firefighters
.
setResidenceDetails
(
tempCity
[
1
]);
}
}
/*************************岗位职级***********************/
if
(
item
.
getEmployeeHierarchy
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getEmployeeHierarchy
().
split
(
"@"
);
firefightersPost
.
setEmployeeHierarchy
(
employeeHierarchy
[
0
]);
firefightersPost
.
setEmployeeHierarchyCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getAdministrativePosition
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getAdministrativePosition
().
split
(
"@"
);
firefightersPost
.
setAdministrativePosition
(
employeeHierarchy
[
0
]);
firefightersPost
.
setAdministrativePositionCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getEmployeeHierarchy
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getEmployeeHierarchy
().
split
(
"@"
);
firefightersPost
.
setEmployeeHierarchy
(
employeeHierarchy
[
0
]);
firefightersPost
.
setEmployeeHierarchyCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getPostQualification
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getPostQualification
().
split
(
"@"
);
firefightersPost
.
setPostQualification
(
employeeHierarchy
[
0
]);
firefightersPost
.
setPostQualificationCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getCategory
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getCategory
().
split
(
"@"
);
firefightersPost
.
setCategory
(
employeeHierarchy
[
0
]);
firefightersPost
.
setCategoryCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getLevel
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getLevel
().
split
(
"@"
);
firefightersPost
.
setLevel
(
employeeHierarchy
[
0
]);
firefightersPost
.
setLevelCode
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getAreasExpertise
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getAreasExpertise
().
split
(
"@"
);
firefightersPost
.
setAreasExpertise
(
employeeHierarchy
[
0
]);
firefightersPost
.
setAreasExpertiseCode
(
employeeHierarchy
[
1
]);
}
/*************************学历教育***********************/
if
(
item
.
getFirstDegree
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getFirstDegree
().
split
(
"@"
);
firefightersEducation
.
setFirstDegree
(
employeeHierarchy
[
1
]);
}
if
(
item
.
getHighestEducation
()!=
null
)
{
String
[]
employeeHierarchy
=
item
.
getHighestEducation
().
split
(
"@"
);
firefightersEducation
.
setHighestEducation
(
employeeHierarchy
[
1
]);
}
iFirefightersPostService
.
save
(
firefightersPost
);
ifirefightersEducationService
.
save
(
firefightersEducation
);
ifirefightersWorkexperienceService
.
save
(
firefightersWorkexperience
);
// BUG 2760 修改消防人员导出模板和 导入问题 bykongfm
// BUG 2760 修改消防人员导出模板和 导入问题 bykongfm
FirefightersInfoDto
firefightersInfo
=
new
FirefightersInfoDto
(
firefighters
,
firefightersContacts
);
FirefightersInfoDto
firefightersInfo
=
new
FirefightersInfoDto
(
firefighters
,
firefightersContacts
);
firefightersService
.
saveFirefighters
(
firefightersInfo
);
firefightersService
.
saveFirefighters
(
firefightersInfo
);
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
df537d21
...
@@ -312,4 +312,11 @@
...
@@ -312,4 +312,11 @@
'调派任务状态(执行中:executing,已完成:finished)';
'调派任务状态(执行中:executing,已完成:finished)';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"chenhao"
id=
"2021-09-13-chenhao-1"
>
<comment>
update data cb_firefighters_workexperience
</comment>
<sql>
ALTER TABLE `cb_firefighters_workexperience` modify working_hours date COMMENT '参加工作时间';
ALTER TABLE `cb_firefighters_workexperience` modify fire_working_hours date COMMENT '参加消防部门工作时间';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
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