代码生成

master
许宏杰 10 months ago
parent e0a22fda7a
commit 2e387f1394

@ -0,0 +1,104 @@
package com.ruoyi.system.controller;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.BNet;
import com.ruoyi.system.service.IBNetService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-11-21
*/
@RestController
@RequestMapping("/netEwm/net")
public class BNetController extends BaseController
{
@Autowired
private IBNetService bNetService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:list')")
@GetMapping("/list")
public TableDataInfo list(BNet bNet)
{
startPage();
List<BNet> list = bNetService.selectBNetList(bNet);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:export')")
@Log(title = "网络", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BNet bNet)
{
List<BNet> list = bNetService.selectBNetList(bNet);
ExcelUtil<BNet> util = new ExcelUtil<BNet>(BNet.class);
util.exportExcel(response, list, "网络数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bNetService.selectBNetById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:add')")
@Log(title = "网络", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BNet bNet)
{
return toAjax(bNetService.insertBNet(bNet));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:edit')")
@Log(title = "网络", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BNet bNet)
{
return toAjax(bNetService.updateBNet(bNet));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:net:remove')")
@Log(title = "网络", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bNetService.deleteBNetByIds(ids));
}
}

@ -0,0 +1,104 @@
package com.ruoyi.system.controller;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.BNetHistory;
import com.ruoyi.system.service.IBNetHistoryService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-11-21
*/
@RestController
@RequestMapping("/netEwm/netHistory")
public class BNetHistoryController extends BaseController
{
@Autowired
private IBNetHistoryService bNetHistoryService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:list')")
@GetMapping("/list")
public TableDataInfo list(BNetHistory bNetHistory)
{
startPage();
List<BNetHistory> list = bNetHistoryService.selectBNetHistoryList(bNetHistory);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:export')")
@Log(title = "连网历史", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BNetHistory bNetHistory)
{
List<BNetHistory> list = bNetHistoryService.selectBNetHistoryList(bNetHistory);
ExcelUtil<BNetHistory> util = new ExcelUtil<BNetHistory>(BNetHistory.class);
util.exportExcel(response, list, "连网历史数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bNetHistoryService.selectBNetHistoryById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:add')")
@Log(title = "连网历史", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BNetHistory bNetHistory)
{
return toAjax(bNetHistoryService.insertBNetHistory(bNetHistory));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:edit')")
@Log(title = "连网历史", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BNetHistory bNetHistory)
{
return toAjax(bNetHistoryService.updateBNetHistory(bNetHistory));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:netHistory:remove')")
@Log(title = "连网历史", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bNetHistoryService.deleteBNetHistoryByIds(ids));
}
}

@ -0,0 +1,104 @@
package com.ruoyi.system.controller;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.BPoster;
import com.ruoyi.system.service.IBPosterService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 广Controller
*
* @author ruoyi
* @date 2023-11-21
*/
@RestController
@RequestMapping("/netEwm/poster")
public class BPosterController extends BaseController
{
@Autowired
private IBPosterService bPosterService;
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:list')")
@GetMapping("/list")
public TableDataInfo list(BPoster bPoster)
{
startPage();
List<BPoster> list = bPosterService.selectBPosterList(bPoster);
return getDataTable(list);
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:export')")
@Log(title = "广告", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BPoster bPoster)
{
List<BPoster> list = bPosterService.selectBPosterList(bPoster);
ExcelUtil<BPoster> util = new ExcelUtil<BPoster>(BPoster.class);
util.exportExcel(response, list, "广告数据");
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bPosterService.selectBPosterById(id));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:add')")
@Log(title = "广告", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BPoster bPoster)
{
return toAjax(bPosterService.insertBPoster(bPoster));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:edit')")
@Log(title = "广告", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BPoster bPoster)
{
return toAjax(bPosterService.updateBPoster(bPoster));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:poster:remove')")
@Log(title = "广告", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bPosterService.deleteBPosterByIds(ids));
}
}

@ -0,0 +1,104 @@
package com.ruoyi.system.controller;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.BPosterHistory;
import com.ruoyi.system.service.IBPosterHistoryService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 广Controller
*
* @author ruoyi
* @date 2023-11-21
*/
@RestController
@RequestMapping("/netEwm/posterHistory")
public class BPosterHistoryController extends BaseController
{
@Autowired
private IBPosterHistoryService bPosterHistoryService;
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:list')")
@GetMapping("/list")
public TableDataInfo list(BPosterHistory bPosterHistory)
{
startPage();
List<BPosterHistory> list = bPosterHistoryService.selectBPosterHistoryList(bPosterHistory);
return getDataTable(list);
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:export')")
@Log(title = "广告历史", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BPosterHistory bPosterHistory)
{
List<BPosterHistory> list = bPosterHistoryService.selectBPosterHistoryList(bPosterHistory);
ExcelUtil<BPosterHistory> util = new ExcelUtil<BPosterHistory>(BPosterHistory.class);
util.exportExcel(response, list, "广告历史数据");
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bPosterHistoryService.selectBPosterHistoryById(id));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:add')")
@Log(title = "广告历史", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BPosterHistory bPosterHistory)
{
return toAjax(bPosterHistoryService.insertBPosterHistory(bPosterHistory));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:edit')")
@Log(title = "广告历史", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BPosterHistory bPosterHistory)
{
return toAjax(bPosterHistoryService.updateBPosterHistory(bPosterHistory));
}
/**
* 广
*/
@PreAuthorize("@ss.hasPermi('netEwm:posterHistory:remove')")
@Log(title = "广告历史", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bPosterHistoryService.deleteBPosterHistoryByIds(ids));
}
}

@ -0,0 +1,104 @@
package com.ruoyi.system.controller;
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.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.system.domain.BShanghu;
import com.ruoyi.system.service.IBShanghuService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-11-21
*/
@RestController
@RequestMapping("/netEwm/shanghu")
public class BShanghuController extends BaseController
{
@Autowired
private IBShanghuService bShanghuService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:list')")
@GetMapping("/list")
public TableDataInfo list(BShanghu bShanghu)
{
startPage();
List<BShanghu> list = bShanghuService.selectBShanghuList(bShanghu);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:export')")
@Log(title = "商户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BShanghu bShanghu)
{
List<BShanghu> list = bShanghuService.selectBShanghuList(bShanghu);
ExcelUtil<BShanghu> util = new ExcelUtil<BShanghu>(BShanghu.class);
util.exportExcel(response, list, "商户数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bShanghuService.selectBShanghuById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:add')")
@Log(title = "商户", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BShanghu bShanghu)
{
return toAjax(bShanghuService.insertBShanghu(bShanghu));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:edit')")
@Log(title = "商户", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BShanghu bShanghu)
{
return toAjax(bShanghuService.updateBShanghu(bShanghu));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('netEwm:shanghu:remove')")
@Log(title = "商户", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(bShanghuService.deleteBShanghuByIds(ids));
}
}

@ -0,0 +1,84 @@
package com.ruoyi.system.domain;
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;
/**
* b_net
*
* @author ruoyi
* @date 2023-11-21
*/
public class BNet extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 网络名称 */
@Excel(name = "网络名称")
private String netName;
/** wifi名称 */
@Excel(name = "wifi名称")
private String wifiName;
/** wifi密码 */
@Excel(name = "wifi密码")
private String wifiPass;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setNetName(String netName)
{
this.netName = netName;
}
public String getNetName()
{
return netName;
}
public void setWifiName(String wifiName)
{
this.wifiName = wifiName;
}
public String getWifiName()
{
return wifiName;
}
public void setWifiPass(String wifiPass)
{
this.wifiPass = wifiPass;
}
public String getWifiPass()
{
return wifiPass;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("netName", getNetName())
.append("wifiName", getWifiName())
.append("wifiPass", getWifiPass())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,112 @@
package com.ruoyi.system.domain;
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;
/**
* b_net_history
*
* @author ruoyi
* @date 2023-11-21
*/
public class BNetHistory extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 是否连接成功 */
@Excel(name = "是否连接成功")
private Long isTrue;
/** 网络id */
@Excel(name = "网络id")
private Long netId;
/** 网络名称 */
@Excel(name = "网络名称")
private String netName;
/** wifi名称 */
@Excel(name = "wifi名称")
private String wifiName;
/** wifi密码 */
@Excel(name = "wifi密码")
private String wifiPass;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setIsTrue(Long isTrue)
{
this.isTrue = isTrue;
}
public Long getIsTrue()
{
return isTrue;
}
public void setNetId(Long netId)
{
this.netId = netId;
}
public Long getNetId()
{
return netId;
}
public void setNetName(String netName)
{
this.netName = netName;
}
public String getNetName()
{
return netName;
}
public void setWifiName(String wifiName)
{
this.wifiName = wifiName;
}
public String getWifiName()
{
return wifiName;
}
public void setWifiPass(String wifiPass)
{
this.wifiPass = wifiPass;
}
public String getWifiPass()
{
return wifiPass;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("isTrue", getIsTrue())
.append("netId", getNetId())
.append("netName", getNetName())
.append("wifiName", getWifiName())
.append("wifiPass", getWifiPass())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,116 @@
package com.ruoyi.system.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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 广 b_poster
*
* @author ruoyi
* @date 2023-11-21
*/
public class BPoster extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 广告名称 */
@Excel(name = "广告名称")
private String posterName;
/** 有效起始时间 */
@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 videoLogo;
/** 视频路径 */
@Excel(name = "视频路径")
private String videoPath;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPosterName(String posterName)
{
this.posterName = posterName;
}
public String getPosterName()
{
return posterName;
}
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 setVideoLogo(String videoLogo)
{
this.videoLogo = videoLogo;
}
public String getVideoLogo()
{
return videoLogo;
}
public void setVideoPath(String videoPath)
{
this.videoPath = videoPath;
}
public String getVideoPath()
{
return videoPath;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("posterName", getPosterName())
.append("startTime", getStartTime())
.append("endTime", getEndTime())
.append("videoLogo", getVideoLogo())
.append("videoPath", getVideoPath())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,130 @@
package com.ruoyi.system.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.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 广 b_poster_history
*
* @author ruoyi
* @date 2023-11-21
*/
public class BPosterHistory extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 广告id */
@Excel(name = "广告id")
private Long posterId;
/** 广告名称 */
@Excel(name = "广告名称")
private String posterName;
/** 有效起始时间 */
@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 videoPath;
/** 视频封面 */
@Excel(name = "视频封面")
private String videoLogo;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPosterId(Long posterId)
{
this.posterId = posterId;
}
public Long getPosterId()
{
return posterId;
}
public void setPosterName(String posterName)
{
this.posterName = posterName;
}
public String getPosterName()
{
return posterName;
}
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 setVideoPath(String videoPath)
{
this.videoPath = videoPath;
}
public String getVideoPath()
{
return videoPath;
}
public void setVideoLogo(String videoLogo)
{
this.videoLogo = videoLogo;
}
public String getVideoLogo()
{
return videoLogo;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("posterId", getPosterId())
.append("posterName", getPosterName())
.append("startTime", getStartTime())
.append("endTime", getEndTime())
.append("videoPath", getVideoPath())
.append("videoLogo", getVideoLogo())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,126 @@
package com.ruoyi.system.domain;
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;
/**
* b_shanghu
*
* @author ruoyi
* @date 2023-11-21
*/
public class BShanghu extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 商户名称 */
@Excel(name = "商户名称")
private String posName;
/** 手机号 */
@Excel(name = "手机号")
private String phoneNumber;
/** 联系人 */
@Excel(name = "联系人")
private String linkMan;
/** 城市 */
@Excel(name = "城市")
private String city;
/** 地址信息 */
@Excel(name = "地址信息")
private String address;
/** 广告标识 */
@Excel(name = "广告标识")
private Long posterId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPosName(String posName)
{
this.posName = posName;
}
public String getPosName()
{
return posName;
}
public void setPhoneNumber(String phoneNumber)
{
this.phoneNumber = phoneNumber;
}
public String getPhoneNumber()
{
return phoneNumber;
}
public void setLinkMan(String linkMan)
{
this.linkMan = linkMan;
}
public String getLinkMan()
{
return linkMan;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setPosterId(Long posterId)
{
this.posterId = posterId;
}
public Long getPosterId()
{
return posterId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("posName", getPosName())
.append("phoneNumber", getPhoneNumber())
.append("linkMan", getLinkMan())
.append("city", getCity())
.append("address", getAddress())
.append("posterId", getPosterId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BNetHistory;
/**
* Mapper
*
* @author ruoyi
* @date 2023-11-21
*/
public interface BNetHistoryMapper
{
/**
*
*
* @param id
* @return
*/
public BNetHistory selectBNetHistoryById(Long id);
/**
*
*
* @param bNetHistory
* @return
*/
public List<BNetHistory> selectBNetHistoryList(BNetHistory bNetHistory);
/**
*
*
* @param bNetHistory
* @return
*/
public int insertBNetHistory(BNetHistory bNetHistory);
/**
*
*
* @param bNetHistory
* @return
*/
public int updateBNetHistory(BNetHistory bNetHistory);
/**
*
*
* @param id
* @return
*/
public int deleteBNetHistoryById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBNetHistoryByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BNet;
/**
* Mapper
*
* @author ruoyi
* @date 2023-11-21
*/
public interface BNetMapper
{
/**
*
*
* @param id
* @return
*/
public BNet selectBNetById(Long id);
/**
*
*
* @param bNet
* @return
*/
public List<BNet> selectBNetList(BNet bNet);
/**
*
*
* @param bNet
* @return
*/
public int insertBNet(BNet bNet);
/**
*
*
* @param bNet
* @return
*/
public int updateBNet(BNet bNet);
/**
*
*
* @param id
* @return
*/
public int deleteBNetById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBNetByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BPosterHistory;
/**
* 广Mapper
*
* @author ruoyi
* @date 2023-11-21
*/
public interface BPosterHistoryMapper
{
/**
* 广
*
* @param id 广
* @return 广
*/
public BPosterHistory selectBPosterHistoryById(Long id);
/**
* 广
*
* @param bPosterHistory 广
* @return 广
*/
public List<BPosterHistory> selectBPosterHistoryList(BPosterHistory bPosterHistory);
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
public int insertBPosterHistory(BPosterHistory bPosterHistory);
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
public int updateBPosterHistory(BPosterHistory bPosterHistory);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteBPosterHistoryById(Long id);
/**
* 广
*
* @param ids
* @return
*/
public int deleteBPosterHistoryByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BPoster;
/**
* 广Mapper
*
* @author ruoyi
* @date 2023-11-21
*/
public interface BPosterMapper
{
/**
* 广
*
* @param id 广
* @return 广
*/
public BPoster selectBPosterById(Long id);
/**
* 广
*
* @param bPoster 广
* @return 广
*/
public List<BPoster> selectBPosterList(BPoster bPoster);
/**
* 广
*
* @param bPoster 广
* @return
*/
public int insertBPoster(BPoster bPoster);
/**
* 广
*
* @param bPoster 广
* @return
*/
public int updateBPoster(BPoster bPoster);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteBPosterById(Long id);
/**
* 广
*
* @param ids
* @return
*/
public int deleteBPosterByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.BShanghu;
/**
* Mapper
*
* @author ruoyi
* @date 2023-11-21
*/
public interface BShanghuMapper
{
/**
*
*
* @param id
* @return
*/
public BShanghu selectBShanghuById(Long id);
/**
*
*
* @param bShanghu
* @return
*/
public List<BShanghu> selectBShanghuList(BShanghu bShanghu);
/**
*
*
* @param bShanghu
* @return
*/
public int insertBShanghu(BShanghu bShanghu);
/**
*
*
* @param bShanghu
* @return
*/
public int updateBShanghu(BShanghu bShanghu);
/**
*
*
* @param id
* @return
*/
public int deleteBShanghuById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBShanghuByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BNetHistory;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
public interface IBNetHistoryService
{
/**
*
*
* @param id
* @return
*/
public BNetHistory selectBNetHistoryById(Long id);
/**
*
*
* @param bNetHistory
* @return
*/
public List<BNetHistory> selectBNetHistoryList(BNetHistory bNetHistory);
/**
*
*
* @param bNetHistory
* @return
*/
public int insertBNetHistory(BNetHistory bNetHistory);
/**
*
*
* @param bNetHistory
* @return
*/
public int updateBNetHistory(BNetHistory bNetHistory);
/**
*
*
* @param ids
* @return
*/
public int deleteBNetHistoryByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBNetHistoryById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BNet;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
public interface IBNetService
{
/**
*
*
* @param id
* @return
*/
public BNet selectBNetById(Long id);
/**
*
*
* @param bNet
* @return
*/
public List<BNet> selectBNetList(BNet bNet);
/**
*
*
* @param bNet
* @return
*/
public int insertBNet(BNet bNet);
/**
*
*
* @param bNet
* @return
*/
public int updateBNet(BNet bNet);
/**
*
*
* @param ids
* @return
*/
public int deleteBNetByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBNetById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BPosterHistory;
/**
* 广Service
*
* @author ruoyi
* @date 2023-11-21
*/
public interface IBPosterHistoryService
{
/**
* 广
*
* @param id 广
* @return 广
*/
public BPosterHistory selectBPosterHistoryById(Long id);
/**
* 广
*
* @param bPosterHistory 广
* @return 广
*/
public List<BPosterHistory> selectBPosterHistoryList(BPosterHistory bPosterHistory);
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
public int insertBPosterHistory(BPosterHistory bPosterHistory);
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
public int updateBPosterHistory(BPosterHistory bPosterHistory);
/**
* 广
*
* @param ids 广
* @return
*/
public int deleteBPosterHistoryByIds(Long[] ids);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteBPosterHistoryById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BPoster;
/**
* 广Service
*
* @author ruoyi
* @date 2023-11-21
*/
public interface IBPosterService
{
/**
* 广
*
* @param id 广
* @return 广
*/
public BPoster selectBPosterById(Long id);
/**
* 广
*
* @param bPoster 广
* @return 广
*/
public List<BPoster> selectBPosterList(BPoster bPoster);
/**
* 广
*
* @param bPoster 广
* @return
*/
public int insertBPoster(BPoster bPoster);
/**
* 广
*
* @param bPoster 广
* @return
*/
public int updateBPoster(BPoster bPoster);
/**
* 广
*
* @param ids 广
* @return
*/
public int deleteBPosterByIds(Long[] ids);
/**
* 广
*
* @param id 广
* @return
*/
public int deleteBPosterById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.BShanghu;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
public interface IBShanghuService
{
/**
*
*
* @param id
* @return
*/
public BShanghu selectBShanghuById(Long id);
/**
*
*
* @param bShanghu
* @return
*/
public List<BShanghu> selectBShanghuList(BShanghu bShanghu);
/**
*
*
* @param bShanghu
* @return
*/
public int insertBShanghu(BShanghu bShanghu);
/**
*
*
* @param bShanghu
* @return
*/
public int updateBShanghu(BShanghu bShanghu);
/**
*
*
* @param ids
* @return
*/
public int deleteBShanghuByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBShanghuById(Long id);
}

@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BNetHistoryMapper;
import com.ruoyi.system.domain.BNetHistory;
import com.ruoyi.system.service.IBNetHistoryService;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
@Service
public class BNetHistoryServiceImpl implements IBNetHistoryService
{
@Autowired
private BNetHistoryMapper bNetHistoryMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BNetHistory selectBNetHistoryById(Long id)
{
return bNetHistoryMapper.selectBNetHistoryById(id);
}
/**
*
*
* @param bNetHistory
* @return
*/
@Override
public List<BNetHistory> selectBNetHistoryList(BNetHistory bNetHistory)
{
return bNetHistoryMapper.selectBNetHistoryList(bNetHistory);
}
/**
*
*
* @param bNetHistory
* @return
*/
@Override
public int insertBNetHistory(BNetHistory bNetHistory)
{
bNetHistory.setCreateTime(DateUtils.getNowDate());
return bNetHistoryMapper.insertBNetHistory(bNetHistory);
}
/**
*
*
* @param bNetHistory
* @return
*/
@Override
public int updateBNetHistory(BNetHistory bNetHistory)
{
bNetHistory.setUpdateTime(DateUtils.getNowDate());
return bNetHistoryMapper.updateBNetHistory(bNetHistory);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBNetHistoryByIds(Long[] ids)
{
return bNetHistoryMapper.deleteBNetHistoryByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBNetHistoryById(Long id)
{
return bNetHistoryMapper.deleteBNetHistoryById(id);
}
}

@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BNetMapper;
import com.ruoyi.system.domain.BNet;
import com.ruoyi.system.service.IBNetService;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
@Service
public class BNetServiceImpl implements IBNetService
{
@Autowired
private BNetMapper bNetMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BNet selectBNetById(Long id)
{
return bNetMapper.selectBNetById(id);
}
/**
*
*
* @param bNet
* @return
*/
@Override
public List<BNet> selectBNetList(BNet bNet)
{
return bNetMapper.selectBNetList(bNet);
}
/**
*
*
* @param bNet
* @return
*/
@Override
public int insertBNet(BNet bNet)
{
bNet.setCreateTime(DateUtils.getNowDate());
return bNetMapper.insertBNet(bNet);
}
/**
*
*
* @param bNet
* @return
*/
@Override
public int updateBNet(BNet bNet)
{
bNet.setUpdateTime(DateUtils.getNowDate());
return bNetMapper.updateBNet(bNet);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBNetByIds(Long[] ids)
{
return bNetMapper.deleteBNetByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBNetById(Long id)
{
return bNetMapper.deleteBNetById(id);
}
}

@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BPosterHistoryMapper;
import com.ruoyi.system.domain.BPosterHistory;
import com.ruoyi.system.service.IBPosterHistoryService;
/**
* 广Service
*
* @author ruoyi
* @date 2023-11-21
*/
@Service
public class BPosterHistoryServiceImpl implements IBPosterHistoryService
{
@Autowired
private BPosterHistoryMapper bPosterHistoryMapper;
/**
* 广
*
* @param id 广
* @return 广
*/
@Override
public BPosterHistory selectBPosterHistoryById(Long id)
{
return bPosterHistoryMapper.selectBPosterHistoryById(id);
}
/**
* 广
*
* @param bPosterHistory 广
* @return 广
*/
@Override
public List<BPosterHistory> selectBPosterHistoryList(BPosterHistory bPosterHistory)
{
return bPosterHistoryMapper.selectBPosterHistoryList(bPosterHistory);
}
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
@Override
public int insertBPosterHistory(BPosterHistory bPosterHistory)
{
bPosterHistory.setCreateTime(DateUtils.getNowDate());
return bPosterHistoryMapper.insertBPosterHistory(bPosterHistory);
}
/**
* 广
*
* @param bPosterHistory 广
* @return
*/
@Override
public int updateBPosterHistory(BPosterHistory bPosterHistory)
{
bPosterHistory.setUpdateTime(DateUtils.getNowDate());
return bPosterHistoryMapper.updateBPosterHistory(bPosterHistory);
}
/**
* 广
*
* @param ids 广
* @return
*/
@Override
public int deleteBPosterHistoryByIds(Long[] ids)
{
return bPosterHistoryMapper.deleteBPosterHistoryByIds(ids);
}
/**
* 广
*
* @param id 广
* @return
*/
@Override
public int deleteBPosterHistoryById(Long id)
{
return bPosterHistoryMapper.deleteBPosterHistoryById(id);
}
}

@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BPosterMapper;
import com.ruoyi.system.domain.BPoster;
import com.ruoyi.system.service.IBPosterService;
/**
* 广Service
*
* @author ruoyi
* @date 2023-11-21
*/
@Service
public class BPosterServiceImpl implements IBPosterService
{
@Autowired
private BPosterMapper bPosterMapper;
/**
* 广
*
* @param id 广
* @return 广
*/
@Override
public BPoster selectBPosterById(Long id)
{
return bPosterMapper.selectBPosterById(id);
}
/**
* 广
*
* @param bPoster 广
* @return 广
*/
@Override
public List<BPoster> selectBPosterList(BPoster bPoster)
{
return bPosterMapper.selectBPosterList(bPoster);
}
/**
* 广
*
* @param bPoster 广
* @return
*/
@Override
public int insertBPoster(BPoster bPoster)
{
bPoster.setCreateTime(DateUtils.getNowDate());
return bPosterMapper.insertBPoster(bPoster);
}
/**
* 广
*
* @param bPoster 广
* @return
*/
@Override
public int updateBPoster(BPoster bPoster)
{
bPoster.setUpdateTime(DateUtils.getNowDate());
return bPosterMapper.updateBPoster(bPoster);
}
/**
* 广
*
* @param ids 广
* @return
*/
@Override
public int deleteBPosterByIds(Long[] ids)
{
return bPosterMapper.deleteBPosterByIds(ids);
}
/**
* 广
*
* @param id 广
* @return
*/
@Override
public int deleteBPosterById(Long id)
{
return bPosterMapper.deleteBPosterById(id);
}
}

@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BShanghuMapper;
import com.ruoyi.system.domain.BShanghu;
import com.ruoyi.system.service.IBShanghuService;
/**
* Service
*
* @author ruoyi
* @date 2023-11-21
*/
@Service
public class BShanghuServiceImpl implements IBShanghuService
{
@Autowired
private BShanghuMapper bShanghuMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BShanghu selectBShanghuById(Long id)
{
return bShanghuMapper.selectBShanghuById(id);
}
/**
*
*
* @param bShanghu
* @return
*/
@Override
public List<BShanghu> selectBShanghuList(BShanghu bShanghu)
{
return bShanghuMapper.selectBShanghuList(bShanghu);
}
/**
*
*
* @param bShanghu
* @return
*/
@Override
public int insertBShanghu(BShanghu bShanghu)
{
bShanghu.setCreateTime(DateUtils.getNowDate());
return bShanghuMapper.insertBShanghu(bShanghu);
}
/**
*
*
* @param bShanghu
* @return
*/
@Override
public int updateBShanghu(BShanghu bShanghu)
{
bShanghu.setUpdateTime(DateUtils.getNowDate());
return bShanghuMapper.updateBShanghu(bShanghu);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBShanghuByIds(Long[] ids)
{
return bShanghuMapper.deleteBShanghuByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBShanghuById(Long id)
{
return bShanghuMapper.deleteBShanghuById(id);
}
}

@ -97,7 +97,7 @@ token:
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期默认30分钟
expireTime: 30
expireTime: 120
# MyBatis配置
mybatis:

@ -0,0 +1,93 @@
<?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.system.mapper.BNetHistoryMapper">
<resultMap type="BNetHistory" id="BNetHistoryResult">
<result property="id" column="id" />
<result property="isTrue" column="is_true" />
<result property="netId" column="net_id" />
<result property="netName" column="net_name" />
<result property="wifiName" column="wifi_name" />
<result property="wifiPass" column="wifi_pass" />
<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="remark" column="remark" />
</resultMap>
<sql id="selectBNetHistoryVo">
select id, is_true, net_id, net_name, wifi_name, wifi_pass, create_by, create_time, update_by, update_time, remark from b_net_history
</sql>
<select id="selectBNetHistoryList" parameterType="BNetHistory" resultMap="BNetHistoryResult">
<include refid="selectBNetHistoryVo"/>
<where>
<if test="isTrue != null "> and is_true = #{isTrue}</if>
<if test="netName != null and netName != ''"> and net_name like concat('%', #{netName}, '%')</if>
</where>
</select>
<select id="selectBNetHistoryById" parameterType="Long" resultMap="BNetHistoryResult">
<include refid="selectBNetHistoryVo"/>
where id = #{id}
</select>
<insert id="insertBNetHistory" parameterType="BNetHistory" useGeneratedKeys="true" keyProperty="id">
insert into b_net_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="isTrue != null">is_true,</if>
<if test="netId != null">net_id,</if>
<if test="netName != null and netName != ''">net_name,</if>
<if test="wifiName != null and wifiName != ''">wifi_name,</if>
<if test="wifiPass != null and wifiPass != ''">wifi_pass,</if>
<if test="createBy != null">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="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="isTrue != null">#{isTrue},</if>
<if test="netId != null">#{netId},</if>
<if test="netName != null and netName != ''">#{netName},</if>
<if test="wifiName != null and wifiName != ''">#{wifiName},</if>
<if test="wifiPass != null and wifiPass != ''">#{wifiPass},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBNetHistory" parameterType="BNetHistory">
update b_net_history
<trim prefix="SET" suffixOverrides=",">
<if test="isTrue != null">is_true = #{isTrue},</if>
<if test="netId != null">net_id = #{netId},</if>
<if test="netName != null and netName != ''">net_name = #{netName},</if>
<if test="wifiName != null and wifiName != ''">wifi_name = #{wifiName},</if>
<if test="wifiPass != null and wifiPass != ''">wifi_pass = #{wifiPass},</if>
<if test="createBy != null">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="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBNetHistoryById" parameterType="Long">
delete from b_net_history where id = #{id}
</delete>
<delete id="deleteBNetHistoryByIds" parameterType="String">
delete from b_net_history where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,84 @@
<?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.system.mapper.BNetMapper">
<resultMap type="BNet" id="BNetResult">
<result property="id" column="id" />
<result property="netName" column="net_name" />
<result property="wifiName" column="wifi_name" />
<result property="wifiPass" column="wifi_pass" />
<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="remark" column="remark" />
</resultMap>
<sql id="selectBNetVo">
select id, net_name, wifi_name, wifi_pass, create_by, create_time, update_by, update_time, remark from b_net
</sql>
<select id="selectBNetList" parameterType="BNet" resultMap="BNetResult">
<include refid="selectBNetVo"/>
<where>
<if test="netName != null and netName != ''"> and net_name like concat('%', #{netName}, '%')</if>
</where>
</select>
<select id="selectBNetById" parameterType="Long" resultMap="BNetResult">
<include refid="selectBNetVo"/>
where id = #{id}
</select>
<insert id="insertBNet" parameterType="BNet" useGeneratedKeys="true" keyProperty="id">
insert into b_net
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="netName != null">net_name,</if>
<if test="wifiName != null">wifi_name,</if>
<if test="wifiPass != null">wifi_pass,</if>
<if test="createBy != null">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="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="netName != null">#{netName},</if>
<if test="wifiName != null">#{wifiName},</if>
<if test="wifiPass != null">#{wifiPass},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBNet" parameterType="BNet">
update b_net
<trim prefix="SET" suffixOverrides=",">
<if test="netName != null">net_name = #{netName},</if>
<if test="wifiName != null">wifi_name = #{wifiName},</if>
<if test="wifiPass != null">wifi_pass = #{wifiPass},</if>
<if test="createBy != null">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="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBNetById" parameterType="Long">
delete from b_net where id = #{id}
</delete>
<delete id="deleteBNetByIds" parameterType="String">
delete from b_net where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,98 @@
<?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.system.mapper.BPosterHistoryMapper">
<resultMap type="BPosterHistory" id="BPosterHistoryResult">
<result property="id" column="id" />
<result property="posterId" column="poster_id" />
<result property="posterName" column="poster_name" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="videoPath" column="video_path" />
<result property="videoLogo" column="video_logo" />
<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="remark" column="remark" />
</resultMap>
<sql id="selectBPosterHistoryVo">
select id, poster_id, poster_name, start_time, end_time, video_path, video_logo, create_by, create_time, update_by, update_time, remark from b_poster_history
</sql>
<select id="selectBPosterHistoryList" parameterType="BPosterHistory" resultMap="BPosterHistoryResult">
<include refid="selectBPosterHistoryVo"/>
<where>
<if test="posterName != null and posterName != ''"> and poster_name like concat('%', #{posterName}, '%')</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
</where>
</select>
<select id="selectBPosterHistoryById" parameterType="Long" resultMap="BPosterHistoryResult">
<include refid="selectBPosterHistoryVo"/>
where id = #{id}
</select>
<insert id="insertBPosterHistory" parameterType="BPosterHistory" useGeneratedKeys="true" keyProperty="id">
insert into b_poster_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="posterId != null">poster_id,</if>
<if test="posterName != null and posterName != ''">poster_name,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="videoPath != null">video_path,</if>
<if test="videoLogo != null and videoLogo != ''">video_logo,</if>
<if test="createBy != null">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="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="posterId != null">#{posterId},</if>
<if test="posterName != null and posterName != ''">#{posterName},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="videoPath != null">#{videoPath},</if>
<if test="videoLogo != null and videoLogo != ''">#{videoLogo},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBPosterHistory" parameterType="BPosterHistory">
update b_poster_history
<trim prefix="SET" suffixOverrides=",">
<if test="posterId != null">poster_id = #{posterId},</if>
<if test="posterName != null and posterName != ''">poster_name = #{posterName},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="videoPath != null">video_path = #{videoPath},</if>
<if test="videoLogo != null and videoLogo != ''">video_logo = #{videoLogo},</if>
<if test="createBy != null">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="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBPosterHistoryById" parameterType="Long">
delete from b_poster_history where id = #{id}
</delete>
<delete id="deleteBPosterHistoryByIds" parameterType="String">
delete from b_poster_history 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.ruoyi.system.mapper.BPosterMapper">
<resultMap type="BPoster" id="BPosterResult">
<result property="id" column="id" />
<result property="posterName" column="poster_name" />
<result property="startTime" column="start_time" />
<result property="endTime" column="end_time" />
<result property="videoLogo" column="video_logo" />
<result property="videoPath" column="video_path" />
<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="remark" column="remark" />
</resultMap>
<sql id="selectBPosterVo">
select id, poster_name, start_time, end_time, video_logo, video_path, create_by, create_time, update_by, update_time, remark from b_poster
</sql>
<select id="selectBPosterList" parameterType="BPoster" resultMap="BPosterResult">
<include refid="selectBPosterVo"/>
<where>
<if test="posterName != null and posterName != ''"> and poster_name like concat('%', #{posterName}, '%')</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
</where>
</select>
<select id="selectBPosterById" parameterType="Long" resultMap="BPosterResult">
<include refid="selectBPosterVo"/>
where id = #{id}
</select>
<insert id="insertBPoster" parameterType="BPoster" useGeneratedKeys="true" keyProperty="id">
insert into b_poster
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="posterName != null">poster_name,</if>
<if test="startTime != null">start_time,</if>
<if test="endTime != null">end_time,</if>
<if test="videoLogo != null">video_logo,</if>
<if test="videoPath != null">video_path,</if>
<if test="createBy != null">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="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="posterName != null">#{posterName},</if>
<if test="startTime != null">#{startTime},</if>
<if test="endTime != null">#{endTime},</if>
<if test="videoLogo != null">#{videoLogo},</if>
<if test="videoPath != null">#{videoPath},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBPoster" parameterType="BPoster">
update b_poster
<trim prefix="SET" suffixOverrides=",">
<if test="posterName != null">poster_name = #{posterName},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="endTime != null">end_time = #{endTime},</if>
<if test="videoLogo != null">video_logo = #{videoLogo},</if>
<if test="videoPath != null">video_path = #{videoPath},</if>
<if test="createBy != null">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="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBPosterById" parameterType="Long">
delete from b_poster where id = #{id}
</delete>
<delete id="deleteBPosterByIds" parameterType="String">
delete from b_poster where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,98 @@
<?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.system.mapper.BShanghuMapper">
<resultMap type="BShanghu" id="BShanghuResult">
<result property="id" column="id" />
<result property="posName" column="pos_name" />
<result property="phoneNumber" column="phone_number" />
<result property="linkMan" column="link_man" />
<result property="city" column="city" />
<result property="address" column="address" />
<result property="posterId" column="poster_id" />
<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="remark" column="remark" />
</resultMap>
<sql id="selectBShanghuVo">
select id, pos_name, phone_number, link_man, city, address, poster_id, create_by, create_time, update_by, update_time, remark from b_shanghu
</sql>
<select id="selectBShanghuList" parameterType="BShanghu" resultMap="BShanghuResult">
<include refid="selectBShanghuVo"/>
<where>
<if test="posName != null and posName != ''"> and pos_name like concat('%', #{posName}, '%')</if>
<if test="linkMan != null and linkMan != ''"> and link_man like concat('%', #{linkMan}, '%')</if>
<if test="city != null and city != ''"> and city like concat('%', #{city}, '%')</if>
</where>
</select>
<select id="selectBShanghuById" parameterType="Long" resultMap="BShanghuResult">
<include refid="selectBShanghuVo"/>
where id = #{id}
</select>
<insert id="insertBShanghu" parameterType="BShanghu" useGeneratedKeys="true" keyProperty="id">
insert into b_shanghu
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="posName != null and posName != ''">pos_name,</if>
<if test="phoneNumber != null and phoneNumber != ''">phone_number,</if>
<if test="linkMan != null and linkMan != ''">link_man,</if>
<if test="city != null and city != ''">city,</if>
<if test="address != null and address != ''">address,</if>
<if test="posterId != null">poster_id,</if>
<if test="createBy != null">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="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="posName != null and posName != ''">#{posName},</if>
<if test="phoneNumber != null and phoneNumber != ''">#{phoneNumber},</if>
<if test="linkMan != null and linkMan != ''">#{linkMan},</if>
<if test="city != null and city != ''">#{city},</if>
<if test="address != null and address != ''">#{address},</if>
<if test="posterId != null">#{posterId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBShanghu" parameterType="BShanghu">
update b_shanghu
<trim prefix="SET" suffixOverrides=",">
<if test="posName != null and posName != ''">pos_name = #{posName},</if>
<if test="phoneNumber != null and phoneNumber != ''">phone_number = #{phoneNumber},</if>
<if test="linkMan != null and linkMan != ''">link_man = #{linkMan},</if>
<if test="city != null and city != ''">city = #{city},</if>
<if test="address != null and address != ''">address = #{address},</if>
<if test="posterId != null">poster_id = #{posterId},</if>
<if test="createBy != null">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="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBShanghuById" parameterType="Long">
delete from b_shanghu where id = #{id}
</delete>
<delete id="deleteBShanghuByIds" parameterType="String">
delete from b_shanghu where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save