Commit 3286e4a3 authored by 田涛's avatar 田涛

数字预案绑定资源删除信息同步

parent f0ab894b
...@@ -8,6 +8,7 @@ import com.yeejoin.amos.fas.business.vo.EquipmentSpecificVo; ...@@ -8,6 +8,7 @@ import com.yeejoin.amos.fas.business.vo.EquipmentSpecificVo;
import com.yeejoin.amos.fas.dao.entity.EquipmentSpecific; import com.yeejoin.amos.fas.dao.entity.EquipmentSpecific;
import com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint; import com.yeejoin.amos.fas.dao.entity.FmeaEquipmentPoint;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -18,6 +19,7 @@ import java.util.Map; ...@@ -18,6 +19,7 @@ import java.util.Map;
* @author zjw * @author zjw
* @date 2020-11-04 * @date 2020-11-04
*/ */
@Repository
public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecificVo> { public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecificVo> {
Long saveBatch(List<FmeaEquipmentPoint> list); Long saveBatch(List<FmeaEquipmentPoint> list);
......
...@@ -576,9 +576,9 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -576,9 +576,9 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
emqKeeper.getMqttClient().subscribe(DELETE_SYNC_PLAN_RULE, (s, mqttMessage) -> { emqKeeper.getMqttClient().subscribe(DELETE_SYNC_PLAN_RULE, (s, mqttMessage) -> {
byte[] payload = mqttMessage.getPayload(); byte[] payload = mqttMessage.getPayload();
try { try {
List<String> ids = (List<String>) ClazzUtils.deserializableObject(payload); String[] ids = new String(payload).split(",");
if (!ValidationUtil.isEmpty(ids)) { if (!ValidationUtil.isEmpty(ids)) {
planRuleMapper.logicDeleteByRuleIdList(ids); planRuleMapper.logicDeleteByRuleIdList(Arrays.asList(ids));
} }
} catch (Exception e) { } catch (Exception e) {
logger.error("预案规则删除同步出错", e); logger.error("预案规则删除同步出错", e);
......
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