|
|
|
@ -36,12 +36,22 @@ public class EhsRiskServiceImpl extends ServiceImpl<EhsRiskMapper, EhsRisk> impl
|
|
|
|
|
EhsRisk ehsRisk = ehsRiskMapper.selectEhsRiskByRiskId(riskId);
|
|
|
|
|
// 风险点位置
|
|
|
|
|
String[] riskLocationArr = ehsRisk.getRiskLocation().split(";");
|
|
|
|
|
if(riskLocationArr.length==2) {
|
|
|
|
|
ehsRisk.setRiskLocation1(riskLocationArr[0]);// 村 (社区)
|
|
|
|
|
ehsRisk.setRiskLocation2(riskLocationArr[1]);// 位置
|
|
|
|
|
}else {
|
|
|
|
|
ehsRisk.setRiskLocation1(riskLocationArr[0]);// 村 (社区)
|
|
|
|
|
ehsRisk.setRiskLocation2("");// 位置
|
|
|
|
|
}
|
|
|
|
|
// 涉及群众数量
|
|
|
|
|
String[] peopleNumArr = ehsRisk.getPeopleQuantity().split(";");
|
|
|
|
|
if(peopleNumArr.length==2) {
|
|
|
|
|
ehsRisk.setPeopleQuantity1(peopleNumArr[0]);// 户
|
|
|
|
|
ehsRisk.setPeopleQuantity2(peopleNumArr[1]);// 人
|
|
|
|
|
}else {
|
|
|
|
|
ehsRisk.setPeopleQuantity1(peopleNumArr[0]);// 户
|
|
|
|
|
ehsRisk.setPeopleQuantity2("");// 人
|
|
|
|
|
}
|
|
|
|
|
return ehsRisk;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|