dcs 1 ano atrás
pai
commit
a5d40d63bc

+ 13 - 0
virgo.core/src/main/java/com/bosshand/virgo/core/model/MgrClient.java

@@ -97,6 +97,10 @@ public class MgrClient {
      */
     private Integer status;
 
+    /**
+     * 公海
+     */
+    private Integer highSeas;
 
     public long getId() {
         return id;
@@ -249,4 +253,13 @@ public class MgrClient {
     public void setStatus(Integer status) {
         this.status = status;
     }
+
+    public Integer getHighSeas() {
+        return highSeas;
+    }
+
+    public void setHighSeas(Integer highSeas) {
+        this.highSeas = highSeas;
+    }
+
 }

+ 6 - 2
virgo.core/src/main/resources/mapper/MgrClientMapper.xml

@@ -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>