测试连接完成,修改状态
parent
857423dcd9
commit
41182d0a5d
|
@ -1,6 +1,7 @@
|
||||||
package com.etl.data.source.service.impl;
|
package com.etl.data.source.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.etl.common.core.utils.DateUtils;
|
import com.etl.common.core.utils.DateUtils;
|
||||||
import com.etl.data.source.domain.DataSource;
|
import com.etl.data.source.domain.DataSource;
|
||||||
|
@ -181,6 +182,19 @@ public class DataSourceServiceImpl extends ServiceImpl<DataSourceMapper, DataSou
|
||||||
flag = false;
|
flag = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (flag) {
|
||||||
|
this.update(
|
||||||
|
new UpdateWrapper<DataSource>()
|
||||||
|
.set("status", "S")
|
||||||
|
.eq("id", id)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this.update(
|
||||||
|
new UpdateWrapper<DataSource>()
|
||||||
|
.set("status", "E")
|
||||||
|
.eq("id", id)
|
||||||
|
);
|
||||||
|
}
|
||||||
return flag;
|
return flag;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return flag;
|
return flag;
|
||||||
|
|
Loading…
Reference in New Issue