| @@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; | |||||
| import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | |||||
| /** | /** | ||||
| * @author gongbiao | * @author gongbiao | ||||
| @@ -43,7 +44,10 @@ public class WxBuserServiceImpl implements WxBuserService { | |||||
| @Override | @Override | ||||
| public WxBuser getByObject(WxBuser record) { | public WxBuser getByObject(WxBuser record) { | ||||
| try { | try { | ||||
| return wxBuserMapper.selectOne(new QueryWrapper(record)); | |||||
| List<WxBuser> list = wxBuserMapper.selectList(new QueryWrapper(record)); | |||||
| if (list.size() > 0) { | |||||
| return list.get(0); | |||||
| } | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("NOT found: " + e.getMessage()); | logger.error("NOT found: " + e.getMessage()); | ||||
| } | } | ||||