|
@@ -138,6 +138,10 @@ public class SiManageService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<String> autoRecoveryTrade(AtoRcvTrd atoRcvTrd) {
|
|
|
+ Integer recoveryTradePermission = dao.recoveryTradePermission(TokenUtil.getTokenUserId());
|
|
|
+ if (null == recoveryTradePermission || recoveryTradePermission == 0) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "您没有冲正交易的权限!");
|
|
|
+ }
|
|
|
JSONObject input = exec.makeTradeHeader(SiFunction.AUTO_RECOVERY_TRADE);
|
|
|
String ref = JSONObject.toJSONString(atoRcvTrd);
|
|
|
input.getJSONObject("input").put("data", JSONObject.parseObject(ref));
|