|
@@ -24,13 +24,14 @@
|
|
|
<result column="visitingTime" property="visitingTime"/>
|
|
|
<result column="remark" property="remark"/>
|
|
|
<result column="status" property="status"/>
|
|
|
+ <result column="highSeas" property="highSeas"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrClient" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO mgr_client(`organizationId`, `userId`, `name`, `type`, `person`, `phone`, `weChatAccount`, `followUpState`, `job`, `demand`, `decorationRequirements`,
|
|
|
- `customerIndustry`, `followUpPerson`, `firsTimeRoom`, `visitingChannels`, `visitingTime`, `remark`, `status`)
|
|
|
+ `customerIndustry`, `followUpPerson`, `firsTimeRoom`, `visitingChannels`, `visitingTime`, `remark`, `status`, `highSeas`)
|
|
|
VALUES (#{organizationId}, #{userId}, #{name}, #{type}, #{person}, #{phone}, #{weChatAccount}, #{followUpState}, #{job}, #{demand}, #{decorationRequirements},
|
|
|
- #{customerIndustry}, #{followUpPerson}, #{firsTimeRoom}, #{visitingChannels}, #{visitingTime}, #{remark}, #{status})
|
|
|
+ #{customerIndustry}, #{followUpPerson}, #{firsTimeRoom}, #{visitingChannels}, #{visitingTime}, #{remark}, #{status}, #{highSeas})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -55,6 +56,7 @@
|
|
|
<if test="visitingTime!=null">visitingTime=#{visitingTime},</if>
|
|
|
<if test="remark!=null">remark=#{remark},</if>
|
|
|
<if test="status!=0">status=#{status},</if>
|
|
|
+ <if test="highSeas!=0">highSeas=#{highSeas},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|
|
@@ -83,6 +85,7 @@
|
|
|
<if test="visitingTime!=null">and visitingTime=#{visitingTime}</if>
|
|
|
<if test="remark!=null">and remark=#{remark}</if>
|
|
|
<if test="status!=null">and status=#{status}</if>
|
|
|
+ <if test="highSeas!=null">and highSeas=#{highSeas}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -106,6 +109,7 @@
|
|
|
<if test="p.visitingTime!=null">and visitingTime=#{p.visitingTime}</if>
|
|
|
<if test="p.remark!=null">and remark=#{p.remark}</if>
|
|
|
<if test="p.status!=null">and status=#{p.status}</if>
|
|
|
+ <if test="p.highSeas!=null">and highSeas=#{p.highSeas}</if>
|
|
|
</where>
|
|
|
limit #{currIndex} , #{pageSize}
|
|
|
</select>
|