mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-01 00:20:03 +08:00
新增 会员与收藏站点相关实体类、service
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.service.MemberStationRelationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.MemberStationRelationMapper;
|
||||
import com.jsowell.pile.domain.MemberStationRelation;
|
||||
|
||||
/**
|
||||
* 会员与收藏的站点关系Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-03-18
|
||||
*/
|
||||
@Service
|
||||
public class MemberStationRelationServiceImpl implements MemberStationRelationService {
|
||||
@Autowired
|
||||
private MemberStationRelationMapper memberStationRelationMapper;
|
||||
|
||||
/**
|
||||
* 查询会员与收藏的站点关系
|
||||
*
|
||||
* @param id 会员与收藏的站点关系主键
|
||||
* @return 会员与收藏的站点关系
|
||||
*/
|
||||
@Override
|
||||
public MemberStationRelation selectMemberStationRelationById(Integer id) {
|
||||
return memberStationRelationMapper.selectMemberStationRelationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员与收藏的站点关系列表
|
||||
*
|
||||
* @param memberStationRelation 会员与收藏的站点关系
|
||||
* @return 会员与收藏的站点关系
|
||||
*/
|
||||
@Override
|
||||
public List<MemberStationRelation> selectMemberStationRelationList(MemberStationRelation memberStationRelation) {
|
||||
return memberStationRelationMapper.selectMemberStationRelationList(memberStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员与收藏的站点关系
|
||||
*
|
||||
* @param memberStationRelation 会员与收藏的站点关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMemberStationRelation(MemberStationRelation memberStationRelation) {
|
||||
memberStationRelation.setCreateTime(DateUtils.getNowDate());
|
||||
return memberStationRelationMapper.insertMemberStationRelation(memberStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员与收藏的站点关系
|
||||
*
|
||||
* @param memberStationRelation 会员与收藏的站点关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMemberStationRelation(MemberStationRelation memberStationRelation) {
|
||||
memberStationRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return memberStationRelationMapper.updateMemberStationRelation(memberStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除会员与收藏的站点关系
|
||||
*
|
||||
* @param ids 需要删除的会员与收藏的站点关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMemberStationRelationByIds(Integer[] ids) {
|
||||
return memberStationRelationMapper.deleteMemberStationRelationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员与收藏的站点关系信息
|
||||
*
|
||||
* @param id 会员与收藏的站点关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMemberStationRelationById(Integer id) {
|
||||
return memberStationRelationMapper.deleteMemberStationRelationById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -607,6 +607,37 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
||||
return pageResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序首页查询站点信息
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public PageResponse uniAppQueryStationInfoListV2(QueryStationDTO dto) {
|
||||
int pageNum = dto.getPageNum() == 0 ? 1 : dto.getPageNum();
|
||||
int pageSize = dto.getPageSize() == 0 ? 10 : dto.getPageSize();
|
||||
|
||||
// 小程序站点列表页只展示对外开放的站点
|
||||
dto.setPublicFlag(Constants.ONE);
|
||||
|
||||
String myCollectionFlag = dto.getOtherOptions().getMyCollectionFlag();
|
||||
// 先判断是否选择我的收藏中的站点
|
||||
if (StringUtils.isNotBlank(myCollectionFlag)) {
|
||||
// 不为空,先将要查询的站点idList添加进参数
|
||||
// TODO 查询我的收藏下的站点id
|
||||
|
||||
// dto.setStationIds();
|
||||
}
|
||||
// 分页
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
// 根据前端传的参数进行筛选查询(默认根据距离排序)
|
||||
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据站点id查询运营商配置的汇付会员id
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user