|
@@ -19,6 +19,7 @@ import com.boman.common.log.enums.BusinessType;
|
|
|
import com.boman.domain.RoleEnum;
|
|
|
import com.boman.domain.TableSql;
|
|
|
|
|
|
+import com.boman.gen.mapper.GenTableRelationMapper;
|
|
|
import com.boman.system.api.RemoteSysMenuService;
|
|
|
import com.boman.system.api.domain.SysMenu;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
@@ -71,6 +72,9 @@ public class GenTableServiceImpl implements IGenTableService {
|
|
|
@Autowired
|
|
|
private IGenTableColumnService tableColumnService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private GenTableRelationMapper genTableRelationMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 查询业务信息
|
|
|
*
|
|
@@ -197,6 +201,8 @@ public class GenTableServiceImpl implements IGenTableService {
|
|
|
genTableMapper.deleteGenTableByIds(tableIds);
|
|
|
genTableColumnMapper.deleteGenTableColumnByIds(tableIds);
|
|
|
tableSqlService.deleteTableSqlByTableIds(tableIds);
|
|
|
+ //删除关联关系
|
|
|
+ genTableRelationMapper.deleteGenTableRelationByParentId(tableIds);
|
|
|
}
|
|
|
|
|
|
/**
|