From f511c2eb84573788c85816c6a08e228e20934930 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Tue, 19 Dec 2017 22:46:56 +0800 Subject: [PATCH] updated --- src/main/resources/mapper/OperateUserMapper.xml | 44 ++++++++++++++++++++++++++++---------------- 1 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/main/resources/mapper/OperateUserMapper.xml b/src/main/resources/mapper/OperateUserMapper.xml index 37a87c8..609b2dc 100644 --- a/src/main/resources/mapper/OperateUserMapper.xml +++ b/src/main/resources/mapper/OperateUserMapper.xml @@ -1,17 +1,29 @@ -<?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.moral.mapper.OperateUserMapper" > - <resultMap id="BaseResultMap" type="com.moral.entity.OperateUser" > - <id column="id" property="id" jdbcType="INTEGER" /> - <result column="job_number" property="jobNumber" jdbcType="VARCHAR" /> - <result column="name" property="name" jdbcType="VARCHAR" /> - <result column="password" property="password" jdbcType="VARCHAR" /> - <result column="organization_id" property="organizationId" jdbcType="INTEGER" /> - <result column="mobile" property="mobile" jdbcType="VARCHAR" /> - <result column="email" property="email" jdbcType="VARCHAR" /> - <result column="weixin" property="weixin" jdbcType="VARCHAR" /> - <result column="is_delete" property="isDelete" jdbcType="CHAR" /> - <result column="create_time" property="createTime" jdbcType="TIMESTAMP" /> - <result column="expire_time" property="expireTime" jdbcType="TIMESTAMP" /> - </resultMap> +<?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.moral.mapper.OperateUserMapper"> + + <select id="findOperateUserList" resultType="com.moral.entity.OperateUser"> + SELECT + * + FROM + operate_user + </select> + + <select id="findOperateUserCount" resultType="java.lang.Long"> + SELECT + count(1) + FROM + operate_user + </select> + + <select id="findOperateUser" resultType="com.moral.entity.OperateUser"> + SELECT + * + FROM + operate_user + WHERE + id = #{id} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0