新增对接CRM插件
This commit is contained in:
parent
fa3202304b
commit
00fec98bed
|
@ -141,6 +141,8 @@ public class PayReqSyncU8CPluginInitializer extends PluginBaseEntity {
|
|||
for (String key : hashMap.keySet()) {
|
||||
main.put(key, hashMap.get(key));
|
||||
}
|
||||
logger.info("组装数据前"+JSON.toJSONString(hashMaps));
|
||||
logger.info("组装数据前1"+main.toString());
|
||||
ningboBankPluginService.updateU8CStatus(main,integration_task_living_details_id);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.hzya.frame.base.PluginBaseEntity;
|
||||
import com.hzya.frame.plugin.u8c.service.ISalesBillingService;
|
||||
import com.hzya.frame.u8c.sosale.service.ISoSaleService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -93,6 +94,7 @@ private ISoSaleService soSaleService;
|
|||
**/
|
||||
@Override
|
||||
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
|
||||
return soSaleService.getU8cSaleToOa(requestJson);
|
||||
soSaleService.getU8cSaleToOa(requestJson);
|
||||
return BaseResult.getSuccessMessageEntity("销售订单同步OA成功");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -208,9 +208,8 @@ public class RestUtil {
|
|||
}
|
||||
public static String sendU8CToOA(String parm, String apiCode,String userCode){
|
||||
String baseUrl = "http://127.0.0.1:8901/kangarooDataCenterV3/entranceController/externalCallInterface";
|
||||
System.out.println("推送参数"+parm);
|
||||
//获取OAtoken
|
||||
|
||||
logger.info("推送参数"+parm);
|
||||
JSONObject tokenObj = new JSONObject();
|
||||
tokenObj.put("password","2cdd6cfc-5b87-47d1-aaea-756a55f6b5a6");
|
||||
tokenObj.put("userName","restUser");
|
||||
|
@ -231,7 +230,7 @@ public class RestUtil {
|
|||
.body(parm)//表单内容
|
||||
.timeout(20000)//超时,毫秒
|
||||
.execute().body();
|
||||
System.out.println("返回参数"+result);
|
||||
logger.info("返回参数"+parm);
|
||||
if(StrUtil.isNotEmpty(result)){
|
||||
return analytic(result);
|
||||
}
|
||||
|
|
|
@ -318,6 +318,8 @@ public class SoSaleServiceImpl extends BaseService<SoSaleEntity, String> impleme
|
|||
field0032.put("value",line.getFrownote());
|
||||
bodyDetails.add(field0032);
|
||||
body.put("fields",bodyDetails);
|
||||
records.add(body);
|
||||
|
||||
});
|
||||
subTablesObj.put("records",records);
|
||||
subTablesObj.put("name","formson_0048");
|
||||
|
|
Loading…
Reference in New Issue