Bladeren bron

添加微信cid涉及sql表业务字段

cgp 1 maand geleden
bovenliggende
commit
df3faa7acf

+ 54 - 0
fs-service/src/main/java/com/fs/wxcid/domain/CidIpadServer.java

@@ -0,0 +1,54 @@
+package com.fs.wxcid.domain;
+
+import com.fs.common.annotation.Excel;
+import com.fs.common.core.domain.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * ipad服务器对象 cid_ipad_server
+ *
+ * @author fs
+ * @date 2025-12-11
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class CidIpadServer extends BaseEntity{
+
+    /** id */
+    private Long id;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 地址 */
+    @Excel(name = "地址")
+    private String addressId;
+
+    /** ip */
+    @Excel(name = "ip")
+    private String ip;
+
+    /** 端口号 */
+    @Excel(name = "端口号")
+    private String port;
+
+    /** url */
+    @Excel(name = "url")
+    private String url;
+
+    /** 总数 */
+    @Excel(name = "总数")
+    private Long totalCount;
+
+    /** 剩余数量 */
+    @Excel(name = "剩余数量")
+    private Long count;
+
+    /** $column.columnComment */
+    @Excel(name = "剩余数量")
+    private Long groupNo;
+
+
+}

+ 38 - 0
fs-service/src/main/java/com/fs/wxcid/domain/CidIpadServerUser.java

@@ -0,0 +1,38 @@
+package com.fs.wxcid.domain;
+
+import com.fs.common.annotation.Excel;
+import com.fs.common.core.domain.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * ipad用户对象 cid_ipad_server_user
+ *
+ * @author fs
+ * @date 2025-12-11
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class CidIpadServerUser extends BaseEntity{
+
+    /** id */
+    private Long id;
+
+    /** 服务器id */
+    @Excel(name = "服务器id")
+    private Long serverId;
+
+    /** 企微用户id */
+    @Excel(name = "企微用户id")
+    private Long qwUserId;
+
+    /** 公司id */
+    @Excel(name = "公司id")
+    private Long companyId;
+
+    /** 公司用户id */
+    @Excel(name = "公司用户id")
+    private Long companyUserId;
+
+
+}

+ 62 - 0
fs-service/src/main/java/com/fs/wxcid/mapper/CidIpadServerMapper.java

@@ -0,0 +1,62 @@
+package com.fs.wxcid.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fs.wxcid.domain.CidIpadServer;
+
+import java.util.List;
+
+/**
+ * ipad服务器Mapper接口
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+public interface CidIpadServerMapper extends BaseMapper<CidIpadServer>{
+    /**
+     * 查询ipad服务器
+     * 
+     * @param id ipad服务器主键
+     * @return ipad服务器
+     */
+    CidIpadServer selectCidIpadServerById(Long id);
+
+    /**
+     * 查询ipad服务器列表
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return ipad服务器集合
+     */
+    List<CidIpadServer> selectCidIpadServerList(CidIpadServer cidIpadServer);
+
+    /**
+     * 新增ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    int insertCidIpadServer(CidIpadServer cidIpadServer);
+
+    /**
+     * 修改ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    int updateCidIpadServer(CidIpadServer cidIpadServer);
+
+    /**
+     * 删除ipad服务器
+     * 
+     * @param id ipad服务器主键
+     * @return 结果
+     */
+    int deleteCidIpadServerById(Long id);
+
+    /**
+     * 批量删除ipad服务器
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteCidIpadServerByIds(Long[] ids);
+}

+ 62 - 0
fs-service/src/main/java/com/fs/wxcid/mapper/CidIpadServerUserMapper.java

@@ -0,0 +1,62 @@
+package com.fs.wxcid.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fs.wxcid.domain.CidIpadServerUser;
+
+import java.util.List;
+
+/**
+ * ipad用户Mapper接口
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+public interface CidIpadServerUserMapper extends BaseMapper<CidIpadServerUser>{
+    /**
+     * 查询ipad用户
+     * 
+     * @param id ipad用户主键
+     * @return ipad用户
+     */
+    CidIpadServerUser selectCidIpadServerUserById(Long id);
+
+    /**
+     * 查询ipad用户列表
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return ipad用户集合
+     */
+    List<CidIpadServerUser> selectCidIpadServerUserList(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 新增ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    int insertCidIpadServerUser(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 修改ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    int updateCidIpadServerUser(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 删除ipad用户
+     * 
+     * @param id ipad用户主键
+     * @return 结果
+     */
+    int deleteCidIpadServerUserById(Long id);
+
+    /**
+     * 批量删除ipad用户
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    int deleteCidIpadServerUserByIds(Long[] ids);
+}

+ 62 - 0
fs-service/src/main/java/com/fs/wxcid/service/ICidIpadServerService.java

@@ -0,0 +1,62 @@
+package com.fs.wxcid.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fs.wxcid.domain.CidIpadServer;
+
+import java.util.List;
+
+/**
+ * ipad服务器Service接口
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+public interface ICidIpadServerService extends IService<CidIpadServer>{
+    /**
+     * 查询ipad服务器
+     * 
+     * @param id ipad服务器主键
+     * @return ipad服务器
+     */
+    CidIpadServer selectCidIpadServerById(Long id);
+
+    /**
+     * 查询ipad服务器列表
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return ipad服务器集合
+     */
+    List<CidIpadServer> selectCidIpadServerList(CidIpadServer cidIpadServer);
+
+    /**
+     * 新增ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    int insertCidIpadServer(CidIpadServer cidIpadServer);
+
+    /**
+     * 修改ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    int updateCidIpadServer(CidIpadServer cidIpadServer);
+
+    /**
+     * 批量删除ipad服务器
+     * 
+     * @param ids 需要删除的ipad服务器主键集合
+     * @return 结果
+     */
+    int deleteCidIpadServerByIds(Long[] ids);
+
+    /**
+     * 删除ipad服务器信息
+     * 
+     * @param id ipad服务器主键
+     * @return 结果
+     */
+    int deleteCidIpadServerById(Long id);
+}

+ 62 - 0
fs-service/src/main/java/com/fs/wxcid/service/ICidIpadServerUserService.java

@@ -0,0 +1,62 @@
+package com.fs.wxcid.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fs.wxcid.domain.CidIpadServerUser;
+
+import java.util.List;
+
+/**
+ * ipad用户Service接口
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+public interface ICidIpadServerUserService extends IService<CidIpadServerUser>{
+    /**
+     * 查询ipad用户
+     * 
+     * @param id ipad用户主键
+     * @return ipad用户
+     */
+    CidIpadServerUser selectCidIpadServerUserById(Long id);
+
+    /**
+     * 查询ipad用户列表
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return ipad用户集合
+     */
+    List<CidIpadServerUser> selectCidIpadServerUserList(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 新增ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    int insertCidIpadServerUser(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 修改ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    int updateCidIpadServerUser(CidIpadServerUser cidIpadServerUser);
+
+    /**
+     * 批量删除ipad用户
+     * 
+     * @param ids 需要删除的ipad用户主键集合
+     * @return 结果
+     */
+    int deleteCidIpadServerUserByIds(Long[] ids);
+
+    /**
+     * 删除ipad用户信息
+     * 
+     * @param id ipad用户主键
+     * @return 结果
+     */
+    int deleteCidIpadServerUserById(Long id);
+}

+ 94 - 0
fs-service/src/main/java/com/fs/wxcid/service/impl/CidIpadServerServiceImpl.java

@@ -0,0 +1,94 @@
+package com.fs.wxcid.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fs.common.utils.DateUtils;
+import com.fs.wxcid.domain.CidIpadServer;
+import com.fs.wxcid.mapper.CidIpadServerMapper;
+import com.fs.wxcid.service.ICidIpadServerService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * ipad服务器Service业务层处理
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+@Service
+public class CidIpadServerServiceImpl extends ServiceImpl<CidIpadServerMapper, CidIpadServer> implements ICidIpadServerService {
+
+    /**
+     * 查询ipad服务器
+     * 
+     * @param id ipad服务器主键
+     * @return ipad服务器
+     */
+    @Override
+    public CidIpadServer selectCidIpadServerById(Long id)
+    {
+        return baseMapper.selectCidIpadServerById(id);
+    }
+
+    /**
+     * 查询ipad服务器列表
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return ipad服务器
+     */
+    @Override
+    public List<CidIpadServer> selectCidIpadServerList(CidIpadServer cidIpadServer)
+    {
+        return baseMapper.selectCidIpadServerList(cidIpadServer);
+    }
+
+    /**
+     * 新增ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    @Override
+    public int insertCidIpadServer(CidIpadServer cidIpadServer)
+    {
+        cidIpadServer.setCreateTime(DateUtils.getNowDate());
+        return baseMapper.insertCidIpadServer(cidIpadServer);
+    }
+
+    /**
+     * 修改ipad服务器
+     * 
+     * @param cidIpadServer ipad服务器
+     * @return 结果
+     */
+    @Override
+    public int updateCidIpadServer(CidIpadServer cidIpadServer)
+    {
+        cidIpadServer.setUpdateTime(DateUtils.getNowDate());
+        return baseMapper.updateCidIpadServer(cidIpadServer);
+    }
+
+    /**
+     * 批量删除ipad服务器
+     * 
+     * @param ids 需要删除的ipad服务器主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCidIpadServerByIds(Long[] ids)
+    {
+        return baseMapper.deleteCidIpadServerByIds(ids);
+    }
+
+    /**
+     * 删除ipad服务器信息
+     * 
+     * @param id ipad服务器主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCidIpadServerById(Long id)
+    {
+        return baseMapper.deleteCidIpadServerById(id);
+    }
+}

+ 93 - 0
fs-service/src/main/java/com/fs/wxcid/service/impl/CidIpadServerUserServiceImpl.java

@@ -0,0 +1,93 @@
+package com.fs.wxcid.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fs.common.utils.DateUtils;
+import com.fs.wxcid.domain.CidIpadServerUser;
+import com.fs.wxcid.mapper.CidIpadServerUserMapper;
+import com.fs.wxcid.service.ICidIpadServerUserService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * ipad用户Service业务层处理
+ * 
+ * @author fs
+ * @date 2025-12-11
+ */
+@Service
+public class CidIpadServerUserServiceImpl extends ServiceImpl<CidIpadServerUserMapper, CidIpadServerUser> implements ICidIpadServerUserService {
+
+    /**
+     * 查询ipad用户
+     * 
+     * @param id ipad用户主键
+     * @return ipad用户
+     */
+    @Override
+    public CidIpadServerUser selectCidIpadServerUserById(Long id)
+    {
+        return baseMapper.selectCidIpadServerUserById(id);
+    }
+
+    /**
+     * 查询ipad用户列表
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return ipad用户
+     */
+    @Override
+    public List<CidIpadServerUser> selectCidIpadServerUserList(CidIpadServerUser cidIpadServerUser)
+    {
+        return baseMapper.selectCidIpadServerUserList(cidIpadServerUser);
+    }
+
+    /**
+     * 新增ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    @Override
+    public int insertCidIpadServerUser(CidIpadServerUser cidIpadServerUser)
+    {
+        cidIpadServerUser.setCreateTime(DateUtils.getNowDate());
+        return baseMapper.insertCidIpadServerUser(cidIpadServerUser);
+    }
+
+    /**
+     * 修改ipad用户
+     * 
+     * @param cidIpadServerUser ipad用户
+     * @return 结果
+     */
+    @Override
+    public int updateCidIpadServerUser(CidIpadServerUser cidIpadServerUser)
+    {
+        return baseMapper.updateCidIpadServerUser(cidIpadServerUser);
+    }
+
+    /**
+     * 批量删除ipad用户
+     * 
+     * @param ids 需要删除的ipad用户主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCidIpadServerUserByIds(Long[] ids)
+    {
+        return baseMapper.deleteCidIpadServerUserByIds(ids);
+    }
+
+    /**
+     * 删除ipad用户信息
+     * 
+     * @param id ipad用户主键
+     * @return 结果
+     */
+    @Override
+    public int deleteCidIpadServerUserById(Long id)
+    {
+        return baseMapper.deleteCidIpadServerUserById(id);
+    }
+}

+ 196 - 0
fs-service/src/main/resources/mapper/wxcid/CidIpadServerMapper.xml

@@ -0,0 +1,196 @@
+<?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.fs.wxcid.mapper.CidIpadServerMapper">
+
+
+    <resultMap id="CidIpadServerResult" type="CidIpadServer">
+
+        <result column="id" property="id"/>
+
+        <result column="title" property="title"/>
+
+        <result column="address_id" property="addressId"/>
+
+        <result column="ip" property="ip"/>
+
+        <result column="port" property="port"/>
+
+        <result column="url" property="url"/>
+
+        <result column="total_count" property="totalCount"/>
+
+        <result column="count" property="count"/>
+
+        <result column="create_time" property="createTime"/>
+
+        <result column="update_time" property="updateTime"/>
+
+        <result column="group_no" property="groupNo"/>
+
+        <result column="create_by" property="createBy"/>
+
+        <result column="update_by" property="updateBy"/>
+
+    </resultMap>
+
+    <sql id="selectCidIpadServerVo">select id,
+                                           title,
+                                           address_id,
+                                           ip,
+                                           port,
+                                           url,
+                                           total_count,
+                                           count,
+                                           create_time,
+                                           update_time,
+                                           group_no,
+                                           create_by,
+                                           update_by
+                                    from cid_ipad_server </sql>
+
+
+    <select id="selectCidIpadServerList" resultMap="CidIpadServerResult" parameterType="CidIpadServer">
+
+        <include refid="selectCidIpadServerVo"/>
+
+
+        <where>
+
+            <if test="title != null and title != ''">and title = #{title}</if>
+
+            <if test="addressId != null and addressId != ''">and address_id = #{addressId}</if>
+
+            <if test="ip != null and ip != ''">and ip = #{ip}</if>
+
+            <if test="port != null and port != ''">and port = #{port}</if>
+
+            <if test="url != null and url != ''">and url = #{url}</if>
+
+            <if test="totalCount != null ">and total_count = #{totalCount}</if>
+
+            <if test="count != null ">and count = #{count}</if>
+
+            <if test="groupNo != null ">and group_no = #{groupNo}</if>
+
+        </where>
+
+    </select>
+
+
+    <select id="selectCidIpadServerById" resultMap="CidIpadServerResult" parameterType="Long">
+
+        <include refid="selectCidIpadServerVo"/>
+        where id = #{id}
+    </select>
+
+
+    <insert id="insertCidIpadServer" parameterType="CidIpadServer" keyProperty="id" useGeneratedKeys="true">
+        insert into cid_ipad_server
+
+        <trim suffixOverrides="," suffix=")" prefix="(">
+
+            <if test="title != null">title,</if>
+
+            <if test="addressId != null">address_id,</if>
+
+            <if test="ip != null">ip,</if>
+
+            <if test="port != null">port,</if>
+
+            <if test="url != null">url,</if>
+
+            <if test="totalCount != null">total_count,</if>
+
+            <if test="count != null">count,</if>
+
+            <if test="createTime != null">create_time,</if>
+
+            <if test="updateTime != null">update_time,</if>
+
+            <if test="groupNo != null">group_no,</if>
+
+            <if test="createBy != null">create_by,</if>
+
+            <if test="updateBy != null">update_by,</if>
+
+        </trim>
+
+
+        <trim suffixOverrides="," suffix=")" prefix="values (">
+
+            <if test="title != null">#{title},</if>
+
+            <if test="addressId != null">#{addressId},</if>
+
+            <if test="ip != null">#{ip},</if>
+
+            <if test="port != null">#{port},</if>
+
+            <if test="url != null">#{url},</if>
+
+            <if test="totalCount != null">#{totalCount},</if>
+
+            <if test="count != null">#{count},</if>
+
+            <if test="createTime != null">#{createTime},</if>
+
+            <if test="updateTime != null">#{updateTime},</if>
+
+            <if test="groupNo != null">#{groupNo},</if>
+
+            <if test="createBy != null">#{createBy},</if>
+
+            <if test="updateBy != null">#{updateBy},</if>
+
+        </trim>
+
+    </insert>
+
+
+    <update id="updateCidIpadServer" parameterType="CidIpadServer">
+        update cid_ipad_server
+
+        <trim suffixOverrides="," prefix="SET">
+
+            <if test="title != null">title = #{title},</if>
+
+            <if test="addressId != null">address_id = #{addressId},</if>
+
+            <if test="ip != null">ip = #{ip},</if>
+
+            <if test="port != null">port = #{port},</if>
+
+            <if test="url != null">url = #{url},</if>
+
+            <if test="totalCount != null">total_count = #{totalCount},</if>
+
+            <if test="count != null">count = #{count},</if>
+
+            <if test="createTime != null">create_time = #{createTime},</if>
+
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+
+            <if test="groupNo != null">group_no = #{groupNo},</if>
+
+            <if test="createBy != null">create_by = #{createBy},</if>
+
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCidIpadServerById" parameterType="Long">delete
+                                                              from cid_ipad_server
+                                                              where id = #{id} </delete>
+
+
+    <delete id="deleteCidIpadServerByIds" parameterType="String">
+        delete from cid_ipad_server where id in
+        <foreach close=")" separator="," open="(" collection="array" item="id">#{id}</foreach>
+
+    </delete>
+
+</mapper>

+ 119 - 0
fs-service/src/main/resources/mapper/wxcid/CidIpadServerUserMapper.xml

@@ -0,0 +1,119 @@
+<?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.fs.wxcid.mapper.CidIpadServerUserMapper">
+
+    <resultMap id="CidIpadServerUserResult" type="CidIpadServerUser">
+
+        <result column="id" property="id"/>
+
+        <result column="server_id" property="serverId"/>
+
+        <result column="qw_user_id" property="qwUserId"/>
+
+        <result column="company_id" property="companyId"/>
+
+        <result column="company_user_id" property="companyUserId"/>
+
+        <result column="create_time" property="createTime"/>
+
+    </resultMap>
+
+    <sql id="selectCidIpadServerUserVo">select id, server_id, qw_user_id, company_id, company_user_id, create_time
+                                        from cid_ipad_server_user </sql>
+
+
+    <select id="selectCidIpadServerUserList" resultMap="CidIpadServerUserResult" parameterType="CidIpadServerUser">
+
+        <include refid="selectCidIpadServerUserVo"/>
+
+
+        <where>
+
+            <if test="serverId != null ">and server_id = #{serverId}</if>
+
+            <if test="qwUserId != null ">and qw_user_id = #{qwUserId}</if>
+
+            <if test="companyId != null ">and company_id = #{companyId}</if>
+
+            <if test="companyUserId != null ">and company_user_id = #{companyUserId}</if>
+
+        </where>
+
+    </select>
+
+
+    <select id="selectCidIpadServerUserById" resultMap="CidIpadServerUserResult" parameterType="Long">
+
+        <include refid="selectCidIpadServerUserVo"/>
+        where id = #{id}
+    </select>
+
+
+    <insert id="insertCidIpadServerUser" parameterType="CidIpadServerUser" keyProperty="id" useGeneratedKeys="true">
+        insert into cid_ipad_server_user
+
+        <trim suffixOverrides="," suffix=")" prefix="(">
+
+            <if test="serverId != null">server_id,</if>
+
+            <if test="qwUserId != null">qw_user_id,</if>
+
+            <if test="companyId != null">company_id,</if>
+
+            <if test="companyUserId != null">company_user_id,</if>
+
+            <if test="createTime != null">create_time,</if>
+
+        </trim>
+
+
+        <trim suffixOverrides="," suffix=")" prefix="values (">
+
+            <if test="serverId != null">#{serverId},</if>
+
+            <if test="qwUserId != null">#{qwUserId},</if>
+
+            <if test="companyId != null">#{companyId},</if>
+
+            <if test="companyUserId != null">#{companyUserId},</if>
+
+            <if test="createTime != null">#{createTime},</if>
+
+        </trim>
+
+    </insert>
+
+
+    <update id="updateCidIpadServerUser" parameterType="CidIpadServerUser">
+        update cid_ipad_server_user
+
+        <trim suffixOverrides="," prefix="SET">
+
+            <if test="serverId != null">server_id = #{serverId},</if>
+
+            <if test="qwUserId != null">qw_user_id = #{qwUserId},</if>
+
+            <if test="companyId != null">company_id = #{companyId},</if>
+
+            <if test="companyUserId != null">company_user_id = #{companyUserId},</if>
+
+            <if test="createTime != null">create_time = #{createTime},</if>
+
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteCidIpadServerUserById" parameterType="Long">delete
+                                                                  from cid_ipad_server_user
+                                                                  where id = #{id} </delete>
+
+
+    <delete id="deleteCidIpadServerUserByIds" parameterType="String">
+        delete from cid_ipad_server_user where id in
+        <foreach close=")" separator="," open="(" collection="array" item="id">#{id}</foreach>
+
+    </delete>
+
+</mapper>