|
@@ -24,7 +24,7 @@ public class PrintNumTask implements ITask {
|
|
public void run() {
|
|
public void run() {
|
|
// TODO Auto-generated method stub
|
|
// TODO Auto-generated method stub
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
- List<Record> records = Db.use("print").find("select * from IMAGEVIEW where ADDTIME >? and PRINTED=?",parseStringToDate1(),"true");
|
|
|
|
|
|
+ List<Record> records = Db.use("print").find("select * from IMAGEVIEW where PRINTED=? and PRINTTIME >?", "true", parseStringToDate1());
|
|
for (Record record : records) {
|
|
for (Record record : records) {
|
|
try {
|
|
try {
|
|
if (record == null) {
|
|
if (record == null) {
|
|
@@ -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", parseStringToDate(record.getStr("ADDTIME")));
|
|
|
|
|
|
+ annex_params.put("print_time", parseStringToDate(record.getStr("PRINTTIME")));
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
tService.execute(() -> {
|
|
tService.execute(() -> {
|
|
dService.savePrint(annex_params);
|
|
dService.savePrint(annex_params);
|
|
@@ -89,7 +89,7 @@ public class PrintNumTask implements ITask {
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
String timeString = null;
|
|
String timeString = null;
|
|
Long i = date.getTime();
|
|
Long i = date.getTime();
|
|
- Long j = i - 172800000;
|
|
|
|
|
|
+ Long j = i - 21600000;
|
|
Date newdate = new Date(j);
|
|
Date newdate = new Date(j);
|
|
timeString = sdf.format(newdate);
|
|
timeString = sdf.format(newdate);
|
|
return timeString;
|
|
return timeString;
|