Commit 62c5a903 by zhiwj

添加查询短信签名的接口

parent 51f42871
package com.gic.auth.service.outer.impl; package com.gic.auth.service.outer.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
...@@ -28,11 +27,9 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -28,11 +27,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import java.util.stream.Stream;
/** /**
* *
...@@ -169,9 +166,9 @@ public class ResourceApiServiceImpl implements ResourceApiService { ...@@ -169,9 +166,9 @@ public class ResourceApiServiceImpl implements ResourceApiService {
result.setType(1); result.setType(1);
return EnterpriseServiceResponse.success(result); return EnterpriseServiceResponse.success(result);
} }
JSONArray ids = jsonObject.getJSONArray("ids"); String ids = jsonObject.getString("ids");
for (Object id : ids) { if (StringUtils.isNotBlank(ids)) {
resultIds.add(Long.valueOf(id.toString())); resultIds.addAll(Stream.of(ids.split(",")).map(Long::valueOf).collect(Collectors.toList()));
} }
} }
} }
......
package com.gic.auth.web.qo; package com.gic.auth.web.qo;
import java.util.List;
/** /**
* *
* @Description: * @Description:
...@@ -12,7 +10,7 @@ public class SmsSignResourceQO { ...@@ -12,7 +10,7 @@ public class SmsSignResourceQO {
// 全部签名:1, 部分签名:2 // 全部签名:1, 部分签名:2
private Integer type; private Integer type;
private List<Integer> ids; private String ids;
public Integer getType() { public Integer getType() {
return type; return type;
...@@ -22,11 +20,11 @@ public class SmsSignResourceQO { ...@@ -22,11 +20,11 @@ public class SmsSignResourceQO {
this.type = type; this.type = type;
} }
public List<Integer> getIds() { public String getIds() {
return ids; return ids;
} }
public void setIds(List<Integer> ids) { public void setIds(String ids) {
this.ids = ids; this.ids = ids;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment