Commit b97d5fff authored by suhuiguang's avatar suhuiguang

Merge branch 'developer' of http://172.16.10.76/moa/amos-boot-biz into developer

parents 7e7a595e 8a463648
...@@ -31,8 +31,8 @@ public class DutyFirstAidExcleDto implements Serializable{ ...@@ -31,8 +31,8 @@ public class DutyFirstAidExcleDto implements Serializable{
@ExcelIgnore @ExcelIgnore
@ApiModelProperty(value = "用户id") @ApiModelProperty(value = "用户id")
private String userId; private String userId;
@ExcelProperty(value = "用户名称", index = 2) @ExcelProperty(value = "值班人员", index = 2)
@ApiModelProperty(value = "用户名称") @ApiModelProperty(value = "值班人员")
private String userName; private String userName;
@ExcelIgnore @ExcelIgnore
......
...@@ -124,27 +124,33 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID ...@@ -124,27 +124,33 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
List< Map<String, Object>> result = new ArrayList<Map<String, Object>>(); List< Map<String, Object>> result = new ArrayList<Map<String, Object>>();
List<String> userNameList= new ArrayList<String>(); List<String> userNameList= new ArrayList<String>();
List<String> firstAidSimpleList = new ArrayList<String>();
List<String> companyNameList = new ArrayList<String>();
String firstAidCompanyId = dutyPersonShiftMapper.getFirstAidCompanyId(); String firstAidCompanyId = dutyPersonShiftMapper.getFirstAidCompanyId();
if (firstAidCompanyId != "" && firstAidCompanyId != null){ if (firstAidCompanyId != "" && firstAidCompanyId != null){
ids.add(firstAidCompanyId); ids.add(firstAidCompanyId);
OrgUsr companyDetail = orgUsrServiceImpl.getDetailById(Long.parseLong(firstAidCompanyId));
String companyNameString = companyDetail.getBizOrgName()+ "@" +companyDetail.getSequenceNbr();
companyNameList.add(companyNameString);
} }
List<String> firstAidSimpleList = new ArrayList<String>();
List<String> companyNameList = new ArrayList<String>();
String typeString = "JJZ"; String typeString = "JJZ";
ids.stream().forEach(i->{ ids.stream().forEach(i->{
Map<String, Object> detailMap = new HashMap<String, Object>(); Map<String, Object> detailMap = new HashMap<String, Object>();
List<OrgUsr> personList = orgUsrServiceImpl.getPersonListByParentId(Long.parseLong(i)); if (!i.equals(firstAidCompanyId)){
List<OrgUsr> personList = orgUsrServiceImpl.getPersonListByParentId(Long.parseLong(i));
personList.stream().forEach(m -> {
String userNameString =m.getBizOrgName()+ "@" +m.getSequenceNbr();
userNameList.add(userNameString);
});
detailMap.put("userName", userNameList);
}
personList.stream().forEach(m -> { //单位默认为 消防救援保障部,不可编辑。
String userNameString =m.getBizOrgName()+ "@" +m.getSequenceNbr();
userNameList.add(userNameString);
});
detailMap.put("userName", userNameList);
OrgUsr companyDetail = orgUsrServiceImpl.getDetailById(Long.parseLong(i));
String companyNameString = companyDetail.getBizOrgName()+ "@" +companyDetail.getSequenceNbr();
companyNameList.add(companyNameString);
detailMap.put("companyName", companyNameList); detailMap.put("companyName", companyNameList);
List<DataDictionary> dataDicList= dataDictionaryService.getByType(typeString); List<DataDictionary> dataDicList= dataDictionaryService.getByType(typeString);
List<String> dataDicSimpleList = new ArrayList<String>(); List<String> dataDicSimpleList = new ArrayList<String>();
dataDicList.stream().forEach(l->{ dataDicList.stream().forEach(l->{
......
...@@ -205,6 +205,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -205,6 +205,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
@Value("${systemctl.amos.switch}") @Value("${systemctl.amos.switch}")
private Boolean amosSwitch; private Boolean amosSwitch;
@Value("${isSendApp}")
private Boolean isSendApp;
private static final String A = "A"; private static final String A = "A";
private final static Map staticMap = new HashMap(); private final static Map staticMap = new HashMap();
...@@ -754,9 +757,14 @@ public class MqttReceiveServiceImpl implements MqttReceiveService { ...@@ -754,9 +757,14 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
DateUtils.date2LongStr(equipmentSpecificAlarmLog.getCreateDate())); DateUtils.date2LongStr(equipmentSpecificAlarmLog.getCreateDate()));
model.setBody(body); model.setBody(body);
model.setMsgType("iotMonitor"); model.setMsgType("iotMonitor");
model.setIsSendApp(true); if (isSendApp){
model.setIsSendApp(true);
model.setTerminal("APP/WEB");
} else {
model.setIsSendApp(false);
model.setTerminal("WEB");
}
model.setIsSendWeb(true); model.setIsSendWeb(true);
model.setTerminal("APP/WEB");
model.setCategory(1); model.setCategory(1);
model.setRelationId(String.valueOf(equipmentSpecificAlarmLog.getId())); model.setRelationId(String.valueOf(equipmentSpecificAlarmLog.getId()));
Token token = remoteSecurityService.getServerToken(); Token token = remoteSecurityService.getServerToken();
......
...@@ -51,6 +51,7 @@ systemctl.sync.switch=false ...@@ -51,6 +51,7 @@ systemctl.sync.switch=false
systemctl.jcs.switch=false systemctl.jcs.switch=false
#平台数据开关 #平台数据开关
systemctl.amos.switch=false systemctl.amos.switch=false
isSendApp=false
#报表数据地址 #报表数据地址
equip.report.url=/fire-fighting-system/ureport/preview?_u=file: equip.report.url=/fire-fighting-system/ureport/preview?_u=file:
......
...@@ -51,6 +51,7 @@ systemctl.sync.switch=false ...@@ -51,6 +51,7 @@ systemctl.sync.switch=false
systemctl.jcs.switch=false systemctl.jcs.switch=false
#平台数据开关 #平台数据开关
systemctl.amos.switch=false systemctl.amos.switch=false
isSendApp=false
#报表数据地址 #报表数据地址
equip.report.url=/fire-fighting-system/ureport/preview?_u=file: equip.report.url=/fire-fighting-system/ureport/preview?_u=file:
......
...@@ -58,6 +58,7 @@ systemctl.sync.switch=false ...@@ -58,6 +58,7 @@ systemctl.sync.switch=false
systemctl.jcs.switch=true systemctl.jcs.switch=true
#平台数据开关 #平台数据开关
systemctl.amos.switch=true systemctl.amos.switch=true
isSendApp=true
#报表数据地址 #报表数据地址
equip.report.url=/fire-fighting-system/ureport/preview?_u=file: equip.report.url=/fire-fighting-system/ureport/preview?_u=file:
......
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