|
@@ -13,11 +13,12 @@
|
|
<result column="primaryArea" property="primaryArea"/>
|
|
<result column="primaryArea" property="primaryArea"/>
|
|
<result column="remark" property="remark"/>
|
|
<result column="remark" property="remark"/>
|
|
<result column="businessCard" property="businessCard"/>
|
|
<result column="businessCard" property="businessCard"/>
|
|
|
|
+ <result column="status" property="status"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrAgent" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrAgent" useGeneratedKeys="true" keyProperty="id">
|
|
- INSERT INTO mgr_agent(`organizationId`, `userId`, `name`, `phone`, `primaryArea`, `remark`, `businessCard`)
|
|
|
|
- VALUES (#{organizationId}, #{userId}, #{name}, #{phone}, #{primaryArea}, #{remark}, #{businessCard})
|
|
|
|
|
|
+ INSERT INTO mgr_agent(`organizationId`, `userId`, `name`, `phone`, `primaryArea`, `remark`, `businessCard`, `status`)
|
|
|
|
+ VALUES (#{organizationId}, #{userId}, #{name}, #{phone}, #{primaryArea}, #{remark}, #{businessCard}, #{status})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
<delete id="delete">
|
|
@@ -32,6 +33,7 @@
|
|
<if test="primaryArea!=null">primaryArea=#{primaryArea},</if>
|
|
<if test="primaryArea!=null">primaryArea=#{primaryArea},</if>
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
<if test="businessCard!=null">businessCard=#{businessCard},</if>
|
|
<if test="businessCard!=null">businessCard=#{businessCard},</if>
|
|
|
|
+ <if test="status!=null">status=#{status},</if>
|
|
</trim>
|
|
</trim>
|
|
WHERE id=#{id}
|
|
WHERE id=#{id}
|
|
</update>
|
|
</update>
|
|
@@ -50,6 +52,7 @@
|
|
<if test="primaryArea!=null">and primaryArea=#{primaryArea}</if>
|
|
<if test="primaryArea!=null">and primaryArea=#{primaryArea}</if>
|
|
<if test="remark!=null">and remark=#{remark}</if>
|
|
<if test="remark!=null">and remark=#{remark}</if>
|
|
<if test="businessCard!=null">and businessCard=#{businessCard}</if>
|
|
<if test="businessCard!=null">and businessCard=#{businessCard}</if>
|
|
|
|
+ <if test="status!=null">and status=#{status}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -63,6 +66,7 @@
|
|
<if test="p.primaryArea!=null">and primaryArea=#{p.primaryArea}</if>
|
|
<if test="p.primaryArea!=null">and primaryArea=#{p.primaryArea}</if>
|
|
<if test="p.remark!=null">and remark=#{p.remark}</if>
|
|
<if test="p.remark!=null">and remark=#{p.remark}</if>
|
|
<if test="p.businessCard!=null">and businessCard=#{p.businessCard}</if>
|
|
<if test="p.businessCard!=null">and businessCard=#{p.businessCard}</if>
|
|
|
|
+ <if test="p.status!=null">and status=#{p.status}</if>
|
|
</where>
|
|
</where>
|
|
limit #{currIndex} , #{pageSize}
|
|
limit #{currIndex} , #{pageSize}
|
|
</select>
|
|
</select>
|