/*
SQLyog Ultimate v11.33 (64 bit)
MySQL - 5.1.71-community : Database - auto_code
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`auto_code` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `auto_code`;
/*Table structure for table `back_user` */
DROP TABLE IF EXISTS `back_user`;
CREATE TABLE `back_user` (
`username` varchar(20) NOT NULL COMMENT '用户名',
`password` varchar(50) NOT NULL COMMENT '密码',
`add_time` datetime NOT NULL COMMENT '添加时间',
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `back_user` */
insert into `back_user`(`username`,`password`,`add_time`) values ('aaaa','123456','2015-01-05 11:52:26'),('admin','admin','2014-06-24 10:12:49');
/*Table structure for table `datasource_config` */
DROP TABLE IF EXISTS `datasource_config`;
CREATE TABLE `datasource_config` (
`dc_id` int(11) NOT NULL AUTO_INCREMENT,
`driver_class` varchar(50) DEFAULT NULL COMMENT '数据库驱动',
`db_name` varchar(50) DEFAULT NULL,
`ip` varchar(50) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`username` varchar(50) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`back_user` varchar(20) DEFAULT NULL,
PRIMARY KEY (`dc_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*Data for the table `datasource_config` */
insert into `datasource_config`(`dc_id`,`driver_class`,`db_name`,`ip`,`port`,`username`,`password`,`back_user`) values (4,'com.mysql.jdbc.Driver','auto_code','localhost',3306,'root','root','admin'),(6,'com.mysql.jdbc.Driver','rms','localhost',3306,'root','root','admin'),(9,'com.mysql.jdbc.Driver','stu','localhost',3306,'root','root','admin'),(11,'com.mysql.jdbc.Driver','ymm','127.0.0.1',3306,'root','root','admin'),(12,'com.mysql.jdbc.Driver','vback','127.0.0.1',3306,'root','root','admin');
/*Table structure for table `template_config` */
DROP TABLE IF EXISTS `template_config`;
CREATE TABLE `template_config` (
`tc_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
`save_path` varchar(100) DEFAULT NULL,
`suffix` varchar(20) DEFAULT NULL,
`file_name` varchar(50) DEFAULT NULL,
`content` text,
`back_user` varchar(20) DEFAULT NULL,
PRIMARY KEY (`tc_id`),
KEY `f_backuser` (`back_user`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COMMENT='模板表';
/*Data for the table `template_config` */
insert into `template_config`(`tc_id`,`name`,`save_path`,`suffix`,`file_name`,`content`,`back_user`) values (8,'bui_Entity','entity','java','${context.javaBeanName}.java','package ${context.packageName}.entity;\n\n/**\n ${table.comment}\n*/\npublic class ${context.javaBeanName} {\n#foreach($column in $columns)\n // ${column.comment}\n private ${column.javaTypeBox} ${column.javaFieldName};\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}(${column.javaTypeBox} ${column.javaFieldName}){\n this.${column.javaFieldName} = ${column.javaFieldName};\n }\n\n public ${column.javaTypeBox} get${column.javaFieldNameUF}(){\n return this.${column.javaFieldName};\n }\n\n#end\n}','admin'),(9,'bui_DAO','dao','java','${context.javaBeanName}Dao.java','package ${context.packageName}.dao;\n\nimport org.durcframework.core.dao.BaseDao;\nimport ${context.packageName}.entity.${context.javaBeanName};\n\npublic interface ${context.javaBeanName}Dao extends BaseDao<${context.javaBeanName}> {\n}','admin'),(10,'bui_Service','service','java','${context.javaBeanName}Service.java','package ${context.packageName}.service;\n\nimport org.durcframework.core.service.CrudService;\nimport ${context.packageName}.dao.${context.javaBeanName}Dao;\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class ${context.javaBeanName}Service extends CrudService<${context.javaBeanName}, ${context.javaBeanName}Dao> {\n\n}','admin'),(11,'durc_SearchEntity','entity','java','${context.javaBeanName}Sch.java','package ${context.packageName}.entity;\n\nimport org.durcframework.core.SearchEntity;\nimport org.durcframework.core.expression.annotation.ValueField;\n\npublic class ${context.javaBeanName}Sch extends SearchEntity{\n\n#foreach($column in $columns) \n private ${column.javaTypeBox} ${column.javaFieldName}Sch;\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}Sch(${column.javaTypeBox} ${column.javaFieldName}Sch){\n this.${column.javaFieldName}Sch = ${column.javaFieldName}Sch;\n }\n \n @ValueField(column = \"${column.columnName}\")\n public ${column.javaTypeBox} get${column.javaFieldNameUF}Sch(){\n return this.${column.javaFieldName}Sch;\n }\n\n#end\n\n}','admin'),(12,'bui_Mybatis','mapper','xml','${context.javaBeanNameLF}Mapper.xml','#set($jq=\"$\")\r\n\r\n\r\n\r\n\r\n \r\n #foreach($column in $columns)\r\n #if( \"${column.comment}\" != \"\" )\r\n \r\n #end\r\n \r\n #end\r\n \r\n \r\n \r\n \r\n SELECT\r\n \r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n \r\n ORDER BY ${jq}{order}\r\n \r\n \r\n \r\n \r\n \r\n SELECT \r\n \r\n 0\">\r\n \r\n ${jq}{column}\r\n \r\n \r\n \r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n #set($i=$i +1) \r\n #end\r\n \r\n \r\n \r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n ORDER BY t.${context.pkName} desc\r\n \r\n \r\n ORDER BY ${jq}{order}\r\n \r\n \r\n \r\n LIMIT\r\n #{start,jdbcType=INTEGER},#{limit,jdbcType=INTEGER}\r\n \r\n \r\n\r\n \r\n \r\n SELECT count(*) FROM ${table.tableName} t\r\n \r\n \r\n\r\n \r\n \r\n INSERT INTO ${table.tableName}\r\n (\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n #if($i > 0),#end `${column.columnName}`\r\n#set($i=$i +1)\r\n #end \r\n #end\r\n )\r\n VALUES (\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n #if($i > 0),#end #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\r\n#set($i=$i +1)\r\n #end \r\n #end\r\n \r\n )\r\n \r\n \r\n \r\n \r\n INSERT INTO ${table.tableName}\r\n \r\n \r\n\r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n \r\n `${column.columnName}`,\r\n \r\n #end \r\n #end\r\n \r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n \r\n #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n \r\n\r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n #end \r\n #end\r\n \r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n ${column.columnName}=#{entity.${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n #end \r\n #end\r\n \r\n \r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n \r\n ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n \r\n ${column.columnName}=#{entity.${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n \r\n \r\n\r\n \r\n \r\n SELECT \r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n#set($i=$i +1) \r\n #end\r\n FROM ${table.tableName} t\r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n SELECT\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n #set($i=$i +1) \r\n #end\r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n \r\n \r\n DELETE FROM ${table.tableName}\r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n DELETE FROM ${table.tableName}\r\n \r\n \r\n\r\n ','admin'),(14,'bui_Controller','controller','java','${context.javaBeanName}Controller.java','package ${context.packageName}.controller;\n\nimport org.durcframework.core.GridResult;\nimport org.durcframework.core.MessageResult;\nimport org.durcframework.core.controller.CrudController;\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.entity.${context.javaBeanName}Sch;\nimport ${context.packageName}.service.${context.javaBeanName}Service;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\n@Controller\npublic class ${context.javaBeanName}Controller extends\n CrudController<${context.javaBeanName}, ${context.javaBeanName}Service> {\n\n @RequestMapping(\"/add${context.javaBeanName}.do\")\n public ModelAndView add${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.add(entity);\n }\n\n @RequestMapping(\"/list${context.javaBeanName}.do\")\n public ModelAndView list${context.javaBeanName}(${context.javaBeanName}Sch searchEntity) {\n return this.list(searchEntity);\n }\n\n @RequestMapping(\"/update${context.javaBeanName}.do\")\n public ModelAndView update${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.modify(entity);\n }\n\n @RequestMapping(\"/del${context.javaBeanName}.do\")\n public ModelAndView del${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.remove(entity);\n }\n \n}','admin'),(15,'sw-mybatis-sqlserver','${context.javaBeanNameLF}/mapper','xml','${context.javaBeanNameLF}Mapper.xml','\n\n\n\n#foreach($column in $columns)\n \n#end \n \n \n 0\">\n SELECT t0.* FROM (\n \n select row_number() over(order by\n \n \n ${paramMap.orderCol}\n \n \n ${context.pkName} desc\n \n \n ) row\n \n #foreach($column in $columns) \n ,${column.columnName} \n #end\n from ${table.tableName} t \n \n 0\">\n ) t0 WHERE t0.row BETWEEN (#{paramMap.firstResult} +1) AND\n (#{paramMap.firstResult} + #{paramMap.rp})\n \n \n \n SELECT \n#set ($i=0) \n #foreach($column in $columns) \n #if($i > 0),#end \n ${column.columnName}\n #set($i=$i +1) \n #end\n FROM ${table.tableName}\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n \n DELETE FROM ${table.tableName}\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n \n INSERT INTO ${table.tableName}\n (\n #set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #if($i > 0),#end ${column.columnName}\n #set($i=$i +1)\n #end \n #end\n )\n VALUES (\n #set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #if($i > 0),#end #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\n #set($i=$i +1)\n #end \n #end\n \n )\n \n \n select count(*) from ${table.tableName} t\n \n \n\n \n UPDATE ${table.tableName}\n SET \n#set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isPk}) \n #if($i > 0),#end ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\n #set($i=$i +1)\n #end \n #end \n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n ','admin'),(16,'sw-pojo','${context.javaBeanNameLF}/pojo','java','${context.javaBeanName}.java','package ${context.packageName}.${context.javaBeanNameLF}.pojo;\n\nimport com.shunwang.business.framework.pojo.BasePojo;\n\npublic class ${context.javaBeanName} extends BasePojo {\n#foreach($column in $columns) \n private ${column.javaTypeBox} ${column.javaFieldName};\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}(${column.javaTypeBox} ${column.javaFieldName}){\n this.${column.javaFieldName} = ${column.javaFieldName};\n }\n\n public ${column.javaTypeBox} get${column.javaFieldNameUF}(){\n return this.${column.javaFieldName};\n }\n\n#end\n}','admin'),(17,'sw-dao','${context.javaBeanNameLF}/dao','java','${context.javaBeanName}Dao.java','package ${context.packageName}.${context.javaBeanNameLF}.dao;\n\nimport com.shunwang.business.framework.dao.CrudDao;\nimport ${context.packageName}.${context.javaBeanNameLF}.pojo.${context.javaBeanName};\n\npublic interface ${context.javaBeanName}Dao extends CrudDao<${context.javaBeanName}> {\n}','admin'),(18,'sw-bo','${context.javaBeanNameLF}/bo','java','${context.javaBeanName}Bo.java','package ${context.packageName}.${context.javaBeanNameLF}.bo;\n\nimport org.springframework.stereotype.Service;\n\nimport com.shunwang.business.framework.bo.CrudBo;\nimport ${context.packageName}.${context.javaBeanNameLF}.dao.${context.javaBeanName}Dao;\nimport ${context.packageName}.${context.javaBeanNameLF}.pojo.${context.javaBeanName};\n\n@Service\npublic class ${context.javaBeanName}Bo extends CrudBo<${context.javaBeanName}, ${context.javaBeanName}Dao> {\n\n}','admin'),(19,'durc_jspEasyUICRUD','jsp','jsp','${context.javaBeanNameLF}.jsp','<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n\n\n
\n \n后台管理 \n<%@ include file=\"easyui_lib.jsp\" %>\n\n\n\n \n\n \n \n \n \n \n \n \n\n\n','admin'),(20,'sw-mybatis-mysql','${context.javaBeanNameLF}/mapper','xml','${context.javaBeanNameLF}Mapper.xml','\n\n\n\n#foreach($column in $columns)\n \n#end \n \n \n SELECT *\n FROM ${table.tableName} t\n \n \n \n ORDER BY ${paramMap.orderCol}\n \n \n ORDER BY ${context.pkName} desc\n \n \n 0\">\n LIMIT #{paramMap.firstResult},#{paramMap.rp}\n \n \n\n \n SELECT \n#set ($i=0) \n #foreach($column in $columns) \n #if($i > 0),#end \n ${column.columnName}\n #set($i=$i+ 1) \n #end\n FROM ${table.tableName}\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n \n DELETE FROM ${table.tableName}\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n \n INSERT INTO ${table.tableName}\n (\n #set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #if($i > 0),#end ${column.columnName}\n #set($i=$i +1)\n #end \n #end\n )\n VALUES (\n #set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n #if($i > 0),#end #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\n #set($i=$i +1)\n #end \n #end\n \n )\n \n \n select count(*) from ${table.tableName} t\n \n \n\n \n UPDATE ${table.tableName}\n SET \n#set ($i=0) \n #foreach($column in $columns) \n #if(!${column.isPk}) \n #if($i > 0),#end ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\n #set($i=$i +1)\n #end \n #end \n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\n \n ','admin'),(23,'durc-jspFduiCRUD','jsp',NULL,'${context.javaBeanNameLF}.jsp','<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"../taglib.jsp\" %>\n\n\n\n \n增删改查 \n\n\n\n
\n
\n \n#foreach($column in $columns)\n #if(!${column.isIdentityPk})\n ${column.javaFieldName}: \n #end\n#end\n \n
\n \n \n
\n
\n
\n \n \n \n
\n \n \n#foreach($column in $columns)\n #if(!${column.isIdentityPk})\n \n ${column.javaFieldName}: \n \n #end\n#end\n \n
\n
\n\n\n\n','admin'),(24,'durc-bootstrap-ajax','jsp',NULL,'${context.javaBeanNameLF}.jsp','##请编辑velocity模板\n#set($jq=\"$\")\n<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"taglib.jsp\" %>\n\n\n\n\n \n \n 后台管理 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
\n
\n
\n \n
\n
\n
\n
\n \n#foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n ${column.javaFieldName} \n #end \n#end \n操作 \n \n
\n \n
\n \n\n
\n
\n
\n
\n
\n\n \n \n\n','admin'),(25,'durc_SearchEntityBs','entity',NULL,'${context.javaBeanName}Sch.java','package ${context.packageName}.entity;\n\nimport org.durcframework.core.SearchEntity;\nimport org.durcframework.core.expression.annotation.ValueField;\n\nimport org.durcframework.core.support.BsgridSearch;\n\npublic class ${context.javaBeanName}Sch extends BsgridSearch {\n\n#foreach($column in $columns) \n private ${column.javaTypeBox} ${column.javaFieldName}Sch;\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}Sch(${column.javaTypeBox} ${column.javaFieldName}Sch){\n this.${column.javaFieldName}Sch = ${column.javaFieldName}Sch;\n }\n \n @ValueField(column = \"${column.columnName}\")\n public ${column.javaTypeBox} get${column.javaFieldNameUF}Sch(){\n return this.${column.javaFieldName}Sch;\n }\n\n#end\n\n}','admin'),(27,'durc_ControllerBs','controller',NULL,'${context.javaBeanName}Controller','package ${context.packageName}.controller;\n\nimport org.durcframework.core.support.BsgridController;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.servlet.ModelAndView;\n\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.entity.${context.javaBeanName}Sch;\nimport ${context.packageName}.service.${context.javaBeanName}Service;\n\n\n@Controller\npublic class ${context.javaBeanName}Controller extends\n BsgridController<${context.javaBeanName}, ${context.javaBeanName}Service> {\n\n @RequestMapping(\"/add${context.javaBeanName}.do\")\n public ModelAndView add${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.add(entity);\n }\n\n @RequestMapping(\"/list${context.javaBeanName}.do\")\n public ModelAndView list${context.javaBeanName}(${context.javaBeanName}Sch searchEntity) {\n return this.list(searchEntity);\n }\n\n @RequestMapping(\"/update${context.javaBeanName}.do\")\n public ModelAndView update${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.modify(entity);\n }\n\n @RequestMapping(\"/del${context.javaBeanName}.do\")\n public ModelAndView del${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.remove(entity);\n }\n \n}\n','admin'),(28,'durc-jsp-flatlab','jsp',NULL,'${context.javaBeanNameLF}.jsp','##请编辑velocity模板\n#set($jq=\"$\")\n<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"taglib.jsp\" %>\n\n\n\n\n \n \n \n \n 后台管理 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n \n
\n
\n
\n \n#foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n ${column.javaFieldName} \n #end \n#end \n操作 \n \n
\n
\n \n
\n
\n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n\n','admin'),(29,'durc-jsp-AdminLTE','jsp',NULL,'${context.javaBeanNameLF}.jsp','#set($jq=\"$\")\n<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"taglib.jsp\" %>\n\n\n\n\n \n \n \n 后台管理 \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n
\n\n \n \n \n \n \n 后台管理 \n \n\n \n \n \n \n \n \n \n \n \n
\n\n \n
\n \n \n\n \n
\n\n \n \n \n \n \n \n
\n
\n \n #foreach($column in $columns) \n #if(!${column.isIdentityPk}) \n ${column.javaFieldName} \n #end \n #end \n 操作 \n \n
\n
\n
\n \n \n \n\n\n \n
\n\n \n
\n\n
\n\n \n \n \n \n \n\n \n \n\n','admin'),(30,'bui_jsp','jsp',NULL,'${context.javaBeanNameLF}.jsp','#set($jq=\"$\")\n<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"taglib.jsp\" %>\n\n\n\n \n 后台管理 \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n\n\n\n','admin'),(31,'bui_SearchEntity','entity',NULL,'${context.javaBeanName}Sch.java','package ${context.packageName}.entity;\n\nimport org.durcframework.core.expression.annotation.ValueField;\nimport org.durcframework.core.support.SearchBUI;\n\npublic class ${context.javaBeanName}Sch extends SearchBUI {\n\n#foreach($column in $columns) \n private ${column.javaTypeBox} ${column.javaFieldName}Sch;\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}Sch(${column.javaTypeBox} ${column.javaFieldName}Sch){\n this.${column.javaFieldName}Sch = ${column.javaFieldName}Sch;\n }\n \n @ValueField(column = \"${column.columnName}\")\n public ${column.javaTypeBox} get${column.javaFieldNameUF}Sch(){\n return this.${column.javaFieldName}Sch;\n }\n\n#end\n\n}','admin'),(32,'v_Entity','entity',NULL,'${context.javaBeanName}.java','package ${context.packageName}.entity;\n\n#if( \"${table.comment}\" != \"\" )\n/**\n ${table.comment}\n*/\n#end\npublic class ${context.javaBeanName} {\n#foreach($column in $columns)\n#if( \"${column.comment}\" != \"\" )\n // ${column.comment}\n#end\n private ${column.javaTypeBox} ${column.javaFieldName};\n#end\n\n#foreach(${column} in ${columns})\n#if( \"${column.comment}\" != \"\" )\n /** 设置 ${column.comment},对应字段 ${table.tableName}.${column.columnName} */\n#end \n public void set${column.javaFieldNameUF}(${column.javaTypeBox} ${column.javaFieldName}){\n this.${column.javaFieldName} = ${column.javaFieldName};\n }\n#if( \"${column.comment}\" != \"\" )\n /** 获取 ${column.comment},对应字段 ${table.tableName}.${column.columnName} */\n#end \n public ${column.javaTypeBox} get${column.javaFieldNameUF}(){\n return this.${column.javaFieldName};\n }\n\n#end\n}','admin'),(33,'v_DAO','dao',NULL,'${context.javaBeanName}Dao.java','package ${context.packageName}.dao;\n\nimport org.durcframework.core.dao.BaseDao;\nimport ${context.packageName}.entity.${context.javaBeanName};\n\npublic interface ${context.javaBeanName}Dao extends BaseDao<${context.javaBeanName}> {\n}','admin'),(34,'v_Service','service',NULL,'${context.javaBeanName}Service.java','package ${context.packageName}.service;\n\nimport org.durcframework.core.service.CrudService;\nimport ${context.packageName}.dao.${context.javaBeanName}Dao;\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport org.springframework.stereotype.Service;\n\n@Service\npublic class ${context.javaBeanName}Service extends CrudService<${context.javaBeanName}, ${context.javaBeanName}Dao> {\n\n}','admin'),(35,'v_SearchEntity','entity',NULL,'${context.javaBeanName}Sch.java','package ${context.packageName}.entity;\n\nimport org.durcframework.core.expression.annotation.ValueField;\nimport org.durcframework.core.support.SearchEasyUI;\n\npublic class ${context.javaBeanName}Sch extends SearchEasyUI {\n\n#foreach($column in $columns) \n private ${column.javaTypeBox} ${column.javaFieldName}Sch;\n#end\n\n#foreach(${column} in ${columns}) \n public void set${column.javaFieldNameUF}Sch(${column.javaTypeBox} ${column.javaFieldName}Sch){\n this.${column.javaFieldName}Sch = ${column.javaFieldName}Sch;\n }\n \n @ValueField(column = \"${column.columnName}\")\n public ${column.javaTypeBox} get${column.javaFieldNameUF}Sch(){\n return this.${column.javaFieldName}Sch;\n }\n\n#end\n\n}','admin'),(36,'v_Controller','controller',NULL,'${context.javaBeanName}Controller.java','package ${context.packageName}.controller;\n\nimport org.durcframework.core.GridResult;\nimport org.durcframework.core.MessageResult;\nimport org.durcframework.core.controller.CrudController;\nimport ${context.packageName}.entity.${context.javaBeanName};\nimport ${context.packageName}.entity.${context.javaBeanName}Sch;\nimport ${context.packageName}.service.${context.javaBeanName}Service;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.ResponseBody;\n\n@Controller\npublic class ${context.javaBeanName}Controller extends\n CrudController<${context.javaBeanName}, ${context.javaBeanName}Service> {\n\n @RequestMapping(\"/add${context.javaBeanName}.do\")\n public @ResponseBody MessageResult add${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.save(entity);\n }\n\n @RequestMapping(\"/list${context.javaBeanName}.do\")\n public @ResponseBody GridResult list${context.javaBeanName}(${context.javaBeanName}Sch searchEntity) {\n return this.query(searchEntity);\n }\n\n @RequestMapping(\"/update${context.javaBeanName}.do\")\n public @ResponseBody MessageResult update${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.update(entity);\n }\n\n @RequestMapping(\"/del${context.javaBeanName}.do\")\n public @ResponseBody MessageResult del${context.javaBeanName}(${context.javaBeanName} entity) {\n return this.delete(entity);\n }\n \n}','admin'),(37,'v_Mybatis','mapper',NULL,'${context.javaBeanNameLF}Mapper.xml','#set($jq=\"$\")\r\n\r\n\r\n\r\n\r\n \r\n #foreach($column in $columns)\r\n #if( \"${column.comment}\" != \"\" )\r\n \r\n #end\r\n \r\n #end\r\n \r\n \r\n \r\n \r\n SELECT\r\n \r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n \r\n ORDER BY ${jq}{order}\r\n \r\n \r\n \r\n \r\n \r\n SELECT \r\n \r\n 0\">\r\n \r\n ${jq}{column}\r\n \r\n \r\n \r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n #set($i=$i +1) \r\n #end\r\n \r\n \r\n \r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n ORDER BY t.${context.pkName} desc\r\n \r\n \r\n ORDER BY ${jq}{order}\r\n \r\n \r\n \r\n LIMIT\r\n #{start,jdbcType=INTEGER},#{limit,jdbcType=INTEGER}\r\n \r\n \r\n\r\n \r\n \r\n SELECT count(*) FROM ${table.tableName} t\r\n \r\n \r\n\r\n \r\n \r\n INSERT INTO ${table.tableName}\r\n (\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n #if($i > 0),#end `${column.columnName}`\r\n#set($i=$i +1)\r\n #end \r\n #end\r\n )\r\n VALUES (\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n #if($i > 0),#end #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}\r\n#set($i=$i +1)\r\n #end \r\n #end\r\n \r\n )\r\n \r\n \r\n \r\n \r\n INSERT INTO ${table.tableName}\r\n \r\n \r\n\r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n \r\n `${column.columnName}`,\r\n \r\n #end \r\n #end\r\n \r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isIdentityPk}) \r\n \r\n #{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n \r\n\r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n #end \r\n #end\r\n \r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n ${column.columnName}=#{entity.${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n #end \r\n #end\r\n \r\n \r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n \r\n ${column.columnName}=#{${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n UPDATE ${table.tableName}\r\n \r\n #foreach($column in $columns) \r\n #if(!${column.isPk}) \r\n \r\n ${column.columnName}=#{entity.${column.javaFieldName},jdbcType=${column.mybatisJdbcType}}, \r\n \r\n #end \r\n #end\r\n \r\n \r\n \r\n\r\n \r\n \r\n SELECT \r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n#set($i=$i +1) \r\n #end\r\n FROM ${table.tableName} t\r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n SELECT\r\n #set ($i=0) \r\n #foreach($column in $columns) \r\n #if($i > 0),#end t.${column.columnName}\r\n #set($i=$i +1) \r\n #end\r\n FROM ${table.tableName} t\r\n \r\n \r\n \r\n \r\n \r\n DELETE FROM ${table.tableName}\r\n WHERE ${context.pkName} = #{${context.javaPkName},jdbcType=${context.mybatisPkType}}\r\n \r\n \r\n \r\n \r\n DELETE FROM ${table.tableName}\r\n \r\n \r\n\r\n ','admin'),(38,'v_jsp','jsp',NULL,'${context.javaBeanNameLF}.jsp','#set($jq=\"$\")\n<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\"\n pageEncoding=\"UTF-8\"%>\n<%@ include file=\"../taglib.jsp\" %>\n\n\n \n 后台管理 \n \n\n \n \n \n 新增 \n
\n \n
\n \n \n \n\n\n\n','admin');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;