Commit e8ea09f0 authored by 赵啸非's avatar 赵啸非

添加业务修改通知php

parent 9e3d84e7
......@@ -32,7 +32,7 @@ public class SendTask implements Runnable {
try {
Map<String, String> header = new HashMap<>();
header.put(HEADER_CONTENT_TYPE, "application/json");
log.info("sendUrl:{} \n sendMessageReq:{}",sendUrl, content);
log.info("sendUrl:{} \nsendMessageReq:{}",sendUrl, content);
resp = HttpUtil.doPost(sendUrl, header, content);
log.debug("sendMessageResp:{}", resp);
} catch (Exception e) {
......
......@@ -188,10 +188,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
}).collect(Collectors.toList());
Long[] childIds = collect.stream().map(item->item.getId()).toArray(Long[]::new);
Long[] bussinessIds = collect.stream().map(item->item.getBusinessId()).toArray(Long[]::new);
businessService.remove(bussinessIds,context);
this.getDao().delete(childIds);
Long[] bussinessIds = collect.stream().map(item->item.getBusinessId()).toArray(Long[]::new);
log.info("bussinessIds:{}",JSON.toJSONString(bussinessIds));
if(!ObjectUtils.isEmpty(bussinessIds)){
businessService.remove(bussinessIds,context);
}
}
......
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