|
|
|
@ -5,6 +5,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -55,7 +56,9 @@ public class SsoLoginServiceImpl implements SsoLoginService { |
|
|
|
|
public boolean saveUser(SsoUser user) { |
|
|
|
|
|
|
|
|
|
String taxNoInfo = getTaxNoInfo(xxUrl, ""); |
|
|
|
|
List<SaleTaxnoEntity> taxnoList = JSONObject.parseArray(taxNoInfo,SaleTaxnoEntity.class); |
|
|
|
|
JSONObject object = JSONObject.parseObject(taxNoInfo); |
|
|
|
|
String taxnoListInfo = object.getString("groupInfo"); |
|
|
|
|
List<SaleTaxnoEntity> taxnoList = JSONObject.parseArray(taxnoListInfo,SaleTaxnoEntity.class); |
|
|
|
|
Map<String, String> taxnos = taxnoList.stream().collect(Collectors.toMap(SaleTaxnoEntity::getGroupId, SaleTaxnoEntity::getXhfNsrsbh)); |
|
|
|
|
log.info("从销项获取的税号列表为:{}",taxnos); |
|
|
|
|
|
|
|
|
|