调整OA付款申请同步到U8C审批未生成下游单据,调用U8C原始接口

This commit is contained in:
476474485@qq.com 2024-12-23 17:28:43 +08:00
parent b04d7f0709
commit 1879c10240
1 changed files with 16 additions and 13 deletions

View File

@ -29,9 +29,10 @@ public class SalesBillingServiceImpl implements ISalesBillingService {
private IU8cSalesBillingService iu8cSalesBillingService;
private final String appId = "800035";
private final String apiCode = "8000350047";
//这个接口调错了要用开发的那个审批接口
//private final String apiCode = "8000350047";
private final String apiCode = "8000350060";
// private final String apiCode = "8000350060";
private final String publicKey = "ZJYATW/MfYZX7zF0eAh4DJXbyTLwUtwSoSz5Y/o1ksAaN/dCe7eDIk+3zDUT+v578prj";
private final String secretKey = "+5BUkLQh3iX3VHgEt5bE2IPh+ZeebGvDaEspsvVu739Ar6sFnwg+fpPod4t6XhoTj3JzOP8MtA1LSGvL+2BWG8c/o7DKi92S4mr3zcGearA=";
@ -124,9 +125,11 @@ public class SalesBillingServiceImpl implements ISalesBillingService {
queryinfo.put("code", code);
queryinfo.put("corp", entity.getCorp());//公司编码
queryinfo.put("date_begin", entity.getDateBegin());//单据开始日期
queryinfo.put("date_end", entity.getDateEnd());//单据结束日期
approveinfo.put("approvid", entity.getApprovid());//审批人
approveinfo.put("approveDate", entity.getApprovedate());//审核时间
// queryinfo.put("date_end", entity.getDateEnd());//单据结束日期
queryinfo.put("date_end", "2099-05-24");//单据结束日期
// approveinfo.put("approvid", entity.getApprovid());//审批人
approveinfo.put("approvid", "15715849962");//审批人
approveinfo.put("approveDate", "entity.getApprovedate()");//审核时间
approveinfo.put("status", entity.getStatus());//审批状态Y通过N不通过R驳回
approveinfo.put("note", entity.getNote());//批语
@ -135,14 +138,14 @@ public class SalesBillingServiceImpl implements ISalesBillingService {
params = data.toJSONString();
//用新的审批接口
JSONObject jsonObject = new JSONObject();
jsonObject.put("billno",entity.getCode());
jsonObject.put("corpcode",entity.getCorp());
jsonObject.put("billType","saleinvoice");
jsonObject.put("userCode","15715849962");
jsonObject.put("ckeckResult","Y");
jsonObject.put("ckeckNote","审批通过");
params = jsonObject.toString();
// JSONObject jsonObject = new JSONObject();
// jsonObject.put("billno",entity.getCode());
// jsonObject.put("corpcode",entity.getCorp());
// jsonObject.put("billType","saleinvoice");
// jsonObject.put("userCode","15715849962");
// jsonObject.put("ckeckResult","Y");
// jsonObject.put("ckeckNote","审批通过");
// params = jsonObject.toString();
return params;
}