招投标费用,解锁上锁优化

This commit is contained in:
itzhang 2025-08-25 15:38:56 +08:00
parent 6089c1431f
commit 2e7d7c76aa

View File

@ -218,9 +218,9 @@ public class TenderingController {
//开始回写 //开始回写
//解锁 //解锁
JSONObject unlockReq = crmRequestUtil.unlockCRM(tenderingId, "bid_application__c");
if ("1".equals(tenderingData.getString("lock_status"))) { if ("1".equals(tenderingData.getString("lock_status"))) {
log.info("解锁"); log.info("解锁");
JSONObject unlockReq = crmRequestUtil.unlockCRM(tenderingId, "framework_contract__c");
JSONObject unlockRes = new JSONObject(); JSONObject unlockRes = new JSONObject();
@ -244,6 +244,18 @@ public class TenderingController {
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 {