diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/rescue/RescueStreamConferenceController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/rescue/RescueStreamConferenceController.java new file mode 100644 index 00000000..d0e89a08 --- /dev/null +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/rescue/RescueStreamConferenceController.java @@ -0,0 +1,104 @@ +package com.god.web.controller.rescue; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +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.god.common.annotation.Log; +import com.god.common.core.controller.BaseController; +import com.god.common.core.domain.AjaxResult; +import com.god.common.enums.BusinessType; +import com.god. rescue.domain.RescueStreamConference; +import com.god. rescue.service.IRescueStreamConferenceService; +import com.god.common.utils.poi.ExcelUtil; +import com.god.common.core.page.TableDataInfo; + +/** + * streamConferenceController + * + * @author ljm + * @date 2024-03-25 + */ +@RestController +@RequestMapping("/rescue/streamConference") +public class RescueStreamConferenceController extends BaseController +{ + @Autowired + private IRescueStreamConferenceService rescueStreamConferenceService; + + /** + * 查询streamConference列表 + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:list')") + @GetMapping("/list") + public TableDataInfo list(RescueStreamConference rescueStreamConference) + { + startPage(); + List list = rescueStreamConferenceService.selectRescueStreamConferenceList(rescueStreamConference); + return getDataTable(list); + } + + /** + * 导出streamConference列表 + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:export')") + @Log(title = "streamConference", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, RescueStreamConference rescueStreamConference) + { + List list = rescueStreamConferenceService.selectRescueStreamConferenceList(rescueStreamConference); + ExcelUtil util = new ExcelUtil(RescueStreamConference.class); + util.exportExcel(response, list, "streamConference数据"); + } + + /** + * 获取streamConference详细信息 + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") String id) + { + return success(rescueStreamConferenceService.selectRescueStreamConferenceById(id)); + } + + /** + * 新增streamConference + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:add')") + @Log(title = "streamConference", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody RescueStreamConference rescueStreamConference) + { + return toAjax(rescueStreamConferenceService.insertRescueStreamConference(rescueStreamConference)); + } + + /** + * 修改streamConference + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:edit')") + @Log(title = "streamConference", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody RescueStreamConference rescueStreamConference) + { + return toAjax(rescueStreamConferenceService.updateRescueStreamConference(rescueStreamConference)); + } + + /** + * 删除streamConference + */ + @PreAuthorize("@ss.hasPermi('rescue:streamConference:remove')") + @Log(title = "streamConference", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable String[] ids) + { + return toAjax(rescueStreamConferenceService.deleteRescueStreamConferenceByIds(ids)); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/rescue/domain/RescueStreamConference.java b/God-Vue-master/god-system/src/main/java/com/god/rescue/domain/RescueStreamConference.java new file mode 100644 index 00000000..e710c748 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/rescue/domain/RescueStreamConference.java @@ -0,0 +1,197 @@ +package com.god.rescue.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.god.common.annotation.Excel; +import com.god.common.core.domain.BaseEntity; + +/** + * streamConference对象 rescue_stream_conference + * + * @author ljm + * @date 2024-03-25 + */ +public class RescueStreamConference extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private String id; + + /** 名称 */ + @Excel(name = "名称") + private String name; + + /** 描述 */ + @Excel(name = "描述") + private String description; + + /** 开始时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date startTime; + + /** 结束时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date endTime; + + /** 状态 */ + @Excel(name = "状态") + private String status; + + /** 主流视频URl */ + @Excel(name = "主流视频URl") + private String primaryStreamUrl; + + /** 辅助视频url */ + @Excel(name = "辅助视频url") + private String secondaryStreamUrl; + + /** 参与人员 */ + @Excel(name = "参与人员") + private String person; + + /** 主持人 */ + @Excel(name = "主持人") + private String moderator; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String creator; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private String updater; + + public void setId(String id) + { + this.id = id; + } + + public String getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setDescription(String description) + { + this.description = description; + } + + public String getDescription() + { + return description; + } + public void setStartTime(Date startTime) + { + this.startTime = startTime; + } + + public Date getStartTime() + { + return startTime; + } + public void setEndTime(Date endTime) + { + this.endTime = endTime; + } + + public Date getEndTime() + { + return endTime; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + public void setPrimaryStreamUrl(String primaryStreamUrl) + { + this.primaryStreamUrl = primaryStreamUrl; + } + + public String getPrimaryStreamUrl() + { + return primaryStreamUrl; + } + public void setSecondaryStreamUrl(String secondaryStreamUrl) + { + this.secondaryStreamUrl = secondaryStreamUrl; + } + + public String getSecondaryStreamUrl() + { + return secondaryStreamUrl; + } + public void setPerson(String person) + { + this.person = person; + } + + public String getPerson() + { + return person; + } + public void setModerator(String moderator) + { + this.moderator = moderator; + } + + public String getModerator() + { + return moderator; + } + public void setCreator(String creator) + { + this.creator = creator; + } + + public String getCreator() + { + return creator; + } + public void setUpdater(String updater) + { + this.updater = updater; + } + + public String getUpdater() + { + return updater; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("description", getDescription()) + .append("startTime", getStartTime()) + .append("endTime", getEndTime()) + .append("status", getStatus()) + .append("primaryStreamUrl", getPrimaryStreamUrl()) + .append("secondaryStreamUrl", getSecondaryStreamUrl()) + .append("person", getPerson()) + .append("moderator", getModerator()) + .append("creator", getCreator()) + .append("updater", getUpdater()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/rescue/mapper/RescueStreamConferenceMapper.java b/God-Vue-master/god-system/src/main/java/com/god/rescue/mapper/RescueStreamConferenceMapper.java new file mode 100644 index 00000000..1eb3dc27 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/rescue/mapper/RescueStreamConferenceMapper.java @@ -0,0 +1,61 @@ +package com.god.rescue.mapper; + +import java.util.List; +import com.god. rescue.domain.RescueStreamConference; + +/** + * streamConferenceMapper接口 + * + * @author ljm + * @date 2024-03-25 + */ +public interface RescueStreamConferenceMapper +{ + /** + * 查询streamConference + * + * @param id streamConference主键 + * @return streamConference + */ + public RescueStreamConference selectRescueStreamConferenceById(String id); + + /** + * 查询streamConference列表 + * + * @param rescueStreamConference streamConference + * @return streamConference集合 + */ + public List selectRescueStreamConferenceList(RescueStreamConference rescueStreamConference); + + /** + * 新增streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + public int insertRescueStreamConference(RescueStreamConference rescueStreamConference); + + /** + * 修改streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + public int updateRescueStreamConference(RescueStreamConference rescueStreamConference); + + /** + * 删除streamConference + * + * @param id streamConference主键 + * @return 结果 + */ + public int deleteRescueStreamConferenceById(String id); + + /** + * 批量删除streamConference + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteRescueStreamConferenceByIds(String[] ids); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/rescue/service/IRescueStreamConferenceService.java b/God-Vue-master/god-system/src/main/java/com/god/rescue/service/IRescueStreamConferenceService.java new file mode 100644 index 00000000..e3839255 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/rescue/service/IRescueStreamConferenceService.java @@ -0,0 +1,61 @@ +package com.god.rescue.service; + +import java.util.List; +import com.god. rescue.domain.RescueStreamConference; + +/** + * streamConferenceService接口 + * + * @author ljm + * @date 2024-03-25 + */ +public interface IRescueStreamConferenceService +{ + /** + * 查询streamConference + * + * @param id streamConference主键 + * @return streamConference + */ + public RescueStreamConference selectRescueStreamConferenceById(String id); + + /** + * 查询streamConference列表 + * + * @param rescueStreamConference streamConference + * @return streamConference集合 + */ + public List selectRescueStreamConferenceList(RescueStreamConference rescueStreamConference); + + /** + * 新增streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + public int insertRescueStreamConference(RescueStreamConference rescueStreamConference); + + /** + * 修改streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + public int updateRescueStreamConference(RescueStreamConference rescueStreamConference); + + /** + * 批量删除streamConference + * + * @param ids 需要删除的streamConference主键集合 + * @return 结果 + */ + public int deleteRescueStreamConferenceByIds(String[] ids); + + /** + * 删除streamConference信息 + * + * @param id streamConference主键 + * @return 结果 + */ + public int deleteRescueStreamConferenceById(String id); +} diff --git a/God-Vue-master/god-system/src/main/java/com/god/rescue/service/impl/RescueStreamConferenceServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/rescue/service/impl/RescueStreamConferenceServiceImpl.java new file mode 100644 index 00000000..2ee5ec21 --- /dev/null +++ b/God-Vue-master/god-system/src/main/java/com/god/rescue/service/impl/RescueStreamConferenceServiceImpl.java @@ -0,0 +1,96 @@ +package com.god.rescue.service.impl; + +import java.util.List; +import com.god.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.god. rescue.mapper.RescueStreamConferenceMapper; +import com.god. rescue.domain.RescueStreamConference; +import com.god. rescue.service.IRescueStreamConferenceService; + +/** + * streamConferenceService业务层处理 + * + * @author ljm + * @date 2024-03-25 + */ +@Service +public class RescueStreamConferenceServiceImpl implements IRescueStreamConferenceService +{ + @Autowired + private RescueStreamConferenceMapper rescueStreamConferenceMapper; + + /** + * 查询streamConference + * + * @param id streamConference主键 + * @return streamConference + */ + @Override + public RescueStreamConference selectRescueStreamConferenceById(String id) + { + return rescueStreamConferenceMapper.selectRescueStreamConferenceById(id); + } + + /** + * 查询streamConference列表 + * + * @param rescueStreamConference streamConference + * @return streamConference + */ + @Override + public List selectRescueStreamConferenceList(RescueStreamConference rescueStreamConference) + { + return rescueStreamConferenceMapper.selectRescueStreamConferenceList(rescueStreamConference); + } + + /** + * 新增streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + @Override + public int insertRescueStreamConference(RescueStreamConference rescueStreamConference) + { + rescueStreamConference.setCreateTime(DateUtils.getNowDate()); + return rescueStreamConferenceMapper.insertRescueStreamConference(rescueStreamConference); + } + + /** + * 修改streamConference + * + * @param rescueStreamConference streamConference + * @return 结果 + */ + @Override + public int updateRescueStreamConference(RescueStreamConference rescueStreamConference) + { + rescueStreamConference.setUpdateTime(DateUtils.getNowDate()); + return rescueStreamConferenceMapper.updateRescueStreamConference(rescueStreamConference); + } + + /** + * 批量删除streamConference + * + * @param ids 需要删除的streamConference主键 + * @return 结果 + */ + @Override + public int deleteRescueStreamConferenceByIds(String[] ids) + { + return rescueStreamConferenceMapper.deleteRescueStreamConferenceByIds(ids); + } + + /** + * 删除streamConference信息 + * + * @param id streamConference主键 + * @return 结果 + */ + @Override + public int deleteRescueStreamConferenceById(String id) + { + return rescueStreamConferenceMapper.deleteRescueStreamConferenceById(id); + } +} diff --git a/God-Vue-master/god-system/src/main/resources/mapper/rescue/RescueStreamConferenceMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/rescue/RescueStreamConferenceMapper.xml new file mode 100644 index 00000000..1fb7a4ee --- /dev/null +++ b/God-Vue-master/god-system/src/main/resources/mapper/rescue/RescueStreamConferenceMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, name, description, start_time, end_time, status, primary_stream_url, secondary_stream_url, person, moderator, creator, updater, create_time, update_time from rescue_stream_conference + + + + + + + + insert into rescue_stream_conference + + id, + name, + description, + start_time, + end_time, + status, + primary_stream_url, + secondary_stream_url, + person, + moderator, + creator, + updater, + create_time, + update_time, + + + #{id}, + #{name}, + #{description}, + #{startTime}, + #{endTime}, + #{status}, + #{primaryStreamUrl}, + #{secondaryStreamUrl}, + #{person}, + #{moderator}, + #{creator}, + #{updater}, + #{createTime}, + #{updateTime}, + + + + + update rescue_stream_conference + + name = #{name}, + description = #{description}, + start_time = #{startTime}, + end_time = #{endTime}, + status = #{status}, + primary_stream_url = #{primaryStreamUrl}, + secondary_stream_url = #{secondaryStreamUrl}, + person = #{person}, + moderator = #{moderator}, + creator = #{creator}, + updater = #{updater}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from rescue_stream_conference where id = #{id} + + + + delete from rescue_stream_conference where id in + + #{id} + + + diff --git a/god-ui/src/api/rescue/streamConference.js b/god-ui/src/api/rescue/streamConference.js new file mode 100644 index 00000000..72140cf2 --- /dev/null +++ b/god-ui/src/api/rescue/streamConference.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询streamConference列表 +export function listStreamConference(query) { + return request({ + url: '/rescue/streamConference/list', + method: 'get', + params: query + }) +} + +// 查询streamConference详细 +export function getStreamConference(id) { + return request({ + url: '/rescue/streamConference/' + id, + method: 'get' + }) +} + +// 新增streamConference +export function addStreamConference(data) { + return request({ + url: '/rescue/streamConference', + method: 'post', + data: data + }) +} + +// 修改streamConference +export function updateStreamConference(data) { + return request({ + url: '/rescue/streamConference', + method: 'put', + data: data + }) +} + +// 删除streamConference +export function delStreamConference(id) { + return request({ + url: '/rescue/streamConference/' + id, + method: 'delete' + }) +} diff --git a/god-ui/src/views/rescue/streamConference/index.vue b/god-ui/src/views/rescue/streamConference/index.vue new file mode 100644 index 00000000..5fe5028e --- /dev/null +++ b/god-ui/src/views/rescue/streamConference/index.vue @@ -0,0 +1,359 @@ + + +