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());
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue