|
|
@ -5,6 +5,7 @@ import cn.hutool.http.HttpUtil; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
|
|
|
|
import com.dxhy.order.baseservice.config.UserCenterConfig; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxcxReqBO; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxcxReqBO; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxcxRspBO; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxcxRspBO; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbReqBO; |
|
|
|
import com.dxhy.order.baseservice.module.buyer.protocol.GmfxxtbReqBO; |
|
|
@ -103,6 +104,9 @@ public class InvoiceRestApiV6 { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private UserInfoService userInfoService; |
|
|
|
private UserInfoService userInfoService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private UserCenterConfig userCenterConfig; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private InvoiceConfig invoiceConfig; |
|
|
|
private InvoiceConfig invoiceConfig; |
|
|
|
@Value("${jx.jxUrl}") |
|
|
|
@Value("${jx.jxUrl}") |
|
|
@ -417,9 +421,25 @@ public class InvoiceRestApiV6 { |
|
|
|
log.info("同步报账单引用发票信息推送给税控系统数据返回:{}",result); |
|
|
|
log.info("同步报账单引用发票信息推送给税控系统数据返回:{}",result); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} else if(ConfigurerInfo.SYNC_DEPT_INFO.equals(interfaceName)) { |
|
|
|
} else if(ConfigurerInfo.SYNC_DEPT_INFO.equals(interfaceName)) { |
|
|
|
// /api/sys/dept/update
|
|
|
|
// /itaxAdmin/api/sys/dept/batchUpdate
|
|
|
|
String s = HttpUtils.doPost(invoiceConfig.getSysUrl(), reqStr); |
|
|
|
String s = ""; |
|
|
|
return s; |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
|
|
|
jsonObject.put("ZTYPE","S"); |
|
|
|
|
|
|
|
jsonObject.put("ZMESSAGE","处理成功"); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
String sysUrl = userCenterConfig.getBigBSsoUrl() + "/api/sys/dept/batchUpdate"; |
|
|
|
|
|
|
|
s = HttpUtils.doPost(sysUrl, reqStr); |
|
|
|
|
|
|
|
JSONObject jsonObject1 = JSONObject.parseObject(s); |
|
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(jsonObject1.getJSONArray("data"))){ |
|
|
|
|
|
|
|
jsonObject.put("ZTYPE","E"); |
|
|
|
|
|
|
|
jsonObject.put("ZMESSAGE","处理失败"); |
|
|
|
|
|
|
|
jsonObject.put("ZDATA",jsonObject1.getString("data")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
jsonObject.put("ZTYPE","E"); |
|
|
|
|
|
|
|
jsonObject.put("ZMESSAGE","处理失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return jsonObject.toJSONString(); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
returnJsonString = ""; |
|
|
|
returnJsonString = ""; |
|
|
|
} |
|
|
|
} |
|
|
|