|
|
|
@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @author gongbiao |
|
|
|
@@ -43,7 +44,10 @@ public class WxBuserServiceImpl implements WxBuserService { |
|
|
|
@Override |
|
|
|
public WxBuser getByObject(WxBuser record) { |
|
|
|
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) { |
|
|
|
logger.error("NOT found: " + e.getMessage()); |
|
|
|
} |
|
|
|
|