开票申请新增解锁上锁
This commit is contained in:
parent
367c844c1d
commit
756cfdc06b
@ -364,6 +364,21 @@ public class InvoiceController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//开始回写
|
//开始回写
|
||||||
|
JSONObject unlockReq = crmRequestUtil.unlockCRM(invoiceId, "InvoiceApplicationObj");
|
||||||
|
//解锁
|
||||||
|
if ("1".equals(invoiceData.getString("lock_status"))) {
|
||||||
|
log.info("解锁");
|
||||||
|
|
||||||
|
JSONObject unlockRes = new JSONObject();
|
||||||
|
|
||||||
|
try {
|
||||||
|
unlockRes = restTemplate.postForObject(URLConstant.UNLOCK_CRM_URL, unlockReq, JSONObject.class);
|
||||||
|
} catch (RestClientException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
System.out.println("解锁" + unlockRes);
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject backReq = crmRequestUtil.updateCRM(backReqMap);
|
JSONObject backReq = crmRequestUtil.updateCRM(backReqMap);
|
||||||
|
|
||||||
JSONObject backRes = new JSONObject();
|
JSONObject backRes = new JSONObject();
|
||||||
@ -376,6 +391,17 @@ public class InvoiceController {
|
|||||||
|
|
||||||
System.out.println("回写结果为:" + backRes);
|
System.out.println("回写结果为:" + backRes);
|
||||||
|
|
||||||
|
log.info("上锁");
|
||||||
|
JSONObject lockRes = new JSONObject();
|
||||||
|
|
||||||
|
try {
|
||||||
|
lockRes = restTemplate.postForObject(URLConstant.LOCK_CRM_URL, unlockReq, JSONObject.class);
|
||||||
|
} catch (RestClientException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
System.out.println("上锁" + lockRes);
|
||||||
|
|
||||||
//开始记录日志
|
//开始记录日志
|
||||||
JSONObject logRes = new JSONObject();
|
JSONObject logRes = new JSONObject();
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user