修改job名称
continuous-integration/drone/push Build is failing Details

沃森川job同步飞书
YXY 1 year ago
parent 81b6537c64
commit b0ebc78604

@ -13,7 +13,7 @@ import java.util.Map;
* @author yuxiangyong * @author yuxiangyong
* @create 2023-07-17 21:21 * @create 2023-07-17 21:21
*/ */
@Component("SaleDelivery") @Component("SaleDeliveryJob")
public class SaleDeliverySyncJob extends SyncAccountsJobAbstract{ public class SaleDeliverySyncJob extends SyncAccountsJobAbstract{
private static final String urlPath = "/tplus/api/v2/SaleDeliveryOpenApi/FindVoucherList"; private static final String urlPath = "/tplus/api/v2/SaleDeliveryOpenApi/FindVoucherList";

@ -13,7 +13,7 @@ import java.util.Map;
* @author yuxiangyong * @author yuxiangyong
* @create 2023-07-17 21:21 * @create 2023-07-17 21:21
*/ */
@Component("SaleOrderSync") @Component("SaleOrderSyncJob")
public class SaleOrderSyncJob extends SyncAccountsJobAbstract{ public class SaleOrderSyncJob extends SyncAccountsJobAbstract{
private static final String urlPath = "/tplus/api/v2/SaleOrderOpenApi/FindVoucherList"; private static final String urlPath = "/tplus/api/v2/SaleOrderOpenApi/FindVoucherList";

@ -79,7 +79,7 @@ public abstract class SyncAccountsJobAbstract {
*/ */
private static final String CERTIFICATE = "OXYwHSWAc22UPHxfIUM0SSFZwziCLmBfOzBaN+PCNp0SNfV3ewYIaWLJCCrYToCU46x3PJO8t4TXV57bGpbiqClld5DiAkQ3EX1qqxoyaE9J0HAsfnp/PkPurKMQewBHICM2oEPRyLU5GUQjTCucfLvO4xT3DKlelbjBsIkKLqs="; private static final String CERTIFICATE = "OXYwHSWAc22UPHxfIUM0SSFZwziCLmBfOzBaN+PCNp0SNfV3ewYIaWLJCCrYToCU46x3PJO8t4TXV57bGpbiqClld5DiAkQ3EX1qqxoyaE9J0HAsfnp/PkPurKMQewBHICM2oEPRyLU5GUQjTCucfLvO4xT3DKlelbjBsIkKLqs=";
public void executeSync(CJTJobRequest req) { public void executeSync() {
CJTJobContext context = new CJTJobContext(CJT_APP_KEY, CJT_APP_SECRET); CJTJobContext context = new CJTJobContext(CJT_APP_KEY, CJT_APP_SECRET);
try { try {
//重置ticket //重置ticket
@ -138,7 +138,7 @@ public abstract class SyncAccountsJobAbstract {
protected JSONObject getQueryCondition(){ protected JSONObject getQueryCondition(){
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
String startTime = DateUtils.ldt2str(now.minusMinutes(10L), DateUtils.YYYY_MM_DD_HH_MM_SS); String startTime = DateUtils.ldt2str(now.minusHours(10L), DateUtils.YYYY_MM_DD_HH_MM_SS);
String endTime = DateUtils.ldt2str(now, DateUtils.YYYY_MM_DD_HH_MM_SS); String endTime = DateUtils.ldt2str(now, DateUtils.YYYY_MM_DD_HH_MM_SS);
Map<String, String> startTimeMap = new HashMap<>(); Map<String, String> startTimeMap = new HashMap<>();
startTimeMap.put("text",startTime); startTimeMap.put("text",startTime);

Loading…
Cancel
Save