refactor: change update method

This commit is contained in:
guoyuqi 2023-07-20 16:24:33 +08:00 committed by Yuki Guo
parent b834989931
commit 79aceb4de4
1 changed files with 2 additions and 3 deletions

View File

@ -176,14 +176,13 @@ public class TestResourcePoolService {
checkApiConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
checkLoadConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
checkUiConfig(testResourceDTO, testResourcePool);
String configuration = JSON.toJSONString(testResourceDTO);
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
testResourcePoolBlob.setId(testResourcePool.getId());
testResourcePoolBlob.setConfiguration(configuration.getBytes());
testResourcePoolBlobMapper.updateByPrimaryKeyWithBLOBs(testResourcePoolBlob);
testResourcePoolMapper.updateByPrimaryKey(testResourcePool);
testResourcePoolBlobMapper.updateByPrimaryKeySelective(testResourcePoolBlob);
testResourcePoolMapper.updateByPrimaryKeySelective(testResourcePool);
}
public List<TestResourcePoolDTO> listResourcePools(QueryResourcePoolRequest request) {