refactor: change update method
This commit is contained in:
parent
b834989931
commit
79aceb4de4
|
@ -176,14 +176,13 @@ public class TestResourcePoolService {
|
||||||
checkApiConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
|
checkApiConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
|
||||||
checkLoadConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
|
checkLoadConfig(testResourceDTO, testResourcePool, testResourcePool.getType());
|
||||||
checkUiConfig(testResourceDTO, testResourcePool);
|
checkUiConfig(testResourceDTO, testResourcePool);
|
||||||
|
|
||||||
String configuration = JSON.toJSONString(testResourceDTO);
|
String configuration = JSON.toJSONString(testResourceDTO);
|
||||||
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
|
TestResourcePoolBlob testResourcePoolBlob = new TestResourcePoolBlob();
|
||||||
testResourcePoolBlob.setId(testResourcePool.getId());
|
testResourcePoolBlob.setId(testResourcePool.getId());
|
||||||
testResourcePoolBlob.setConfiguration(configuration.getBytes());
|
testResourcePoolBlob.setConfiguration(configuration.getBytes());
|
||||||
|
|
||||||
testResourcePoolBlobMapper.updateByPrimaryKeyWithBLOBs(testResourcePoolBlob);
|
testResourcePoolBlobMapper.updateByPrimaryKeySelective(testResourcePoolBlob);
|
||||||
testResourcePoolMapper.updateByPrimaryKey(testResourcePool);
|
testResourcePoolMapper.updateByPrimaryKeySelective(testResourcePool);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TestResourcePoolDTO> listResourcePools(QueryResourcePoolRequest request) {
|
public List<TestResourcePoolDTO> listResourcePools(QueryResourcePoolRequest request) {
|
||||||
|
|
Loading…
Reference in New Issue