commit
d248f40301
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.common.enums;
|
||||
|
||||
/**
|
||||
* 用户状态
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public enum AppType {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
APPROVAL("APPROVAL", "多维表格");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
|
||||
AppType(String code, String info) {
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.common.enums;
|
||||
|
||||
/**
|
||||
* @author ruoyi
|
||||
*/
|
||||
public enum TableDetailRelationTypeEnum {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
ROW("ROW", "行"),
|
||||
COL("COL", "列");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
|
||||
TableDetailRelationTypeEnum(String code, String info) {
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.ruoyi.flyingbook.LarkHelper;
|
||||
|
||||
/**
|
||||
* @author yuxiangyong
|
||||
* @create 2023-03-14 21:24
|
||||
*/
|
||||
public class MultidimensionalTableParamHelper {
|
||||
|
||||
public static Object analyseParam(String param,Integer type){
|
||||
Object result = null;
|
||||
switch (type){
|
||||
case 1:
|
||||
//多行文本
|
||||
break;
|
||||
case 2:
|
||||
//数字
|
||||
break;
|
||||
case 3:
|
||||
//单选
|
||||
break;
|
||||
case 4:
|
||||
//多选
|
||||
break;
|
||||
case 5:
|
||||
//日期
|
||||
break;
|
||||
case 7:
|
||||
//复选框
|
||||
break;
|
||||
case 11:
|
||||
//人员
|
||||
break;
|
||||
case 13:
|
||||
//电话号码
|
||||
break;
|
||||
case 15:
|
||||
//超链接
|
||||
break;
|
||||
case 17:
|
||||
//附件
|
||||
break;
|
||||
case 18:
|
||||
//单向关联
|
||||
break;
|
||||
case 19:
|
||||
//查找引用
|
||||
break;
|
||||
case 20:
|
||||
//公式
|
||||
break;
|
||||
case 21:
|
||||
//双向关联
|
||||
break;
|
||||
case 22:
|
||||
//地理位置
|
||||
break;
|
||||
case 1001:
|
||||
//创建时间
|
||||
break;
|
||||
case 1002:
|
||||
//最后更新时间
|
||||
break;
|
||||
case 1003:
|
||||
//创建人
|
||||
break;
|
||||
case 1004:
|
||||
//修改人
|
||||
break;
|
||||
case 1005:
|
||||
//自动编号
|
||||
break;
|
||||
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,140 @@
|
||||
package com.ruoyi.flyingbook.domain;
|
||||
|
||||
import com.ruoyi.common.enums.FlagStatus;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】对象 lark_table_row_relation
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-03-15
|
||||
*/
|
||||
public class LarkTableRowRelation extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
public LarkTableRowRelation() {
|
||||
}
|
||||
|
||||
public LarkTableRowRelation(Long tableRelationId, String fromId, String toId, String type, String subType) {
|
||||
this.tableRelationId = tableRelationId;
|
||||
this.fromId = fromId;
|
||||
this.toId = toId;
|
||||
this.type = type;
|
||||
this.subType = subType;
|
||||
this.flag = FlagStatus.OK.getCode();
|
||||
}
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** id */
|
||||
@Excel(name = "id")
|
||||
private Long tableRelationId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "id")
|
||||
private String fromId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "id")
|
||||
private String toId;
|
||||
|
||||
/** */
|
||||
@Excel(name = " ")
|
||||
private String type;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = " ")
|
||||
private String subType;
|
||||
|
||||
/** 01 */
|
||||
@Excel(name = "01")
|
||||
private Long flag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTableRelationId(Long tableRelationId)
|
||||
{
|
||||
this.tableRelationId = tableRelationId;
|
||||
}
|
||||
|
||||
public Long getTableRelationId()
|
||||
{
|
||||
return tableRelationId;
|
||||
}
|
||||
public void setFromId(String fromId)
|
||||
{
|
||||
this.fromId = fromId;
|
||||
}
|
||||
|
||||
public String getFromId()
|
||||
{
|
||||
return fromId;
|
||||
}
|
||||
public void setToId(String toId)
|
||||
{
|
||||
this.toId = toId;
|
||||
}
|
||||
|
||||
public String getToId()
|
||||
{
|
||||
return toId;
|
||||
}
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setSubType(String subType)
|
||||
{
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
public String getSubType()
|
||||
{
|
||||
return subType;
|
||||
}
|
||||
public void setFlag(Long flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
public Long getFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("tableRelationId", getTableRelationId())
|
||||
.append("fromId", getFromId())
|
||||
.append("toId", getToId())
|
||||
.append("type", getType())
|
||||
.append("subType", getSubType())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("flag", getFlag())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.ruoyi.flyingbook.mapper;
|
||||
|
||||
|
||||
import com.ruoyi.flyingbook.domain.LarkTableRowRelation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-03-15
|
||||
*/
|
||||
public interface LarkTableRowRelationMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public LarkTableRowRelation selectLarkTableRowRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<LarkTableRowRelation> selectLarkTableRowRelationList(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLarkTableRowRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLarkTableRowRelationByIds(Long[] ids);
|
||||
|
||||
public List<LarkTableRowRelation> queryListByTableRelationIdList(@Param("tableRelationIdList") List<Long> tableRelationIdList);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.ruoyi.flyingbook.service;
|
||||
|
||||
|
||||
import com.ruoyi.flyingbook.domain.LarkTableRowRelation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-03-15
|
||||
*/
|
||||
public interface ILarkTableRowRelationService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public LarkTableRowRelation selectLarkTableRowRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<LarkTableRowRelation> selectLarkTableRowRelationList(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLarkTableRowRelationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteLarkTableRowRelationById(Long id);
|
||||
|
||||
public List<LarkTableRowRelation> queryListByTableRelationIdList(List<Long> tableRelationIdList);
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.ruoyi.flyingbook.service.impl;
|
||||
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.flyingbook.domain.LarkTableRowRelation;
|
||||
import com.ruoyi.flyingbook.mapper.LarkTableRowRelationMapper;
|
||||
import com.ruoyi.flyingbook.service.ILarkTableRowRelationService;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-03-15
|
||||
*/
|
||||
@Service
|
||||
public class LarkTableRowRelationServiceImpl implements ILarkTableRowRelationService
|
||||
{
|
||||
@Autowired
|
||||
private LarkTableRowRelationMapper larkTableRowRelationMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public LarkTableRowRelation selectLarkTableRowRelationById(Long id)
|
||||
{
|
||||
return larkTableRowRelationMapper.selectLarkTableRowRelationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<LarkTableRowRelation> selectLarkTableRowRelationList(LarkTableRowRelation larkTableRowRelation)
|
||||
{
|
||||
return larkTableRowRelationMapper.selectLarkTableRowRelationList(larkTableRowRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation)
|
||||
{
|
||||
larkTableRowRelation.setCreateTime(DateUtils.getNowDate());
|
||||
return larkTableRowRelationMapper.insertLarkTableRowRelation(larkTableRowRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param larkTableRowRelation 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateLarkTableRowRelation(LarkTableRowRelation larkTableRowRelation)
|
||||
{
|
||||
larkTableRowRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return larkTableRowRelationMapper.updateLarkTableRowRelation(larkTableRowRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteLarkTableRowRelationByIds(Long[] ids)
|
||||
{
|
||||
return larkTableRowRelationMapper.deleteLarkTableRowRelationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteLarkTableRowRelationById(Long id)
|
||||
{
|
||||
return larkTableRowRelationMapper.deleteLarkTableRowRelationById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<LarkTableRowRelation> queryListByTableRelationIdList(List<Long> tableRelationIdList) {
|
||||
if (CollectionUtils.isEmpty(tableRelationIdList)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return larkTableRowRelationMapper.queryListByTableRelationIdList(tableRelationIdList);
|
||||
}
|
||||
}
|
@ -1,110 +1,105 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.flyingbook.mapper.EventMapper">
|
||||
|
||||
<resultMap type="Event" id="EventResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="event_code" column="eventCode"/>
|
||||
<result property="message" column="message"/>
|
||||
<result property="numbers" column="numbers"/>
|
||||
<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 type="com.ruoyi.flyingbook.domain.Event" id="EventResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="appToken" column="app_token" />
|
||||
<result property="tableId" column="table_id" />
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="numbers" column="numbers" />
|
||||
<result property="operateStatus" column="operate_status" />
|
||||
<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="selectEventVo">
|
||||
select id,
|
||||
event_code,
|
||||
message,
|
||||
numbers,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
flag,
|
||||
remark
|
||||
from event
|
||||
select id, app_token, table_id, record_id, numbers, operate_status, create_by, create_time, update_by, update_time, flag, remark from event
|
||||
</sql>
|
||||
|
||||
<select id="selectEventList" parameterType="Event" resultMap="EventResult">
|
||||
<select id="selectEventList" parameterType="com.ruoyi.flyingbook.domain.Event" resultMap="EventResult">
|
||||
<include refid="selectEventVo"/>
|
||||
<where>
|
||||
<if test="message != null and message != ''">and message = #{message}</if>
|
||||
<if test="flag != null and flag != ''">and flag = #{flag}</if>
|
||||
<where>
|
||||
<if test="appToken != null and appToken != ''"> and app_token = #{appToken}</if>
|
||||
<if test="tableId != null and tableId != ''"> and table_id = #{tableId}</if>
|
||||
<if test="recordId != null and recordId != ''"> and record_id = #{recordId}</if>
|
||||
<if test="numbers != null "> and numbers = #{numbers}</if>
|
||||
<if test="operateStatus != null and operateStatus != ''"> and operate_status = #{operateStatus}</if>
|
||||
<if test="flag != null "> and flag = #{flag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEventById" parameterType="Long" resultMap="EventResult">
|
||||
<include refid="selectEventVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEvent" parameterType="Event" useGeneratedKeys="true" keyProperty="id">
|
||||
|
||||
<insert id="insertEvent" parameterType="com.ruoyi.flyingbook.domain.Event" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into event
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="eventCode != null">event_code,</if>
|
||||
<if test="message != null">message,</if>
|
||||
<if test="appToken != null">app_token,</if>
|
||||
<if test="tableId != null">table_id,</if>
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="numbers != null">numbers,</if>
|
||||
<if test="operateStatus != null">operate_status,</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 and flag != ''">flag,</if>
|
||||
<if test="flag != null">flag,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="eventCode != null">#{event_code},</if>
|
||||
<if test="message != null">#{message},</if>
|
||||
<if test="appToken != null">#{appToken},</if>
|
||||
<if test="tableId != null">#{tableId},</if>
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="numbers != null">#{numbers},</if>
|
||||
<if test="operateStatus != null">#{operateStatus},</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 and flag != ''">#{flag},</if>
|
||||
<if test="flag != null">#{flag},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEvent" parameterType="Event">
|
||||
<update id="updateEvent" parameterType="com.ruoyi.flyingbook.domain.Event">
|
||||
update event
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="eventCode != null and eventCode != ''">message = #{event_code},</if>
|
||||
<if test="message != null and message != ''">message = #{message},</if>
|
||||
<if test="numbers != null">message = #{numbers},</if>
|
||||
<if test="appToken != null">app_token = #{appToken},</if>
|
||||
<if test="tableId != null">table_id = #{tableId},</if>
|
||||
<if test="recordId != null">record_id = #{recordId},</if>
|
||||
<if test="numbers != null">numbers = #{numbers},</if>
|
||||
<if test="operateStatus != null">operate_status = #{operateStatus},</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 and flag != ''">flag = #{flag},</if>
|
||||
<if test="flag != null">flag = #{flag},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEventById" parameterType="Long">
|
||||
delete
|
||||
from event
|
||||
where id = #{id}
|
||||
delete from event where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEventByIds" parameterType="String">
|
||||
delete from event where id in
|
||||
delete from event where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryListOperate" resultMap="EventResult">
|
||||
<include refid="selectEventVo"/>
|
||||
where 3 > numbers
|
||||
and flag in
|
||||
<foreach collection="statusList" item="status" open="(" close=")" separator=",">
|
||||
#{status}
|
||||
</foreach>
|
||||
</select>
|
||||
<update id="updateStatus" parameterType="com.ruoyi.flyingbook.domain.Event">
|
||||
update event set operate_status = #{status} where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,125 @@
|
||||
<?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.LarkTableRowRelationMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.flyingbook.domain.LarkTableRowRelation" id="LarkTableRowRelationResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="tableRelationId" column="table_relation_id"/>
|
||||
<result property="fromId" column="from_id"/>
|
||||
<result property="toId" column="to_id"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="subType" column="sub_type"/>
|
||||
<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="selectLarkTableRowRelationVo">
|
||||
select id,
|
||||
table_relation_id,
|
||||
from_id,
|
||||
to_id,
|
||||
type,
|
||||
sub_type,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time,
|
||||
flag,
|
||||
remark
|
||||
from lark_table_row_relation
|
||||
</sql>
|
||||
|
||||
<select id="selectLarkTableRowRelationList" parameterType="com.ruoyi.flyingbook.domain.LarkTableRowRelation"
|
||||
resultMap="LarkTableRowRelationResult">
|
||||
<include refid="selectLarkTableRowRelationVo"/>
|
||||
<where>
|
||||
<if test="tableRelationId != null ">and table_relation_id = #{tableRelationId}</if>
|
||||
<if test="fromId != null and fromId != ''">and from_id = #{fromId}</if>
|
||||
<if test="toId != null and toId != ''">and to_id = #{toId}</if>
|
||||
<if test="type != null and type != ''">and type = #{type}</if>
|
||||
<if test="subType != null and subType != ''">and sub_type = #{subType}</if>
|
||||
<if test="flag != null ">and flag = #{flag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectLarkTableRowRelationById" parameterType="Long" resultMap="LarkTableRowRelationResult">
|
||||
<include refid="selectLarkTableRowRelationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertLarkTableRowRelation" parameterType="com.ruoyi.flyingbook.domain.LarkTableRowRelation"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into lark_table_row_relation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="tableRelationId != null">table_relation_id,</if>
|
||||
<if test="fromId != null">from_id,</if>
|
||||
<if test="toId != null">to_id,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="subType != null">sub_type,</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="tableRelationId != null">#{tableRelationId},</if>
|
||||
<if test="fromId != null">#{fromId},</if>
|
||||
<if test="toId != null">#{toId},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="subType != null">#{subType},</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="updateLarkTableRowRelation" parameterType="com.ruoyi.flyingbook.domain.LarkTableRowRelation">
|
||||
update lark_table_row_relation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="tableRelationId != null">table_relation_id = #{tableRelationId},</if>
|
||||
<if test="fromId != null">from_id = #{fromId},</if>
|
||||
<if test="toId != null">to_id = #{toId},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="subType != null">sub_type = #{subType},</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="deleteLarkTableRowRelationById" parameterType="Long">
|
||||
delete
|
||||
from lark_table_row_relation
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteLarkTableRowRelationByIds" parameterType="String">
|
||||
delete from lark_table_row_relation where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryListByTableRelationIdList" parameterType="Long" resultMap="LarkTableRowRelationResult">
|
||||
<include refid="selectLarkTableRowRelationVo"/>
|
||||
where table_relation_id in
|
||||
<foreach collection="tableRelationIdList" item="tableRelationId" separator="," open="(" close=")">
|
||||
#{tableRelationId}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
@ -1,11 +0,0 @@
|
||||
package com.ruoyi.system.domain;
|
||||
|
||||
import com.ruoyi.common.base.LarkRequest;
|
||||
|
||||
/**
|
||||
* @author yuxiangyong
|
||||
* @create 2023-03-12 16:00
|
||||
*/
|
||||
public class LarkCallbackRequest extends LarkRequest {
|
||||
|
||||
}
|
Loading…
Reference in new issue