数据连接mapper

branch-yff
YANG 1 year ago
parent 831abe9957
commit 37d6229065

@ -0,0 +1,41 @@
/*
Navicat Premium Data Transfer
Source Server : mysql-localhost
Source Server Type : MySQL
Source Server Version : 50616
Source Host : localhost
Source Database : mybatis-plus
Target Server Type : MySQL
Target Server Version : 50616
File Encoding : utf-8
Date: 06/25/2017 20:53:49 PM
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `sys_user`
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`id` bigint(20) NOT NULL COMMENT '用户ID',
`name` varchar(50) DEFAULT NULL COMMENT '用户名',
`age` int(3) DEFAULT NULL COMMENT '用户年龄',
`type` int(1) DEFAULT '0' COMMENT '0、禁用 1、正常, 如果使用tinyint(1)mysql连接没加tinyInt1isBit=false默认mysql驱动会把值转成boolean',
`ctime` datetime DEFAULT NULL COMMENT '自定义填充的创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统用户表';
-- ----------------------------
-- Records of `sys_user`
-- ----------------------------
BEGIN;
INSERT INTO `sys_user`(id,name,age,ctime,type) VALUES ('784972358981328902', 'Tom', '24', '2017-06-25 20:53:33', '1');
INSERT INTO `sys_user`(id,name,age,ctime,type) VALUES ('784972358981328903', 'Jammy', '21', '2017-06-25 20:53:37', '1');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.BisaibaomingDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.BisaibaomingEntity" id="bisaibaomingMap">
<result property="bianhao" column="bianhao"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="bisaixiangmu" column="bisaixiangmu"/>
<result property="shifoubaoming" column="shifoubaoming"/>
<result property="baomingshijian" column="baomingshijian"/>
<result property="wenjian" column="wenjian"/>
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="sfsh" column="sfsh"/>
<result property="shhf" column="shhf"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.BisaibaomingVO" >
SELECT * FROM bisaibaoming bisaibaoming
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.BisaibaomingVO" >
SELECT bisaibaoming.* FROM bisaibaoming bisaibaoming
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.BisaibaomingView" >
SELECT bisaibaoming.* FROM bisaibaoming bisaibaoming
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.BisaibaomingView" >
SELECT * FROM bisaibaoming bisaibaoming <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.BisaixiangmuDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.BisaixiangmuEntity" id="bisaixiangmuMap">
<result property="bisaixiangmu" column="bisaixiangmu"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.BisaixiangmuVO" >
SELECT * FROM bisaixiangmu bisaixiangmu
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.BisaixiangmuVO" >
SELECT bisaixiangmu.* FROM bisaixiangmu bisaixiangmu
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.BisaixiangmuView" >
SELECT bisaixiangmu.* FROM bisaixiangmu bisaixiangmu
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.BisaixiangmuView" >
SELECT * FROM bisaixiangmu bisaixiangmu <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.BisaixinxiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.BisaixinxiEntity" id="bisaixinxiMap">
<result property="bianhao" column="bianhao"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="bisaixiangmu" column="bisaixiangmu"/>
<result property="tupian" column="tupian"/>
<result property="bisaishijian" column="bisaishijian"/>
<result property="wenjian" column="wenjian"/>
<result property="bisaididian" column="bisaididian"/>
<result property="bisaiyaoqiu" column="bisaiyaoqiu"/>
<result property="bisaineirong" column="bisaineirong"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.BisaixinxiVO" >
SELECT * FROM bisaixinxi bisaixinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.BisaixinxiVO" >
SELECT bisaixinxi.* FROM bisaixinxi bisaixinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.BisaixinxiView" >
SELECT bisaixinxi.* FROM bisaixinxi bisaixinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.BisaixinxiView" >
SELECT * FROM bisaixinxi bisaixinxi <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.CaipanyuanDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.CaipanyuanEntity" id="caipanyuanMap">
<result property="zhanghao" column="zhanghao"/>
<result property="mima" column="mima"/>
<result property="xingming" column="xingming"/>
<result property="nianling" column="nianling"/>
<result property="xingbie" column="xingbie"/>
<result property="shouji" column="shouji"/>
<result property="youxiang" column="youxiang"/>
<result property="zhaopian" column="zhaopian"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.CaipanyuanVO" >
SELECT * FROM caipanyuan caipanyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.CaipanyuanVO" >
SELECT caipanyuan.* FROM caipanyuan caipanyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.CaipanyuanView" >
SELECT caipanyuan.* FROM caipanyuan caipanyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.CaipanyuanView" >
SELECT * FROM caipanyuan caipanyuan <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.CommonDao">
<select id="getOption" resultType="String" >
SELECT distinct ${column} FROM ${table}
where ${column} is not null and ${column} !=''
<if test = "level != null">
and level=#{level}
</if>
<if test = "parent != null">
and parent=#{parent}
</if>
</select>
<select id="getFollowByOption" resultType="map" >
SELECT * FROM ${table} where ${column}=#{columnValue}
</select>
<update id="sh">
UPDATE ${table} set sfsh=#{sfsh} where id=#{id}
</update>
<select id="remindCount" resultType="int" >
SELECT count(1) FROM ${table}
where 1=1
<if test = "type == 1 ">
<if test = " remindstart != null ">
and ${column} &gt;= #{remindstart}
</if>
<if test = " remindend != null ">
and ${column} &lt;= #{remindend}
</if>
</if>
<if test = "type == 2 ">
<if test = " remindstart != null ">
and ${column} &gt;= str_to_date(#{remindstart},'%Y-%m-%d')
</if>
<if test = " remindend != null ">
and ${column} &lt;= str_to_date(#{remindend},'%Y-%m-%d')
</if>
</if>
</select>
<select id="selectCal" resultType="map" >
SELECT sum(${column}) sum,max(${column}) max,min(${column}) min,avg(${column}) avg FROM ${table}
</select>
<select id="selectGroup" resultType="map" >
SELECT ${column} , count(1) total FROM ${table} group by ${column}
</select>
<select id="selectValue" resultType="map" >
SELECT ${xColumn}, sum(${yColumn}) total FROM ${table} group by ${xColumn}
</select>
</mapper>

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.ConfigDao">
</mapper>

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.DuiyuanDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.DuiyuanEntity" id="duiyuanMap">
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="mima" column="mima"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="nianling" column="nianling"/>
<result property="xingbie" column="xingbie"/>
<result property="shouji" column="shouji"/>
<result property="youxiang" column="youxiang"/>
<result property="zhaopian" column="zhaopian"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.DuiyuanVO" >
SELECT * FROM duiyuan duiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.DuiyuanVO" >
SELECT duiyuan.* FROM duiyuan duiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.DuiyuanView" >
SELECT duiyuan.* FROM duiyuan duiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.DuiyuanView" >
SELECT * FROM duiyuan duiyuan <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.NewsDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.NewsEntity" id="newsMap">
<result property="title" column="title"/>
<result property="introduction" column="introduction"/>
<result property="picture" column="picture"/>
<result property="content" column="content"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.NewsVO" >
SELECT * FROM news news
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.NewsVO" >
SELECT news.* FROM news news
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.NewsView" >
SELECT news.* FROM news news
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.NewsView" >
SELECT * FROM news news <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.QiquanxinxiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.QiquanxinxiEntity" id="qiquanxinxiMap">
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="bisaixiangmu" column="bisaixiangmu"/>
<result property="shifouqiquan" column="shifouqiquan"/>
<result property="qiquanyuanyin" column="qiquanyuanyin"/>
<result property="tijiaoriqi" column="tijiaoriqi"/>
<result property="sfsh" column="sfsh"/>
<result property="shhf" column="shhf"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.QiquanxinxiVO" >
SELECT * FROM qiquanxinxi qiquanxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.QiquanxinxiVO" >
SELECT qiquanxinxi.* FROM qiquanxinxi qiquanxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.QiquanxinxiView" >
SELECT qiquanxinxi.* FROM qiquanxinxi qiquanxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.QiquanxinxiView" >
SELECT * FROM qiquanxinxi qiquanxinxi <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.SaiqianbianpaiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.SaiqianbianpaiEntity" id="saiqianbianpaiMap">
<result property="bianhao" column="bianhao"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="bisaixiangmu" column="bisaixiangmu"/>
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="haomabianzhi" column="haomabianzhi"/>
<result property="saicishezhi" column="saicishezhi"/>
<result property="saiqianfenzu" column="saiqianfenzu"/>
<result property="bianpaishijian" column="bianpaishijian"/>
<result property="zhanghao" column="zhanghao"/>
<result property="xingming" column="xingming"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.SaiqianbianpaiVO" >
SELECT * FROM saiqianbianpai saiqianbianpai
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.SaiqianbianpaiVO" >
SELECT saiqianbianpai.* FROM saiqianbianpai saiqianbianpai
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.SaiqianbianpaiView" >
SELECT saiqianbianpai.* FROM saiqianbianpai saiqianbianpai
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.SaiqianbianpaiView" >
SELECT * FROM saiqianbianpai saiqianbianpai <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.SaiqiantongzhiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.SaiqiantongzhiEntity" id="saiqiantongzhiMap">
<result property="tongzhibiaoti" column="tongzhibiaoti"/>
<result property="jianjie" column="jianjie"/>
<result property="fengmian" column="fengmian"/>
<result property="tongzhineirong" column="tongzhineirong"/>
<result property="faburen" column="faburen"/>
<result property="fabushijian" column="fabushijian"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.SaiqiantongzhiVO" >
SELECT * FROM saiqiantongzhi saiqiantongzhi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.SaiqiantongzhiVO" >
SELECT saiqiantongzhi.* FROM saiqiantongzhi saiqiantongzhi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.SaiqiantongzhiView" >
SELECT saiqiantongzhi.* FROM saiqiantongzhi saiqiantongzhi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.SaiqiantongzhiView" >
SELECT * FROM saiqiantongzhi saiqiantongzhi <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.SaishichengjiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.SaishichengjiEntity" id="saishichengjiMap">
<result property="bianhao" column="bianhao"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="jieshushijian" column="jieshushijian"/>
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="saishichengji" column="saishichengji"/>
<result property="saishipaiming" column="saishipaiming"/>
<result property="dedaojiangxiang" column="dedaojiangxiang"/>
<result property="dengjishijian" column="dengjishijian"/>
<result property="zhanghao" column="zhanghao"/>
<result property="xingming" column="xingming"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.SaishichengjiVO" >
SELECT * FROM saishichengji saishichengji
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.SaishichengjiVO" >
SELECT saishichengji.* FROM saishichengji saishichengji
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.SaishichengjiView" >
SELECT saishichengji.* FROM saishichengji saishichengji
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.SaishichengjiView" >
SELECT * FROM saishichengji saishichengji <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.SaizhongxinxiDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.SaizhongxinxiEntity" id="saizhongxinxiMap">
<result property="bianhao" column="bianhao"/>
<result property="bisaimingcheng" column="bisaimingcheng"/>
<result property="bisaixiangmu" column="bisaixiangmu"/>
<result property="leixing" column="leixing"/>
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="yuanhaomabianzhi" column="yuanhaomabianzhi"/>
<result property="xinhaomabianzhi" column="xinhaomabianzhi"/>
<result property="yuansaici" column="yuansaici"/>
<result property="xinsaici" column="xinsaici"/>
<result property="yuanfenzu" column="yuanfenzu"/>
<result property="xinfenzu" column="xinfenzu"/>
<result property="genggaishijian" column="genggaishijian"/>
<result property="beizhu" column="beizhu"/>
<result property="zhanghao" column="zhanghao"/>
<result property="xingming" column="xingming"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.SaizhongxinxiVO" >
SELECT * FROM saizhongxinxi saizhongxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.SaizhongxinxiVO" >
SELECT saizhongxinxi.* FROM saizhongxinxi saizhongxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.SaizhongxinxiView" >
SELECT saizhongxinxi.* FROM saizhongxinxi saizhongxinxi
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.SaizhongxinxiView" >
SELECT * FROM saizhongxinxi saizhongxinxi <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.TeshuduiyuanDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.entity.TeshuduiyuanEntity" id="teshuduiyuanMap">
<result property="mingcheng" column="mingcheng"/>
<result property="duiyuanzhanghao" column="duiyuanzhanghao"/>
<result property="duiyuanxingming" column="duiyuanxingming"/>
<result property="yuanyin" column="yuanyin"/>
<result property="dengjiriqi" column="dengjiriqi"/>
<result property="beizhu" column="beizhu"/>
</resultMap>
<select id="selectListVO"
resultType="com.entity.vo.TeshuduiyuanVO" >
SELECT * FROM teshuduiyuan teshuduiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectVO"
resultType="com.entity.vo.TeshuduiyuanVO" >
SELECT teshuduiyuan.* FROM teshuduiyuan teshuduiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectListView"
resultType="com.entity.view.TeshuduiyuanView" >
SELECT teshuduiyuan.* FROM teshuduiyuan teshuduiyuan
<where> 1=1 ${ew.sqlSegment}</where>
</select>
<select id="selectView"
resultType="com.entity.view.TeshuduiyuanView" >
SELECT * FROM teshuduiyuan teshuduiyuan <where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.TokenDao">
<select id="selectListView"
resultType="com.entity.TokenEntity" >
SELECT t.* FROM token t
<where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dao.UserDao">
<select id="selectListView"
resultType="com.entity.UserEntity" >
SELECT u.* FROM users u
<where> 1=1 ${ew.sqlSegment}</where>
</select>
</mapper>
Loading…
Cancel
Save