package com.kidgrow.oprationcenter.service.impl; import org.springframework.stereotype.Service; import com.kidgrow.common.model.PageResult; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.kidgrow.common.service.impl.SuperServiceImpl; import java.util.List; import java.util.Map; import org.apache.commons.collections4.MapUtils; import lombok.extern.slf4j.Slf4j; import com.kidgrow.oprationcenter.model.DoctorAnswer; import com.kidgrow.oprationcenter.mapper.DoctorAnswerMapper; import com.kidgrow.oprationcenter.service.IDoctorAnswerService; /** * 石家庄喜高科技有é™è´£ä»»å…¬å¸ ç‰ˆæƒæ‰€æœ‰ © Copyright 2020<br> * @Description: 医ç”医生信æ¯è¡¨-未完待ç»<br> * @Project: 用户ä¸å¿ƒ<br> * @CreateDate: Created in 2020-04-01 09:37:05 <br> * @Author: <a href="4345453@kidgrow.com">liuke</a> * @version 1.0 */ @Slf4j @Service public class DoctorAnswerServiceImpl extends SuperServiceImpl<DoctorAnswerMapper, DoctorAnswer> implements IDoctorAnswerService { /** * 列表 * @param params * @return */ @Override public PageResult<DoctorAnswer> findList(Map<String, Object> params){ Page<DoctorAnswer> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); List<DoctorAnswer> list = baseMapper.findList(page, params); return PageResult.<DoctorAnswer>builder().data(list).code(0).count(page.getTotal()).build(); } /** * æ ¹æ®DoctorAnswerå¯¹è±¡å½“åšæŸ¥è¯¢æ¡ä»¶è¿›è¡ŒæŸ¥è¯¢ * @param doctorAnswer * @return DoctorAnswer */ @Override public DoctorAnswer findByObject(DoctorAnswer doctorAnswer){ return baseMapper.findByObject(doctorAnswer); } }