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);
|
||||
}
|
||||
}
|
@ -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…
Reference in new issue