刘韬 2 lat temu
rodzic
commit
23ce4bbcd2

+ 23 - 0
DataFusion/src/com/zskk/control/ViewController.java

@@ -337,6 +337,29 @@ public class ViewController extends Controller {
 		renderText(records.toString());
 	}
 	
+	public void cspp() {
+		DataService dService = ServiceFactory.getService(DataService.class);
+		List<Record> records = Db.use("print").find("select * from IMAGEVIEW where ADDTIME >? order by ADDTIME desc",this.getPara("time"));
+		for (Record record : records) {
+			try {
+				if (record == null) {
+					continue;
+				}
+				Map<String, String> annex_params = new HashMap<>();
+				annex_params.put("institution_id", PropKit.get("institution_id"));
+				annex_params.put("type", "2");
+				annex_params.put("code", record.getStr("CHECKID"));
+				annex_params.put("print_time", record.getStr("ADDTIME"));
+				dService.savePrint(annex_params);
+			} catch (Exception e) {
+				// TODO: handle exception
+				continue;
+			}
+
+		}
+		renderText(records.toString());
+	}
+	
 	/**
 	 * 日期字符串格式转换
 	 * 

+ 1 - 0
DataFusion/src/com/zskk/task/PrintNumTask.java

@@ -34,6 +34,7 @@ public class PrintNumTask implements ITask {
 				annex_params.put("institution_id", PropKit.get("institution_id"));
 				annex_params.put("type", "2");
 				annex_params.put("code", record.getStr("CHECKID"));
+				annex_params.put("print_time", record.getStr("ADDTIME"));
 	      		ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
 				tService.execute(() -> {
 		      		dService.savePrint(annex_params);