|
|
|
@ -64,10 +64,7 @@ import javax.annotation.Resource; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
import static org.joda.time.DateTime.now; |
|
|
|
|
|
|
|
|
@ -430,8 +427,10 @@ public class InvoiceRestApiV6 { |
|
|
|
|
String bskey = isInput.getBSKEY();//jsonObject2.getString("BSKEY");
|
|
|
|
|
String sapkey = isInput.getSAPKEY();//jsonObject2.getString("SAPKEY");
|
|
|
|
|
String s = ""; |
|
|
|
|
JSONObject result = new JSONObject(); |
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
jsonObject.put("BSKEY",bskey); |
|
|
|
|
jsonObject.put("BSKEY",UUID.randomUUID().toString().replaceAll("-","")); |
|
|
|
|
jsonObject.put("SAPKEY",sapkey); |
|
|
|
|
jsonObject.put("ZTYPE","E"); |
|
|
|
|
jsonObject.put("ZMESSAGE","处理失败"); |
|
|
|
@ -452,7 +451,8 @@ public class InvoiceRestApiV6 { |
|
|
|
|
jsonObject.put("ZMESSAGE","处理失败"); |
|
|
|
|
} |
|
|
|
|
log.info("同步组织信息返回报文:{}",jsonObject.toJSONString()); |
|
|
|
|
return jsonObject.toJSONString(); |
|
|
|
|
result.put("ES_OUTPUT",jsonObject); |
|
|
|
|
return result.toJSONString(); |
|
|
|
|
}else{ |
|
|
|
|
returnJsonString = ""; |
|
|
|
|
} |
|
|
|
|