From a63783ddbf3184600a7b69c7e5bede99532b4784 Mon Sep 17 00:00:00 2001 From: 15036302109 Date: Wed, 27 Dec 2023 11:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=9F=E4=BC=8D=EF=BC=8C=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ehs/EhsFloodDroughtTeamController.java | 6 +- .../ehs/EhsFloodDroughtWorkerController.java | 6 +- .../ehs/EhsRescueTeamController.java | 6 +- .../ehs/EhsRescueTeamWorkerController.java | 4 +- .../domain/EhsFloodDroughtTeam.java | 28 ++++++- .../FloodDroughtTeamImportTemplate.java | 20 ++++- .../impl/EhsFloodDroughtTeamServiceImpl.java | 10 ++- .../domain/EhsFloodDroughtWorker.java | 17 +++-- .../FloodDroughtWorkerImportTemplate.java | 11 ++- .../EhsFloodDroughtWorkerServiceImpl.java | 8 +- .../ehsRescueTeam/domain/EhsRescueTeam.java | 28 ++++++- .../domain/RescueTeamImportTemplate.java | 20 ++++- .../impl/EhsRescueTeamServiceImpl.java | 10 ++- .../domain/EhsRescueTeamWorker.java | 18 +++-- .../RescueTeamWorkerImportTemplate.java | 20 +++-- .../impl/EhsRescueTeamWorkerServiceImpl.java | 9 ++- .../mapper/ehs/EhsFloodDroughtTeamMapper.xml | 10 ++- .../ehs/EhsFloodDroughtWorkerMapper.xml | 13 ++-- .../mapper/ehs/EhsRescueTeamMapper.xml | 14 +++- .../mapper/ehs/EhsRescueTeamWorkerMapper.xml | 10 ++- .../views/ehs/ehsFloodDroughtTeam/index.vue | 72 ++++++++++++++++-- .../views/ehs/ehsFloodDroughtWorker/index.vue | 52 +++++++------ .../src/views/ehs/ehsRescueTeam/index.vue | 76 +++++++++++++++++-- .../views/ehs/ehsRescueTeamWorker/index.vue | 57 +++++++------- 24 files changed, 413 insertions(+), 112 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtTeamController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtTeamController.java index 02f2b38..294a4a7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtTeamController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtTeamController.java @@ -125,7 +125,11 @@ public class EhsFloodDroughtTeamController extends BaseController { String[] header = {"队伍名称#", "队伍级别#", - "队伍性质(0-其他,1-政府,2-企业,3-社会)#", + "负责人#", + "联系电话#", + "所属单位#", + "驻地#", + "队伍属性(0-其他,1-政府,2-企业,3-社会)#", "备注#"}; ExcelExp e1 = new ExcelExp("防汛抗旱队伍信息", header, ehsFloodDroughtTeams, EhsFloodDroughtTeam.class); List mysheet = new ArrayList<>(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtWorkerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtWorkerController.java index c03a332..135743d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtWorkerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsFloodDroughtWorkerController.java @@ -122,12 +122,14 @@ public class EhsFloodDroughtWorkerController extends BaseController { List workerList = new ArrayList<>(); String[] header = {"人员姓名#", - "性别(0-男,1-女)#", - "出生年月(格式为:2023-12-12)#", + "年龄#", + "性别(0男 1女)#", "身份证号#", "联系方式#", + "队内职务#", "工作年限#", "技能特长#", + "培训次数#", "备注#"}; ExcelExp e1 = new ExcelExp("防汛抗旱队伍人员信息", header, workerList, EhsFloodDroughtWorker.class); List mysheet = new ArrayList<>(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamController.java index e28fe99..3329799 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamController.java @@ -81,7 +81,11 @@ public class EhsRescueTeamController extends BaseController { String[] header = {"队伍名称#", "队伍级别#", - "队伍性质(0-其他,1-政府,2-企业,3-社会)#", + "负责人#", + "联系电话#", + "所属单位#", + "驻地#", + "队伍属性(0-其他,1-政府,2-企业,3-社会)#", "备注#"}; ExcelExp e1 = new ExcelExp("应急救援队伍信息", header, ehsRescueTeamList, EhsRescueTeam.class); List mysheet = new ArrayList<>(); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamWorkerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamWorkerController.java index 25e5550..0be4cb8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamWorkerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsRescueTeamWorkerController.java @@ -124,12 +124,14 @@ public class EhsRescueTeamWorkerController extends BaseController { List teamWorkerList = new ArrayList<>(); String[] header = {"人员姓名#", + "年龄#", "性别(0男 1女)#", - "出生年月(格式为2023-12-12)#", "身份证号#", "联系方式#", + "队内职务#", "工作年限#", "救援技能特长#", + "培训次数#", "备注#"}; ExcelExp e1 = new ExcelExp("应急救援队伍人员信息", header, teamWorkerList, EhsRescueTeamWorker.class); List mysheet = new ArrayList<>(); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/EhsFloodDroughtTeam.java b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/EhsFloodDroughtTeam.java index c74a153..3cdb498 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/EhsFloodDroughtTeam.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/EhsFloodDroughtTeam.java @@ -39,9 +39,33 @@ public class EhsFloodDroughtTeam extends BaseEntity private String teamLevel; /** - * 队伍性质 + * 负责人 */ - @Excel(name = "队伍性质(0-其他,1-政府,2-企业,3-社会)") + @Excel(name = "负责人") + private String dutyer; + + /** + * 联系电话 + */ + @Excel(name = "联系电话") + private String phone; + + /** + * 所属单位 + */ + @Excel(name = "所属单位") + private String unit; + + /** + * 驻地 + */ + @Excel(name = "驻地") + private String station; + + /** + * 队伍属性 + */ + @Excel(name = "队伍属性(0-其他,1-政府,2-企业,3-社会)") private Integer teamProperty; /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/FloodDroughtTeamImportTemplate.java b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/FloodDroughtTeamImportTemplate.java index 9a2e767..d26ea54 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/FloodDroughtTeamImportTemplate.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/domain/FloodDroughtTeamImportTemplate.java @@ -13,8 +13,24 @@ public class FloodDroughtTeamImportTemplate { @Excel(name = "队伍级别",type = Excel.Type.ALL) private String teamLevel; - /** 队伍性质 */ - @Excel(name = "队伍性质(0-其他,1-政府,2-企业,3-社会)",type = Excel.Type.ALL) + /** 负责人 */ + @Excel(name = "负责人",type = Excel.Type.ALL) + private String dutyer; + + /** 联系电话 */ + @Excel(name = "联系电话",type = Excel.Type.ALL) + private String phone; + + /** 所属单位 */ + @Excel(name = "所属单位",type = Excel.Type.ALL) + private String unit; + + /** 驻地 */ + @Excel(name = "驻地",type = Excel.Type.ALL) + private String station; + + /** 队伍属性 */ + @Excel(name = "队伍属性(0-其他,1-政府,2-企业,3-社会)",type = Excel.Type.ALL) private Integer teamProperty; /** 备注 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/service/impl/EhsFloodDroughtTeamServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/service/impl/EhsFloodDroughtTeamServiceImpl.java index 99bf6e1..cc38fd7 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/service/impl/EhsFloodDroughtTeamServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsFloodDroughtTeam/service/impl/EhsFloodDroughtTeamServiceImpl.java @@ -91,7 +91,11 @@ public class EhsFloodDroughtTeamServiceImpl extends ServiceImpl + + + + @@ -20,7 +24,7 @@ - select id, team_name, team_level, team_property, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_flood_drought_team + select id, team_name, team_level, dutyer, phone, unit, station, team_property, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_flood_drought_team diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsFloodDroughtWorkerMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsFloodDroughtWorkerMapper.xml index 416a400..d2417fd 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsFloodDroughtWorkerMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsFloodDroughtWorkerMapper.xml @@ -10,11 +10,13 @@ - + + + @@ -26,7 +28,7 @@ - select id, team_id, team_name, worker_name, gender, birthday, id_card, phone, work_year, speciality, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_flood_drought_worker + select id, team_id, team_name, worker_name, worker_age, team_post, train_num, gender, id_card, phone, work_year, speciality, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_flood_drought_worker diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamMapper.xml index ecaed70..0dd04d2 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamMapper.xml @@ -8,6 +8,13 @@ + + + + + + + @@ -21,7 +28,7 @@ - select id, team_name, team_level, team_property, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_rescue_team + select id, team_name, team_level, dutyer, phone, unit, station, team_property, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_rescue_team diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamWorkerMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamWorkerMapper.xml index 17beece..e76d1ce 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamWorkerMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsRescueTeamWorkerMapper.xml @@ -10,7 +10,9 @@ - + + + @@ -26,7 +28,7 @@ - select id, rescue_team_id, rescue_team_name, worker_name, gender, birthday, id_card, phone, work_year, speciality, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_rescue_team_worker + select id, rescue_team_id, rescue_team_name, worker_name, worker_age, gender, id_card, phone, team_post, work_year, speciality, train_num, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_rescue_team_worker update ehs_rescue_team_worker @@ -45,11 +47,13 @@ and rescue_team_name like concat('%', #{rescueTeamName}, '%') and worker_name like concat('%', #{workerName}, '%') and gender = #{gender} - and birthday = #{birthday} and id_card = #{idCard} and phone = #{phone} and work_year = #{workYear} and speciality = #{speciality} + and worker_age = #{workerAge} + and team_post = #{teamPost} + and train_num = #{trainNum} diff --git a/ruoyi-ui/src/views/ehs/ehsFloodDroughtTeam/index.vue b/ruoyi-ui/src/views/ehs/ehsFloodDroughtTeam/index.vue index ee232dc..25a0eac 100644 --- a/ruoyi-ui/src/views/ehs/ehsFloodDroughtTeam/index.vue +++ b/ruoyi-ui/src/views/ehs/ehsFloodDroughtTeam/index.vue @@ -27,8 +27,34 @@ @keyup.enter.native="handleQuery" /> - - + + + + + + + + + + + + + - + + + + + @@ -158,8 +188,27 @@ - - + + + + + + + + + + + + + + + +
- - - + + + - + - + + - - - + + +