|
- package com.simple.service;
-
- import com.github.pagehelper.PageInfo;
- import com.simple.common.ResultData;
- import com.simple.domain.dto.WxCUserBasicInfoDto;
- import com.simple.domain.po.WxCUserBasicInfo;
- import org.springframework.web.multipart.MultipartFile;
-
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import java.util.List;
-
- public interface WxCUserBasicInfoService {
-
- /**
- * 根据实体查询分页列表
- *
- * @param record
- * @param pageIndex
- * @param pageSize
- * @return
- */
- PageInfo<WxCUserBasicInfo> listAsPage(WxCUserBasicInfo record, Integer pageIndex, Integer pageSize);
-
- /**
- * 根据Id获得实体
- *
- * @param id
- * @return
- */
- WxCUserBasicInfo getById(Long id);
-
- /**
- * 保存或更新实体
- *
- * @param record
- */
- void saveOrUpdate(WxCUserBasicInfo record);
-
- /**
- * 保存或更新实体
- *
- * @param record
- */
- void updateObj(WxCUserBasicInfo record, Long newId);
-
- /**
- * 根据Id删除实体
- *
- * @param id
- */
- void deleteById(Long id);
-
- List<WxCUserBasicInfo> findByPhone(String tenantId, String phone);
-
- /**
- * 修改会员积分
- *
- * @param record
- */
- void updateScore(WxCUserBasicInfo record);
-
- /**
- * 根据性别查询数量
- *
- * @param dto
- * @return
- */
- long findCountBySex(WxCUserBasicInfoDto dto);
-
- /**
- * 根据年龄查询数量
- *
- * @param dto
- * @return
- */
- long findCountByAge(WxCUserBasicInfoDto dto);
-
- void exportData(HttpServletRequest request, HttpServletResponse response, String tenantId);
-
- void exportTemplate(HttpServletRequest request, HttpServletResponse response, String tenantId);
-
- ResultData importTemplate(MultipartFile file, String tenantId);
-
- long findCount(WxCUserBasicInfoDto dto);
-
- }
|