台账,设备更新接口优化,去掉了设备创建接口自动更新

This commit is contained in:
itzhang 2025-06-27 16:26:11 +08:00
parent 7cbb286132
commit 0f6d5fcd2f
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class CrmTaskTZ {
// projectInitiateController.syncProjectInitiate(); // projectInitiateController.syncProjectInitiate();
// deliveryReqController.syncDeliveryReq(); // deliveryReqController.syncDeliveryReq();
// deliveryReqController.syncRefund(); // deliveryReqController.syncRefund();
// deviceInstallController.syncDeviceInstall(); // //deviceInstallController.syncDeviceInstall();
// deviceInstallController.upDeviceInstall(); // deviceInstallController.upDeviceInstall();
// xshtController.syncSaleOrder(); // xshtController.syncSaleOrder();
// yqhtController.syncYQHT(); // yqhtController.syncYQHT();

View File

@ -297,10 +297,12 @@ public class DeviceInstallController {
public void upDeviceInstall() { public void upDeviceInstall() {
CrmRequestUtil crmRequestUtil = new CrmRequestUtil(); CrmRequestUtil crmRequestUtil = new CrmRequestUtil();
String[] syncStatus = {"option_pending_sync__c", "option_resync__c"};
JSONObject getDeviceInstall = crmRequestUtil.getCRMList(Arrays.asList( JSONObject getDeviceInstall = crmRequestUtil.getCRMList(Arrays.asList(
//new Filter("EQ", "name", Arrays.asList("DEV202505260012")) //new Filter("EQ", "name", Arrays.asList("DEV202505260012"))
new Filter("GT", "last_modified_time", Arrays.asList("1748923200000")), new Filter("GT", "last_modified_time", Arrays.asList("1748923200000")),
new Filter("EQ", "ledger_sync_status__c", Arrays.asList("option_ledger_update__c")), new Filter("IN", "ledger_sync_status__c", Arrays.asList(syncStatus)),
new Filter("EQ", "life_status", Arrays.asList("normal")) new Filter("EQ", "life_status", Arrays.asList("normal"))
), "DeviceObj"); ), "DeviceObj");