xiaoyong931011
2021-03-04 4f33f1db1931ea4eac3c6f7aa5c62c670862aae0
20210304   最大持仓数设置0时,显示为空
2 files modified
7 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/vo/DocumentaryOrderSetInfoVo.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -622,9 +622,10 @@
        documentaryOrderSetInfoVo.setFollowCnt(followCnt);
        
        Integer maxFollowCnt = followFollowerSettingEntity.getMaxFollowCnt();
        if(maxFollowCnt >= 0){
            documentaryOrderSetInfoVo.setMaxFollowCnt(maxFollowCnt);
        if(maxFollowCnt == 0){
            documentaryOrderSetInfoVo.setMaxFollowCnt(null);
        }
        documentaryOrderSetInfoVo.setMaxFollowCnt(maxFollowCnt.toString());
        
        return Result.ok(documentaryOrderSetInfoVo);
    }
src/main/java/com/xcong/excoin/modules/documentary/vo/DocumentaryOrderSetInfoVo.java
@@ -32,7 +32,7 @@
    private Integer followCnt;
    
    @ApiModelProperty(value = "跟单最大持仓张数数量", example = "2")
    private int maxFollowCnt;
    private String maxFollowCnt;
    public BigDecimal getProfit() {
        return profit.multiply(BigDecimal.valueOf(1));