Commit 27c1efa9 authored by 李腾威's avatar 李腾威

BUG 4079

parent 6d71e1c0
...@@ -80,4 +80,10 @@ public class FireTeam extends BaseEntity { ...@@ -80,4 +80,10 @@ public class FireTeam extends BaseEntity {
@ApiModelProperty(value = "树结构层级code") @ApiModelProperty(value = "树结构层级code")
private String treeCode; private String treeCode;
@ApiModelProperty(value = "bizOrgCode")
private String bizOrgCode;
@ApiModelProperty(value = "bizOrgName")
private String bizOrgName;
} }
...@@ -377,10 +377,10 @@ FROM ...@@ -377,10 +377,10 @@ FROM
SELECT SELECT
Max( Max(
CASE CASE
WHEN cbd.field_code = 'administrativePositionCode' THEN WHEN cbd.field_code = 'positionType' THEN
cbd.field_value cbd.field_value
END END
) AS administrativePositionCode, ) AS positionType,
Max( Max(
CASE CASE
WHEN cbd.field_code = 'telephone' THEN WHEN cbd.field_code = 'telephone' THEN
...@@ -412,16 +412,16 @@ FROM ...@@ -412,16 +412,16 @@ FROM
biz_org_name = #{departmentName} and is_delete = 0 biz_org_name = #{departmentName} and is_delete = 0
) )
AND cou.biz_org_type = 'PERSON' AND cou.biz_org_type = 'PERSON' and is_delete = 0
) group by cbd.instance_id ) group by cbd.instance_id
) dd ) dd
LEFT JOIN cb_org_usr cour ON dd.instance_id = cour.sequence_nbr LEFT JOIN cb_org_usr cour ON dd.instance_id = cour.sequence_nbr
WHERE WHERE
<if test="positionType == null "> <if test="positionType == null ">
dd.administrativePositionCode IS NOT NULL dd.positionType IS NOT NULL
</if> </if>
<if test="positionType != null"> <if test="positionType != null">
dd.administrativePositionCode in dd.positionType in
<foreach collection="positionType" item="item" separator="," open="(" close=")" index=""> <foreach collection="positionType" item="item" separator="," open="(" close=")" index="">
#{item, jdbcType=NUMERIC} #{item, jdbcType=NUMERIC}
</foreach> </foreach>
......
...@@ -541,7 +541,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al ...@@ -541,7 +541,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
smsParams.put("callTimeStr", calledRo.getCallTimeStr()); smsParams.put("callTimeStr", calledRo.getCallTimeStr());
smsParams.put("address", calledRo.getAddress()); smsParams.put("address", calledRo.getAddress());
smsParams.put("fireLocation", calledRo.getFireLocation()); smsParams.put("fireLocation", calledRo.getFireLocation());
smsParams.put("endTimeStr", DateUtils.convertDateToString(alertCalled.getUpdateTime(),DateUtils.DATE_TIME_PATTERN)); smsParams.put("endTimeStr", alertCalled.getUpdateTime() != null ? DateUtils.convertDateToString(alertCalled.getUpdateTime(),DateUtils.DATE_TIME_PATTERN) : "");
smsParams.put("burningMaterial", calledRo.getBurningMaterial()); smsParams.put("burningMaterial", calledRo.getBurningMaterial());
smsParams.put("fireSituation", calledRo.getFireSituation()); smsParams.put("fireSituation", calledRo.getFireSituation());
smsParams.put("trappedNum", calledRo.getTrappedNum()); smsParams.put("trappedNum", calledRo.getTrappedNum());
...@@ -1442,8 +1442,10 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al ...@@ -1442,8 +1442,10 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
String [] groupCode = jsonObject1.getString("fireBrigade").split(","); String [] groupCode = jsonObject1.getString("fireBrigade").split(",");
List<String> positionType= Arrays.asList(groupCode); List<String> positionType= Arrays.asList(groupCode);
if (jsonObject1.containsKey("fireBrigade")) { { if (jsonObject1.containsKey("fireBrigade")) { {
LambdaQueryWrapper<OrgUsr> queryWrapper = new LambdaQueryWrapper<OrgUsr>();
List<Map<String, Object>> mapList = dynamicFormInstanceMapper.getFireRescueDepartmentStaff(fireTeam.getCompanyName(),positionType); queryWrapper.eq(OrgUsr::getBizOrgCode, fireTeam.getBizOrgCode());
OrgUsr one = orgUsrService.getOne(queryWrapper);
List<Map<String, Object>> mapList = dynamicFormInstanceMapper.getFireRescueDepartmentStaff(one.getBizOrgName(),positionType);
sendUserIds.addAll(mapList); sendUserIds.addAll(mapList);
} }
if(jsonObject1.containsKey("onDuty")) { if(jsonObject1.containsKey("onDuty")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment