|
|
@@ -2,9 +2,9 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.goafanti.common.mapper.AdminMapper">
|
|
|
+<mapper namespace="com.goafanti.common.dao.AdminMapper">
|
|
|
|
|
|
- <resultMap id="BaseResultMap" type="com.goafanti.common.domain.Admin">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.Admin">
|
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
<result property="mobile" column="mobile" jdbcType="VARCHAR"/>
|
|
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
@@ -61,7 +61,7 @@
|
|
|
delete from admin
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.domain.Admin" useGeneratedKeys="true">
|
|
|
+ <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.Admin" useGeneratedKeys="true">
|
|
|
insert into admin
|
|
|
( id,mobile,name
|
|
|
,password,email,create_time
|
|
|
@@ -86,7 +86,7 @@
|
|
|
,#{publicPurview,jdbcType=INTEGER},#{expenseOpenId,jdbcType=VARCHAR},#{expenseSuperExamine,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.domain.Admin" useGeneratedKeys="true">
|
|
|
+ <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.Admin" useGeneratedKeys="true">
|
|
|
insert into admin
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
@@ -153,7 +153,7 @@
|
|
|
<if test="expenseSuperExamine != null">#{expenseSuperExamine,jdbcType=INTEGER},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.domain.Admin">
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Admin">
|
|
|
update admin
|
|
|
<set>
|
|
|
<if test="mobile != null">
|
|
|
@@ -246,7 +246,7 @@
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.domain.Admin">
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.Admin">
|
|
|
update admin
|
|
|
set
|
|
|
mobile = #{mobile,jdbcType=VARCHAR},
|