src/main/java/com/xcong/excoin/modules/member/parameter/dto/MemberAddCoinAddressDto.java
@@ -10,9 +10,16 @@ @ApiModel(value = "MemberAddCoinAddressDto", description = "增加提币地址参数接收类") public class MemberAddCoinAddressDto { @NotNull(message = "币种ID不能为空") @ApiModelProperty(value = "币种ID") private Long symbolscoinId; //@NotNull(message = "币种ID不能为空") //@ApiModelProperty(value = "币种ID") //private Long symbolscoinId; /** * 地址 */ @NotNull(message = "币种不能为空") @ApiModelProperty(value = "币种") private String symbol; /** * 地址 */ src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java
@@ -677,10 +677,10 @@ Long memberId = LoginUserUtils.getAppLoginUser().getId(); String address = memberAddCoinAddressDto.getAddress(); String isBiyict = memberAddCoinAddressDto.getIsBiyict(); Long symbolscoinId = memberAddCoinAddressDto.getSymbolscoinId(); String symbol = memberAddCoinAddressDto.getSymbol(); String remark = memberAddCoinAddressDto.getRemark(); PlatformSymbolsCoinEntity platformSymbolsCoinEntity = platformSymbolsCoinDao.selectById(symbolscoinId); PlatformSymbolsCoinEntity platformSymbolsCoinEntity = platformSymbolsCoinDao.selectOneBySymbol(symbol); Long symbolscoinId = platformSymbolsCoinEntity.getId(); MemberCoinAddressEntity memberCoinAddressEntity = new MemberCoinAddressEntity(); memberCoinAddressEntity.setAddress(address); src/main/java/com/xcong/excoin/modules/platform/dao/PlatformSymbolsCoinDao.java
@@ -5,9 +5,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.xcong.excoin.modules.member.parameter.vo.MemberCoinAddressCountVo; import com.xcong.excoin.modules.platform.entity.PlatformSymbolsCoinEntity; import org.apache.ibatis.annotations.Param; public interface PlatformSymbolsCoinDao extends BaseMapper<PlatformSymbolsCoinEntity> { List<MemberCoinAddressCountVo> selectCoinAddressCount(Long memberId); PlatformSymbolsCoinEntity selectOneBySymbol(@Param("symbol")String symbol); } src/main/resources/mapper/platform/PlatformSymbolsCoinDao.xml
@@ -15,5 +15,13 @@ a.id, a. NAME </select> <select id="selectOneBySymbol" resultType="com.xcong.excoin.modules.platform.entity.PlatformSymbolsCoinEntity"> SELECT * FROM platform_symbols_coin a where a.name = #{symbol} </select> </mapper>