|
@@ -46,4 +46,15 @@ public class AppMsgRefServiceImpl implements AppMsgRefService {
|
|
public List<Map<String, Object>> getAllMsgConfig(Integer portRefId) {
|
|
public List<Map<String, Object>> getAllMsgConfig(Integer portRefId) {
|
|
return msgRefMapper.getAllMsgConfig(portRefId);
|
|
return msgRefMapper.getAllMsgConfig(portRefId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void save(AppMsgRef appMsgRef) {
|
|
|
|
+ if(appMsgRef.getId() == null ){
|
|
|
|
+ // 新增
|
|
|
|
+ msgRefMapper.insertAppMsgRef(appMsgRef);
|
|
|
|
+ } else {
|
|
|
|
+ // 存在ID 则编辑
|
|
|
|
+ msgRefMapper.updateByIdSelect(appMsgRef);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|