2018-12-24

帆软报表设计器同步服务器环境

使用要求说明
1、FineReport使用平台外置MySQL数据库,例如指定数据库名称为finedb
http://help.finereport.com/doc-view-2458.html
2、在报表设计器中新建数据库连接nic_report(必须
http://help.finereport.com/doc-view-2560.html
3、新建报表需要在数据集中指定数据库连接名称nic_report(必须
http://help.finereport.com/doc-view-106.html
4、新建数据库表需要在nic_report对应的数据库中创建(必须
自行百度 MYSQL建表流程

1、在平台外置数据库finedb中执行下面SQL语句

UPDATE `finedb`.`fine_conf_entity` SET `value`='[\"员工信息表\",\"用户信息表\",\"staff\",\"staff_dept\",\"上报用户\",\"教职工单位角色\",\"ds_login_info\",\"处级单位\",\"科级单位\",\"单位信息\",\"单位人员\",\"单位信息树\",\"单位人员树\"]' WHERE (`id`='TableDataConfig.tableDatas');

INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.ds_login_info.database.name', 'nic_report');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.ds_login_info.maxMemRowCount', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.ds_login_info.pageQuerySql', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.ds_login_info.query', 'select distinct ZGH, XM, XYDM, XYMC, XBDM, MZDM, PHONE\nfrom t_jzg_dw_role\nwhere zgh = ${fine_username}');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.ds_login_info.share', 'false');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员.database.name', 'nic_report');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员.maxMemRowCount', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员.pageQuerySql', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员.query', 'select distinct ZGH, XM, XYDM, XYMC, XBDM, MZDM, PHONE\nfrom t_jzg_dw_role\nwhere zgh is not null');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员.share', 'false');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.limitGeneration', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.limitGeneration', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.markField', '1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.markField', '1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.markFieldName', 'DWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.markFieldName', 'DWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.originalTableDataName', '教职工单位角色');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.originalTableDataName', '教职工单位角色');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.parentmarkField', '4');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.parentmarkField', '4');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.parentmarkFieldName', 'LSDWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.parentmarkFieldName', 'LSDWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.query', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.query', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.separator', ',');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位人员树.separator', ',');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.limitGeneration', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.markField', '0');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.markFieldName', 'DWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.originalTableDataName', '单位信息');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.parentmarkField', '2');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.parentmarkFieldName', 'LSDWDM');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.query', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.单位信息树.separator', ',');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.处级单位.database.name', 'nic_report');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.处级单位.maxMemRowCount', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.处级单位.pageQuerySql', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.处级单位.query', 'select distinct XYDM, XYMC from t_jzg_dw_role\nwhere dwcc = 2\norder by px');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.处级单位.share', 'false');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.教职工单位角色.database.name', 'nic_report');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.教职工单位角色.maxMemRowCount', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.教职工单位角色.pageQuerySql', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.教职工单位角色.query', 'select * from t_jzg_dw_role\n\nwhere 1 = 1\n-- and (xydm = \'000038\' or dwdm = \'100000\' or lsdwdm = \'000038\')');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.教职工单位角色.share', 'false');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.科级单位.database.name', 'nic_report');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.科级单位.maxMemRowCount', '-1');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.科级单位.pageQuerySql', '__EMPTY__');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.科级单位.query', 'select distinct DWDM, DWMC from t_jzg_dw_role\nwhere dwcc = 3\norder by px');
INSERT INTO `finedb`.`fine_conf_entity` (`id`, `value`) VALUES ('TableDataConfig.tableDatas.科级单位.share', 'false');

2、在数据库nic_report中执行下面SQL语句

CREATE TABLE `t_jzg_dw_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `DWDM` varchar(10) DEFAULT NULL,
  `DWMC` varchar(50) DEFAULT NULL,
  `DWCC` int(2) DEFAULT NULL,
  `LSDWDM` varchar(10) DEFAULT NULL,
  `XYDM` varchar(10) DEFAULT NULL,
  `XYMC` varchar(50) DEFAULT NULL,
  `ZGH` varchar(20) DEFAULT NULL,
  `XM` varchar(50) DEFAULT NULL,
  `XMPY` varchar(200) DEFAULT NULL,
  `XBDM` varchar(2) DEFAULT NULL,
  `CSRQ` varchar(20) DEFAULT NULL,
  `CSDDM` varchar(10) DEFAULT NULL,
  `MZDM` varchar(10) DEFAULT NULL,
  `SFZJH` varchar(20) DEFAULT NULL,
  `SZDWDM` varchar(10) DEFAULT NULL,
  `SZKSDM` varchar(10) DEFAULT NULL,
  `ZW` varchar(100) DEFAULT NULL,
  `BZLBDM` varchar(10) DEFAULT NULL,
  `ZYJSZWDM` varchar(10) DEFAULT NULL,
  `ZWMC` varchar(10) DEFAULT NULL,
  `PX` int(11) DEFAULT NULL,
  `PHONE` varchar(20) DEFAULT NULL,
  `ROLE` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2182 DEFAULT CHARSET=utf8;

INSERT INTO `t_jzg_dw_role` (`id`, `DWDM`, `DWMC`, `DWCC`, `LSDWDM`, `XYDM`, `XYMC`, `ZGH`, `XM`, `XMPY`, `XBDM`, `CSRQ`, `CSDDM`, `MZDM`, `SFZJH`, `SZDWDM`, `SZKSDM`, `ZW`, `BZLBDM`, `ZYJSZWDM`, `ZWMC`, `PX`, `PHONE`, `ROLE`) VALUES ('1', '100000', '学校名称', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '570', NULL, '教职工');
INSERT INTO `t_jzg_dw_role` (`id`, `DWDM`, `DWMC`, `DWCC`, `LSDWDM`, `XYDM`, `XYMC`, `ZGH`, `XM`, `XMPY`, `XBDM`, `CSRQ`, `CSDDM`, `MZDM`, `SFZJH`, `SZDWDM`, `SZKSDM`, `ZW`, `BZLBDM`, `ZYJSZWDM`, `ZWMC`, `PX`, `PHONE`, `ROLE`) VALUES ('2', '000038', '处级单位', '2', '100000', '000038', '处级单位', '2018123456789', '院长', NULL, '1', '20181212', '121212', '01', '1111111111111111', NULL, NULL, '职务', NULL, NULL, NULL, '1', NULL, '教职工');
INSERT INTO `t_jzg_dw_role` (`id`, `DWDM`, `DWMC`, `DWCC`, `LSDWDM`, `XYDM`, `XYMC`, `ZGH`, `XM`, `XMPY`, `XBDM`, `CSRQ`, `CSDDM`, `MZDM`, `SFZJH`, `SZDWDM`, `SZKSDM`, `ZW`, `BZLBDM`, `ZYJSZWDM`, `ZWMC`, `PX`, `PHONE`, `ROLE`) VALUES ('3', '000782', '研发部', '3', '000038', '000038', '研发部', '20090000034', '职员甲', NULL, '1', '20181212', '121212', '01', '1111111111111111', NULL, NULL, '职务', NULL, NULL, NULL, '2', NULL, '教职工');

你可能感兴趣的:(2018-12-24)