193194195196197198199200201202203
key = new PkonlyKey(); key.setSeqNum(3); int rows = mapper.updateByExampleSelective(key, example); assertEquals(2, rows); example.clear(); example.createCriteria() .andIdEqualTo(5) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);
201202203204205206207208209210211
.andSeqNumEqualTo(3); rows = mapper.countByExample(example); assertEquals(1, rows); example.clear(); example.createCriteria() .andIdEqualTo(7) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);
243244245246247248249250251252253
key.setSeqNum(3); key.setId(22); int rows = mapper.updateByExample(key, example); assertEquals(1, rows); example.clear(); example.createCriteria() .andIdEqualTo(22) .andSeqNumEqualTo(3); rows = mapper.countByExample(example);