Showing
1 changed file
with
5 additions
and
3 deletions
@@ -108,8 +108,8 @@ public class MObjectInfoServiceImpl implements IMObjectInfoService { | @@ -108,8 +108,8 @@ public class MObjectInfoServiceImpl implements IMObjectInfoService { | ||
108 | } | 108 | } |
109 | 109 | ||
110 | @Override | 110 | @Override |
111 | - public void deleteMObjectInfo(List<Integer> idList){ | ||
112 | - if(idList!=null&&idList.size()>0){ | 111 | + public void deleteMObjectInfo(List<Integer> idList) { |
112 | + if (idList != null && idList.size() > 0) { | ||
113 | mObjectInfoMapper.deleteMoInfoList(idList); | 113 | mObjectInfoMapper.deleteMoInfoList(idList); |
114 | } | 114 | } |
115 | } | 115 | } |
@@ -208,7 +208,9 @@ public class MObjectInfoServiceImpl implements IMObjectInfoService { | @@ -208,7 +208,9 @@ public class MObjectInfoServiceImpl implements IMObjectInfoService { | ||
208 | } | 208 | } |
209 | mObjectInfoMapper.deleteBindDependencyList(typeId); | 209 | mObjectInfoMapper.deleteBindDependencyList(typeId); |
210 | 210 | ||
211 | - mObjectInfoMapper.addBindDependencyList(dependencyInfoList); | 211 | + if (null != dependencyInfoList && 0 < dependencyInfoList.size()) { |
212 | + mObjectInfoMapper.addBindDependencyList(dependencyInfoList); | ||
213 | + } | ||
212 | } | 214 | } |
213 | 215 | ||
214 | 216 |
-
Please register or login to post a comment