forked from xkcoding/spring-boot-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
Navicat Premium Data Transfer | ||
Source Server : dev | ||
Source Server Type : MySQL | ||
Source Server Version : 50732 | ||
Source Host : localhost:3306 | ||
Source Schema : spring-boot-demo | ||
Target Server Type : MySQL | ||
Target Server Version : 50732 | ||
File Encoding : 65001 | ||
Date: 26/10/2020 23:30:27 | ||
*/ | ||
|
||
SET NAMES utf8mb4; | ||
SET FOREIGN_KEY_CHECKS = 0; | ||
|
||
-- ---------------------------- | ||
-- Table structure for t_user_ureport2 | ||
-- ---------------------------- | ||
DROP TABLE IF EXISTS `t_user_ureport2`; | ||
CREATE TABLE `t_user_ureport2` ( | ||
`id` bigint(13) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', | ||
`name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '姓名', | ||
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', | ||
`status` tinyint(4) NOT NULL COMMENT '是否禁用', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; | ||
|
||
-- ---------------------------- | ||
-- Records of t_user_ureport2 | ||
-- ---------------------------- | ||
BEGIN; | ||
INSERT INTO `t_user_ureport2` VALUES (1, '测试人员 1', '2020-10-22 09:01:58', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (2, '测试人员 2', '2020-10-22 09:02:00', 0); | ||
INSERT INTO `t_user_ureport2` VALUES (3, '测试人员 3', '2020-10-23 03:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (4, '测试人员 4', '2020-10-23 23:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (5, '测试人员 5', '2020-10-23 23:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (6, '测试人员 6', '2020-10-24 11:02:00', 0); | ||
INSERT INTO `t_user_ureport2` VALUES (7, '测试人员 7', '2020-10-24 20:02:00', 0); | ||
INSERT INTO `t_user_ureport2` VALUES (8, '测试人员 8', '2020-10-25 08:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (9, '测试人员 9', '2020-10-25 09:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (10, '测试人员 10', '2020-10-25 13:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (11, '测试人员 11', '2020-10-26 21:02:00', 0); | ||
INSERT INTO `t_user_ureport2` VALUES (12, '测试人员 12', '2020-10-26 23:02:00', 1); | ||
INSERT INTO `t_user_ureport2` VALUES (13, '测试人员 13', '2020-10-26 23:02:00', 1); | ||
COMMIT; | ||
|
||
SET FOREIGN_KEY_CHECKS = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?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[${ | ||
if(param("status")==null||param("status")==''){ | ||
return "select * from t_user_ureport2" | ||
}else{ | ||
return "select * from t_user_ureport2 where status = :status" | ||
} | ||
}]]></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" | ||
top-margin="72" bottom-margin="72" paging-mode="fixrows" fixrows="10" | ||
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> |