模式改造,弹窗资源模块,组合模块,服务内容模块开发
parent
67500d3f6e
commit
3b3afc545c
@ -0,0 +1,106 @@
|
||||
package com.flossom.common.core.domain.entity;
|
||||
|
||||
import com.flossom.common.core.annotation.Excel;
|
||||
import com.flossom.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模式组合对象 wx_mode_combine_info
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public class WxModeCombineInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 关联模式ID */
|
||||
@Excel(name = "关联模式ID")
|
||||
private Long modeId;
|
||||
|
||||
/** 组合时间 */
|
||||
@Excel(name = "组合时间")
|
||||
private Integer combine;
|
||||
|
||||
/** 使用技术ID */
|
||||
@Excel(name = "使用技术ID")
|
||||
private String technologyInfo;
|
||||
|
||||
/** 功效内容 */
|
||||
@Excel(name = "功效内容")
|
||||
private String effectContent;
|
||||
|
||||
private List<String> technologyArray;
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setModeId(Long modeId)
|
||||
{
|
||||
this.modeId = modeId;
|
||||
}
|
||||
|
||||
public Long getModeId()
|
||||
{
|
||||
return modeId;
|
||||
}
|
||||
public void setCombine(Integer combine)
|
||||
{
|
||||
this.combine = combine;
|
||||
}
|
||||
|
||||
public Integer getCombine()
|
||||
{
|
||||
return combine;
|
||||
}
|
||||
public void setTechnologyInfo(String technologyInfo)
|
||||
{
|
||||
this.technologyInfo = technologyInfo;
|
||||
}
|
||||
|
||||
public String getTechnologyInfo()
|
||||
{
|
||||
return technologyInfo;
|
||||
}
|
||||
public void setEffectContent(String effectContent)
|
||||
{
|
||||
this.effectContent = effectContent;
|
||||
}
|
||||
|
||||
public String getEffectContent()
|
||||
{
|
||||
return effectContent;
|
||||
}
|
||||
|
||||
public List<String> getTechnologyArray() {
|
||||
return technologyArray;
|
||||
}
|
||||
|
||||
public void setTechnologyArray(List<String> technologyArray) {
|
||||
this.technologyArray = technologyArray;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("modeId", getModeId())
|
||||
.append("combine", getCombine())
|
||||
.append("technologyInfo", getTechnologyInfo())
|
||||
.append("effectContent", getEffectContent())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
package com.flossom.common.core.domain.entity;
|
||||
|
||||
import com.flossom.common.core.annotation.Excel;
|
||||
import com.flossom.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* IOT仪器弹出视频对象 wx_mode_open_source
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-01-29
|
||||
*/
|
||||
public class WxModeOpenSource extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long modeId;
|
||||
|
||||
|
||||
/** 弹出标题 */
|
||||
@Excel(name = "弹出标题")
|
||||
private String openTitle;
|
||||
|
||||
/** 弹出媒体URL */
|
||||
@Excel(name = "弹出媒体URL")
|
||||
private String openSourceUrl;
|
||||
|
||||
/** 文件名字 */
|
||||
@Excel(name = "文件名字")
|
||||
private String openSourceName;
|
||||
|
||||
/** 文件后缀 */
|
||||
@Excel(name = "文件后缀")
|
||||
private String openSourceSuffix;
|
||||
|
||||
/** 提示内容 */
|
||||
@Excel(name = "提示内容")
|
||||
private String openContent;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOpenTitle(String openTitle)
|
||||
{
|
||||
this.openTitle = openTitle;
|
||||
}
|
||||
|
||||
public String getOpenTitle()
|
||||
{
|
||||
return openTitle;
|
||||
}
|
||||
public void setOpenSourceUrl(String openSourceUrl)
|
||||
{
|
||||
this.openSourceUrl = openSourceUrl;
|
||||
}
|
||||
|
||||
public String getOpenSourceUrl()
|
||||
{
|
||||
return openSourceUrl;
|
||||
}
|
||||
public void setOpenSourceName(String openSourceName)
|
||||
{
|
||||
this.openSourceName = openSourceName;
|
||||
}
|
||||
|
||||
public String getOpenSourceName()
|
||||
{
|
||||
return openSourceName;
|
||||
}
|
||||
public void setOpenSourceSuffix(String openSourceSuffix)
|
||||
{
|
||||
this.openSourceSuffix = openSourceSuffix;
|
||||
}
|
||||
|
||||
public String getOpenSourceSuffix()
|
||||
{
|
||||
return openSourceSuffix;
|
||||
}
|
||||
public void setOpenContent(String openContent)
|
||||
{
|
||||
this.openContent = openContent;
|
||||
}
|
||||
|
||||
public String getOpenContent()
|
||||
{
|
||||
return openContent;
|
||||
}
|
||||
|
||||
public Long getModeId() {
|
||||
return modeId;
|
||||
}
|
||||
|
||||
public void setModeId(Long modeId) {
|
||||
this.modeId = modeId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("openTitle", getOpenTitle())
|
||||
.append("openSourceUrl", getOpenSourceUrl())
|
||||
.append("openSourceName", getOpenSourceName())
|
||||
.append("openSourceSuffix", getOpenSourceSuffix())
|
||||
.append("openContent", getOpenContent())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,124 @@
|
||||
package com.flossom.common.core.domain.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.flossom.common.core.annotation.Excel;
|
||||
import com.flossom.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 模式服务对象 wx_mode_service_info
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public class WxModeServiceInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 模式ID */
|
||||
private Long modeId;
|
||||
|
||||
/** 服务开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "服务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceStartTime;
|
||||
|
||||
/** 服务结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "服务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceEndTime;
|
||||
|
||||
/** 启动图片资源 */
|
||||
@Excel(name = "启动图片资源")
|
||||
private String startSource;
|
||||
|
||||
/** 暂停图片资源 */
|
||||
@Excel(name = "暂停图片资源")
|
||||
private String stopSource;
|
||||
|
||||
|
||||
// 上传的时间集合
|
||||
private List<Date> startTimeArray;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setServiceStartTime(Date serviceStartTime)
|
||||
{
|
||||
this.serviceStartTime = serviceStartTime;
|
||||
}
|
||||
|
||||
public Date getServiceStartTime()
|
||||
{
|
||||
return serviceStartTime;
|
||||
}
|
||||
public void setServiceEndTime(Date serviceEndTime)
|
||||
{
|
||||
this.serviceEndTime = serviceEndTime;
|
||||
}
|
||||
|
||||
public Date getServiceEndTime()
|
||||
{
|
||||
return serviceEndTime;
|
||||
}
|
||||
public void setStartSource(String startSource)
|
||||
{
|
||||
this.startSource = startSource;
|
||||
}
|
||||
|
||||
public String getStartSource()
|
||||
{
|
||||
return startSource;
|
||||
}
|
||||
public void setStopSource(String stopSource)
|
||||
{
|
||||
this.stopSource = stopSource;
|
||||
}
|
||||
|
||||
public String getStopSource()
|
||||
{
|
||||
return stopSource;
|
||||
}
|
||||
|
||||
public List<Date> getStartTimeArray() {
|
||||
return startTimeArray;
|
||||
}
|
||||
|
||||
public void setStartTimeArray(List<Date> startTimeArray) {
|
||||
this.startTimeArray = startTimeArray;
|
||||
}
|
||||
|
||||
public Long getModeId() {
|
||||
return modeId;
|
||||
}
|
||||
|
||||
public void setModeId(Long modeId) {
|
||||
this.modeId = modeId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("serviceStartTime", getServiceStartTime())
|
||||
.append("serviceEndTime", getServiceEndTime())
|
||||
.append("startSource", getStartSource())
|
||||
.append("stopSource", getStopSource())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.flossom.common.core.mapper;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeCombineInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模式组合Mapper接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public interface WxModeCombineInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询模式组合
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 模式组合
|
||||
*/
|
||||
public WxModeCombineInfo selectWxModeCombineInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模式组合列表
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 模式组合集合
|
||||
*/
|
||||
public List<WxModeCombineInfo> selectWxModeCombineInfoList(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 新增模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 修改模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 删除模式组合
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeCombineInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除模式组合
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeCombineInfoByIds(Long[] ids);
|
||||
/**
|
||||
* 删除模式组合
|
||||
*
|
||||
* @param modeId 模式组合主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeCombineInfoByModeId(Long modeId);
|
||||
}
|
||||
@ -0,0 +1,70 @@
|
||||
package com.flossom.common.core.mapper;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeOpenSource;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* IOT仪器弹出视频Mapper接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-01-29
|
||||
*/
|
||||
public interface WxModeOpenSourceMapper
|
||||
{
|
||||
/**
|
||||
* 查询IOT仪器弹出视频
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return IOT仪器弹出视频
|
||||
*/
|
||||
public WxModeOpenSource selectWxModeOpenSourceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询IOT仪器弹出视频列表
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return IOT仪器弹出视频集合
|
||||
*/
|
||||
public List<WxModeOpenSource> selectWxModeOpenSourceList(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 新增IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeOpenSource(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 修改IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeOpenSource(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 删除IOT仪器弹出视频
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeOpenSourceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除IOT仪器弹出视频
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeOpenSourceByIds(Long[] ids);
|
||||
/**
|
||||
* 删除IOT仪器弹出视频
|
||||
*
|
||||
* @param modeId 模式ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeOpenSourceByModeId(Long modeId);
|
||||
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.flossom.common.core.mapper;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeServiceInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模式服务Mapper接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public interface WxModeServiceInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询模式服务
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 模式服务
|
||||
*/
|
||||
public WxModeServiceInfo selectWxModeServiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模式服务列表
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 模式服务集合
|
||||
*/
|
||||
public List<WxModeServiceInfo> selectWxModeServiceInfoList(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 新增模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 修改模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 删除模式服务
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeServiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除模式服务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeServiceInfoByIds(Long[] ids);
|
||||
/**
|
||||
* 删除模式服务
|
||||
*
|
||||
* @param modeId 模式服务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeServiceInfoByModeId(Long modeId);
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
<?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.flossom.common.core.mapper.WxModeCombineInfoMapper">
|
||||
|
||||
<resultMap type="WxModeCombineInfo" id="WxModeCombineInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="modeId" column="mode_id" />
|
||||
<result property="combine" column="combine" />
|
||||
<result property="technologyInfo" column="technology_info" />
|
||||
<result property="effectContent" column="effect_content" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxModeCombineInfoVo">
|
||||
select id, mode_id, combine, technology_info, effect_content, create_time, create_by from wx_mode_combine_info
|
||||
</sql>
|
||||
|
||||
<select id="selectWxModeCombineInfoList" parameterType="WxModeCombineInfo" resultMap="WxModeCombineInfoResult">
|
||||
<include refid="selectWxModeCombineInfoVo"/>
|
||||
<where>
|
||||
<if test="modeId != null "> and mode_id = #{modeId}</if>
|
||||
<if test="combine != null "> and combine = #{combine}</if>
|
||||
<if test="technologyInfo != null and technologyInfo != ''"> and technology_info = #{technologyInfo}</if>
|
||||
<if test="effectContent != null and effectContent != ''"> and effect_content = #{effectContent}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxModeCombineInfoById" parameterType="Long" resultMap="WxModeCombineInfoResult">
|
||||
<include refid="selectWxModeCombineInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxModeCombineInfo" parameterType="WxModeCombineInfo">
|
||||
insert into wx_mode_combine_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="modeId != null">mode_id,</if>
|
||||
<if test="combine != null">combine,</if>
|
||||
<if test="technologyInfo != null">technology_info,</if>
|
||||
<if test="effectContent != null">effect_content,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="modeId != null">#{modeId},</if>
|
||||
<if test="combine != null">#{combine},</if>
|
||||
<if test="technologyInfo != null">#{technologyInfo},</if>
|
||||
<if test="effectContent != null">#{effectContent},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxModeCombineInfo" parameterType="WxModeCombineInfo">
|
||||
update wx_mode_combine_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id = #{modeId},</if>
|
||||
<if test="combine != null">combine = #{combine},</if>
|
||||
<if test="technologyInfo != null">technology_info = #{technologyInfo},</if>
|
||||
<if test="effectContent != null">effect_content = #{effectContent},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxModeCombineInfoById" parameterType="Long">
|
||||
delete from wx_mode_combine_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxModeCombineInfoByModeId" parameterType="Long">
|
||||
delete from wx_mode_combine_info where mode_id = #{modeId}
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteWxModeCombineInfoByIds" parameterType="String">
|
||||
delete from wx_mode_combine_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,94 @@
|
||||
<?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.flossom.common.core.mapper.WxModeOpenSourceMapper">
|
||||
|
||||
<resultMap type="WxModeOpenSource" id="WxModeOpenSourceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="modeId" column="mode_id" />
|
||||
<result property="openTitle" column="open_title" />
|
||||
<result property="openSourceUrl" column="open_source_url" />
|
||||
<result property="openSourceName" column="open_source_name" />
|
||||
<result property="openSourceSuffix" column="open_source_suffix" />
|
||||
<result property="openContent" column="open_content" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxModeOpenSourceVo">
|
||||
select id, mode_id,open_title, open_source_url, open_source_name, open_source_suffix, open_content, create_time, create_by from wx_mode_open_source
|
||||
</sql>
|
||||
|
||||
<select id="selectWxModeOpenSourceList" parameterType="WxModeOpenSource" resultMap="WxModeOpenSourceResult">
|
||||
<include refid="selectWxModeOpenSourceVo"/>
|
||||
<where>
|
||||
<if test="modeId != null and modeId != ''"> and mode_id = #{modeId}</if>
|
||||
<if test="openTitle != null and openTitle != ''"> and open_title = #{openTitle}</if>
|
||||
<if test="openSourceUrl != null and openSourceUrl != ''"> and open_source_url = #{openSourceUrl}</if>
|
||||
<if test="openSourceName != null and openSourceName != ''"> and open_source_name like concat('%', #{openSourceName}, '%')</if>
|
||||
<if test="openSourceSuffix != null and openSourceSuffix != ''"> and open_source_suffix = #{openSourceSuffix}</if>
|
||||
<if test="openContent != null and openContent != ''"> and open_content = #{openContent}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxModeOpenSourceById" parameterType="Long" resultMap="WxModeOpenSourceResult">
|
||||
<include refid="selectWxModeOpenSourceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxModeOpenSource" parameterType="WxModeOpenSource">
|
||||
insert into wx_mode_open_source
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="modeId != null">mode_id,</if>
|
||||
<if test="openTitle != null">open_title,</if>
|
||||
<if test="openSourceUrl != null">open_source_url,</if>
|
||||
<if test="openSourceName != null">open_source_name,</if>
|
||||
<if test="openSourceSuffix != null">open_source_suffix,</if>
|
||||
<if test="openContent != null">open_content,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="modeId != null">#{modeId},</if>
|
||||
<if test="openTitle != null">#{openTitle},</if>
|
||||
<if test="openSourceUrl != null">#{openSourceUrl},</if>
|
||||
<if test="openSourceName != null">#{openSourceName},</if>
|
||||
<if test="openSourceSuffix != null">#{openSourceSuffix},</if>
|
||||
<if test="openContent != null">#{openContent},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxModeOpenSource" parameterType="WxModeOpenSource">
|
||||
update wx_mode_open_source
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id = #{modeId},</if>
|
||||
<if test="openTitle != null">open_title = #{openTitle},</if>
|
||||
<if test="openSourceUrl != null">open_source_url = #{openSourceUrl},</if>
|
||||
<if test="openSourceName != null">open_source_name = #{openSourceName},</if>
|
||||
<if test="openSourceSuffix != null">open_source_suffix = #{openSourceSuffix},</if>
|
||||
<if test="openContent != null">open_content = #{openContent},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxModeOpenSourceById" parameterType="Long">
|
||||
delete from wx_mode_open_source where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxModeOpenSourceByModeId" parameterType="Long">
|
||||
delete from wx_mode_open_source where mode_id = #{modId}
|
||||
</delete>
|
||||
<delete id="deleteWxModeOpenSourceByIds" parameterType="String">
|
||||
delete from wx_mode_open_source where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,90 @@
|
||||
<?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.flossom.common.core.mapper.WxModeServiceInfoMapper">
|
||||
|
||||
<resultMap type="WxModeServiceInfo" id="WxModeServiceInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="modeId" column="mode_id" />
|
||||
<result property="serviceStartTime" column="service_start_time" />
|
||||
<result property="serviceEndTime" column="service_end_time" />
|
||||
<result property="startSource" column="start_source" />
|
||||
<result property="stopSource" column="stop_source" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxModeServiceInfoVo">
|
||||
select id,mode_id, service_start_time, service_end_time, start_source, stop_source, create_time, create_by from wx_mode_service_info
|
||||
</sql>
|
||||
|
||||
<select id="selectWxModeServiceInfoList" parameterType="WxModeServiceInfo" resultMap="WxModeServiceInfoResult">
|
||||
<include refid="selectWxModeServiceInfoVo"/>
|
||||
<where>
|
||||
<if test="modeId != null "> and mode_id = #{modeId}</if>
|
||||
<if test="serviceStartTime != null "> and service_start_time = #{serviceStartTime}</if>
|
||||
<if test="serviceEndTime != null "> and service_end_time = #{serviceEndTime}</if>
|
||||
<if test="startSource != null and startSource != ''"> and start_source = #{startSource}</if>
|
||||
<if test="stopSource != null and stopSource != ''"> and stop_source = #{stopSource}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxModeServiceInfoById" parameterType="Long" resultMap="WxModeServiceInfoResult">
|
||||
<include refid="selectWxModeServiceInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxModeServiceInfo" parameterType="WxModeServiceInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into wx_mode_service_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id,</if>
|
||||
<if test="serviceStartTime != null">service_start_time,</if>
|
||||
<if test="serviceEndTime != null">service_end_time,</if>
|
||||
<if test="startSource != null">start_source,</if>
|
||||
<if test="stopSource != null">stop_source,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="modeId != null">#{modeId},</if>
|
||||
<if test="serviceStartTime != null">#{serviceStartTime},</if>
|
||||
<if test="serviceEndTime != null">#{serviceEndTime},</if>
|
||||
<if test="startSource != null">#{startSource},</if>
|
||||
<if test="stopSource != null">#{stopSource},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxModeServiceInfo" parameterType="WxModeServiceInfo">
|
||||
update wx_mode_service_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id = #{modeId},</if>
|
||||
<if test="serviceStartTime != null">service_start_time = #{serviceStartTime},</if>
|
||||
<if test="serviceEndTime != null">service_end_time = #{serviceEndTime},</if>
|
||||
<if test="startSource != null">start_source = #{startSource},</if>
|
||||
<if test="stopSource != null">stop_source = #{stopSource},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxModeServiceInfoById" parameterType="Long">
|
||||
delete from wx_mode_service_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteWxModeServiceInfoByModeId" parameterType="Long">
|
||||
delete from wx_mode_service_info where mode_id = #{modeId}
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteWxModeServiceInfoByIds" parameterType="String">
|
||||
delete from wx_mode_service_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,106 @@
|
||||
package com.flossom.system.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeOpenSource;
|
||||
import com.flossom.common.core.utils.poi.ExcelUtil;
|
||||
import com.flossom.common.core.web.controller.BaseController;
|
||||
import com.flossom.common.core.web.domain.AjaxResult;
|
||||
import com.flossom.common.core.web.page.TableDataInfo;
|
||||
import com.flossom.common.log.annotation.Log;
|
||||
import com.flossom.common.log.enums.BusinessType;
|
||||
import com.flossom.common.security.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.flossom.system.service.IWxModeOpenSourceService;
|
||||
|
||||
/**
|
||||
* IOT仪器弹出视频Controller
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-01-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/modeOpenSource")
|
||||
public class WxModeOpenSourceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IWxModeOpenSourceService wxModeOpenSourceService;
|
||||
|
||||
/**
|
||||
* 查询IOT仪器弹出视频列表
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
startPage();
|
||||
List<WxModeOpenSource> list = wxModeOpenSourceService.selectWxModeOpenSourceList(wxModeOpenSource);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出IOT仪器弹出视频列表
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:export")
|
||||
@Log(title = "IOT仪器弹出视频", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
List<WxModeOpenSource> list = wxModeOpenSourceService.selectWxModeOpenSourceList(wxModeOpenSource);
|
||||
ExcelUtil<WxModeOpenSource> util = new ExcelUtil<WxModeOpenSource>(WxModeOpenSource.class);
|
||||
util.exportExcel(response, list, "IOT仪器弹出视频数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取IOT仪器弹出视频详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(wxModeOpenSourceService.selectWxModeOpenSourceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增IOT仪器弹出视频
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:add")
|
||||
@Log(title = "IOT仪器弹出视频", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
return toAjax(wxModeOpenSourceService.insertWxModeOpenSource(wxModeOpenSource));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改IOT仪器弹出视频
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:edit")
|
||||
@Log(title = "IOT仪器弹出视频", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
return toAjax(wxModeOpenSourceService.updateWxModeOpenSource(wxModeOpenSource));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除IOT仪器弹出视频
|
||||
*/
|
||||
@RequiresPermissions("system:modeOpenSource:remove")
|
||||
@Log(title = "IOT仪器弹出视频", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(wxModeOpenSourceService.deleteWxModeOpenSourceByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.flossom.system.service;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeCombineInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模式组合Service接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public interface IWxModeCombineInfoService
|
||||
{
|
||||
/**
|
||||
* 查询模式组合
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 模式组合
|
||||
*/
|
||||
public WxModeCombineInfo selectWxModeCombineInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模式组合列表
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 模式组合集合
|
||||
*/
|
||||
public List<WxModeCombineInfo> selectWxModeCombineInfoList(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 新增模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 修改模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo);
|
||||
|
||||
/**
|
||||
* 批量删除模式组合
|
||||
*
|
||||
* @param ids 需要删除的模式组合主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeCombineInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除模式组合信息
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeCombineInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.flossom.system.service;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeOpenSource;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* IOT仪器弹出视频Service接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-01-29
|
||||
*/
|
||||
public interface IWxModeOpenSourceService
|
||||
{
|
||||
/**
|
||||
* 查询IOT仪器弹出视频
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return IOT仪器弹出视频
|
||||
*/
|
||||
public WxModeOpenSource selectWxModeOpenSourceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询IOT仪器弹出视频列表
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return IOT仪器弹出视频集合
|
||||
*/
|
||||
public List<WxModeOpenSource> selectWxModeOpenSourceList(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 新增IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeOpenSource(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 修改IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeOpenSource(WxModeOpenSource wxModeOpenSource);
|
||||
|
||||
/**
|
||||
* 批量删除IOT仪器弹出视频
|
||||
*
|
||||
* @param ids 需要删除的IOT仪器弹出视频主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeOpenSourceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除IOT仪器弹出视频信息
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeOpenSourceById(Long id);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.flossom.system.service;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeServiceInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 模式服务Service接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
public interface IWxModeServiceInfoService
|
||||
{
|
||||
/**
|
||||
* 查询模式服务
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 模式服务
|
||||
*/
|
||||
public WxModeServiceInfo selectWxModeServiceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询模式服务列表
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 模式服务集合
|
||||
*/
|
||||
public List<WxModeServiceInfo> selectWxModeServiceInfoList(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 新增模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 修改模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除模式服务
|
||||
*
|
||||
* @param ids 需要删除的模式服务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeServiceInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除模式服务信息
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeServiceInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.flossom.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeCombineInfo;
|
||||
import com.flossom.common.core.mapper.WxModeCombineInfoMapper;
|
||||
import com.flossom.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.flossom.system.service.IWxModeCombineInfoService;
|
||||
|
||||
/**
|
||||
* 模式组合Service业务层处理
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
@Service
|
||||
public class WxModeCombineInfoServiceImpl implements IWxModeCombineInfoService
|
||||
{
|
||||
@Autowired
|
||||
private WxModeCombineInfoMapper wxModeCombineInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询模式组合
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 模式组合
|
||||
*/
|
||||
@Override
|
||||
public WxModeCombineInfo selectWxModeCombineInfoById(Long id)
|
||||
{
|
||||
return wxModeCombineInfoMapper.selectWxModeCombineInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询模式组合列表
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 模式组合
|
||||
*/
|
||||
@Override
|
||||
public List<WxModeCombineInfo> selectWxModeCombineInfoList(WxModeCombineInfo wxModeCombineInfo)
|
||||
{
|
||||
return wxModeCombineInfoMapper.selectWxModeCombineInfoList(wxModeCombineInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo)
|
||||
{
|
||||
wxModeCombineInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return wxModeCombineInfoMapper.insertWxModeCombineInfo(wxModeCombineInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改模式组合
|
||||
*
|
||||
* @param wxModeCombineInfo 模式组合
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWxModeCombineInfo(WxModeCombineInfo wxModeCombineInfo)
|
||||
{
|
||||
return wxModeCombineInfoMapper.updateWxModeCombineInfo(wxModeCombineInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除模式组合
|
||||
*
|
||||
* @param ids 需要删除的模式组合主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeCombineInfoByIds(Long[] ids)
|
||||
{
|
||||
return wxModeCombineInfoMapper.deleteWxModeCombineInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模式组合信息
|
||||
*
|
||||
* @param id 模式组合主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeCombineInfoById(Long id)
|
||||
{
|
||||
return wxModeCombineInfoMapper.deleteWxModeCombineInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.flossom.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeOpenSource;
|
||||
import com.flossom.common.core.mapper.WxModeOpenSourceMapper;
|
||||
import com.flossom.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.flossom.system.service.IWxModeOpenSourceService;
|
||||
|
||||
/**
|
||||
* IOT仪器弹出视频Service业务层处理
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-01-29
|
||||
*/
|
||||
@Service
|
||||
public class WxModeOpenSourceServiceImpl implements IWxModeOpenSourceService
|
||||
{
|
||||
@Autowired
|
||||
private WxModeOpenSourceMapper wxModeOpenSourceMapper;
|
||||
|
||||
/**
|
||||
* 查询IOT仪器弹出视频
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return IOT仪器弹出视频
|
||||
*/
|
||||
@Override
|
||||
public WxModeOpenSource selectWxModeOpenSourceById(Long id)
|
||||
{
|
||||
return wxModeOpenSourceMapper.selectWxModeOpenSourceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询IOT仪器弹出视频列表
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return IOT仪器弹出视频
|
||||
*/
|
||||
@Override
|
||||
public List<WxModeOpenSource> selectWxModeOpenSourceList(WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
return wxModeOpenSourceMapper.selectWxModeOpenSourceList(wxModeOpenSource);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWxModeOpenSource(WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
wxModeOpenSource.setCreateTime(DateUtils.getNowDate());
|
||||
return wxModeOpenSourceMapper.insertWxModeOpenSource(wxModeOpenSource);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改IOT仪器弹出视频
|
||||
*
|
||||
* @param wxModeOpenSource IOT仪器弹出视频
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWxModeOpenSource(WxModeOpenSource wxModeOpenSource)
|
||||
{
|
||||
return wxModeOpenSourceMapper.updateWxModeOpenSource(wxModeOpenSource);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除IOT仪器弹出视频
|
||||
*
|
||||
* @param ids 需要删除的IOT仪器弹出视频主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeOpenSourceByIds(Long[] ids)
|
||||
{
|
||||
return wxModeOpenSourceMapper.deleteWxModeOpenSourceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除IOT仪器弹出视频信息
|
||||
*
|
||||
* @param id IOT仪器弹出视频主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeOpenSourceById(Long id)
|
||||
{
|
||||
return wxModeOpenSourceMapper.deleteWxModeOpenSourceById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.flossom.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeServiceInfo;
|
||||
import com.flossom.common.core.mapper.WxModeServiceInfoMapper;
|
||||
import com.flossom.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.flossom.system.service.IWxModeServiceInfoService;
|
||||
|
||||
/**
|
||||
* 模式服务Service业务层处理
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-02-01
|
||||
*/
|
||||
@Service
|
||||
public class WxModeServiceInfoServiceImpl implements IWxModeServiceInfoService
|
||||
{
|
||||
@Autowired
|
||||
private WxModeServiceInfoMapper wxModeServiceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询模式服务
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 模式服务
|
||||
*/
|
||||
@Override
|
||||
public WxModeServiceInfo selectWxModeServiceInfoById(Long id)
|
||||
{
|
||||
return wxModeServiceInfoMapper.selectWxModeServiceInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询模式服务列表
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 模式服务
|
||||
*/
|
||||
@Override
|
||||
public List<WxModeServiceInfo> selectWxModeServiceInfoList(WxModeServiceInfo wxModeServiceInfo)
|
||||
{
|
||||
return wxModeServiceInfoMapper.selectWxModeServiceInfoList(wxModeServiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo)
|
||||
{
|
||||
wxModeServiceInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return wxModeServiceInfoMapper.insertWxModeServiceInfo(wxModeServiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改模式服务
|
||||
*
|
||||
* @param wxModeServiceInfo 模式服务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateWxModeServiceInfo(WxModeServiceInfo wxModeServiceInfo)
|
||||
{
|
||||
return wxModeServiceInfoMapper.updateWxModeServiceInfo(wxModeServiceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除模式服务
|
||||
*
|
||||
* @param ids 需要删除的模式服务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeServiceInfoByIds(Long[] ids)
|
||||
{
|
||||
return wxModeServiceInfoMapper.deleteWxModeServiceInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模式服务信息
|
||||
*
|
||||
* @param id 模式服务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteWxModeServiceInfoById(Long id)
|
||||
{
|
||||
return wxModeServiceInfoMapper.deleteWxModeServiceInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询IOT仪器弹出视频列表
|
||||
export function listSource(query) {
|
||||
return request({
|
||||
url: '/system/modeOpenSource/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询IOT仪器弹出视频详细
|
||||
export function getSource(id) {
|
||||
return request({
|
||||
url: '/system/modeOpenSource/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增IOT仪器弹出视频
|
||||
export function addSource(data) {
|
||||
return request({
|
||||
url: '/system/modeOpenSource',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改IOT仪器弹出视频
|
||||
export function updateSource(data) {
|
||||
return request({
|
||||
url: '/system/modeOpenSource',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除IOT仪器弹出视频
|
||||
export function delSource(id) {
|
||||
return request({
|
||||
url: '/system/modeOpenSource/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue