新增 后管设置桩对应第三方平台编号页面

This commit is contained in:
Lemon
2024-03-11 16:07:20 +08:00
parent c73bc074cd
commit 0cec8f18ce
9 changed files with 244 additions and 4 deletions

View File

@@ -2,7 +2,11 @@ package com.jsowell.pile.service.impl;
import java.util.List;
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
import com.jsowell.common.util.DateUtils;
import com.jsowell.pile.dto.QueryPileDTO;
import com.jsowell.pile.dto.ThirdPartySnRelationDTO;
import com.jsowell.pile.vo.web.ThirdPartySnRelationVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jsowell.pile.mapper.ThirdpartySnRelationMapper;
@@ -87,4 +91,31 @@ public class ThirdpartySnRelationServiceImpl implements IThirdpartySnRelationSer
public int deleteThirdpartySnRelationById(Long id) {
return thirdpartySnRelationMapper.deleteThirdpartySnRelationById(id);
}
/**
* 查询第三方平台桩编号对应的列表
* @param queryPileDTO
* @return
*/
@Override
public List<ThirdPartySnRelationVO> getRelationVOList(QueryPileDTO queryPileDTO) {
List<ThirdPartySnRelationVO> list = thirdpartySnRelationMapper.getRelationVOList(queryPileDTO);
for (ThirdPartySnRelationVO thirdPartySnRelationVO : list) {
// 将第三方平台类型中文名称查询出来
String thirdPartyType = thirdPartySnRelationVO.getThirdPartyType();
String label = ThirdPlatformTypeEnum.getLabelByCode(thirdPartyType);
thirdPartySnRelationVO.setThirdPartyName(label);
}
return list;
}
/**
* 修改第三方平台对应编号
* @param dto
* @return
*/
@Override
public int updateThirdPartySnRelation(ThirdPartySnRelationDTO dto) {
return thirdpartySnRelationMapper.updateThirdPartySnRelation(dto);
}
}