招投标费用,解锁上锁优化
This commit is contained in:
parent
6089c1431f
commit
2e7d7c76aa
@ -218,9 +218,9 @@ public class TenderingController {
|
||||
|
||||
//开始回写
|
||||
//解锁
|
||||
JSONObject unlockReq = crmRequestUtil.unlockCRM(tenderingId, "bid_application__c");
|
||||
if ("1".equals(tenderingData.getString("lock_status"))) {
|
||||
log.info("解锁");
|
||||
JSONObject unlockReq = crmRequestUtil.unlockCRM(tenderingId, "framework_contract__c");
|
||||
|
||||
JSONObject unlockRes = new JSONObject();
|
||||
|
||||
@ -244,6 +244,18 @@ public class TenderingController {
|
||||
|
||||
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();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user