Skip to content

Commit 0fcc86f

Browse files
committed
🚧 ureport2 数据初始化、报表模板
1 parent f1655d7 commit 0fcc86f

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
Navicat Premium Data Transfer
3+
4+
Source Server : dev
5+
Source Server Type : MySQL
6+
Source Server Version : 50732
7+
Source Host : localhost:3306
8+
Source Schema : spring-boot-demo
9+
10+
Target Server Type : MySQL
11+
Target Server Version : 50732
12+
File Encoding : 65001
13+
14+
Date: 26/10/2020 23:30:27
15+
*/
16+
17+
SET NAMES utf8mb4;
18+
SET FOREIGN_KEY_CHECKS = 0;
19+
20+
-- ----------------------------
21+
-- Table structure for t_user_ureport2
22+
-- ----------------------------
23+
DROP TABLE IF EXISTS `t_user_ureport2`;
24+
CREATE TABLE `t_user_ureport2` (
25+
`id` bigint(13) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
26+
`name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '姓名',
27+
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
28+
`status` tinyint(4) NOT NULL COMMENT '是否禁用',
29+
PRIMARY KEY (`id`)
30+
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
31+
32+
-- ----------------------------
33+
-- Records of t_user_ureport2
34+
-- ----------------------------
35+
BEGIN;
36+
INSERT INTO `t_user_ureport2` VALUES (1, '测试人员 1', '2020-10-22 09:01:58', 1);
37+
INSERT INTO `t_user_ureport2` VALUES (2, '测试人员 2', '2020-10-22 09:02:00', 0);
38+
INSERT INTO `t_user_ureport2` VALUES (3, '测试人员 3', '2020-10-23 03:02:00', 1);
39+
INSERT INTO `t_user_ureport2` VALUES (4, '测试人员 4', '2020-10-23 23:02:00', 1);
40+
INSERT INTO `t_user_ureport2` VALUES (5, '测试人员 5', '2020-10-23 23:02:00', 1);
41+
INSERT INTO `t_user_ureport2` VALUES (6, '测试人员 6', '2020-10-24 11:02:00', 0);
42+
INSERT INTO `t_user_ureport2` VALUES (7, '测试人员 7', '2020-10-24 20:02:00', 0);
43+
INSERT INTO `t_user_ureport2` VALUES (8, '测试人员 8', '2020-10-25 08:02:00', 1);
44+
INSERT INTO `t_user_ureport2` VALUES (9, '测试人员 9', '2020-10-25 09:02:00', 1);
45+
INSERT INTO `t_user_ureport2` VALUES (10, '测试人员 10', '2020-10-25 13:02:00', 1);
46+
INSERT INTO `t_user_ureport2` VALUES (11, '测试人员 11', '2020-10-26 21:02:00', 0);
47+
INSERT INTO `t_user_ureport2` VALUES (12, '测试人员 12', '2020-10-26 23:02:00', 1);
48+
INSERT INTO `t_user_ureport2` VALUES (13, '测试人员 13', '2020-10-26 23:02:00', 1);
49+
COMMIT;
50+
51+
SET FOREIGN_KEY_CHECKS = 1;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?><ureport><cell expand="None" name="A1" row="1" col="1" col-span="4"><cell-style font-size="14" bgcolor="92,184,92" bold="true" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><simple-value><![CDATA[用户报表]]></simple-value></cell><cell expand="None" name="A2" row="2" col="1"><cell-style font-size="10" bgcolor="92,184,92" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><simple-value><![CDATA[序号]]></simple-value></cell><cell expand="None" name="B2" row="2" col="2"><cell-style font-size="10" bgcolor="92,184,92" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><simple-value><![CDATA[姓名]]></simple-value></cell><cell expand="None" name="C2" row="2" col="3"><cell-style font-size="10" bgcolor="92,184,92" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><simple-value><![CDATA[创建时间]]></simple-value></cell><cell expand="None" name="D2" row="2" col="4"><cell-style font-size="10" bgcolor="92,184,92" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><simple-value><![CDATA[是否可用]]></simple-value></cell><cell expand="Down" name="A3" row="3" col="1"><cell-style font-size="10" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><dataset-value dataset-name="用户报表" aggregate="group" property="id" order="none" mapping-type="simple"></dataset-value></cell><cell expand="Down" name="B3" row="3" col="2"><cell-style font-size="10" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><dataset-value dataset-name="用户报表" aggregate="group" property="name" order="none" mapping-type="simple"></dataset-value></cell><cell expand="Down" name="C3" row="3" col="3"><cell-style font-size="10" format="yyyy-MM-dd HH:mm:ss" wrap-compute="false" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><dataset-value dataset-name="用户报表" aggregate="group" property="create_time" order="none" mapping-type="simple"></dataset-value><condition-property-item name="斑马纹"><cell-style for-condition="true" font-size="0" font-family="" bgcolor="179,168,168" bgcolor-scope="row"></cell-style><condition type="expression" op="==" id="0bfe2d40-17a2-11eb-8e99-b1cdbb426c9e"><left><![CDATA[&A3%2]]></left><right><![CDATA[0]]></right></condition></condition-property-item></cell><cell expand="Down" name="D3" row="3" col="4"><cell-style font-size="10" align="center" valign="middle"><left-border width="1" style="solid" color="0,0,0"/><right-border width="1" style="solid" color="0,0,0"/><top-border width="1" style="solid" color="0,0,0"/><bottom-border width="1" style="solid" color="0,0,0"/></cell-style><dataset-value dataset-name="用户报表" aggregate="group" property="status" order="none" mapping-type="simple"><mapping-item value="1" label="是"/><mapping-item value="0" label="否"/></dataset-value></cell><row row-number="1" height="18" band="headerrepeat"/><row row-number="2" height="18" band="headerrepeat"/><row row-number="3" height="18"/><column col-number="1" width="103"/><column col-number="2" width="103"/><column col-number="3" width="103"/><column col-number="4" width="103"/><datasource name="内部数据源" type="buildin"><dataset name="用户报表" type="sql"><sql><![CDATA[${
2+
if(param("status")==null||param("status")==''){
3+
return "select * from t_user_ureport2"
4+
}else{
5+
return "select * from t_user_ureport2 where status = :status"
6+
}
7+
}]]></sql><field name="id"/><field name="name"/><field name="create_time"/><field name="status"/><parameter name="status" type="Integer" default-value="1"/></dataset></datasource><paper type="A4" left-margin="90" right-margin="90"
8+
top-margin="72" bottom-margin="72" paging-mode="fixrows" fixrows="10"
9+
width="595" height="842" orientation="portrait" html-report-align="left" bg-image="" html-interval-refresh-value="0" column-enabled="false"></paper><search-form form-position="up"><grid show-border="false" type="GridSingle" border-width="1" border-color="#cccccc"><col size="12"><grid show-border="false" type="GridCustom" border-width="1" border-color="#cccccc"><col size="4"></col><col size="4"><input-select label="是否可用" type="Select" label-position="left" bind-parameter="status"><option label="" value="1"></option><option label="" value="0"></option></input-select><grid show-border="false" type="Grid2X2" border-width="1" border-color="#eee"><col size="6"><button-submit label="查询" align="right" type="Submit-button" style="btn-success"></button-submit></col><col size="6"><button-reset label="重置" align="left" type="Reset-button" style="btn-info"></button-reset></col></grid></col><col size="4"></col></grid></col></grid></search-form></ureport>

0 commit comments

Comments
 (0)