|
@@ -1,5 +1,7 @@
|
|
|
package com.ssj.service.sys.fx.service.impl;
|
|
|
|
|
|
+import java.text.DateFormat;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
@@ -110,13 +112,17 @@ public class MerchantSignServiceImpl extends BaseServiceImpl<MerchantSign, Strin
|
|
|
consume.setCreateTime(new Date());
|
|
|
libJoinConsumeService.save(consume);
|
|
|
|
|
|
+ DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
//调用openApi接口
|
|
|
libVipServiceService.openApiServiceCRM(
|
|
|
1,
|
|
|
merchant.getLibId(),
|
|
|
merchant.getSignType(),
|
|
|
+ merchant.getMealType(),
|
|
|
merchant.getLibService(),
|
|
|
- null);
|
|
|
+ merchant.getStartActiveTime()!=null ? format.format(merchant.getStartActiveTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(merchant.getComputeTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(DateHelper.getMonthDate(merchant.getComputeTime(),merchant.getLibServiceMonth())) : "" );
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
logger.error("1:处理加油包过期数据,异常:"+e.getMessage());
|
|
@@ -144,14 +150,17 @@ public class MerchantSignServiceImpl extends BaseServiceImpl<MerchantSign, Strin
|
|
|
consume.setCreateTime(new Date());
|
|
|
libJoinConsumeService.save(consume);
|
|
|
|
|
|
-
|
|
|
+ DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
//调用openApi接口
|
|
|
libVipServiceService.openApiServiceCRM(
|
|
|
1,
|
|
|
merchant.getLibId(),
|
|
|
merchant.getSignType(),
|
|
|
+ merchant.getMealType(),
|
|
|
merchant.getLibService(),
|
|
|
- null);
|
|
|
+ merchant.getStartActiveTime()!=null ? format.format(merchant.getStartActiveTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(merchant.getComputeTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(DateHelper.getMonthDate(merchant.getComputeTime(),merchant.getLibServiceMonth())) : "" );
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@@ -510,13 +519,17 @@ public class MerchantSignServiceImpl extends BaseServiceImpl<MerchantSign, Strin
|
|
|
//同步商户表与机构表
|
|
|
this.syncMerchantByLibJoin(merchant);
|
|
|
|
|
|
+ DateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
//调用openApi接口
|
|
|
libVipServiceService.openApiServiceCRM(
|
|
|
1,
|
|
|
merchant.getLibId(),
|
|
|
merchant.getSignType(),
|
|
|
+ merchant.getMealType(),
|
|
|
merchant.getLibService(),
|
|
|
- null);
|
|
|
+ merchant.getStartActiveTime()!=null ? format.format(merchant.getStartActiveTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(merchant.getComputeTime()) : "",
|
|
|
+ merchant.getComputeTime()!=null ? format.format(DateHelper.getMonthDate(merchant.getComputeTime(),merchant.getLibServiceMonth())) : "" );
|
|
|
}
|
|
|
}
|
|
|
|