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
b39ecc9a
Commit
b39ecc9a
authored
Nov 17, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
04568a53
4599f732
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
701 additions
and
114 deletions
+701
-114
TerminalConstant.java
...join/amos/boot/biz/common/constants/TerminalConstant.java
+12
-0
RuleTypeEnum.java
.../com/yeejoin/amos/boot/biz/common/enums/RuleTypeEnum.java
+24
-8
DutyPersonShiftMapper.java
.../boot/module/common/api/mapper/DutyPersonShiftMapper.java
+1
-1
DynamicFormInstanceMapper.java
...t/module/common/api/mapper/DynamicFormInstanceMapper.java
+32
-6
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+1
-1
IDutyPersonService.java
...os/boot/module/common/api/service/IDutyPersonService.java
+1
-1
DutyPersonShiftMapper.xml
...n-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
+5
-2
DynamicFormInstanceMapper.xml
...i/src/main/resources/mapper/DynamicFormInstanceMapper.xml
+292
-19
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+6
-2
AlertCallePowerTransferRo.java
...os/boot/module/jcs/api/dto/AlertCallePowerTransferRo.java
+5
-9
AlertCalledRo.java
...m/yeejoin/amos/boot/module/jcs/api/dto/AlertCalledRo.java
+5
-2
AlertSubmittedSMSDto.java
...in/amos/boot/module/jcs/api/dto/AlertSubmittedSMSDto.java
+3
-0
AlertBusinessTypeEnum.java
...amos/boot/module/jcs/api/enums/AlertBusinessTypeEnum.java
+1
-0
AlertStageEnums.java
...ejoin/amos/boot/module/jcs/api/enums/AlertStageEnums.java
+13
-2
AlertSubmittedMapper.xml
...cs-api/src/main/resources/mapper/AlertSubmittedMapper.xml
+3
-2
UnitInfoApproveDto.java
.../amos/boot/module/tzs/flc/api/dto/UnitInfoApproveDto.java
+6
-0
UnitInfoDto.java
...yeejoin/amos/boot/module/tzs/flc/api/dto/UnitInfoDto.java
+10
-3
UnitInfo.java
...yeejoin/amos/boot/module/tzs/flc/api/entity/UnitInfo.java
+12
-0
UnitInfoChange.java
...n/amos/boot/module/tzs/flc/api/entity/UnitInfoChange.java
+13
-0
IUnitInfoService.java
...mos/boot/module/tzs/flc/api/service/IUnitInfoService.java
+2
-0
DutyPersonServiceImpl.java
...module/common/biz/service/impl/DutyPersonServiceImpl.java
+3
-13
FirefightersServiceImpl.java
...dule/common/biz/service/impl/FirefightersServiceImpl.java
+3
-2
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+22
-3
PlanClassifyTreeController.java
...s/fas/business/controller/PlanClassifyTreeController.java
+6
-0
AlertSubmittedController.java
...t/module/jcs/biz/controller/AlertSubmittedController.java
+34
-1
PowerTransferAction.java
.../boot/module/jcs/biz/rule/action/PowerTransferAction.java
+15
-8
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+1
-4
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+0
-0
FireTeamServiceImpl.java
...boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
+1
-0
PowerTransferServiceImpl.java
...module/jcs/biz/service/impl/PowerTransferServiceImpl.java
+3
-3
RuleAlertCalledService.java
...t/module/jcs/biz/service/impl/RuleAlertCalledService.java
+0
-0
RulePlanService.java
...os/supervision/business/service/impl/RulePlanService.java
+14
-13
BeanDtoVoUtils.java
...eejoin/amos/boot/module/tzs/biz/utils/BeanDtoVoUtils.java
+2
-0
UnitInfoController.java
...oot/module/tzs/flc/biz/controller/UnitInfoController.java
+38
-3
UnitInfoServiceImpl.java
.../module/tzs/flc/biz/service/impl/UnitInfoServiceImpl.java
+21
-2
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+52
-0
tzs-1.0.0.0.xml
...ystem-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
+39
-4
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/constants/TerminalConstant.java
0 → 100644
View file @
b39ecc9a
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
constants
;
/**
* @Author: xl
* @Description: 终端标识
* @Date: 2021/11/17 11:40
*/
public
class
TerminalConstant
{
public
final
static
String
APP
=
"APP"
;
public
final
static
String
WEB
=
"WEB"
;
public
final
static
String
APP_WEB
=
"APP/WEB"
;
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/enums/RuleTypeEnum.java
View file @
b39ecc9a
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
enums
;
import
com.yeejoin.amos.boot.biz.common.constants.TerminalConstant
;
/**
* 规则请求枚举
* @author xl
*
*/
public
enum
RuleTypeEnum
{
// 防火监督
计划提交
(
"计划提交"
,
"addPlan"
,
"auditPage"
),
计划审核
(
"计划审核"
,
"planAudit"
,
"auditPage"
),
计划审核完成
(
"计划审核完成"
,
"planAuditAll"
,
"formulatePage"
),
计划生成
(
"计划生成"
,
"addPlanTask"
,
null
),
计划完成
(
"计划完成"
,
"planCompleted"
,
null
),
计划提交
(
"计划提交"
,
"addPlan"
,
"auditPage"
,
TerminalConstant
.
WEB
),
计划审核
(
"计划审核"
,
"planAudit"
,
"auditPage"
,
TerminalConstant
.
APP_WEB
),
计划审核完成
(
"计划审核完成"
,
"planAuditAll"
,
"formulatePage"
,
TerminalConstant
.
APP_WEB
),
计划生成
(
"计划生成"
,
"addPlanTask"
,
null
,
TerminalConstant
.
APP
),
计划完成
(
"计划完成"
,
"planCompleted"
,
null
,
TerminalConstant
.
APP_WEB
),
// 隐患
隐患第一次提交
(
"隐患提交"
,
"addLatentDanger"
,
null
),
隐患审核
(
"隐患审核"
,
"dangerAudit"
,
null
);
隐患第一次提交
(
"隐患提交"
,
"addLatentDanger"
,
null
,
null
),
隐患审核
(
"隐患审核"
,
"dangerAudit"
,
null
,
null
);
/**
* 名称,描述
...
...
@@ -29,6 +32,10 @@ public enum RuleTypeEnum {
* 跳转地址
*/
private
String
url
;
/**
* 终端标识
*/
private
String
terminal
;
public
String
getName
()
{
return
name
;
...
...
@@ -54,10 +61,19 @@ public enum RuleTypeEnum {
this
.
url
=
url
;
}
RuleTypeEnum
(
String
name
,
String
code
,
String
url
)
{
public
String
getTerminal
()
{
return
terminal
;
}
public
void
setTerminal
(
String
terminal
)
{
this
.
terminal
=
terminal
;
}
RuleTypeEnum
(
String
name
,
String
code
,
String
url
,
String
terminal
)
{
this
.
name
=
name
;
this
.
code
=
code
;
this
.
url
=
url
;
this
.
terminal
=
terminal
;
}
public
static
RuleTypeEnum
getEnumByCode
(
String
field
){
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/DutyPersonShiftMapper.java
View file @
b39ecc9a
...
...
@@ -134,7 +134,7 @@ public interface DutyPersonShiftMapper extends BaseMapper<DutyPersonShift> {
List
<
Map
<
String
,
Object
>>
getFirstAidForTypeCodeAndCompanyId
(
long
company
);
List
<
Map
<
String
,
Object
>>
queryByCompanyId
();
List
<
Map
<
String
,
Object
>>
queryByCompanyId
(
@Param
(
value
=
"bizNames"
)
List
<
String
>
bizNames
);
List
<
Map
<
String
,
Object
>>
queryByCompanyNew
(
String
bizOrgName
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/DynamicFormInstanceMapper.java
View file @
b39ecc9a
...
...
@@ -106,13 +106,39 @@ public interface DynamicFormInstanceMapper extends BaseMapper<DynamicFormInstanc
@Param
(
"endTime"
)
String
endTime
);
/**
* 值班表中 【值班排班】中特定部门的特定日期值班员;
* @param dutyDate
* @param departmentName eg:急救科、消救部
* @return
*/
List
<
Map
<
String
,
Object
>>
getDutyPersonByTeamIdAndCarId
(
String
carIdName
,
String
teamIdName
,
String
userIdName
,
String
dutyDate
,
String
groupCode
,
String
carId
,
String
teamId
);
String
departmentName
);
/**
* 值班表中 【120急救排班】该急救站的当日值班员
* @param dutyDate
* @param firstAidId
* @return
*/
List
<
Map
<
String
,
Object
>>
getDutyPersonByTeamIdAndAirId
(
String
dutyDate
,
String
firstAidId
);
/**
* 机场单位的人员中,部门 ”人员职务“ 不为空的人员,不包括下级部门的人员
* @param departmentName eg: 急救科、 消救部
* @param PositionType : eg 岗位为:支队长、副支队长、党支部副书记、支队长助理、指挥员、;
* @return
*/
List
<
Map
<
String
,
Object
>>
getFireRescueDepartmentStaff
(
String
departmentName
,
List
<
String
>
positionType
);
List
<
Map
<
String
,
Object
>>
getDutyFirePerson
(
String
dutyDate
,
String
groupCode
);
Map
<
String
,
Object
>
getCurentCarIsUserPhone
(
long
carId
);
List
<
Map
<
String
,
Object
>>
getOrgPersonTelphone
(
List
<
Map
<
String
,
Object
>>
companyIds
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
b39ecc9a
...
...
@@ -92,7 +92,7 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
List
<
Map
<
String
,
Long
>>
countDeptByCompanyId
(
@Param
(
"companyIdList"
)
List
<
String
>
companyIdList
);
List
<
Map
<
String
,
Object
>>
queryCompanyId
(
String
bizOrgName
);
List
<
Map
<
String
,
Object
>>
queryCompanyId
(
String
bizOrgName
,
@Param
(
"codes"
)
List
<
String
>
codes
);
List
<
Map
<
String
,
Object
>>
queryCompanyIdNew
(
String
bizOrgName
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IDutyPersonService.java
View file @
b39ecc9a
...
...
@@ -34,7 +34,7 @@ public interface IDutyPersonService extends IDutyCommonService {
*/
List
<
DutyPersonDto
>
findByDutyAreaId
(
Long
dutyAreaId
);
List
<
Map
<
String
,
Object
>>
queryByCompanyId
();
List
<
Map
<
String
,
Object
>>
queryByCompanyId
(
List
<
String
>
bizNames
);
List
<
Map
<
String
,
Object
>>
queryByCompanyNew
(
String
bizOrgName
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DutyPersonShiftMapper.xml
View file @
b39ecc9a
...
...
@@ -358,8 +358,11 @@ AND cft.type_code = (
where i.field_code = 'userId' and i.field_value is not null) c
on cb.instance_id = c.id3
where to_days(cb.duty_date) = to_days(now()) and
a.deptId in ( select sequence_nbr from cb_org_usr cou where biz_org_name = '消防救援保障部' or
biz_org_name = '综合办公室' or biz_org_name = '消防支队' or biz_org_name = '应急指挥科' )) r )
a.deptId in ( select sequence_nbr from cb_org_usr cou where biz_org_name in
<foreach
item=
"item"
index=
"index"
collection=
"bizNames"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)) r )
</select>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/DynamicFormInstanceMapper.xml
View file @
b39ecc9a
...
...
@@ -260,42 +260,315 @@
order by instanceId desc
</select>
<select
id=
"getDutyPersonByTeamIdAndCarId"
resultType=
"java.util.Map"
>
SELECT
userId
SELECT
cfir.telephone AS mobilePhone,
hh.userId AS userId,
cou.biz_org_name AS userName,
cou.amos_org_id AS amosId
FROM
(
SELECT
MAX(
userId,
instance_id
FROM
(
SELECT
MAX(
CASE
WHEN cbd.field_code = 'deptName' THEN
cbd.field_value
END
) AS deptName,
MAX(
CASE
WHEN cbd.field_code = 'userId' THEN
cbd.field_value
END
) AS userId,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
LEFT JOIN cb_duty_person_shift cps ON cbd.instance_id = cps.instance_id
WHERE
cps.duty_date = #{dutyDate}
AND cps.is_delete = FALSE
AND cbd.group_code = 'dutyPerson'
GROUP BY
cbd.instance_id
) ss
WHERE
ss.deptName = #{departmentName}
) hh
LEFT JOIN cb_org_usr cou ON hh.userId = cou.sequence_nbr
LEFT JOIN (
SELECT
MAX(
CASE
WHEN cfi.field_code = 'telephone' THEN
cfi.field_value
END
) AS telephone,
cfi.instance_id
FROM
cb_dynamic_form_instance cfi
) cfir ON cfir.instance_id = hh.userId
</select>
<select
id=
"getDutyPersonByTeamIdAndAirId"
resultType=
"java.util.Map"
>
SELECT
cfir.telephone AS mobilePhone,
hh.userId AS userId,
cou.biz_org_name AS userName,
cou.amos_org_id AS amosId
FROM
(
SELECT
userId
FROM
(
SELECT
MAX(
CASE
WHEN cbd.field_code = 'userId' THEN
cbd.field_value
END
) AS userId,
MAX(
CASE
WHEN cbd.field_code = 'firstAidId' THEN
cbd.field_value
END
) AS firstAidId,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
LEFT JOIN cb_duty_person_shift cps ON cbd.instance_id = cps.instance_id
WHERE
cps.duty_date = #{dutyDate}
AND cps.is_delete = FALSE
AND cbd.group_code = 'dutyFirstAid'
GROUP BY
cbd.instance_id
) ss
WHERE
ss.firstAidId = #{firstAidId}
) hh
LEFT JOIN cb_org_usr cou ON hh.userId = cou.sequence_nbr
LEFT JOIN (
SELECT
MAX(
CASE
WHEN cfi.field_code = 'telephone' THEN
cfi.field_value
END
) AS telephone,
cfi.instance_id
FROM
cb_dynamic_form_instance cfi
) cfir ON cfir.instance_id = hh.userId
</select>
<select
id =
"getFireRescueDepartmentStaff"
resultType=
"java.util.Map"
>
SELECT
dd.telephone AS mobilePhone,
cour.sequence_nbr AS userId,
cour.biz_org_name AS userName,
cour.amos_org_id AS amosId
FROM
(
SELECT
Max(
CASE
WHEN cbd.field_code =
#{carIdName}
THEN
WHEN cbd.field_code =
'administrativePositionCode'
THEN
cbd.field_value
END
) AS
#{carIdName}
,
M
AX
(
) AS
administrativePositionCode
,
M
ax
(
CASE
WHEN cbd.field_code =
#{teamIdName}
THEN
WHEN cbd.field_code =
'telephone'
THEN
cbd.field_value
END
) AS
#{teamIdName}
,
M
AX
(
) AS
telephone
,
M
ax
(
CASE
WHEN cbd.field_code =
#{userIdName}
THEN
cbd.field_value
WHEN cbd.field_code =
'stateCode'
THEN
cbd.field_value
_label
END
) AS
#{userIdName}
,
) AS
stateCode
,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
LEFT JOIN cb_duty_person_shift cps ON cbd.instance_id = cps.instance_id
WHERE
cps.duty_date = #{dutyDate}
AND cps.is_delete = FALSE
AND cbd.group_code = #{groupCode}
GROUP BY
cbd.instance_id IN (
SELECT
cou.sequence_nbr
FROM
cb_org_usr cou
WHERE
cou.parent_id = (
SELECT
sequence_nbr
FROM
cb_org_usr
WHERE
biz_org_name = #{departmentName}
)
AND cou.biz_org_type = 'PERSON'
) group by cbd.instance_id
) dd
LEFT JOIN cb_org_usr cour ON dd.instance_id = cour.sequence_nbr
WHERE
<if
test=
"positionType == null "
>
dd.administrativePositionCode IS NOT NULL
</if>
<if
test=
"positionType != null"
>
dd.administrativePositionCode in
<foreach
collection=
"positionType"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item, jdbcType=NUMERIC}
</foreach>
</if>
</select>
<select
id =
"getDutyFirePerson"
resultType=
"java.util.Map"
>
SELECT
dd.telephone AS mobilePhone
FROM
(
SELECT
Max(
CASE
WHEN cbd.field_code = 'telephone' THEN
cbd.field_value
END
) AS telephone,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
WHERE
cbd.instance_id IN (
SELECT
userId
FROM
(
SELECT
MAX(
CASE
WHEN cbd.field_code = 'deptId' THEN
cbd.field_value
END
) AS deptId,
MAX(
CASE
WHEN cbd.field_code = 'userId' THEN
cbd.field_value
END
) AS userId,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
LEFT JOIN cb_duty_person_shift cps ON cbd.instance_id = cps.instance_id
WHERE
cps.duty_date = #{dutyDate}
AND cps.is_delete = FALSE
AND cbd.group_code = #{groupCode}
GROUP BY
cbd.instance_id
) ss
WHERE
ss.deptId IN (
SELECT
sequence_nbr
FROM
cb_org_usr
WHERE
biz_org_name = '消防救援保障部'
AND biz_org_type = 'COMPANY'
)
)
) dd
</select>
<select
id=
'getCurentCarIsUserPhone'
resultType=
"java.util.Map"
>
SELECT
ss.telephone AS mobilePhone,
cou.sequence_nbr AS userId,
cou.biz_org_name AS userName,
cou.amos_org_id AS amosId
FROM
(
SELECT
field_value as telephone
,instance_id
FROM
cb_dynamic_form_instance
WHERE
group_code = '246'
AND instance_id = (
SELECT
sequence_nbr
FROM
cb_org_usr
WHERE
amos_org_id = (
SELECT
amos_user_id
FROM
jc_user_car
WHERE
car_id = #{carId}
)
) and field_code='telephone'
) ss
LEFT JOIN cb_org_usr cou ON ss.instance_id = cou.sequence_nbr
</select>
<select
id=
'getOrgPersonTelphone'
resultType=
"java.util.Map"
>
SELECT
dd.telephone AS mobilePhone
FROM
(
SELECT
Max(
CASE
WHEN cbd.field_code = 'administrativePositionCode' THEN
cbd.field_value_label
END
) AS administrativePositionCode,
Max(
CASE
WHEN cbd.field_code = 'telephone' THEN
cbd.field_value
END
) AS telephone,
Max(
CASE
WHEN cbd.field_code = 'stateCode' THEN
cbd.field_value_label
END
) AS stateCode,
cbd.instance_id
FROM
cb_dynamic_form_instance cbd
WHERE
cbd.instance_id IN (
SELECT
cou.sequence_nbr
FROM
cb_org_usr cou
WHERE
cou.parent_id in
<foreach
item=
"item"
collection=
"companyIds"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item.departmentId, jdbcType=NUMERIC}
</foreach>
AND cou.biz_org_type = 'PERSON'
)group by cbd.instance_id
) dd
WHERE
ss.carId = #{carId}
AND ss.teamId = #{teamId}
dd.administrativePositionCode IS NOT NULL
</select>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
b39ecc9a
...
...
@@ -691,13 +691,17 @@ LEFT JOIN (
select cou.biz_org_name bizOrgName,cou.sequence_nbr sequenceNbr ,cou .parent_id parentId,
a.fireManagementPostCode, b.telephone from cb_org_usr cou
left join (select i.instance_id id1 ,if(i.field_code = 'fireManagementPostCode',
i.field_value
_label
, null) as 'fireManagementPostCode' from cb_dynamic_form_instance i where i.field_code = 'fireManagementPostCode'
i.field_value, null) as 'fireManagementPostCode' from cb_dynamic_form_instance i where i.field_code = 'fireManagementPostCode'
and i.field_value_label is not null) a on cou .sequence_nbr = a.id1
left join (select i.instance_id id2,if(i.field_code = 'telephone',
i.field_value, null) as 'telephone' from cb_dynamic_form_instance i where i.field_code = 'telephone'
and i.field_value is not null) b on cou .sequence_nbr = b.id2
) d where d.parentId in (select sequence_nbr from cb_org_usr cou where biz_org_name = #{bizOrgName})
and (d.fireManagementPostCode = '消防安全管理人' or d.fireManagementPostCode = '消防安全责任人')
and (d.fireManagementPostCode in
<foreach
item=
"item"
index=
"index"
collection=
"codes"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
)
</select>
<select
id=
"queryCompanyIdNew"
resultType=
"map"
>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertCallePowerTransferRo.java
View file @
b39ecc9a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dto
;
import
java.io.Serializable
;
import
com.yeejoin.amos.component.rule.Label
;
import
com.yeejoin.amos.component.rule.RuleFact
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
*
* <pre>
...
...
@@ -20,16 +20,12 @@ import java.util.List;
@Data
@RuleFact
(
value
=
"调派信息"
,
project
=
"西咸机场119调派规则"
)
public
class
AlertCallePowerTransferRo
implements
Serializable
{
/**
* <pre>
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
4735920511849348360
L
;
private
static
final
long
serialVersionUID
=
9053208791780047768
L
;
/**
* 通用属性
...
...
@@ -86,7 +82,7 @@ public class AlertCallePowerTransferRo implements Serializable{
private
String
contactPhone
;
@ApiModelProperty
(
value
=
"调派单位资源列表"
)
private
List
<
PowerTransferCompanyDto
>
company
;
private
String
company
;
@ApiModelProperty
(
value
=
"调派类型队伍"
)
private
String
powerTransType
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertCalledRo.java
View file @
b39ecc9a
...
...
@@ -26,7 +26,7 @@ public class AlertCalledRo implements Serializable{
*
* </pre>
*/
private
static
final
long
serialVersionUID
=
529623529216238088
L
;
private
static
final
long
serialVersionUID
=
-
8755622977733065123
L
;
/**
* 通用属性
...
...
@@ -73,9 +73,12 @@ public class AlertCalledRo implements Serializable{
@Label
(
value
=
"警情报送类型(0,警情报送,1,警情续报,2,非警情确认,3,警情结案)"
)
private
String
alertWay
;
@Label
(
value
=
"警情续报,非警情确认,警情结案,选择人员
ids
"
)
@Label
(
value
=
"警情续报,非警情确认,警情结案,选择人员
电话号码
"
)
private
String
ids
;
@Label
(
value
=
"警情续报,非警情确认,警情结案,选择人员AmousIds"
)
private
String
usIds
;
@Label
(
value
=
"警情续报自定义内容"
)
private
String
feedback
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertSubmittedSMSDto.java
View file @
b39ecc9a
...
...
@@ -30,6 +30,9 @@ public class AlertSubmittedSMSDto {
@ApiModelProperty
(
value
=
"联系电话"
)
private
String
userPhone
;
@ApiModelProperty
(
value
=
"警情Id"
)
private
String
alertCallId
;
@ApiModelProperty
(
value
=
"协调单位"
)
private
String
companyName
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/enums/AlertBusinessTypeEnum.java
View file @
b39ecc9a
...
...
@@ -23,6 +23,7 @@ public enum AlertBusinessTypeEnum {
警情初报
(
"reportAlert"
,
"297"
,
"297"
,
""
,
"警情初报"
),
警情续报
(
"followReportAlert"
,
"313"
,
"313"
,
"SMS_JCS_0006"
,
"警情续报"
),
非警情确认
(
"notAlert"
,
"314"
,
"314"
,
"SMS_JCS_0008"
,
"非警情确认"
),
力量调派
(
"powerTransfer"
,
"316"
,
"316"
,
"SMS_JCS_DP"
,
"力量调派"
),
警情结案
(
"endAlert"
,
"315"
,
"315"
,
"SMS_JCS_0009"
,
"警情结案"
);
private
String
key
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/enums/AlertStageEnums.java
View file @
b39ecc9a
...
...
@@ -28,7 +28,7 @@ public enum AlertStageEnums {
RG
(
"226"
,
"人工上报"
),
DJ
(
"228"
,
"对讲呼入"
),
JK
(
"388"
,
"监控中心报警"
),
JK
(
"388"
,
"监控中心报警"
),
//也是监控大队
DH
(
"389"
,
"电话报警"
),
...
...
@@ -41,7 +41,18 @@ public enum AlertStageEnums {
ZZZD
(
"116"
,
"企(事)业单位专职消防救援支队"
),
YWDD
(
"117"
,
"企(事)业单位义务消防救援大队"
),
YLJY
(
"830"
,
"企(事)业单位医疗救援队(站)"
),
JKDD
(
"118"
,
"企(事)业单位监控大队"
);
DD
(
"DD"
,
"所属大队"
),
JJZ
(
"JJZ"
,
"急救站"
),
ZD
(
"ZD"
,
"消防支队"
),
XJ
(
"XJ"
,
"消救部"
),
ZH
(
"ZH"
,
"应急指挥科"
),
BD
(
"BD"
,
"调派车辆指定人"
),
监控大队
(
"JK"
,
"监控大队"
),
onDuty
(
"onDuty"
,
"值班单位"
),
fireBrigade
(
"fireBrigade"
,
"岗位名称,规则配置"
),
airportUnit
(
"airportUnit"
,
"人员职务规则配置"
),
flag
(
"flag"
,
"值班单位"
),
JKDD
(
"6"
,
"企(事)业单位监控大队"
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertSubmittedMapper.xml
View file @
b39ecc9a
...
...
@@ -15,12 +15,12 @@
jas.submission_method,
jas.submission_method_code,
jas.update_time,
jaso.sequence_nbr,
jaso.sequence_nbr
sequenceNbr
,
jaso.company_name,
jaso.user_name,
jaso.user_phone
from jc_alert_submitted jas
lef
t join jc_alert_submitted_object jaso on jas.sequence_nbr = jaso.alert_submitted_id
righ
t join jc_alert_submitted_object jaso on jas.sequence_nbr = jaso.alert_submitted_id
where 1=1
<if
test=
"alertSubmittedDto.alertCalledId != null and alertSubmittedDto.alertCalledId != ''"
>
and jas.alert_called_id = #{alertSubmittedDto.alertCalledId}
...
...
@@ -68,6 +68,7 @@
<select
id=
"getSchedulingContent"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedSMSDto"
>
SELECT
s.sequence_nbr,
s.alert_called_id alertCallId,
s.submission_time,
o.user_phone,
o.company_name,
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/UnitInfoApproveDto.java
View file @
b39ecc9a
...
...
@@ -36,4 +36,10 @@ public class UnitInfoApproveDto extends BaseDto {
@ApiModelProperty
(
value
=
"0 注册审批 1 变更审批"
)
private
Integer
approveType
;
@ApiModelProperty
(
value
=
"企业入驻时间"
)
private
Date
approvedTime
;
@ApiModelProperty
(
value
=
"提交时间"
)
private
Date
submitTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/UnitInfoDto.java
View file @
b39ecc9a
...
...
@@ -142,10 +142,10 @@ public class UnitInfoDto extends BaseDto {
private
Boolean
isChange
;
@ApiModelProperty
(
value
=
"提交时间开始"
)
private
Date
submitTimeStart
;
private
String
submitTimeStart
;
@ApiModelProperty
(
value
=
"
接警
时间结束"
)
private
Date
submitTimeEnd
;
@ApiModelProperty
(
value
=
"
提交
时间结束"
)
private
String
submitTimeEnd
;
@ApiModelProperty
(
value
=
"分类名称"
)
private
String
typeStr
;
...
...
@@ -156,6 +156,13 @@ public class UnitInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"企业二维码"
)
private
List
<
AttachmentDto
>
qrcode
;
@ApiModelProperty
(
value
=
"详细地址全部"
)
private
String
fullAddress
;
@ApiModelProperty
(
value
=
"企业入驻时间"
)
private
Date
approvedTime
;
@ApiModelProperty
(
value
=
"提交时间"
)
private
Date
submitTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/UnitInfo.java
View file @
b39ecc9a
...
...
@@ -245,4 +245,16 @@ public class UnitInfo extends BaseEntity {
@TableField
(
value
=
"is_change"
)
private
Boolean
isChange
;
/**
* 企业入驻时间
*/
@TableField
(
"approved_time"
)
private
Date
approvedTime
;
/**
* 提交时间
*/
@TableField
(
"submit_time"
)
private
Date
submitTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/entity/UnitInfoChange.java
View file @
b39ecc9a
...
...
@@ -214,4 +214,17 @@ public class UnitInfoChange extends BaseEntity {
@TableField
(
"unit_status"
)
private
Integer
unitStatus
;
/**
* 企业入驻时间
*/
@TableField
(
"approved_time"
)
private
Date
approvedTime
;
/**
* 提交时间
*/
@TableField
(
"submit_time"
)
private
Date
submitTime
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/IUnitInfoService.java
View file @
b39ecc9a
...
...
@@ -20,4 +20,6 @@ public interface IUnitInfoService {
UnitInfoDto
approve
(
UnitInfoApproveDto
approveDto
);
UnitInfoDto
getDtoById
(
Long
sequenceNbr
);
UnitInfoDto
getDtoByOrgId
(
Long
sequenceNbr
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyPersonServiceImpl.java
View file @
b39ecc9a
...
...
@@ -286,26 +286,16 @@ public Object BuildScheduleDetails(String dutyDay, Long shiftId, String postType
if
(!
map20
.
containsKey
(
i
.
get
(
"shiftName"
).
toString
()))
{
map20
.
put
(
ssString
,
ssString
);
}
System
.
out
.
println
(
"ssssssssss"
);
});
}
@Override
public
List
<
Map
<
String
,
Object
>>
queryByCompanyId
(){
return
dutyPersonShiftMapper
.
queryByCompanyId
();
public
List
<
Map
<
String
,
Object
>>
queryByCompanyId
(
List
<
String
>
bizNames
){
return
dutyPersonShiftMapper
.
queryByCompanyId
(
bizNames
);
}
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FirefightersServiceImpl.java
View file @
b39ecc9a
...
...
@@ -12,7 +12,6 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
...
...
@@ -146,7 +145,9 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
*/
public
List
<
Map
<
String
,
Object
>>
getDetailByTeamIdAndJobTitle
(
Long
teamId
,
List
<
String
>
jobTitleArray
)
{
LambdaQueryWrapper
<
Firefighters
>
wrapper
=
new
LambdaQueryWrapper
<
Firefighters
>();
wrapper
.
in
(
Firefighters:
:
getJobTitle
,
jobTitleArray
);
if
(
jobTitleArray
!=
null
&&
jobTitleArray
.
size
()>
0
)
{
wrapper
.
in
(
Firefighters:
:
getJobTitleCode
,
jobTitleArray
);
}
wrapper
.
eq
(
Firefighters:
:
getIsDelete
,
false
);
wrapper
.
eq
(
Firefighters:
:
getFireTeamId
,
teamId
);
wrapper
.
select
(
Firefighters:
:
getMobilePhone
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
b39ecc9a
...
...
@@ -66,6 +66,7 @@ import com.yeejoin.amos.boot.module.common.api.entity.OrgUsr;
import
com.yeejoin.amos.boot.module.common.api.enums.OrgPersonEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.UserRolesEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.UserUnitTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DynamicFormInstanceMapper
;
import
com.yeejoin.amos.boot.module.common.api.mapper.OrgUsrMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IMaintenanceCompanyService
;
import
com.yeejoin.amos.boot.module.common.api.service.IOrgUsrService
;
...
...
@@ -74,6 +75,8 @@ import com.yeejoin.amos.feign.privilege.Privilege;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.RoleModel
;
import
ch.qos.logback.core.joran.conditional.IfAction
;
/**
* 机构/部门/人员表 服务实现类
*
...
...
@@ -112,6 +115,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
FireStationServiceImpl
fireStationServiceImpl
;
@Value
(
"${jcs.company.topic.add}"
)
private
String
airportAddTopic
;
@Autowired
DynamicFormInstanceMapper
dynamicFormInstanceMapper
;
public
static
List
<
OrgMenuDto
>
buildTreeParallel
(
List
<
OrgUsr
>
list
)
{
...
...
@@ -1866,16 +1872,29 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
return
resultMap
;
}
public
List
<
Map
<
String
,
Object
>>
queryCompanyId
(
String
bizOrgName
)
{
public
List
<
Map
<
String
,
Object
>>
queryCompanyId
(
String
bizOrgName
,
List
<
String
>
codes
)
{
return
orgUsrMapper
.
queryCompanyId
(
bizOrgName
);
return
orgUsrMapper
.
queryCompanyId
(
bizOrgName
,
codes
);
}
public
List
<
Map
<
String
,
Object
>>
queryCompanyIdNew
(
String
bizOrgName
)
{
return
orgUsrMapper
.
queryCompanyIdNew
(
bizOrgName
);
}
public
List
<
Map
<
String
,
Object
>>
getuserDetail
(
Long
departmentId
,
List
<
Map
<
String
,
Object
>>
resulLists
){
OrgUsr
resulList
=
this
.
baseMapper
.
selectById
(
departmentId
);
if
(
resulList
.
getParentId
()!=
null
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<
String
,
Object
>();
resultMap
.
put
(
"departmentId"
,
resulList
.
getSequenceNbr
());
resulLists
.
add
(
resultMap
);
return
getuserDetail
(
Long
.
parseLong
(
resulList
.
getParentId
()),
resulLists
);
}
else
{
return
resulLists
;
}
}
public
List
<
AgencyUserModel
>
getAmosUserByOrgUser
(
String
orgUserIds
)
throws
Exception
{
if
(
ValidationUtil
.
isEmpty
(
orgUserIds
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-fas-biz/src/main/java/com/yeejoin/amos/fas/business/controller/PlanClassifyTreeController.java
View file @
b39ecc9a
...
...
@@ -19,6 +19,8 @@ import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
@RestController
@RequestMapping
(
"/api/planClassifyTree"
)
...
...
@@ -29,6 +31,7 @@ public class PlanClassifyTreeController extends AbstractBaseController {
private
IPlanClassifyTreeService
planClassifyTreeService
;
@ApiOperation
(
value
=
"创建分类"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
public
ResponseModel
create
(
@RequestBody
PlanClassifyTree
model
)
{
AgencyUserModel
user
=
getUserInfo
();
...
...
@@ -40,6 +43,7 @@ public class PlanClassifyTreeController extends AbstractBaseController {
}
@ApiOperation
(
value
=
"修改分类"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/update"
,
method
=
RequestMethod
.
PUT
)
public
ResponseModel
update
(
@RequestBody
PlanClassifyTree
model
)
{
AgencyUserModel
user
=
getUserInfo
();
...
...
@@ -51,11 +55,13 @@ public class PlanClassifyTreeController extends AbstractBaseController {
}
@ApiOperation
(
value
=
"删除分类"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{ids}"
,
method
=
RequestMethod
.
DELETE
)
public
ResponseModel
delete
(
@PathVariable
(
"ids"
)
String
ids
)
{
return
CommonResponseUtil2
.
success
(
planClassifyTreeService
.
delete
(
ids
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询分类树"
)
@RequestMapping
(
value
=
"/tree"
,
method
=
RequestMethod
.
GET
)
public
ResponseModel
getTree
()
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertSubmittedController.java
View file @
b39ecc9a
...
...
@@ -7,17 +7,22 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedSMSDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SchedulingReportingDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.SubmissionMethodEnum
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedObjectServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.PowerTransferServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.RuleAlertCalledService
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.TemplateServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -34,8 +39,11 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
...
...
@@ -203,6 +211,8 @@ public class AlertSubmittedController extends BaseController {
alertSubmittedService
.
getAlertSubmittedContent
(
alertCalledId
,
templateVos
,
companyName
);
}
catch
(
IllegalAccessException
e
)
{
throw
new
RuntimeException
(
"系统异常"
);
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
return
ResponseHelper
.
buildResponse
(
templateVos
);
}
...
...
@@ -216,10 +226,26 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}/scheduling_content"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取融合调度短信内容"
,
notes
=
"获取融合调度短信内容"
)
public
ResponseModel
<
AlertSubmittedSMSDto
>
getSchedulingContent
(
@PathVariable
Long
id
)
{
public
ResponseModel
<
AlertSubmittedSMSDto
>
getSchedulingContent
(
@PathVariable
Long
id
)
throws
ParseException
{
// 获取报送内容
// 任务 4174 日常值班---融合调度----短信模版中的内容用户可以全部删除掉,按照自定义内容重新录入发送内容 by litw 2021年10月27日
AlertSubmittedSMSDto
schedulingContent
=
alertSubmittedService
.
getSchedulingContent
(
id
);
AlertCalledObjsDto
alertCalledVo
=
(
AlertCalledObjsDto
)
alertCalledService
.
selectAlertCalledByIdNoRedisNew
(
Long
.
valueOf
(
schedulingContent
.
getAlertCallId
()));
/**
* 构建警情报送规则对象
*/
AlertCalledRo
alertCalledRo
=
new
AlertCalledRo
();
AlertCalled
alertCalled
=
alertCalledVo
.
getAlertCalled
();
String
replaceContent
=
RuleAlertCalledService
.
init
(
alertCalledRo
,
alertCalledVo
);
Map
<
String
,
String
>
definitions
=
new
HashMap
<>();
definitions
.
put
(
"$type"
,
alertCalled
.
getAlertType
());
definitions
.
put
(
"$callTime"
,
DateUtils
.
dateTimeToDateString
(
alertCalled
.
getCallTime
()));
definitions
.
put
(
"$replaceContent"
,
replaceContent
);
definitions
.
put
(
"$address"
,
alertCalled
.
getAddress
());
String
content
=
getTaskInformation
(
schedulingContent
.
getSubmissionTemplate
(),
definitions
);
schedulingContent
.
setSubmissionTemplate
(
content
);
if
(!
ValidationUtil
.
isEmpty
(
schedulingContent
.
getSubmissionContent
()))
{
try
{
JSON
.
parseObject
(
schedulingContent
.
getSubmissionContent
());
...
...
@@ -230,5 +256,12 @@ public class AlertSubmittedController extends BaseController {
}
return
ResponseHelper
.
buildResponse
(
schedulingContent
);
}
private
String
getTaskInformation
(
String
content
,
Map
<
String
,
String
>
definitions
)
{
int
size
=
definitions
.
size
();
String
[]
keys
=
definitions
.
keySet
().
toArray
(
new
String
[
size
]);
String
[]
values
=
definitions
.
values
().
toArray
(
new
String
[
size
]);
return
StringUtils
.
replaceEach
(
content
,
keys
,
values
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/rule/action/PowerTransferAction.java
View file @
b39ecc9a
...
...
@@ -8,6 +8,8 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCallePowerTransferRo
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.FireBrigadeTypeEnum
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl
;
import
com.yeejoin.amos.component.rule.RuleActionBean
;
import
com.yeejoin.amos.component.rule.RuleMethod
;
...
...
@@ -44,14 +46,19 @@ public class PowerTransferAction {
* @param object 模板内容对象
* @throws Exception 异常
*/
@RuleMethod
(
methodLabel
=
"短信报送"
,
project
=
"西咸机场119接处警规则"
)
@SuppressWarnings
(
"rawtypes"
)
@RuleMethod
(
methodLabel
=
"短信报送"
,
project
=
"西咸机场119接处警规则"
)
public
void
sendcmd
(
String
smsCode
,
String
sendType
,
List
sendIds
,
Object
object
)
throws
Exception
{
// alertSubmittedService.ruleCallbackAction(smsCode, sendIds, object);
System
.
out
.
println
(
"8796w39879873298798"
);
if
(
object
instanceof
AlertCallePowerTransferRo
)
{
AlertCallePowerTransferRo
calledRo
=
(
AlertCallePowerTransferRo
)
object
;
calledRo
.
getPowerTransType
();
if
(
FireBrigadeTypeEnum
.
专职消防队
.
getKey
().
equals
(
calledRo
.
getPowerTransType
()))
{
alertSubmittedService
.
ruleCallbackActionForPowerTransferForCar
(
smsCode
,
sendIds
,
object
);
//消防车辆
}
else
if
(
FireBrigadeTypeEnum
.
医疗救援队
.
getKey
().
equals
(
calledRo
.
getPowerTransType
()))
{
alertSubmittedService
.
ruleCallbackActionForPowerTransferForAid
(
smsCode
,
sendIds
,
object
);
//120急救站
}
else
if
(
FireBrigadeTypeEnum
.
监控大队
.
getKey
().
equals
(
calledRo
.
getPowerTransType
()))
{
alertSubmittedService
.
ruleCallbackActionForPowerTransferForSurvBrigade
(
smsCode
,
sendIds
,
object
);
//监控大队
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
b39ecc9a
...
...
@@ -369,7 +369,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
alertCalledObjsDto
.
setAlertFormValue
(
alertFormValuelist
);
// 警情报送
// 调用规则 警情初报
ruleAlertCalledService
.
fireAlertCalledRule
(
alertCalledObjsDto
,
AlertBusinessTypeEnum
.
警情初报
.
getCode
(),
null
);
ruleAlertCalledService
.
fireAlertCalledRule
(
alertCalledObjsDto
,
AlertBusinessTypeEnum
.
警情初报
.
getCode
(),
null
,
null
,
null
);
// 通知实战指挥页面发送mqtt 默认发送 String 类型 0, 新警情 1 警情状态变化
emqKeeper
.
getMqttClient
().
publish
(
topic
,
"0"
.
getBytes
(),
RuleConfig
.
DEFAULT_QOS
,
true
);
/**
...
...
@@ -377,9 +377,6 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
*/
eSAlertCalledService
.
saveAlertCalledToES
(
alertCalled
);
}
return
alertCalledObjsDto
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
View file @
b39ecc9a
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/FireTeamServiceImpl.java
View file @
b39ecc9a
...
...
@@ -442,4 +442,5 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
queryWrapper
.
eq
(
FireTeam:
:
getCompany
,
companyId
);
return
this
.
baseMapper
.
selectList
(
queryWrapper
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/PowerTransferServiceImpl.java
View file @
b39ecc9a
...
...
@@ -158,7 +158,7 @@ public class PowerTransferServiceImpl extends BaseService<PowerTransferDto, Powe
//封装调派任务的集合,以便于实现任务规则校验
try
{
//
packagePowerTransferDetail(powerTransferDto);
packagePowerTransferDetail
(
powerTransferDto
);
}
catch
(
Exception
e
)
{
log
.
error
(
"调用规则失败:PowerTransferServiceImpl。createPowerTransfer()"
);
}
...
...
@@ -190,8 +190,8 @@ public class PowerTransferServiceImpl extends BaseService<PowerTransferDto, Powe
monitorTeamList
.
add
(
powerTransferCompanyDto
);
}
}
//
ruleAlertCalledService.powerTransferCalledRule(fullTimeList,powerTransferDto.getAlertCalledId(),FireBrigadeTypeEnum.专职消防队.getKey());
//
ruleAlertCalledService.powerTransferCalledRule(medicalTeamList,powerTransferDto.getAlertCalledId(),FireBrigadeTypeEnum.医疗救援队.getKey());
ruleAlertCalledService
.
powerTransferCalledRule
(
fullTimeList
,
powerTransferDto
.
getAlertCalledId
(),
FireBrigadeTypeEnum
.
专职消防队
.
getKey
());
ruleAlertCalledService
.
powerTransferCalledRule
(
medicalTeamList
,
powerTransferDto
.
getAlertCalledId
(),
FireBrigadeTypeEnum
.
医疗救援队
.
getKey
());
ruleAlertCalledService
.
powerTransferCalledRule
(
monitorTeamList
,
powerTransferDto
.
getAlertCalledId
(),
FireBrigadeTypeEnum
.
监控大队
.
getKey
());
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/RuleAlertCalledService.java
View file @
b39ecc9a
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/RulePlanService.java
View file @
b39ecc9a
package
com
.
yeejoin
.
amos
.
supervision
.
business
.
service
.
impl
;
import
com.yeejoin.amos.boot.biz.common.constants.TerminalConstant
;
import
com.yeejoin.amos.boot.biz.common.enums.RuleTypeEnum
;
import
com.yeejoin.amos.component.rule.RuleTrigger
;
import
com.yeejoin.amos.supervision.business.dto.PlanRo
;
...
...
@@ -27,10 +28,6 @@ public class RulePlanService {
private
final
String
packageId
=
"消息/addPlanRule"
;
private
final
String
msgType
=
"supervision"
;
private
final
String
APP
=
"APP"
;
private
final
String
WEB
=
"WEB"
;
private
final
String
APP_WEB
=
"APP/WEB"
;
@Autowired
private
RuleTrigger
ruleTrigger
;
...
...
@@ -47,7 +44,6 @@ public class RulePlanService {
public
Boolean
addPlanAuditRule
(
Plan
plan
,
List
<
String
>
userIds
,
RuleTypeEnum
ruleType
,
String
excuteStateName
)
throws
Exception
{
PlanRo
planRo
=
buildPlanRo
(
plan
,
userIds
,
ruleType
);
planRo
.
setExcuteStateName
(
excuteStateName
);
//触发规则
ruleTrigger
.
publish
(
planRo
,
packageId
,
new
String
[
0
]);
return
true
;
...
...
@@ -59,11 +55,21 @@ public class RulePlanService {
planRo
.
setMsgType
(
msgType
);
planRo
.
setRuleType
(
ruleType
.
getCode
());
planRo
.
setRelationId
(
String
.
valueOf
(
plan
.
getId
()));
planRo
.
setTerminal
(
ruleType
.
getTerminal
());
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"planId"
,
String
.
valueOf
(
plan
.
getId
()));
if
(!
ValidationUtil
.
isEmpty
(
ruleType
.
getUrl
())){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"url"
,
ruleType
.
getUrl
());
planRo
.
setExtras
(
map
);
}
if
(
TerminalConstant
.
WEB
.
equals
(
ruleType
.
getTerminal
())){
planRo
.
setIsSendWeb
(
true
);
}
else
if
(
TerminalConstant
.
APP
.
equals
(
ruleType
.
getTerminal
())){
planRo
.
setIsSendApp
(
true
);
}
else
if
(
TerminalConstant
.
APP_WEB
.
equals
(
ruleType
.
getTerminal
())){
planRo
.
setIsSendWeb
(
true
);
planRo
.
setIsSendApp
(
true
);
}
if
(
ValidationUtil
.
isEmpty
(
userIds
))
{
...
...
@@ -72,15 +78,10 @@ public class RulePlanService {
leadPeopleIds
+=
","
+
plan
.
getUserId
();
}
userIds
=
(
List
<
String
>)
jcsFeignClient
.
getAmosIdListByUserIds
(
leadPeopleIds
).
getResult
();
planRo
.
setIsSendApp
(
true
);
planRo
.
setTerminal
(
WEB
);
}
else
{
planRo
.
setIsSendWeb
(
true
);
planRo
.
setIsSendApp
(
false
);
planRo
.
setTerminal
(
APP_WEB
);
}
planRo
.
setSendTime
(
DateUtil
.
date2LongStr
(
new
Date
()));
planRo
.
setRecivers
(
userIds
);
planRo
.
setExtras
(
map
);
return
planRo
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/utils/BeanDtoVoUtils.java
View file @
b39ecc9a
...
...
@@ -265,6 +265,8 @@ public class BeanDtoVoUtils {
}
else
if
(
2
==
item
.
getUnitStatus
())
{
target
.
setStatusStr
(
"已驳回"
);
}
target
.
setFullAddress
(
item
.
getProvince
()
+
item
.
getCity
()
+
item
.
getDistrict
()
+
item
.
getStree
()
+
item
.
getCommunity
()
+
item
.
getAddress
());
return
target
;
}
catch
(
Exception
e
)
{
return
null
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/UnitInfoController.java
View file @
b39ecc9a
...
...
@@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsAuthServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.boot.module.tzs.flc.api.dto.UnitInfoApproveDto
;
...
...
@@ -43,6 +45,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.Collection
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Random
;
...
...
@@ -75,6 +78,9 @@ public class UnitInfoController extends BaseController {
@Autowired
private
TzsAuthServiceImpl
tzsAuthServiceImpl
;
@Autowired
OrgUsrServiceImpl
iOrgUsrService
;
/**
* 获取组织机构树
*
...
...
@@ -295,7 +301,7 @@ public class UnitInfoController extends BaseController {
queryWrapper
.
orderByDesc
(
RedisKey
.
humpToLine
(
date
[
0
]));
}
}
else
{
queryWrapper
.
orderByDesc
(
"
rec_dat
e"
);
queryWrapper
.
orderByDesc
(
"
submit_tim
e"
);
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getIsChange
()))
{
// 分类 注册 / 信息变更 0 注册 1 变更
...
...
@@ -304,11 +310,11 @@ public class UnitInfoController extends BaseController {
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getSubmitTimeStart
()))
{
// 提交时间
queryWrapper
.
ge
(
"
rec_dat
e"
,
unitInfoDto
.
getSubmitTimeStart
());
queryWrapper
.
ge
(
"
submit_tim
e"
,
unitInfoDto
.
getSubmitTimeStart
());
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getSubmitTimeEnd
()))
{
// 提交时间
queryWrapper
.
le
(
"
rec_dat
e"
,
unitInfoDto
.
getSubmitTimeEnd
());
queryWrapper
.
le
(
"
submit_tim
e"
,
unitInfoDto
.
getSubmitTimeEnd
());
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getUnitTypeCode
()))
{
// 单位类型
...
...
@@ -330,6 +336,16 @@ public class UnitInfoController extends BaseController {
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getUnitStatus
()))
{
// 审核状态
queryWrapper
.
like
(
"unit_status"
,
unitInfoDto
.
getUnitStatus
());
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getLegalPerson
()))
{
// 法人
queryWrapper
.
like
(
"legal_person"
,
unitInfoDto
.
getLegalPerson
());
}
if
(!
ValidationUtil
.
isEmpty
(
unitInfoDto
.
getLegalPersonTel
()))
{
// 法人电话
queryWrapper
.
like
(
"legal_person_tel"
,
unitInfoDto
.
getLegalPersonTel
());
}
return
queryWrapper
;
}
...
...
@@ -365,6 +381,25 @@ public class UnitInfoController extends BaseController {
}
/**
* 根据当前登录人获取企业信息
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getUserUnit"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据当前登录人获取企业信息"
,
notes
=
"根据当前登录人获取企业信息"
)
public
ResponseModel
<
UnitInfoDto
>
getUserUnit
()
{
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
List
<
CompanyModel
>
companys
=
user
.
getCompanys
();
UnitInfoDto
result
=
new
UnitInfoDto
();
for
(
CompanyModel
c
:
companys
)
{
OrgUsr
temp
=
iOrgUsrService
.
getOne
(
new
LambdaQueryWrapper
<
OrgUsr
>().
eq
(
OrgUsr:
:
getIsDelete
,
false
).
eq
(
OrgUsr:
:
getAmosOrgId
,
c
.
getSequenceNbr
()));
if
(
temp
!=
null
)
{
return
ResponseHelper
.
buildResponse
(
unitInfoServiceImpl
.
getDtoByOrgId
(
temp
.
getSequenceNbr
()));
}
}
return
ResponseHelper
.
buildResponse
(
result
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/service/impl/UnitInfoServiceImpl.java
View file @
b39ecc9a
...
...
@@ -40,6 +40,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
...
...
@@ -86,6 +87,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
public
UnitInfoDto
saveUnitInfo
(
UnitInfoDto
model
)
{
tzsAuthServiceImpl
.
setRequestContext
();
model
.
setUnitStatus
(
0
);
// 设置为待审核状态
model
.
setSubmitTime
(
new
Date
());
// 提交时间
model
.
setIsChange
(
false
);
// 新增状态不是变更状态
// 处理单位类型
String
unitTypeCode
=
model
.
getUnitTypeCode
();
...
...
@@ -161,7 +163,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
else
{
// 如果是审批单 创建用户 创建组织机构 赋权等
sourceUnit
.
setApprovedTime
(
new
Date
());
// 创建用户 创建组织机构 平台组织机构及 org_user表中 赋权
String
adminUserName
=
sourceUnit
.
getAdminName
();
String
loginName
=
sourceUnit
.
getAdminLoginName
();
...
...
@@ -240,6 +242,11 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
org
.
setBizOrgCode
(
TreeParser
.
genTreeCode
());
org
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
org
.
setBizOrgName
(
sourceUnit
.
getOrgName
());
org
.
setRecDate
(
new
Date
());
org
.
setRecUserId
(
userResult
.
getResult
().
getUserId
());
org
.
setRecUserName
(
userResult
.
getResult
().
getUserName
());
org
.
setAmosOrgId
(
companyInfo
.
getSequenceNbr
()+
""
);
org
.
setAmosOrgCode
(
companyInfo
.
getOrgCode
());
if
(!
iOrgUsrService
.
save
(
org
))
{
throw
new
BadRequest
(
"org单位注册失败"
);
}
...
...
@@ -314,6 +321,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
}
target
.
setFullAddress
(
source
.
getProvince
()
+
source
.
getCity
()
+
source
.
getDistrict
()
+
source
.
getStree
()
+
source
.
getCommunity
()
+
source
.
getAddress
());
return
target
;
}
...
...
@@ -342,7 +350,7 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
}
}
target
.
setFullAddress
(
source
.
getProvince
()
+
source
.
getCity
()
+
source
.
getDistrict
()
+
source
.
getStree
()
+
source
.
getCommunity
()
+
source
.
getAddress
());
return
target
;
}
...
...
@@ -376,4 +384,14 @@ public class UnitInfoServiceImpl extends BaseService<UnitInfoDto, UnitInfo, Unit
sourceFileService
.
saveAttachments
(
sourceUnit
.
getSequenceNbr
(),
attachmentMap
);
return
filePath
;
}
@Override
public
UnitInfoDto
getDtoByOrgId
(
Long
sequenceNbr
)
{
UnitInfo
unitInfo
=
this
.
getOne
(
new
LambdaQueryWrapper
<
UnitInfo
>().
eq
(
UnitInfo:
:
getIsDelete
,
false
).
eq
(
UnitInfo:
:
getOrgUserId
,
sequenceNbr
));
if
(
unitInfo
==
null
)
{
return
new
UnitInfoDto
();
}
return
unitInfoToDto
(
unitInfo
);
}
}
\ No newline at end of file
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
b39ecc9a
...
...
@@ -2163,8 +2163,60 @@
</sql>
</changeSet>
<changeSet
author=
"litw"
id=
"2021-11-15-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
<primaryKeyExists
primaryKeyName=
"sequence_nbr"
tableName=
"jc_template"
/>
</preConditions>
<comment>
insert data jc_template
</comment>
<sql>
INSERT INTO `jc_template` (sequence_nbr, type_code, `type`, content, format, rec_user_name, rec_user_id, rec_date, is_delete) VALUES(26, 'LLDP', '力量调派统一模板', '【力量调派】调派departmentName content 赶往rescueGrid 位置。responseLevel 联系人: contactUser 联系电话: contactPhone 相关警情:【type】时间:callTime replaceContent', 0, NULL, NULL, NULL, 0);
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-17-litengwei-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
`jc_template` jc
set
content = '
<![CDATA[<p>【警情续报】<span contenteditable="true" data-name="editContent" data-type="input"></span><p>相关警情:时间:$callTime 地点: $address 发生$type 警情 $replaceContent 被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>;<p>发送单位:<span contentEditable data-name="companyName" data-type="input"></span></p> ]]>
'
where jc.type_code = '313'
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-17-litengwei-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
jc_template jc
set
content = '
<![CDATA[<p>【非警情确认】根据现场反馈信息、视频监控信息和消防物联监控信息,判断 【时间:$callTime 地点: $address 发生$type 警情 $replaceContent ;被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>; 】 为非警情,请个单位、部门尽快 进行恢复到日常执勤状态。</p><p>发送单位:<span contenteditable="true" data-name="companyName" data-type="input"></span></p>]]>
'
where
jc.type_code = '314'
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-17-litengwei-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
jc_template jc
set
content = '
<![CDATA[<p>【警情结案】当前警情已于<span contenteditable="true" data-name="recDate" data-type="input"></span> 当前警情已经结案。</p>相关警情:时间:$callTime 地点: $address 发生$type 警情 $replaceContent;被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>;<p>发送单位:<span contentEditable data-name="companyName" data-type="input"></span></p>]]>
'
where
jc.type_code = '315'
</sql>
</changeSet>
</databaseChangeLog>
amos-boot-system-tzs/src/main/resources/db/changelog/tzs-1.0.0.0.xml
View file @
b39ecc9a
...
...
@@ -105,10 +105,7 @@
<changeSet
author=
"kongfm"
id=
"2021-11-17-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"cb_data_dictionary"
/>
<not>
<primaryKeyExists
primaryKeyName=
"sequence_nbr"
tableName=
"cb_data_dictionary"
/>
</not>
</preConditions>
<comment>
add data_dictionary
</comment>
<sql>
...
...
@@ -143,7 +140,9 @@
<changeSet
author=
"kongfm"
id=
"2021-11-17-02"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"tz_flc_unit_info"
/>
<not>
<tableExists
tableName=
"tz_flc_unit_info"
/>
</not>
</preConditions>
<comment>
add tz_flc_unit_info table
</comment>
<sql>
...
...
@@ -190,6 +189,8 @@
`rec_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
`is_delete` bit(1) NULL DEFAULT b'0' COMMENT '是否删除(0:未删除,1:已删除)',
`is_change` bit(1) NULL DEFAULT NULL COMMENT '是否变更(0:未变更,1:变更中)',
`approved_time` datetime NULL DEFAULT NULL COMMENT '企业入驻时间',
`submit_time` datetime NULL DEFAULT NULL COMMENT '提交时间',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1460504125366816771 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '企业信息表' ROW_FORMAT = Dynamic;
</sql>
...
...
@@ -197,7 +198,9 @@
<changeSet
author=
"kongfm"
id=
"2021-11-17-03"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"tz_flc_unit_info_approve"
/>
</not>
</preConditions>
<comment>
add tz_flc_unit_info_approve table
</comment>
<sql>
...
...
@@ -219,7 +222,9 @@
<changeSet
author=
"kongfm"
id=
"2021-11-17-04"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"tz_flc_unit_info_change"
/>
</not>
</preConditions>
<comment>
add tz_flc_unit_info_change table
</comment>
<sql>
...
...
@@ -261,11 +266,41 @@
`rec_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
`is_delete` bit(1) NULL DEFAULT b'0' COMMENT '是否删除(0:未删除,1:已删除)',
`organization_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组织机构编码',
`approved_time` datetime NULL DEFAULT NULL COMMENT '企业入驻时间',
`submit_time` datetime NULL DEFAULT NULL COMMENT '提交时间',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1458311353490657283 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '企业信息变更表' ROW_FORMAT = Dynamic;
</sql>
</changeSet>
<changeSet
author=
"kongfm"
id=
"2021-11-17-05"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<primaryKeyExists
primaryKeyName=
"sequence_nbr"
tableName=
"cb_data_dictionary"
/>
</not>
</preConditions>
<comment>
update cb_data_dictionary UNIT_TYPE
</comment>
<sql>
UPDATE `cb_data_dictionary` SET `code` = '1043', `name` = '监管单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1043;
UPDATE `cb_data_dictionary` SET `code` = '1044', `name` = '检验单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1044;
UPDATE `cb_data_dictionary` SET `code` = '1045', `name` = '检测单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1045;
UPDATE `cb_data_dictionary` SET `code` = '1046', `name` = '设计单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1046;
UPDATE `cb_data_dictionary` SET `code` = '1047', `name` = '制造单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1047;
UPDATE `cb_data_dictionary` SET `code` = '1048', `name` = '安装单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1048;
UPDATE `cb_data_dictionary` SET `code` = '1049', `name` = '改造单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1049;
UPDATE `cb_data_dictionary` SET `code` = '1050', `name` = '维修单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1050;
UPDATE `cb_data_dictionary` SET `code` = '1051', `name` = '使用单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1051;
UPDATE `cb_data_dictionary` SET `code` = '1052', `name` = '维保单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1052;
UPDATE `cb_data_dictionary` SET `code` = '1053', `name` = '物业单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1053;
UPDATE `cb_data_dictionary` SET `code` = '1054', `name` = '保险公司', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1054;
UPDATE `cb_data_dictionary` SET `code` = '1055', `name` = '物联网公司', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1055;
UPDATE `cb_data_dictionary` SET `code` = '1056', `name` = '气瓶充装单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1056;
UPDATE `cb_data_dictionary` SET `code` = '1057', `name` = '经营单位', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1057;
UPDATE `cb_data_dictionary` SET `code` = '1058', `name` = '其他', `type` = 'UNIT_TYPE', `type_desc` = 'studio_normalapp_3477687,studio_normalapp_3261162', `parent` = NULL, `rec_user_name` = NULL, `rec_user_id` = NULL, `rec_date` = NULL, `is_delete` = b'0', `sort_num` = 1 WHERE `sequence_nbr` = 1058;
</sql>
</changeSet>
</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