diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/CJTCreateLarkTableJob.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/CJTCreateLarkTableJob.java index 13b99fd..31605b5 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/CJTCreateLarkTableJob.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/CJTCreateLarkTableJob.java @@ -221,7 +221,7 @@ public class CJTCreateLarkTableJob{ private LarkCompanyRelation getCompanyRelation(AppType appType){ LarkCompanyRelation companyRelationQuery = new LarkCompanyRelation(); companyRelationQuery.setAppType(appType.getCode()); - companyRelationQuery.setFlag(FlagStatus.DELETED.getCode()); + companyRelationQuery.setFlag(FlagStatus.OK.getCode()); List larkCompanyRelations = larkCompanyRelationMapper.selectLarkCompanyRelationList(companyRelationQuery); return larkCompanyRelations.get(0); } diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/SyncAccountsJobAbstract.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/SyncAccountsJobAbstract.java index 3c8bc49..42d2610 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/SyncAccountsJobAbstract.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/CJT/SyncAccountsJobAbstract.java @@ -160,8 +160,6 @@ public abstract class SyncAccountsJobAbstract { String queryKey = String.format("%s.AuditedTime",getQueryKey()); jsonObject.put(queryKey,timeRange); - log.info("++++++++++++++++++++++++"); - log.info(jsonObject.toJSONString()); return jsonObject; } @@ -203,8 +201,6 @@ public abstract class SyncAccountsJobAbstract { total = response.getTotalPageNum(); //实际返回数据 List> rows = response.getRows(); - log.info(String.valueOf(total)); - log.info(JSONArray.toJSONString(rows)); if (CollectionUtils.isEmpty(rows)){ return; } diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/odoo/ProductProductJob.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/odoo/ProductProductJob.java index cb526ae..b334fb6 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/odoo/ProductProductJob.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/odoo/ProductProductJob.java @@ -39,9 +39,13 @@ public class ProductProductJob extends OdooAbstrackob { @Override protected Map> getQueryFieldMap() { +// return new HashMap() {{ +// put("fields", Arrays.asList("id","default_code", "name", "description_purchase" +// , "qty_available", "incoming_qty","cost","categ_id.name", "packaging_ids")); +// }}; return new HashMap() {{ put("fields", Arrays.asList("id","default_code", "name", "description_purchase" - , "qty_available", "incoming_qty","cost","categ_id.name", "packaging_ids")); + , "qty_available", "incoming_qty", "packaging_ids")); }}; } @@ -62,6 +66,6 @@ public class ProductProductJob extends OdooAbstrackob { @Override protected TableRelationTypeEnum syncLarkType() { - return TableRelationTypeEnum.SYNC_ODOO_ACCOUNT_MOVE_LINE; + return TableRelationTypeEnum.SYNC_ODOO_PRODUCT_PRODUCT; } }