This commit is contained in:
YAS\29473
2025-04-14 12:14:15 +08:00
parent 2a02aeabb0
commit bc7fa82f71
6 changed files with 30 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.StationSplitConfig;
import com.jsowell.pile.vo.web.SplitConfigStationVO;
import com.jsowell.pile.vo.web.SplitConfigVO;
import org.apache.ibatis.annotations.Param;
@@ -33,5 +34,5 @@ public interface StationSplitConfigMapper {
* @param adapayMemberId
* @return
*/
List<SplitConfigVO> queryStationList(String adapayMemberId);
List<SplitConfigStationVO> queryStationList(String adapayMemberId);
}

View File

@@ -3,6 +3,7 @@ package com.jsowell.pile.service;
import com.jsowell.pile.domain.StationSplitConfig;
import com.jsowell.pile.dto.SplitConfigDTO;
import com.jsowell.pile.dto.SplitConfigStationDTO;
import com.jsowell.pile.vo.web.SplitConfigStationVO;
import com.jsowell.pile.vo.web.ShareMemberVO;
import com.jsowell.pile.vo.web.SplitConfigVO;
@@ -57,5 +58,5 @@ public interface StationSplitConfigService {
* @param splitConfigStationDTO
* @return
*/
Map<String,List<SplitConfigVO>> queryStationList(SplitConfigStationDTO splitConfigStationDTO);
Map<String,List<SplitConfigStationVO>> queryStationList(SplitConfigStationDTO splitConfigStationDTO);
}

View File

@@ -18,6 +18,7 @@ import com.jsowell.pile.dto.SplitUserDetailDTO;
import com.jsowell.pile.mapper.StationSplitConfigMapper;
import com.jsowell.pile.service.AdapayMemberAccountService;
import com.jsowell.pile.service.StationSplitConfigService;
import com.jsowell.pile.vo.web.SplitConfigStationVO;
import com.jsowell.pile.vo.web.ShareMemberVO;
import com.jsowell.pile.vo.web.SplitConfigVO;
import lombok.extern.slf4j.Slf4j;
@@ -295,10 +296,10 @@ public class StationSplitConfigServiceImpl implements StationSplitConfigService{
* @return
*/
@Override
public Map<String,List<SplitConfigVO>> queryStationList(SplitConfigStationDTO splitConfigStationDTO) {
public Map<String,List<SplitConfigStationVO>> queryStationList(SplitConfigStationDTO splitConfigStationDTO) {
String adapayMemberId = splitConfigStationDTO.getAdapayMemberId();
List<SplitConfigVO> stationList = stationSplitConfigMapper.queryStationList(adapayMemberId);
List<SplitConfigStationVO> stationList = stationSplitConfigMapper.queryStationList(adapayMemberId);
if (stationList == null || stationList.isEmpty()) {
throw new BusinessException("", "未查询到该汇付会员的分账配置信息");
}
@@ -310,7 +311,7 @@ public class StationSplitConfigServiceImpl implements StationSplitConfigService{
.sorted((o1, o2) -> Integer.parseInt(o2.getStationId()) - Integer.parseInt(o1.getStationId()))
.collect(Collectors.toList());
Map<String, List<SplitConfigVO>> stationMap = new HashMap<>();
Map<String, List<SplitConfigStationVO>> stationMap = new HashMap<>();
stationMap.put("stationList", stationList);
return stationMap;
}

View File

@@ -0,0 +1,18 @@
package com.jsowell.pile.vo.web;
import lombok.Data;
@Data
public class SplitConfigStationVO {
/**
* 站点ID
*/
private String stationId;
/**
* 站点名称
*/
private String stationName;
}