...
|
...
|
@@ -6,6 +6,7 @@ import com.model.TypeInfo; |
|
|
import com.monitor.cmdb.service.IMObjectInfoService;
|
|
|
import com.monitor.model.response.DependencyRep;
|
|
|
import com.monitor.mysql.mapper.MObjectInfoMapper;
|
|
|
import com.yoho.core.dal.datasource.annotation.Database;
|
|
|
import lombok.Getter;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -199,6 +200,8 @@ public class MObjectInfoServiceImpl implements IMObjectInfoService { |
|
|
* @param dependencyList
|
|
|
*/
|
|
|
@Override
|
|
|
@Transactional
|
|
|
@Database(DataSource = "yh_ops")
|
|
|
public void updateBindDependency(int typeId, List<String> dependencyList) {
|
|
|
Map<String, TypeInfo> allDependencies = queryAllDependencies();
|
|
|
List<DependencyInfo> dependencyInfoList = new ArrayList<>();
|
...
|
...
|
|