生产商、注册证同步
This commit is contained in:
		
							parent
							
								
									81758c0b8e
								
							
						
					
					
						commit
						82dc5f4717
					
				|  | @ -10,6 +10,7 @@ import kd.bos.orm.query.QCP; | |||
| import kd.bos.orm.query.QFilter; | ||||
| import kd.bos.servicehelper.AttachmentServiceHelper; | ||||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||
| import tqq9.lc123.cloud.app.plugin.utils.ConfigUtils; | ||||
| import tqq9.lc123.cloud.app.plugin.utils.HttpRequestUtils; | ||||
| 
 | ||||
| import java.io.IOException; | ||||
|  | @ -109,8 +110,11 @@ public class WmsScsSyncOpPlugin extends AbstractOperationServicePlugIn { | |||
|                 HttpRequestUtils.buildXml(xmlBuilder, finalMap, 0); | ||||
|                 logger.info("wms生产商同步——xml:" + xmlBuilder); | ||||
|                 HashMap<String, String> headMap = new HashMap<>(); | ||||
|                 String ttx_customerId = ConfigUtils.getThirdConfigByNumber("Ttx_CustomerId"); | ||||
|                 String ttx_mainUrl = ConfigUtils.getThirdConfigByNumber("Ttx_MainURL"); | ||||
|                 ttx_mainUrl = ttx_mainUrl + "?method=manufacturer.create&v=2.0&format=xml&customerId=" + ttx_customerId; | ||||
|                 try { | ||||
|                     String s = HttpRequestUtils.postXml(WMS_URL + "?method=manufacturer.create&v=2.0&format=xml&customerId=123", xmlBuilder.toString(), headMap); | ||||
|                     String s = HttpRequestUtils.postXml(ttx_mainUrl, xmlBuilder.toString(), headMap); | ||||
|                     logger.info("wms生产商同步接口结果:" + s); | ||||
|                 } catch (IOException ex) { | ||||
|                     throw new RuntimeException(ex); | ||||
|  |  | |||
|  | @ -12,6 +12,7 @@ import kd.bos.orm.query.QFilter; | |||
| import kd.bos.servicehelper.AttachmentServiceHelper; | ||||
| import kd.bos.servicehelper.BusinessDataServiceHelper; | ||||
| import kd.bos.util.StringUtils; | ||||
| import tqq9.lc123.cloud.app.plugin.utils.ConfigUtils; | ||||
| import tqq9.lc123.cloud.app.plugin.utils.HttpRequestUtils; | ||||
| 
 | ||||
| import java.io.IOException; | ||||
|  | @ -143,8 +144,11 @@ public class WmsZczSyncOpPlugin extends AbstractOperationServicePlugIn { | |||
|                 HttpRequestUtils.buildXml(xmlBuilder, finalMap, 0); | ||||
|                 logger.info("wms注册证同步xml:" + xmlBuilder); | ||||
|                 HashMap<String, String> headMap = new HashMap<>(); | ||||
|                 String ttx_customerId = ConfigUtils.getThirdConfigByNumber("Ttx_CustomerId"); | ||||
|                 String ttx_mainUrl = ConfigUtils.getThirdConfigByNumber("Ttx_MainURL"); | ||||
|                 ttx_mainUrl = ttx_mainUrl + "?method=registrationcertificate.create&v=2.0&format=xml&customerId=" + ttx_customerId; | ||||
|                 try { | ||||
|                     String s = HttpRequestUtils.postXml(WMS_URL + "?method=registrationcertificate.create&v=2.0&format=xml&customerId=123", xmlBuilder.toString(), headMap); | ||||
|                     String s = HttpRequestUtils.postXml(ttx_mainUrl, xmlBuilder.toString(), headMap); | ||||
|                     logger.info("wms注册证接口结果:" + s); | ||||
|                 } catch (IOException ex) { | ||||
|                     throw new RuntimeException(ex); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue