From 87fddda417e055246a091821a548973afc83c187 Mon Sep 17 00:00:00 2001 From: YXY <932687738@qq.com> Date: Wed, 16 Aug 2023 15:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A3=9E=E4=B9=A6?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=8E=A5=E5=8F=A3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/flyingbook/domain/LarkActive.java | 63 ++++++++++ .../domain/LarkUserActiveInviteRelatoin.java | 48 ++++++++ .../domain/LarkUserActiveRelatoin.java | 47 +++++++ .../flyingbook/mapper/LarkActiveMapper.java | 61 +++++++++ .../LarkUserActiveInviteRelatoinMapper.java | 61 +++++++++ .../mapper/LarkUserActiveRelatoinMapper.java | 61 +++++++++ .../service/ILarkActiveService.java | 62 ++++++++++ .../ILarkUserActiveInviteRelatoinService.java | 61 +++++++++ .../ILarkUserActiveRelatoinService.java | 61 +++++++++ .../service/impl/LarkActiveServiceImpl.java | 90 ++++++++++++++ ...rkUserActiveInviteRelatoinServiceImpl.java | 90 ++++++++++++++ .../LarkUserActiveRelatoinServiceImpl.java | 90 ++++++++++++++ .../resources/mapper/LarkActiveMapper.xml | 116 ++++++++++++++++++ .../LarkUserActiveInviteRelatoinMapper.xml | 101 +++++++++++++++ .../mapper/LarkUserActiveRelatoinMapper.xml | 101 +++++++++++++++ 15 files changed, 1113 insertions(+) create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkActive.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveInviteRelatoin.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveRelatoin.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkActiveMapper.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveInviteRelatoinMapper.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveRelatoinMapper.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkActiveService.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveInviteRelatoinService.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveRelatoinService.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkActiveServiceImpl.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveInviteRelatoinServiceImpl.java create mode 100644 ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveRelatoinServiceImpl.java create mode 100644 ruoyi-flyingbook/src/main/resources/mapper/LarkActiveMapper.xml create mode 100644 ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveInviteRelatoinMapper.xml create mode 100644 ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveRelatoinMapper.xml diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkActive.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkActive.java new file mode 100644 index 0000000..6be9b53 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkActive.java @@ -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; + +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveInviteRelatoin.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveInviteRelatoin.java new file mode 100644 index 0000000..0bae263 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveInviteRelatoin.java @@ -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; + +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveRelatoin.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveRelatoin.java new file mode 100644 index 0000000..d68dc2b --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/domain/LarkUserActiveRelatoin.java @@ -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; +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkActiveMapper.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkActiveMapper.java new file mode 100644 index 0000000..7cbe1a2 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkActiveMapper.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveInviteRelatoinMapper.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveInviteRelatoinMapper.java new file mode 100644 index 0000000..02a4d46 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveInviteRelatoinMapper.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveRelatoinMapper.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveRelatoinMapper.java new file mode 100644 index 0000000..fc4e8fd --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/mapper/LarkUserActiveRelatoinMapper.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkActiveService.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkActiveService.java new file mode 100644 index 0000000..473e316 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkActiveService.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveInviteRelatoinService.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveInviteRelatoinService.java new file mode 100644 index 0000000..8f54559 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveInviteRelatoinService.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveRelatoinService.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveRelatoinService.java new file mode 100644 index 0000000..9b53e21 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/ILarkUserActiveRelatoinService.java @@ -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 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); +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkActiveServiceImpl.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkActiveServiceImpl.java new file mode 100644 index 0000000..96ec27d --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkActiveServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveInviteRelatoinServiceImpl.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveInviteRelatoinServiceImpl.java new file mode 100644 index 0000000..2e9d732 --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveInviteRelatoinServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveRelatoinServiceImpl.java b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveRelatoinServiceImpl.java new file mode 100644 index 0000000..9671a9b --- /dev/null +++ b/ruoyi-flyingbook/src/main/java/com/ruoyi/flyingbook/service/impl/LarkUserActiveRelatoinServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-flyingbook/src/main/resources/mapper/LarkActiveMapper.xml b/ruoyi-flyingbook/src/main/resources/mapper/LarkActiveMapper.xml new file mode 100644 index 0000000..a185cb7 --- /dev/null +++ b/ruoyi-flyingbook/src/main/resources/mapper/LarkActiveMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into lark_active + + 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, + + + #{companyId}, + #{companyName}, + #{activeName}, + #{activeDesc}, + #{activeContent}, + #{activeImageUrl}, + #{activeType}, + #{activeScore}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{flag}, + #{remark}, + + + + + update lark_active + + company_id = #{companyId}, + company_name = #{companyName}, + active_name = #{activeName}, + active_desc = #{activeDesc}, + active_content = #{activeContent}, + active_image_url = #{activeImageUrl}, + active_type = #{activeType}, + active_score = #{activeScore}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + flag = #{flag}, + remark = #{remark}, + + where id = #{id} + + + + delete from lark_active where id = #{id} + + + + delete from lark_active where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveInviteRelatoinMapper.xml b/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveInviteRelatoinMapper.xml new file mode 100644 index 0000000..2ccc757 --- /dev/null +++ b/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveInviteRelatoinMapper.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into lark_user_active_invite_relatoin + + company_id, + company_name, + user_name, + invite_user_name, + invite_stage, + create_by, + create_time, + update_by, + update_time, + flag, + remark, + + + #{companyId}, + #{companyName}, + #{userName}, + #{inviteUserName}, + #{inviteStage}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{flag}, + #{remark}, + + + + + update lark_user_active_invite_relatoin + + company_id = #{companyId}, + company_name = #{companyName}, + user_name = #{userName}, + invite_user_name = #{inviteUserName}, + invite_stage = #{inviteStage}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + flag = #{flag}, + remark = #{remark}, + + where id = #{id} + + + + delete from lark_user_active_invite_relatoin where id = #{id} + + + + delete from lark_user_active_invite_relatoin where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveRelatoinMapper.xml b/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveRelatoinMapper.xml new file mode 100644 index 0000000..58e6c43 --- /dev/null +++ b/ruoyi-flyingbook/src/main/resources/mapper/LarkUserActiveRelatoinMapper.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into lark_user_active_relatoin + + company_id, + company_name, + user_name, + active_id, + active_stage, + create_by, + create_time, + update_by, + update_time, + flag, + remark, + + + #{companyId}, + #{companyName}, + #{userName}, + #{activeId}, + #{activeStage}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{flag}, + #{remark}, + + + + + update lark_user_active_relatoin + + company_id = #{companyId}, + company_name = #{companyName}, + user_name = #{userName}, + active_id = #{activeId}, + active_stage = #{activeStage}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + flag = #{flag}, + remark = #{remark}, + + where id = #{id} + + + + delete from lark_user_active_relatoin where id = #{id} + + + + delete from lark_user_active_relatoin where id in + + #{id} + + + \ No newline at end of file