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
38a6eaec
Commit
38a6eaec
authored
Jun 15, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码 开发需求
parent
5fad6605
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
45 deletions
+74
-45
MaintenanceResourceDataDto.java
...in/equipmanage/common/dto/MaintenanceResourceDataDto.java
+9
-0
PowerTransferMapper.xml
...jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
+7
-3
RouteController.java
...amos/maintenance/business/controller/RouteController.java
+1
-1
MaintenanceResourceDataMapper.xml
...c/main/resources/mapper/MaintenanceResourceDataMapper.xml
+43
-33
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+14
-8
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/dto/MaintenanceResourceDataDto.java
View file @
38a6eaec
...
@@ -125,5 +125,13 @@ public class MaintenanceResourceDataDto {
...
@@ -125,5 +125,13 @@ public class MaintenanceResourceDataDto {
* 位置
* 位置
*/
*/
private
String
location
;
private
String
location
;
/**
* 图片
* */
private
String
img
;
/**
* 消防装备编码
* */
private
String
code
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
View file @
38a6eaec
...
@@ -3,9 +3,13 @@
...
@@ -3,9 +3,13 @@
<mapper
namespace=
"com.yeejoin.amos.boot.module.jcs.api.mapper.PowerTransferMapper"
>
<mapper
namespace=
"com.yeejoin.amos.boot.module.jcs.api.mapper.PowerTransferMapper"
>
<select
id=
"getPowerTransferList"
<select
id=
"getPowerTransferList"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto"
>
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto"
>
select sequence_nbr, company_name, type, resources_num
select sequence_nbr, company_name, type, resources_num
,`status`
from (
from (
select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date
select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date,
case ptcr.status
when 'executing' THEN '未完成'
when 'finished' THEN '已完成'
END AS status
from jc_power_transfer_company ptc
from jc_power_transfer_company ptc
left join jc_power_transfer pt on ptc.power_transfer_id = pt.sequence_nbr
left join jc_power_transfer pt on ptc.power_transfer_id = pt.sequence_nbr
right join jc_power_transfer_company_resources ptcr
right join jc_power_transfer_company_resources ptcr
...
@@ -13,7 +17,7 @@
...
@@ -13,7 +17,7 @@
where pt.alert_called_id = #{alertCalledId}
where pt.alert_called_id = #{alertCalledId}
and ptc.is_distribution_agencies = 0
and ptc.is_distribution_agencies = 0
union all
union all
select ptc.sequence_nbr, ptc.company_name, "" type, "" resources_num, ptc.rec_date
select ptc.sequence_nbr, ptc.company_name, "" type, "" resources_num, ptc.rec_date
,'' `status`
from jc_power_transfer_company ptc
from jc_power_transfer_company ptc
left join jc_power_transfer pt on ptc.power_transfer_id = pt.sequence_nbr
left join jc_power_transfer pt on ptc.power_transfer_id = pt.sequence_nbr
where pt.alert_called_id = #{alertCalledId}
where pt.alert_called_id = #{alertCalledId}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/controller/RouteController.java
View file @
38a6eaec
...
@@ -181,7 +181,7 @@ public class RouteController extends AbstractBaseController {
...
@@ -181,7 +181,7 @@ public class RouteController extends AbstractBaseController {
//2.查询
//2.查询
List
<
Route
>
routeList
;
List
<
Route
>
routeList
;
if
(
null
!=
orgCode
&&
0
==
orgCode
)
{
if
(
null
!=
orgCode
&&
0
==
orgCode
)
{
routeList
=
routeService
.
queryRouteList
(
ownerId
,
null
);
routeList
=
routeService
.
queryRouteList
(
ownerId
,
org
);
}
else
{
}
else
{
routeList
=
routeService
.
queryRouteList
(
ownerId
,
org
);
routeList
=
routeService
.
queryRouteList
(
ownerId
,
org
);
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/MaintenanceResourceDataMapper.xml
View file @
38a6eaec
...
@@ -237,20 +237,25 @@
...
@@ -237,20 +237,25 @@
</select>
</select>
<select
id=
"getClassifyPage"
resultType=
"com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto"
>
<select
id=
"getClassifyPage"
resultType=
"com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto"
>
SELECT
SELECT
m.maintenance_company_id,
m.maintenance_company_id,
m.maintenance_company_name,
m.maintenance_company_name,
m.owner_unit_id,
m.owner_unit_id,
m.owner_unit_name,
m.owner_unit_name,
m.fire_fight_sys_id,
m.fire_fight_sys_id,
m.fire_fight_sys_name,
m.fire_fight_sys_name,
m.classify_id,
m.classify_id,
m.classify_name,
m.classify_name,
m.classify_type,
m.classify_type,
m.classify_code,
m.classify_code,
COUNT( 1 ) AS amount,
COUNT( 1 ) AS amount,
SUM(IF(m.maintenance_expiration_time
<
= CURRENT_DATE,1,0)) AS expirationAmount
SUM(IF(m.maintenance_expiration_time
<
= CURRENT_DATE,1,0)) AS expirationAmount,
we.img,
wes.code
FROM
FROM
`mt_maintenance_resource_data` m
`mt_maintenance_resource_data` m
LEFT JOIN wl_equipment_specific wes on m.fire_facility_id = wes.id
LEFT JOIN wl_equipment_detail wed on wes.equipment_detail_id = wed.id
LEFT JOIN wl_equipment we on we.id = wed.equipment_id
<where>
<where>
<if
test=
"maintenanceCompanyId != null"
>
<if
test=
"maintenanceCompanyId != null"
>
m.maintenance_company_id = #{maintenanceCompanyId}
m.maintenance_company_id = #{maintenanceCompanyId}
...
@@ -267,27 +272,32 @@
...
@@ -267,27 +272,32 @@
</select>
</select>
<select
id=
"getFireFacilityPage"
resultType=
"com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto"
>
<select
id=
"getFireFacilityPage"
resultType=
"com.yeejoin.equipmanage.common.dto.MaintenanceResourceDataDto"
>
SELECT
SELECT
m.maintenance_company_id,
m.maintenance_company_id,
m.maintenance_company_name,
m.maintenance_company_name,
m.owner_unit_id,
m.owner_unit_id,
m.owner_unit_name,
m.owner_unit_name,
m.fire_fight_sys_id,
m.fire_fight_sys_id,
m.fire_fight_sys_name,
m.fire_fight_sys_name,
m.classify_id,
m.classify_id,
m.classify_name,
m.classify_name,
m.classify_type,
m.classify_type,
m.classify_code,
m.classify_code,
m.fire_facility_id,
m.fire_facility_id,
m.fire_facility_code,
m.fire_facility_code,
m.fire_facility_name,
m.fire_facility_name,
m.fire_facility_type,
m.fire_facility_type,
m.maintenance_time,
m.maintenance_time,
m.maintenance_cycle,
m.maintenance_cycle,
m.`status`,
m.`status`,
IF(m.maintenance_expiration_time IS NOT NULL , IF(m.maintenance_expiration_time
<
= CURRENT_DATE,'已到期','正常'), '') AS `statusText`,
we.img,
m.location
wes.code,
IF(m.maintenance_expiration_time IS NOT NULL , IF(m.maintenance_expiration_time
<
= CURRENT_DATE,'已到期','正常'), '') AS `statusText`,
m.location
FROM
FROM
`mt_maintenance_resource_data` m
`mt_maintenance_resource_data` m
LEFT JOIN wl_equipment_specific wes on m.fire_facility_id = wes.id
LEFT JOIN wl_equipment_detail wed on wes.equipment_detail_id = wed.id
LEFT JOIN wl_equipment we on we.id = wed.equipment_id
<where>
<where>
<if
test=
"maintenanceCompanyId != null"
>
<if
test=
"maintenanceCompanyId != null"
>
m.maintenance_company_id = #{maintenanceCompanyId}
m.maintenance_company_id = #{maintenanceCompanyId}
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
38a6eaec
...
@@ -2935,26 +2935,32 @@
...
@@ -2935,26 +2935,32 @@
<changeSet
author=
"cz"
id=
"2022-06-13-1"
>
<changeSet
author=
"cz"
id=
"2022-06-13-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"jc_powerr_transfer_log"
/>
<columnExists
tableName=
"jc_powerr_transfer_log"
columnName=
"receive_name"
/>
</not>
</preConditions>
</preConditions>
<comment>
修改字段长度
</comment>
<comment>
修改字段长度
</comment>
<sql>
<sql>
ALTER TABLE jc_powerr_transfer_log MODIFY
receive_name varchar(5000)
NULL COMMENT '接收人' ;
ALTER TABLE jc_powerr_transfer_log MODIFY
COLUMN receive_name varchar(5000) DEFAULT
NULL COMMENT '接收人' ;
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"cz"
id=
"2022-06-13-2"
>
<changeSet
author=
"cz"
id=
"2022-06-13-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"jc_alert_submitted"
/>
<columnExists
tableName=
"jc_alert_submitted"
columnName=
"submission_content"
/>
</not>
</preConditions>
</preConditions>
<comment>
修改字段长度
</comment>
<comment>
修改字段长度
</comment>
<sql>
<sql>
ALTER TABLE jc_alert_submitted MODIFY
submission_content varchar(5000)
NULL COMMENT '报送内容';
ALTER TABLE jc_alert_submitted MODIFY
COLUMN submission_content varchar(5000) DEFAULT
NULL COMMENT '报送内容';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"chenzhao"
id=
"2022-06-15-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"cb_data_dictionary"
/>
</preConditions>
<comment>
update data cb_data_dictionary
</comment>
<sql>
REPLACE INTO `cb_data_dictionary`(`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES (1165, '1165', '集结待命', 'XYJBR', NULL, NULL, NULL, NULL, NULL, b'0', 1);
</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