|
@@ -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());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 日期字符串格式转换
|
|
|
*
|