REM:
1. 更新业务数据库,业务ID修改为字符串类型
This commit is contained in:
HuangXin 2021-01-15 09:35:23 +08:00
parent 4d5b893eb1
commit 13638acb07
6 changed files with 19 additions and 6 deletions

View File

@ -45,7 +45,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
/**
* The Dispose service group.
*/
private final Hashtable<Long, ServiceInfo> disposeServiceGroup = new Hashtable<>();
private final Hashtable<String, ServiceInfo> disposeServiceGroup = new Hashtable<>();
/**
* The Obj prefix.
@ -65,6 +65,19 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
*/
private long timerCnt = 0;
/**
* Sync dp tech device info.
*/
private void syncDpTechDeviceInfo() {
disposeServiceGroup.values().forEach(v -> {
});
}
private String getProtectObjectName(String serviceId) {
return null;
}
/**
* Init cleanup devices.
*/

View File

@ -40,5 +40,5 @@ public interface ServiceGroupMapper {
* @param serviceId the service id
* @return the int
*/
int delServiceGroupByServiceId(@Param("serviceId") Long serviceId);
int delServiceGroupByServiceId(@Param("serviceId") String serviceId);
}

View File

@ -42,7 +42,7 @@ public class ServiceInfo {
/**
* The Service id.
*/
private Long serviceId;
private String serviceId;
/**
* The Service type.

View File

@ -135,7 +135,7 @@ DROP TABLE IF EXISTS `service_group`;
CREATE TABLE `service_group`
(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '业务ID唯一标识符',
`serviceId` int(11) UNSIGNED NOT NULL COMMENT '业务ID',
`serviceId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务ID',
`serviceType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务类型SERVER,WEB,DNS,GAME',
`serviceBandwidth` int(11) NOT NULL COMMENT '业务带宽单位M',
`serviceIp` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务IP地址逗号分割',

View File

@ -3,7 +3,7 @@
<mapper namespace="com.dispose.mapper.ServiceGroupMapper">
<resultMap id="service_grp" type="com.dispose.pojo.entity.ServiceInfo">
<id column="id" property="id"/>
<id column = "serviceId" property="serviceId"/>
<result column = "serviceId" property="serviceId"/>
<result column="serviceType" property="serviceType"/>
<result column="serviceBandwidth" property="serviceBandwidth"/>
<result column="serviceIp" property="serviceIp"/>

View File

@ -211,7 +211,7 @@ DROP TABLE IF EXISTS `service_group`;
CREATE TABLE `service_group`
(
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '业务ID唯一标识符',
`serviceId` int(11) UNSIGNED NOT NULL COMMENT '业务ID',
`serviceId` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务ID',
`serviceType` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务类型SERVER,WEB,DNS,GAME',
`serviceBandwidth` int(11) NOT NULL COMMENT '业务带宽单位M',
`serviceIp` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务IP地址逗号分割',