健康报告上传查看功能
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.sv.mapper;
|
||||
|
||||
import com.sv.entity.HealthDoc;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HealthDocMapper {
|
||||
@@ -17,4 +19,6 @@ public interface HealthDocMapper {
|
||||
int updateByPrimaryKey(HealthDoc record);
|
||||
|
||||
List<HealthDoc> findMemAll();
|
||||
|
||||
List<HealthDoc> findDocsByMemberId(@Param("memberId") Integer memberId);
|
||||
}
|
||||
|
||||
@@ -66,5 +66,18 @@ public class MemberHealthDocService extends MemberCardCommonService {
|
||||
return pagination;
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序查询用户健康报告
|
||||
* @param pagination 分页信息
|
||||
* @return 分页结果
|
||||
*/
|
||||
public Pagination findDocs(Pagination pagination,Integer memberId) {
|
||||
PageHelper.startPage(pagination.getPage(), pagination.getPageSize());
|
||||
PageHelper.orderBy("doc_date desc");
|
||||
pagination.setQueryResult(healthDocMapper.findDocsByMemberId(memberId));
|
||||
return pagination;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user