初始化飞书小程序接口信息

飞书小程序
YXY 1 year ago
parent 4e2174176f
commit 87fddda417

@ -0,0 +1,63 @@
package com.ruoyi.flyingbook.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
/**
* lark_active
*
* @author ruoyi
* @date 2023-08-16
*/
@Data
public class LarkActive extends BaseEntity {
private static final long serialVersionUID = 1L;
private Long id;
/**
* id
*/
private Long companyId;
/**
*
*/
private String companyName;
/**
*
*/
private String activeName;
/**
*
*/
private String activeDesc;
/**
*
*/
private String activeContent;
/**
*
*/
private String activeImageUrl;
/**
*
*/
private String activeType;
/**
*
*/
private String activeScore;
/**
* @see com.ruoyi.common.enums.FlagStatus
*/
private Long flag;
}

@ -0,0 +1,48 @@
package com.ruoyi.flyingbook.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
/**
* lark_user_active_invite_relatoin
*
* @author ruoyi
* @date 2023-08-16
*/
@Data
public class LarkUserActiveInviteRelatoin extends BaseEntity {
private static final long serialVersionUID = 1L;
private Long id;
/**
* id
*/
private Long companyId;
/**
*
*/
private String companyName;
/**
*
*/
private String userName;
/**
*
*/
private String inviteUserName;
/**
*
*/
private String inviteStage;
/**
* @see com.ruoyi.common.enums.FlagStatus
*/
private Long flag;
}

@ -0,0 +1,47 @@
package com.ruoyi.flyingbook.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
/**
* lark_user_active_relatoin
*
* @author ruoyi
* @date 2023-08-16
*/
@Data
public class LarkUserActiveRelatoin extends BaseEntity {
private static final long serialVersionUID = 1L;
private Long id;
/**
* id
*/
private Long companyId;
/**
*
*/
private String companyName;
/**
*
*/
private String userName;
/**
* id
*/
private Long activeId;
/**
*
*/
private String activeStage;
/**
* @see com.ruoyi.common.enums.FlagStatus
*/
private Long flag;
}

@ -0,0 +1,61 @@
package com.ruoyi.flyingbook.mapper;
import com.ruoyi.flyingbook.domain.LarkActive;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-16
*/
public interface LarkActiveMapper {
/**
*
*
* @param id ID
* @return
*/
public LarkActive selectLarkActiveById(Long id);
/**
*
*
* @param larkActive
* @return
*/
public List<LarkActive> selectLarkActiveList(LarkActive larkActive);
/**
*
*
* @param larkActive
* @return
*/
public int insertLarkActive(LarkActive larkActive);
/**
*
*
* @param larkActive
* @return
*/
public int updateLarkActive(LarkActive larkActive);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkActiveById(Long id);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkActiveByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.flyingbook.mapper;
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-16
*/
public interface LarkUserActiveInviteRelatoinMapper {
/**
*
*
* @param id ID
* @return
*/
public LarkUserActiveInviteRelatoin selectLarkUserActiveInviteRelatoinById(Long id);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public List<LarkUserActiveInviteRelatoin> selectLarkUserActiveInviteRelatoinList(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public int insertLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public int updateLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkUserActiveInviteRelatoinById(Long id);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkUserActiveInviteRelatoinByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.flyingbook.mapper;
import com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin;
import java.util.List;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-16
*/
public interface LarkUserActiveRelatoinMapper {
/**
*
*
* @param id ID
* @return
*/
public LarkUserActiveRelatoin selectLarkUserActiveRelatoinById(Long id);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public List<LarkUserActiveRelatoin> selectLarkUserActiveRelatoinList(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public int insertLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public int updateLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkUserActiveRelatoinById(Long id);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkUserActiveRelatoinByIds(Long[] ids);
}

@ -0,0 +1,62 @@
package com.ruoyi.flyingbook.service;
import com.ruoyi.flyingbook.domain.LarkActive;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
public interface ILarkActiveService {
/**
*
*
* @param id ID
* @return
*/
public LarkActive selectLarkActiveById(Long id);
/**
*
*
* @param larkActive
* @return
*/
public List<LarkActive> selectLarkActiveList(LarkActive larkActive);
/**
*
*
* @param larkActive
* @return
*/
public int insertLarkActive(LarkActive larkActive);
/**
*
*
* @param larkActive
* @return
*/
public int updateLarkActive(LarkActive larkActive);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkActiveByIds(Long[] ids);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkActiveById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.flyingbook.service;
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
public interface ILarkUserActiveInviteRelatoinService {
/**
*
*
* @param id ID
* @return
*/
public LarkUserActiveInviteRelatoin selectLarkUserActiveInviteRelatoinById(Long id);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public List<LarkUserActiveInviteRelatoin> selectLarkUserActiveInviteRelatoinList(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public int insertLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
public int updateLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkUserActiveInviteRelatoinByIds(Long[] ids);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkUserActiveInviteRelatoinById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.flyingbook.service;
import com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
public interface ILarkUserActiveRelatoinService {
/**
*
*
* @param id ID
* @return
*/
public LarkUserActiveRelatoin selectLarkUserActiveRelatoinById(Long id);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public List<LarkUserActiveRelatoin> selectLarkUserActiveRelatoinList(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public int insertLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
public int updateLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin);
/**
*
*
* @param ids ID
* @return
*/
public int deleteLarkUserActiveRelatoinByIds(Long[] ids);
/**
*
*
* @param id ID
* @return
*/
public int deleteLarkUserActiveRelatoinById(Long id);
}

@ -0,0 +1,90 @@
package com.ruoyi.flyingbook.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.flyingbook.domain.LarkActive;
import com.ruoyi.flyingbook.mapper.LarkActiveMapper;
import com.ruoyi.flyingbook.service.ILarkActiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
@Service
public class LarkActiveServiceImpl implements ILarkActiveService {
@Autowired
private LarkActiveMapper larkActiveMapper;
/**
*
*
* @param id ID
* @return
*/
@Override
public LarkActive selectLarkActiveById(Long id) {
return larkActiveMapper.selectLarkActiveById(id);
}
/**
*
*
* @param larkActive
* @return
*/
@Override
public List<LarkActive> selectLarkActiveList(LarkActive larkActive) {
return larkActiveMapper.selectLarkActiveList(larkActive);
}
/**
*
*
* @param larkActive
* @return
*/
@Override
public int insertLarkActive(LarkActive larkActive) {
larkActive.setCreateTime(DateUtils.getNowDate());
return larkActiveMapper.insertLarkActive(larkActive);
}
/**
*
*
* @param larkActive
* @return
*/
@Override
public int updateLarkActive(LarkActive larkActive) {
larkActive.setUpdateTime(DateUtils.getNowDate());
return larkActiveMapper.updateLarkActive(larkActive);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteLarkActiveByIds(Long[] ids) {
return larkActiveMapper.deleteLarkActiveByIds(ids);
}
/**
*
*
* @param id ID
* @return
*/
@Override
public int deleteLarkActiveById(Long id) {
return larkActiveMapper.deleteLarkActiveById(id);
}
}

@ -0,0 +1,90 @@
package com.ruoyi.flyingbook.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin;
import com.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper;
import com.ruoyi.flyingbook.service.ILarkUserActiveInviteRelatoinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
@Service
public class LarkUserActiveInviteRelatoinServiceImpl implements ILarkUserActiveInviteRelatoinService {
@Autowired
private LarkUserActiveInviteRelatoinMapper larkUserActiveInviteRelatoinMapper;
/**
*
*
* @param id ID
* @return
*/
@Override
public LarkUserActiveInviteRelatoin selectLarkUserActiveInviteRelatoinById(Long id) {
return larkUserActiveInviteRelatoinMapper.selectLarkUserActiveInviteRelatoinById(id);
}
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
@Override
public List<LarkUserActiveInviteRelatoin> selectLarkUserActiveInviteRelatoinList(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) {
return larkUserActiveInviteRelatoinMapper.selectLarkUserActiveInviteRelatoinList(larkUserActiveInviteRelatoin);
}
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
@Override
public int insertLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) {
larkUserActiveInviteRelatoin.setCreateTime(DateUtils.getNowDate());
return larkUserActiveInviteRelatoinMapper.insertLarkUserActiveInviteRelatoin(larkUserActiveInviteRelatoin);
}
/**
*
*
* @param larkUserActiveInviteRelatoin
* @return
*/
@Override
public int updateLarkUserActiveInviteRelatoin(LarkUserActiveInviteRelatoin larkUserActiveInviteRelatoin) {
larkUserActiveInviteRelatoin.setUpdateTime(DateUtils.getNowDate());
return larkUserActiveInviteRelatoinMapper.updateLarkUserActiveInviteRelatoin(larkUserActiveInviteRelatoin);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteLarkUserActiveInviteRelatoinByIds(Long[] ids) {
return larkUserActiveInviteRelatoinMapper.deleteLarkUserActiveInviteRelatoinByIds(ids);
}
/**
*
*
* @param id ID
* @return
*/
@Override
public int deleteLarkUserActiveInviteRelatoinById(Long id) {
return larkUserActiveInviteRelatoinMapper.deleteLarkUserActiveInviteRelatoinById(id);
}
}

@ -0,0 +1,90 @@
package com.ruoyi.flyingbook.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin;
import com.ruoyi.flyingbook.mapper.LarkUserActiveRelatoinMapper;
import com.ruoyi.flyingbook.service.ILarkUserActiveRelatoinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author ruoyi
* @date 2023-08-16
*/
@Service
public class LarkUserActiveRelatoinServiceImpl implements ILarkUserActiveRelatoinService {
@Autowired
private LarkUserActiveRelatoinMapper larkUserActiveRelatoinMapper;
/**
*
*
* @param id ID
* @return
*/
@Override
public LarkUserActiveRelatoin selectLarkUserActiveRelatoinById(Long id) {
return larkUserActiveRelatoinMapper.selectLarkUserActiveRelatoinById(id);
}
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
@Override
public List<LarkUserActiveRelatoin> selectLarkUserActiveRelatoinList(LarkUserActiveRelatoin larkUserActiveRelatoin) {
return larkUserActiveRelatoinMapper.selectLarkUserActiveRelatoinList(larkUserActiveRelatoin);
}
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
@Override
public int insertLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin) {
larkUserActiveRelatoin.setCreateTime(DateUtils.getNowDate());
return larkUserActiveRelatoinMapper.insertLarkUserActiveRelatoin(larkUserActiveRelatoin);
}
/**
*
*
* @param larkUserActiveRelatoin
* @return
*/
@Override
public int updateLarkUserActiveRelatoin(LarkUserActiveRelatoin larkUserActiveRelatoin) {
larkUserActiveRelatoin.setUpdateTime(DateUtils.getNowDate());
return larkUserActiveRelatoinMapper.updateLarkUserActiveRelatoin(larkUserActiveRelatoin);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteLarkUserActiveRelatoinByIds(Long[] ids) {
return larkUserActiveRelatoinMapper.deleteLarkUserActiveRelatoinByIds(ids);
}
/**
*
*
* @param id ID
* @return
*/
@Override
public int deleteLarkUserActiveRelatoinById(Long id) {
return larkUserActiveRelatoinMapper.deleteLarkUserActiveRelatoinById(id);
}
}

@ -0,0 +1,116 @@
<?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.ruoyi.flyingbook.mapper.LarkActiveMapper">
<resultMap type="com.ruoyi.flyingbook.domain.LarkActive" id="LarkActiveResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="companyName" column="company_name" />
<result property="activeName" column="active_name" />
<result property="activeDesc" column="active_desc" />
<result property="activeContent" column="active_content" />
<result property="activeImageUrl" column="active_image_url" />
<result property="activeType" column="active_type" />
<result property="activeScore" column="active_score" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="flag" column="flag" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectLarkActiveVo">
select id, company_id, company_name, active_name, active_desc, active_content, active_image_url, active_type, active_score, create_by, create_time, update_by, update_time, flag, remark from lark_active
</sql>
<select id="selectLarkActiveList" parameterType="com.ruoyi.flyingbook.domain.LarkActive" resultMap="LarkActiveResult">
<include refid="selectLarkActiveVo"/>
<where>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="activeName != null and activeName != ''"> and active_name like concat('%', #{activeName}, '%')</if>
<if test="activeDesc != null and activeDesc != ''"> and active_desc = #{activeDesc}</if>
<if test="activeContent != null and activeContent != ''"> and active_content = #{activeContent}</if>
<if test="activeImageUrl != null and activeImageUrl != ''"> and active_image_url = #{activeImageUrl}</if>
<if test="activeType != null and activeType != ''"> and active_type = #{activeType}</if>
<if test="activeScore != null and activeScore != ''"> and active_score = #{activeScore}</if>
<if test="flag != null "> and flag = #{flag}</if>
</where>
</select>
<select id="selectLarkActiveById" parameterType="Long" resultMap="LarkActiveResult">
<include refid="selectLarkActiveVo"/>
where id = #{id}
</select>
<insert id="insertLarkActive" parameterType="com.ruoyi.flyingbook.domain.LarkActive" useGeneratedKeys="true" keyProperty="id">
insert into lark_active
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="companyId != null">company_id,</if>
<if test="companyName != null">company_name,</if>
<if test="activeName != null">active_name,</if>
<if test="activeDesc != null">active_desc,</if>
<if test="activeContent != null">active_content,</if>
<if test="activeImageUrl != null">active_image_url,</if>
<if test="activeType != null">active_type,</if>
<if test="activeScore != null">active_score,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="flag != null">flag,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="activeName != null">#{activeName},</if>
<if test="activeDesc != null">#{activeDesc},</if>
<if test="activeContent != null">#{activeContent},</if>
<if test="activeImageUrl != null">#{activeImageUrl},</if>
<if test="activeType != null">#{activeType},</if>
<if test="activeScore != null">#{activeScore},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="flag != null">#{flag},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateLarkActive" parameterType="com.ruoyi.flyingbook.domain.LarkActive">
update lark_active
<trim prefix="SET" suffixOverrides=",">
<if test="companyId != null">company_id = #{companyId},</if>
<if test="companyName != null">company_name = #{companyName},</if>
<if test="activeName != null">active_name = #{activeName},</if>
<if test="activeDesc != null">active_desc = #{activeDesc},</if>
<if test="activeContent != null">active_content = #{activeContent},</if>
<if test="activeImageUrl != null">active_image_url = #{activeImageUrl},</if>
<if test="activeType != null">active_type = #{activeType},</if>
<if test="activeScore != null">active_score = #{activeScore},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="flag != null">flag = #{flag},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLarkActiveById" parameterType="Long">
delete from lark_active where id = #{id}
</delete>
<delete id="deleteLarkActiveByIds" parameterType="String">
delete from lark_active where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,101 @@
<?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.ruoyi.flyingbook.mapper.LarkUserActiveInviteRelatoinMapper">
<resultMap type="com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin" id="LarkUserActiveInviteRelatoinResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="companyName" column="company_name" />
<result property="userName" column="user_name" />
<result property="inviteUserName" column="invite_user_name" />
<result property="inviteStage" column="invite_stage" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="flag" column="flag" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectLarkUserActiveInviteRelatoinVo">
select id, company_id, company_name, user_name, invite_user_name, invite_stage, create_by, create_time, update_by, update_time, flag, remark from lark_user_active_invite_relatoin
</sql>
<select id="selectLarkUserActiveInviteRelatoinList" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin" resultMap="LarkUserActiveInviteRelatoinResult">
<include refid="selectLarkUserActiveInviteRelatoinVo"/>
<where>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="inviteUserName != null and inviteUserName != ''"> and invite_user_name like concat('%', #{inviteUserName}, '%')</if>
<if test="inviteStage != null and inviteStage != ''"> and invite_stage = #{inviteStage}</if>
<if test="flag != null "> and flag = #{flag}</if>
</where>
</select>
<select id="selectLarkUserActiveInviteRelatoinById" parameterType="Long" resultMap="LarkUserActiveInviteRelatoinResult">
<include refid="selectLarkUserActiveInviteRelatoinVo"/>
where id = #{id}
</select>
<insert id="insertLarkUserActiveInviteRelatoin" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin" useGeneratedKeys="true" keyProperty="id">
insert into lark_user_active_invite_relatoin
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="companyId != null">company_id,</if>
<if test="companyName != null">company_name,</if>
<if test="userName != null">user_name,</if>
<if test="inviteUserName != null">invite_user_name,</if>
<if test="inviteStage != null">invite_stage,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="flag != null">flag,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="userName != null">#{userName},</if>
<if test="inviteUserName != null">#{inviteUserName},</if>
<if test="inviteStage != null">#{inviteStage},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="flag != null">#{flag},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateLarkUserActiveInviteRelatoin" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveInviteRelatoin">
update lark_user_active_invite_relatoin
<trim prefix="SET" suffixOverrides=",">
<if test="companyId != null">company_id = #{companyId},</if>
<if test="companyName != null">company_name = #{companyName},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="inviteUserName != null">invite_user_name = #{inviteUserName},</if>
<if test="inviteStage != null">invite_stage = #{inviteStage},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="flag != null">flag = #{flag},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLarkUserActiveInviteRelatoinById" parameterType="Long">
delete from lark_user_active_invite_relatoin where id = #{id}
</delete>
<delete id="deleteLarkUserActiveInviteRelatoinByIds" parameterType="String">
delete from lark_user_active_invite_relatoin where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,101 @@
<?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.ruoyi.flyingbook.mapper.LarkUserActiveRelatoinMapper">
<resultMap type="com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin" id="LarkUserActiveRelatoinResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="companyName" column="company_name" />
<result property="userName" column="user_name" />
<result property="activeId" column="active_id" />
<result property="activeStage" column="active_stage" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="flag" column="flag" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectLarkUserActiveRelatoinVo">
select id, company_id, company_name, user_name, active_id, active_stage, create_by, create_time, update_by, update_time, flag, remark from lark_user_active_relatoin
</sql>
<select id="selectLarkUserActiveRelatoinList" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin" resultMap="LarkUserActiveRelatoinResult">
<include refid="selectLarkUserActiveRelatoinVo"/>
<where>
<if test="companyId != null "> and company_id = #{companyId}</if>
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="activeId != null "> and active_id = #{activeId}</if>
<if test="activeStage != null and activeStage != ''"> and active_stage = #{activeStage}</if>
<if test="flag != null "> and flag = #{flag}</if>
</where>
</select>
<select id="selectLarkUserActiveRelatoinById" parameterType="Long" resultMap="LarkUserActiveRelatoinResult">
<include refid="selectLarkUserActiveRelatoinVo"/>
where id = #{id}
</select>
<insert id="insertLarkUserActiveRelatoin" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin" useGeneratedKeys="true" keyProperty="id">
insert into lark_user_active_relatoin
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="companyId != null">company_id,</if>
<if test="companyName != null">company_name,</if>
<if test="userName != null">user_name,</if>
<if test="activeId != null">active_id,</if>
<if test="activeStage != null">active_stage,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="flag != null">flag,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="companyId != null">#{companyId},</if>
<if test="companyName != null">#{companyName},</if>
<if test="userName != null">#{userName},</if>
<if test="activeId != null">#{activeId},</if>
<if test="activeStage != null">#{activeStage},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="flag != null">#{flag},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateLarkUserActiveRelatoin" parameterType="com.ruoyi.flyingbook.domain.LarkUserActiveRelatoin">
update lark_user_active_relatoin
<trim prefix="SET" suffixOverrides=",">
<if test="companyId != null">company_id = #{companyId},</if>
<if test="companyName != null">company_name = #{companyName},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="activeId != null">active_id = #{activeId},</if>
<if test="activeStage != null">active_stage = #{activeStage},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="flag != null">flag = #{flag},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLarkUserActiveRelatoinById" parameterType="Long">
delete from lark_user_active_relatoin where id = #{id}
</delete>
<delete id="deleteLarkUserActiveRelatoinByIds" parameterType="String">
delete from lark_user_active_relatoin where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save