日期更新,添加第三方产品信息,

master
anthonyywj2 3 years ago
parent a8fc1d8730
commit 73ab68db0b

@ -242,6 +242,9 @@ public class DlBasicService {
spGetHttp.postBasicStatus(basicExportStatusEntity.getId());
batchSession.close();
}
}
}
@ -407,6 +410,7 @@ public class DlBasicService {
public void dlAllUDI() {
BaseResponse<List<BasicExportStatusEntity>> baseResponse = spGetHttp.getBasicStatus(BasicProcessStatus.NEW_ALL_DI + "");
List<BasicExportStatusEntity> pageSimpleResponse = baseResponse.getData();
if (pageSimpleResponse != null) {
@ -446,6 +450,7 @@ public class DlBasicService {
}
}

@ -500,6 +500,24 @@ public class DateUtil extends org.apache.commons.lang3.time.DateUtils {
return time;
}
public static long getStartTime(String startTime) {
final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
final Date datetime;//将你的日期转换为时间戳
try {
datetime = sdf.parse(formatDate(new Date()) + " " + startTime);
final long time = datetime.getTime();
long curTime = System.currentTimeMillis();
if (curTime - time > 0) {
return 24 * 60 * 60 * 1000 - (curTime - time);
} else
return time - curTime;
} catch (ParseException e) {
e.printStackTrace();
}
return 0;
}
public static String getBeforeDay(String actDate, int hour) {
try {
long time = timeToStamp(actDate);

Loading…
Cancel
Save