|
|
@@ -104,14 +104,16 @@ public class ShopUserTypeComponent {
|
|
|
stoneParams.put("page", 1);
|
|
|
stoneParams.put("page_size", 100);
|
|
|
String dateString = userShopExtMapper.searchRunTime();
|
|
|
- // 截取前3位毫秒数
|
|
|
- String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
|
|
|
- Date date = sdf.parse(truncatedDate);
|
|
|
- String runTime = sdf.format(date);
|
|
|
- //获取上次同步时间进行增量同步
|
|
|
- if(runTime !=null && !runTime.isEmpty()){
|
|
|
- stoneParams.put("datetime_start", runTime);
|
|
|
+ if(dateString !=null){
|
|
|
+ // 截取前3位毫秒数
|
|
|
+ String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
|
|
|
+ Date date = sdf.parse(truncatedDate);
|
|
|
+ String runTime = sdf.format(date);
|
|
|
+ //获取上次同步时间进行增量同步
|
|
|
+ if(runTime !=null && !runTime.isEmpty()){
|
|
|
+ stoneParams.put("datetime_start", runTime);
|
|
|
+ }
|
|
|
}
|
|
|
//TUC仿石漆服务商人员-0
|
|
|
Long roleId = roleMapper.selectRoleIdByRoleKey("shopStoneLikePaint");
|