src/main/java/com/xcong/excoin/configurations/security/WebSecurityConfig.java
@@ -55,6 +55,7 @@ .antMatchers("/api/orderCoin/findCollect").permitAll() .antMatchers("/api/orderCoin/findCollect").permitAll() .antMatchers("/api/documentary/getFollowTraderProfitInfo").permitAll() .antMatchers("/api/trader/beTraderStatusCondition").permitAll() .antMatchers("/api/helpCenter/**").permitAll() .anyRequest().authenticated() .and().apply(securityConfiguereAdapter()); src/main/java/com/xcong/excoin/modules/documentary/controller/TraderController.java
@@ -15,6 +15,7 @@ import com.xcong.excoin.modules.documentary.dto.TradeOrderInfoDto; import com.xcong.excoin.modules.documentary.dto.UpdateTradeSetInfoDto; import com.xcong.excoin.modules.documentary.service.DocumentaryService; import com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo; import com.xcong.excoin.modules.documentary.vo.TradeFollowInfoVo; import com.xcong.excoin.modules.documentary.vo.TradeHistoryOrderInfoVo; import com.xcong.excoin.modules.documentary.vo.TradeOrderInfoVo; @@ -41,6 +42,16 @@ DocumentaryService documentaryService; /** * 成为交易员---条件查询 */ @ApiOperation(value="成为交易员---条件查询", notes="成为交易员---条件查询") @ApiResponses({@ApiResponse( code = 200, message = "success", response = BeTraderConditionVo.class)}) @GetMapping(value = "/beTraderStatusCondition") public Result beTraderCondition() { return documentaryService.beTraderCondition(); } /** * 成为交易员---状态查询 */ @ApiOperation(value="成为交易员---状态查询", notes="成为交易员---状态查询") src/main/java/com/xcong/excoin/modules/documentary/dao/FollowTraderInfoDao.java
@@ -2,6 +2,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity; import com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -15,4 +17,6 @@ FollowTraderInfoEntity selectTraderInfoByOrderId(@Param("orderId") Long orderId); List<FollowTraderInfoEntity> selectAllTraderInfo(); List<BeTraderConditionVo> selectBeTraderCondition(@Param("type")String type); } src/main/java/com/xcong/excoin/modules/documentary/service/DocumentaryService.java
@@ -72,5 +72,7 @@ public Result getTradeSetLabelInfo(); public Result beTraderCondition(); } src/main/java/com/xcong/excoin/modules/documentary/service/impl/DocumentaryServiceImpl.java
@@ -60,6 +60,7 @@ import com.xcong.excoin.modules.documentary.entity.FollowTraderLabelEntity; import com.xcong.excoin.modules.documentary.entity.FollowTraderProfitInfoEntity; import com.xcong.excoin.modules.documentary.service.DocumentaryService; import com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo; import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderInfoVo; import com.xcong.excoin.modules.documentary.vo.DocumentaryOrderSetInfoVo; import com.xcong.excoin.modules.documentary.vo.FollowFollowerNoticeVo; @@ -1159,6 +1160,13 @@ return Result.ok(arrayList); } @Override public Result beTraderCondition() { String type = "apply_trader_rule"; List<BeTraderConditionVo> beTraderConditionVos = followTraderInfoDao.selectBeTraderCondition(type); return Result.ok(beTraderConditionVos); } src/main/java/com/xcong/excoin/modules/documentary/vo/BeTraderConditionVo.java
New file @@ -0,0 +1,32 @@ package com.xcong.excoin.modules.documentary.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel(value = "BeTraderConditionVo", description = "参数返回类") public class BeTraderConditionVo { /** * 名称 */ @ApiModelProperty("名称") private String name; /** * 所属分类(对应英文简写) */ @ApiModelProperty("所属分类(对应英文简写)") private String type; /** * 内容 */ @ApiModelProperty("内容") private String content; /** * 状态0禁用 1 启用 */ @ApiModelProperty("状态0禁用 1 启用") private int state; } src/main/resources/mapper/documentary/FollowTraderInfoDao.xml
@@ -23,4 +23,10 @@ from follow_trader_info where verify_status=1 </select> <select id="selectBeTraderCondition" resultType="com.xcong.excoin.modules.documentary.vo.BeTraderConditionVo"> select * from common_configuration where state=1 and type = #{type} </select> </mapper>