|
@@ -34,7 +34,7 @@ public class PrintNumTask implements ITask {
|
|
annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
annex_params.put("institution_id", PropKit.get("institution_id"));
|
|
annex_params.put("type", "2");
|
|
annex_params.put("type", "2");
|
|
annex_params.put("code", record.getStr("CHECKID"));
|
|
annex_params.put("code", record.getStr("CHECKID"));
|
|
- annex_params.put("print_time", record.getStr("ADDTIME"));
|
|
|
|
|
|
+ annex_params.put("print_time", parseStringToDate(record.getStr("ADDTIME")));
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
tService.execute(() -> {
|
|
tService.execute(() -> {
|
|
dService.savePrint(annex_params);
|
|
dService.savePrint(annex_params);
|
|
@@ -63,12 +63,12 @@ public class PrintNumTask implements ITask {
|
|
if (dateStr == null) {
|
|
if (dateStr == null) {
|
|
return "";
|
|
return "";
|
|
}
|
|
}
|
|
- SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
+ SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.fff");
|
|
Date date = null;
|
|
Date date = null;
|
|
String timeString = null;
|
|
String timeString = null;
|
|
try {
|
|
try {
|
|
date = sdf.parse(dateStr);
|
|
date = sdf.parse(dateStr);
|
|
- SimpleDateFormat sdf2= new SimpleDateFormat("yyyyMMdd");
|
|
|
|
|
|
+ SimpleDateFormat sdf2= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
timeString = sdf2.format(date);
|
|
timeString = sdf2.format(date);
|
|
} catch (ParseException e) {
|
|
} catch (ParseException e) {
|