public List<Post> selectByArtId(String id) { if (id == null) return null; Long artId = Long.parseLong(id); PostExample e = new PostExample(); e.createCriteria().andArtIdEqualTo(artId); return postMapper.selectByExample(e); }