master
parent
38d80b803c
commit
4fc3e50675
@ -0,0 +1,44 @@
|
||||
package com.haiwei.web.controller.broad;
|
||||
|
||||
import com.haiwei.common.core.domain.AjaxResult;
|
||||
import static com.haiwei.common.core.domain.AjaxResult.*;
|
||||
|
||||
import com.haiwei.manage.service.IBaseCustomerService;
|
||||
import com.haiwei.manage.service.IBaseDeviceInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.models.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/8/14 14:02
|
||||
*/
|
||||
|
||||
@RestController
|
||||
public class ApiController {
|
||||
|
||||
@Autowired
|
||||
private IBaseDeviceInfoService baseDeviceInfoService;//设备
|
||||
|
||||
@Autowired
|
||||
private IBaseCustomerService baseCustomerService;//客户
|
||||
|
||||
@ApiOperation(tags = {"首页"}, value = "获取客户展示")
|
||||
@GetMapping("/home/queryCustomer")
|
||||
public AjaxResult queryCustomer(){
|
||||
return success(baseCustomerService.selectBaseCustomerList(null));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(tags = {"首页"}, value = "获取产品列表")
|
||||
@GetMapping("/home/queryDevice")
|
||||
public AjaxResult queryDevice(){
|
||||
return success(baseDeviceInfoService.selectBaseDeviceInfoList(null));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1 +1,174 @@
|
||||
html{height:100%}body.signin{height:auto;background:url(../img/login-background.jpg) no-repeat center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;color:rgba(255,255,255,.95)}.signinpanel{width:750px;margin:10% auto 0}.signinpanel .logopanel{float:none;width:auto;padding:0;background:0}.signinpanel .signin-info ul{list-style:none;padding:0;margin:20px 0}.signinpanel .form-control{display:block;margin-top:15px}.signinpanel .uname{background:#fff url(../img/user.png) no-repeat 95% center;color:#333}.signinpanel .pword{background:#fff url(../img/locked.png) no-repeat 95% center;color:#333}.signinpanel .code{background:#fff no-repeat 95% center;color:#333;margin:0 0 15px 0}.signinpanel .btn{margin-top:15px}.signinpanel form{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);-moz-box-shadow:0 3px 0 rgba(12,12,12,.03);-webkit-box-shadow:0 3px 0 rgba(12,12,12,.03);box-shadow:0 3px 0 rgba(12,12,12,.03);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:30px}.signup-footer{border-top:solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top:15px}@media screen and (max-width:768px){.signinpanel,.signuppanel{margin:0 auto;width:420px!important;padding:20px}.signinpanel form{margin-top:20px}.signup-footer,.signuppanel .form-control{margin-bottom:10px}.signup-footer .pull-left,.signup-footer .pull-right{float:none!important;text-align:center}.signinpanel .signin-info ul{display:none}}@media screen and (max-width:320px){.signinpanel,.signuppanel{margin:0 20px;width:auto}}.checkbox-custom{position:relative;padding:0 15px 0 25px;margin-bottom:7px;display:inline-block}.checkbox-custom input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer;z-index:2;margin:-6px 0 0 0;top:50%;left:3px}.checkbox-custom label:before{content:'';position:absolute;top:50%;left:0;margin-top:-9px;width:18px;height:17px;display:inline-block;border-radius:2px;border:1px solid #bbb;background:#fff}.checkbox-custom input[type="checkbox"]:checked+label:after{position:absolute;display:inline-block;font-family:'Glyphicons Halflings';content:"\e013";top:42%;left:3px;margin-top:-5px;font-size:11px;line-height:1;width:16px;height:16px;color:#333}.checkbox-custom label{cursor:pointer;line-height:1.2;font-weight:normal;margin-bottom:0;text-align:left}.form-control,.form-control:focus,.has-error .form-control:focus,.has-success .form-control:focus,.has-warning .form-control:focus,.navbar-collapse,.navbar-form,.navbar-form-custom .form-control:focus,.navbar-form-custom .form-control:hover,.open .btn.dropdown-toggle,.panel,.popover,.progress,.progress-bar{box-shadow:none}.form-control{border-radius:1px!important;padding:6px 12px!important;height:34px!important}.form-control:focus{border-color:#1ab394!important}
|
||||
html {
|
||||
height: 100%
|
||||
}
|
||||
|
||||
body.signin {
|
||||
height: auto;
|
||||
background: url(../img/login-background.jpg) no-repeat center fixed;
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
color: rgba(255, 255, 255, .95)
|
||||
}
|
||||
|
||||
.signinpanel {
|
||||
width: 750px;
|
||||
margin: 10% auto 0
|
||||
}
|
||||
|
||||
.signinpanel .logopanel {
|
||||
float: none;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
background: 0
|
||||
}
|
||||
|
||||
.signinpanel .signin-info ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 20px 0
|
||||
}
|
||||
|
||||
.signinpanel .form-control {
|
||||
display: block;
|
||||
margin-top: 15px
|
||||
}
|
||||
|
||||
.signinpanel .uname {
|
||||
background: #fff url(../img/user.png) no-repeat 95% center;
|
||||
color: #333
|
||||
}
|
||||
|
||||
.signinpanel .pword {
|
||||
background: #fff url(../img/locked.png) no-repeat 95% center;
|
||||
color: #333
|
||||
}
|
||||
|
||||
.signinpanel .code {
|
||||
background: #fff no-repeat 95% center;
|
||||
color: #333;
|
||||
margin: 0 0 15px 0
|
||||
}
|
||||
|
||||
.signinpanel .btn {
|
||||
margin-top: 15px
|
||||
}
|
||||
|
||||
.signinpanel form {
|
||||
background: rgba(255, 255, 255, .2);
|
||||
border: 1px solid rgba(255, 255, 255, .3);
|
||||
-moz-box-shadow: 0 3px 0 rgba(12, 12, 12, .03);
|
||||
-webkit-box-shadow: 0 3px 0 rgba(12, 12, 12, .03);
|
||||
box-shadow: 0 3px 0 rgba(12, 12, 12, .03);
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
padding: 30px
|
||||
}
|
||||
|
||||
.signup-footer {
|
||||
border-top: solid 1px rgba(255, 255, 255, .3);
|
||||
margin: 20px 0;
|
||||
padding-top: 15px
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.signinpanel, .signuppanel {
|
||||
margin: 0 auto;
|
||||
width: 420px !important;
|
||||
padding: 20px
|
||||
}
|
||||
|
||||
.signinpanel form {
|
||||
margin-top: 20px
|
||||
}
|
||||
|
||||
.signup-footer, .signuppanel .form-control {
|
||||
margin-bottom: 10px
|
||||
}
|
||||
|
||||
.signup-footer .pull-left, .signup-footer .pull-right {
|
||||
float: none !important;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.signinpanel .signin-info ul {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 320px) {
|
||||
.signinpanel, .signuppanel {
|
||||
margin: 0 20px;
|
||||
width: auto
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox-custom {
|
||||
position: relative;
|
||||
padding: 0 15px 0 25px;
|
||||
margin-bottom: 7px;
|
||||
display: inline-block
|
||||
}
|
||||
|
||||
.checkbox-custom input[type="checkbox"] {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
margin: -6px 0 0 0;
|
||||
top: 50%;
|
||||
left: 3px
|
||||
}
|
||||
|
||||
.checkbox-custom label:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
margin-top: -9px;
|
||||
width: 18px;
|
||||
height: 17px;
|
||||
display: inline-block;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #bbb;
|
||||
background: #fff
|
||||
}
|
||||
|
||||
.checkbox-custom input[type="checkbox"]:checked + label:after {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
font-family: 'Glyphicons Halflings';
|
||||
content: "\e013";
|
||||
top: 42%;
|
||||
left: 3px;
|
||||
margin-top: -5px;
|
||||
font-size: 11px;
|
||||
line-height: 1;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: #333
|
||||
}
|
||||
|
||||
.checkbox-custom label {
|
||||
cursor: pointer;
|
||||
line-height: 1.2;
|
||||
font-weight: normal;
|
||||
margin-bottom: 0;
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.form-control, .form-control:focus, .has-error .form-control:focus, .has-success .form-control:focus, .has-warning .form-control:focus, .navbar-collapse, .navbar-form, .navbar-form-custom .form-control:focus, .navbar-form-custom .form-control:hover, .open .btn.dropdown-toggle, .panel, .popover, .progress, .progress-bar {
|
||||
box-shadow: none
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border-radius: 1px !important;
|
||||
padding: 6px 12px !important;
|
||||
height: 34px !important
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: #1ab394 !important
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
@ -0,0 +1,126 @@
|
||||
package com.haiwei.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.haiwei.common.annotation.Log;
|
||||
import com.haiwei.common.enums.BusinessType;
|
||||
import com.haiwei.manage.domain.BaseCustomer;
|
||||
import com.haiwei.manage.service.IBaseCustomerService;
|
||||
import com.haiwei.common.core.controller.BaseController;
|
||||
import com.haiwei.common.core.domain.AjaxResult;
|
||||
import com.haiwei.common.utils.poi.ExcelUtil;
|
||||
import com.haiwei.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 客户信息管理Controller
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/manage/base_customer")
|
||||
public class BaseCustomerController extends BaseController
|
||||
{
|
||||
private String prefix = "manage/base_customer";
|
||||
|
||||
@Autowired
|
||||
private IBaseCustomerService baseCustomerService;
|
||||
|
||||
@RequiresPermissions("manage:base_customer:view")
|
||||
@GetMapping()
|
||||
public String base_customer()
|
||||
{
|
||||
return prefix + "/base_customer";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户信息管理列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_customer:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(BaseCustomer baseCustomer)
|
||||
{
|
||||
startPage();
|
||||
List<BaseCustomer> list = baseCustomerService.selectBaseCustomerList(baseCustomer);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户信息管理列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_customer:export")
|
||||
@Log(title = "客户信息管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(BaseCustomer baseCustomer)
|
||||
{
|
||||
List<BaseCustomer> list = baseCustomerService.selectBaseCustomerList(baseCustomer);
|
||||
ExcelUtil<BaseCustomer> util = new ExcelUtil<BaseCustomer>(BaseCustomer.class);
|
||||
return util.exportExcel(list, "base_customer");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信息管理
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存客户信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_customer:add")
|
||||
@Log(title = "客户信息管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(BaseCustomer baseCustomer)
|
||||
{
|
||||
return toAjax(baseCustomerService.insertBaseCustomer(baseCustomer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信息管理
|
||||
*/
|
||||
@GetMapping("/edit/{objid}")
|
||||
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||
{
|
||||
BaseCustomer baseCustomer = baseCustomerService.selectBaseCustomerById(objid);
|
||||
mmap.put("baseCustomer", baseCustomer);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存客户信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_customer:edit")
|
||||
@Log(title = "客户信息管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(BaseCustomer baseCustomer)
|
||||
{
|
||||
return toAjax(baseCustomerService.updateBaseCustomer(baseCustomer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_customer:remove")
|
||||
@Log(title = "客户信息管理", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(baseCustomerService.deleteBaseCustomerByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package com.haiwei.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.haiwei.common.annotation.Log;
|
||||
import com.haiwei.common.enums.BusinessType;
|
||||
import com.haiwei.manage.domain.BaseDeviceInfo;
|
||||
import com.haiwei.manage.service.IBaseDeviceInfoService;
|
||||
import com.haiwei.common.core.controller.BaseController;
|
||||
import com.haiwei.common.core.domain.AjaxResult;
|
||||
import com.haiwei.common.utils.poi.ExcelUtil;
|
||||
import com.haiwei.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 设备信息维护Controller
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/manage/base_device_info")
|
||||
public class BaseDeviceInfoController extends BaseController
|
||||
{
|
||||
private String prefix = "manage/base_device_info";
|
||||
|
||||
@Autowired
|
||||
private IBaseDeviceInfoService baseDeviceInfoService;
|
||||
|
||||
@RequiresPermissions("manage:base_device_info:view")
|
||||
@GetMapping()
|
||||
public String base_device_info()
|
||||
{
|
||||
return prefix + "/base_device_info";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备信息维护列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_device_info:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
startPage();
|
||||
List<BaseDeviceInfo> list = baseDeviceInfoService.selectBaseDeviceInfoList(baseDeviceInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备信息维护列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_device_info:export")
|
||||
@Log(title = "设备信息维护", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
List<BaseDeviceInfo> list = baseDeviceInfoService.selectBaseDeviceInfoList(baseDeviceInfo);
|
||||
ExcelUtil<BaseDeviceInfo> util = new ExcelUtil<BaseDeviceInfo>(BaseDeviceInfo.class);
|
||||
return util.exportExcel(list, "base_device_info");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息维护
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存设备信息维护
|
||||
*/
|
||||
@RequiresPermissions("manage:base_device_info:add")
|
||||
@Log(title = "设备信息维护", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
return toAjax(baseDeviceInfoService.insertBaseDeviceInfo(baseDeviceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息维护
|
||||
*/
|
||||
@GetMapping("/edit/{objid}")
|
||||
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||
{
|
||||
BaseDeviceInfo baseDeviceInfo = baseDeviceInfoService.selectBaseDeviceInfoById(objid);
|
||||
mmap.put("baseDeviceInfo", baseDeviceInfo);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存设备信息维护
|
||||
*/
|
||||
@RequiresPermissions("manage:base_device_info:edit")
|
||||
@Log(title = "设备信息维护", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
return toAjax(baseDeviceInfoService.updateBaseDeviceInfo(baseDeviceInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息维护
|
||||
*/
|
||||
@RequiresPermissions("manage:base_device_info:remove")
|
||||
@Log(title = "设备信息维护", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(baseDeviceInfoService.deleteBaseDeviceInfoByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package com.haiwei.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.haiwei.common.annotation.Log;
|
||||
import com.haiwei.common.enums.BusinessType;
|
||||
import com.haiwei.manage.domain.BaseMonitorInfo;
|
||||
import com.haiwei.manage.service.IBaseMonitorInfoService;
|
||||
import com.haiwei.common.core.controller.BaseController;
|
||||
import com.haiwei.common.core.domain.AjaxResult;
|
||||
import com.haiwei.common.utils.poi.ExcelUtil;
|
||||
import com.haiwei.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 视频监控信息管理Controller
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/manage/base_monitor_info")
|
||||
public class BaseMonitorInfoController extends BaseController
|
||||
{
|
||||
private String prefix = "manage/base_monitor_info";
|
||||
|
||||
@Autowired
|
||||
private IBaseMonitorInfoService baseMonitorInfoService;
|
||||
|
||||
@RequiresPermissions("manage:base_monitor_info:view")
|
||||
@GetMapping()
|
||||
public String base_monitor_info()
|
||||
{
|
||||
return prefix + "/base_monitor_info";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询视频监控信息管理列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_monitor_info:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
startPage();
|
||||
List<BaseMonitorInfo> list = baseMonitorInfoService.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出视频监控信息管理列表
|
||||
*/
|
||||
@RequiresPermissions("manage:base_monitor_info:export")
|
||||
@Log(title = "视频监控信息管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
List<BaseMonitorInfo> list = baseMonitorInfoService.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||
ExcelUtil<BaseMonitorInfo> util = new ExcelUtil<BaseMonitorInfo>(BaseMonitorInfo.class);
|
||||
return util.exportExcel(list, "base_monitor_info");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增视频监控信息管理
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存视频监控信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_monitor_info:add")
|
||||
@Log(title = "视频监控信息管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
return toAjax(baseMonitorInfoService.insertBaseMonitorInfo(baseMonitorInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改视频监控信息管理
|
||||
*/
|
||||
@GetMapping("/edit/{objid}")
|
||||
public String edit(@PathVariable("objid") Long objid, ModelMap mmap)
|
||||
{
|
||||
BaseMonitorInfo baseMonitorInfo = baseMonitorInfoService.selectBaseMonitorInfoById(objid);
|
||||
mmap.put("baseMonitorInfo", baseMonitorInfo);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存视频监控信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_monitor_info:edit")
|
||||
@Log(title = "视频监控信息管理", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
return toAjax(baseMonitorInfoService.updateBaseMonitorInfo(baseMonitorInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除视频监控信息管理
|
||||
*/
|
||||
@RequiresPermissions("manage:base_monitor_info:remove")
|
||||
@Log(title = "视频监控信息管理", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(baseMonitorInfoService.deleteBaseMonitorInfoByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.haiwei.manage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.haiwei.common.annotation.Excel;
|
||||
import com.haiwei.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 客户信息管理对象 base_customer
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public class BaseCustomer extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long objid;
|
||||
|
||||
/** 客户名称 */
|
||||
@Excel(name = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
/** 客户logo */
|
||||
@Excel(name = "客户logo")
|
||||
private String customerLogo;
|
||||
|
||||
/** 客户介绍 */
|
||||
@Excel(name = "客户介绍")
|
||||
private String customerInfo;
|
||||
|
||||
public void setObjid(Long objid)
|
||||
{
|
||||
this.objid = objid;
|
||||
}
|
||||
|
||||
public Long getObjid()
|
||||
{
|
||||
return objid;
|
||||
}
|
||||
public void setCustomerName(String customerName)
|
||||
{
|
||||
this.customerName = customerName;
|
||||
}
|
||||
|
||||
public String getCustomerName()
|
||||
{
|
||||
return customerName;
|
||||
}
|
||||
public void setCustomerLogo(String customerLogo)
|
||||
{
|
||||
this.customerLogo = customerLogo;
|
||||
}
|
||||
|
||||
public String getCustomerLogo()
|
||||
{
|
||||
return customerLogo;
|
||||
}
|
||||
public void setCustomerInfo(String customerInfo)
|
||||
{
|
||||
this.customerInfo = customerInfo;
|
||||
}
|
||||
|
||||
public String getCustomerInfo()
|
||||
{
|
||||
return customerInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objid", getObjid())
|
||||
.append("customerName", getCustomerName())
|
||||
.append("customerLogo", getCustomerLogo())
|
||||
.append("customerInfo", getCustomerInfo())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,125 @@
|
||||
package com.haiwei.manage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.haiwei.common.annotation.Excel;
|
||||
import com.haiwei.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备信息维护对象 base_device_info
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public class BaseDeviceInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long objid;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备类型 */
|
||||
@Excel(name = "设备类型")
|
||||
private String deviceTypeName;
|
||||
|
||||
/** 设备模型图片 */
|
||||
@Excel(name = "设备模型图片")
|
||||
private String deviceMode;
|
||||
|
||||
/** 设备规格 */
|
||||
@Excel(name = "设备规格")
|
||||
private String deviceSpe;
|
||||
|
||||
/** 功能描述 */
|
||||
@Excel(name = "功能描述")
|
||||
private String deviceFunction;
|
||||
|
||||
/** 设备参数 */
|
||||
@Excel(name = "设备参数")
|
||||
private String deviceParam;
|
||||
|
||||
public void setObjid(Long objid)
|
||||
{
|
||||
this.objid = objid;
|
||||
}
|
||||
|
||||
public Long getObjid()
|
||||
{
|
||||
return objid;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setDeviceTypeName(String deviceTypeName)
|
||||
{
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName()
|
||||
{
|
||||
return deviceTypeName;
|
||||
}
|
||||
public void setDeviceMode(String deviceMode)
|
||||
{
|
||||
this.deviceMode = deviceMode;
|
||||
}
|
||||
|
||||
public String getDeviceMode()
|
||||
{
|
||||
return deviceMode;
|
||||
}
|
||||
public void setDeviceSpe(String deviceSpe)
|
||||
{
|
||||
this.deviceSpe = deviceSpe;
|
||||
}
|
||||
|
||||
public String getDeviceSpe()
|
||||
{
|
||||
return deviceSpe;
|
||||
}
|
||||
public void setDeviceFunction(String deviceFunction)
|
||||
{
|
||||
this.deviceFunction = deviceFunction;
|
||||
}
|
||||
|
||||
public String getDeviceFunction()
|
||||
{
|
||||
return deviceFunction;
|
||||
}
|
||||
public void setDeviceParam(String deviceParam)
|
||||
{
|
||||
this.deviceParam = deviceParam;
|
||||
}
|
||||
|
||||
public String getDeviceParam()
|
||||
{
|
||||
return deviceParam;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objid", getObjid())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceTypeName", getDeviceTypeName())
|
||||
.append("deviceMode", getDeviceMode())
|
||||
.append("deviceSpe", getDeviceSpe())
|
||||
.append("deviceFunction", getDeviceFunction())
|
||||
.append("deviceParam", getDeviceParam())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.haiwei.manage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.haiwei.common.annotation.Excel;
|
||||
import com.haiwei.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 视频监控信息管理对象 base_monitor_info
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public class BaseMonitorInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long objid;
|
||||
|
||||
/** 监控名称 */
|
||||
@Excel(name = "监控名称")
|
||||
private String monitorName;
|
||||
|
||||
/** 设备IP */
|
||||
@Excel(name = "设备IP")
|
||||
private String monitorIp;
|
||||
|
||||
public void setObjid(Long objid)
|
||||
{
|
||||
this.objid = objid;
|
||||
}
|
||||
|
||||
public Long getObjid()
|
||||
{
|
||||
return objid;
|
||||
}
|
||||
public void setMonitorName(String monitorName)
|
||||
{
|
||||
this.monitorName = monitorName;
|
||||
}
|
||||
|
||||
public String getMonitorName()
|
||||
{
|
||||
return monitorName;
|
||||
}
|
||||
public void setMonitorIp(String monitorIp)
|
||||
{
|
||||
this.monitorIp = monitorIp;
|
||||
}
|
||||
|
||||
public String getMonitorIp()
|
||||
{
|
||||
return monitorIp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objid", getObjid())
|
||||
.append("monitorName", getMonitorName())
|
||||
.append("monitorIp", getMonitorIp())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseCustomer;
|
||||
|
||||
/**
|
||||
* 客户信息管理Mapper接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface BaseCustomerMapper
|
||||
{
|
||||
/**
|
||||
* 查询客户信息管理
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 客户信息管理
|
||||
*/
|
||||
public BaseCustomer selectBaseCustomerById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询客户信息管理列表
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 客户信息管理集合
|
||||
*/
|
||||
public List<BaseCustomer> selectBaseCustomerList(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 新增客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseCustomer(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 修改客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseCustomer(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 删除客户信息管理
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseCustomerById(Long objid);
|
||||
|
||||
/**
|
||||
* 批量删除客户信息管理
|
||||
*
|
||||
* @param objids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseCustomerByIds(String[] objids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseDeviceInfo;
|
||||
|
||||
/**
|
||||
* 设备信息维护Mapper接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface BaseDeviceInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备信息维护
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 设备信息维护
|
||||
*/
|
||||
public BaseDeviceInfo selectBaseDeviceInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询设备信息维护列表
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 设备信息维护集合
|
||||
*/
|
||||
public List<BaseDeviceInfo> selectBaseDeviceInfoList(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 新增设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 修改设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 删除设备信息维护
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseDeviceInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息维护
|
||||
*
|
||||
* @param objids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseDeviceInfoByIds(String[] objids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseMonitorInfo;
|
||||
|
||||
/**
|
||||
* 视频监控信息管理Mapper接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface BaseMonitorInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询视频监控信息管理
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 视频监控信息管理
|
||||
*/
|
||||
public BaseMonitorInfo selectBaseMonitorInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询视频监控信息管理列表
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 视频监控信息管理集合
|
||||
*/
|
||||
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 新增视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 修改视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 删除视频监控信息管理
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseMonitorInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 批量删除视频监控信息管理
|
||||
*
|
||||
* @param objids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseMonitorInfoByIds(String[] objids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseCustomer;
|
||||
|
||||
/**
|
||||
* 客户信息管理Service接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface IBaseCustomerService
|
||||
{
|
||||
/**
|
||||
* 查询客户信息管理
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 客户信息管理
|
||||
*/
|
||||
public BaseCustomer selectBaseCustomerById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询客户信息管理列表
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 客户信息管理集合
|
||||
*/
|
||||
public List<BaseCustomer> selectBaseCustomerList(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 新增客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseCustomer(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 修改客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseCustomer(BaseCustomer baseCustomer);
|
||||
|
||||
/**
|
||||
* 批量删除客户信息管理
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseCustomerByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除客户信息管理信息
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseCustomerById(Long objid);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseDeviceInfo;
|
||||
|
||||
/**
|
||||
* 设备信息维护Service接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface IBaseDeviceInfoService
|
||||
{
|
||||
/**
|
||||
* 查询设备信息维护
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 设备信息维护
|
||||
*/
|
||||
public BaseDeviceInfo selectBaseDeviceInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询设备信息维护列表
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 设备信息维护集合
|
||||
*/
|
||||
public List<BaseDeviceInfo> selectBaseDeviceInfoList(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 新增设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 修改设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息维护
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseDeviceInfoByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除设备信息维护信息
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseDeviceInfoById(Long objid);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.haiwei.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.manage.domain.BaseMonitorInfo;
|
||||
|
||||
/**
|
||||
* 视频监控信息管理Service接口
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
public interface IBaseMonitorInfoService
|
||||
{
|
||||
/**
|
||||
* 查询视频监控信息管理
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 视频监控信息管理
|
||||
*/
|
||||
public BaseMonitorInfo selectBaseMonitorInfoById(Long objid);
|
||||
|
||||
/**
|
||||
* 查询视频监控信息管理列表
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 视频监控信息管理集合
|
||||
*/
|
||||
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 新增视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 修改视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo);
|
||||
|
||||
/**
|
||||
* 批量删除视频监控信息管理
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseMonitorInfoByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除视频监控信息管理信息
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBaseMonitorInfoById(Long objid);
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.haiwei.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.common.utils.DateUtils;
|
||||
import com.haiwei.framework.util.ShiroUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.haiwei.manage.mapper.BaseCustomerMapper;
|
||||
import com.haiwei.manage.domain.BaseCustomer;
|
||||
import com.haiwei.manage.service.IBaseCustomerService;
|
||||
import com.haiwei.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 客户信息管理Service业务层处理
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Service
|
||||
public class BaseCustomerServiceImpl implements IBaseCustomerService
|
||||
{
|
||||
@Autowired
|
||||
private BaseCustomerMapper baseCustomerMapper;
|
||||
|
||||
/**
|
||||
* 查询客户信息管理
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 客户信息管理
|
||||
*/
|
||||
@Override
|
||||
public BaseCustomer selectBaseCustomerById(Long objid)
|
||||
{
|
||||
return baseCustomerMapper.selectBaseCustomerById(objid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户信息管理列表
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 客户信息管理
|
||||
*/
|
||||
@Override
|
||||
public List<BaseCustomer> selectBaseCustomerList(BaseCustomer baseCustomer)
|
||||
{
|
||||
return baseCustomerMapper.selectBaseCustomerList(baseCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseCustomer(BaseCustomer baseCustomer)
|
||||
{
|
||||
baseCustomer.setCreateBy(ShiroUtils.getLoginName());
|
||||
baseCustomer.setCreateTime(DateUtils.getNowDate());
|
||||
return baseCustomerMapper.insertBaseCustomer(baseCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户信息管理
|
||||
*
|
||||
* @param baseCustomer 客户信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseCustomer(BaseCustomer baseCustomer)
|
||||
{
|
||||
baseCustomer.setUpdateBy(ShiroUtils.getLoginName());
|
||||
baseCustomer.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseCustomerMapper.updateBaseCustomer(baseCustomer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信息管理对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseCustomerByIds(String ids)
|
||||
{
|
||||
return baseCustomerMapper.deleteBaseCustomerByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户信息管理信息
|
||||
*
|
||||
* @param objid 客户信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseCustomerById(Long objid)
|
||||
{
|
||||
return baseCustomerMapper.deleteBaseCustomerById(objid);
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.haiwei.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.common.utils.DateUtils;
|
||||
import com.haiwei.framework.util.ShiroUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.haiwei.manage.mapper.BaseDeviceInfoMapper;
|
||||
import com.haiwei.manage.domain.BaseDeviceInfo;
|
||||
import com.haiwei.manage.service.IBaseDeviceInfoService;
|
||||
import com.haiwei.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 设备信息维护Service业务层处理
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Service
|
||||
public class BaseDeviceInfoServiceImpl implements IBaseDeviceInfoService
|
||||
{
|
||||
@Autowired
|
||||
private BaseDeviceInfoMapper baseDeviceInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询设备信息维护
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 设备信息维护
|
||||
*/
|
||||
@Override
|
||||
public BaseDeviceInfo selectBaseDeviceInfoById(Long objid)
|
||||
{
|
||||
return baseDeviceInfoMapper.selectBaseDeviceInfoById(objid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备信息维护列表
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 设备信息维护
|
||||
*/
|
||||
@Override
|
||||
public List<BaseDeviceInfo> selectBaseDeviceInfoList(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
return baseDeviceInfoMapper.selectBaseDeviceInfoList(baseDeviceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
baseDeviceInfo.setCreateBy(ShiroUtils.getLoginName());
|
||||
baseDeviceInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return baseDeviceInfoMapper.insertBaseDeviceInfo(baseDeviceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息维护
|
||||
*
|
||||
* @param baseDeviceInfo 设备信息维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo)
|
||||
{
|
||||
baseDeviceInfo.setUpdateBy(ShiroUtils.getLoginName());
|
||||
baseDeviceInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseDeviceInfoMapper.updateBaseDeviceInfo(baseDeviceInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息维护对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDeviceInfoByIds(String ids)
|
||||
{
|
||||
return baseDeviceInfoMapper.deleteBaseDeviceInfoByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息维护信息
|
||||
*
|
||||
* @param objid 设备信息维护ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseDeviceInfoById(Long objid)
|
||||
{
|
||||
return baseDeviceInfoMapper.deleteBaseDeviceInfoById(objid);
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.haiwei.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.haiwei.common.utils.DateUtils;
|
||||
import com.haiwei.framework.util.ShiroUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.haiwei.manage.mapper.BaseMonitorInfoMapper;
|
||||
import com.haiwei.manage.domain.BaseMonitorInfo;
|
||||
import com.haiwei.manage.service.IBaseMonitorInfoService;
|
||||
import com.haiwei.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 视频监控信息管理Service业务层处理
|
||||
*
|
||||
* @author wangh
|
||||
* @date 2023-08-15
|
||||
*/
|
||||
@Service
|
||||
public class BaseMonitorInfoServiceImpl implements IBaseMonitorInfoService
|
||||
{
|
||||
@Autowired
|
||||
private BaseMonitorInfoMapper baseMonitorInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询视频监控信息管理
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 视频监控信息管理
|
||||
*/
|
||||
@Override
|
||||
public BaseMonitorInfo selectBaseMonitorInfoById(Long objid)
|
||||
{
|
||||
return baseMonitorInfoMapper.selectBaseMonitorInfoById(objid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询视频监控信息管理列表
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 视频监控信息管理
|
||||
*/
|
||||
@Override
|
||||
public List<BaseMonitorInfo> selectBaseMonitorInfoList(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
return baseMonitorInfoMapper.selectBaseMonitorInfoList(baseMonitorInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
baseMonitorInfo.setCreateBy(ShiroUtils.getLoginName());
|
||||
baseMonitorInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return baseMonitorInfoMapper.insertBaseMonitorInfo(baseMonitorInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改视频监控信息管理
|
||||
*
|
||||
* @param baseMonitorInfo 视频监控信息管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBaseMonitorInfo(BaseMonitorInfo baseMonitorInfo)
|
||||
{
|
||||
baseMonitorInfo.setUpdateBy(ShiroUtils.getLoginName());
|
||||
baseMonitorInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return baseMonitorInfoMapper.updateBaseMonitorInfo(baseMonitorInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除视频监控信息管理对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseMonitorInfoByIds(String ids)
|
||||
{
|
||||
return baseMonitorInfoMapper.deleteBaseMonitorInfoByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除视频监控信息管理信息
|
||||
*
|
||||
* @param objid 视频监控信息管理ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBaseMonitorInfoById(Long objid)
|
||||
{
|
||||
return baseMonitorInfoMapper.deleteBaseMonitorInfoById(objid);
|
||||
}
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
<?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.haiwei.manage.mapper.BaseCustomerMapper">
|
||||
|
||||
<resultMap type="BaseCustomer" id="BaseCustomerResult">
|
||||
<result property="objid" column="objid" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="customerLogo" column="customer_logo" />
|
||||
<result property="customerInfo" column="customer_info" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseCustomerVo">
|
||||
select objid, customer_name, customer_logo, customer_info, create_by, create_time, update_by, update_time from base_customer
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseCustomerList" parameterType="BaseCustomer" resultMap="BaseCustomerResult">
|
||||
<include refid="selectBaseCustomerVo"/>
|
||||
<where>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like ('%' + #{customerName} + '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseCustomerById" parameterType="Long" resultMap="BaseCustomerResult">
|
||||
<include refid="selectBaseCustomerVo"/>
|
||||
where objid = #{objid}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseCustomer" parameterType="BaseCustomer">
|
||||
insert into base_customer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">objid,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="customerLogo != null and customerLogo != ''">customer_logo,</if>
|
||||
<if test="customerInfo != null">customer_info,</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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">#{objid},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="customerLogo != null and customerLogo != ''">#{customerLogo},</if>
|
||||
<if test="customerInfo != null">#{customerInfo},</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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseCustomer" parameterType="BaseCustomer">
|
||||
update base_customer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="customerLogo != null and customerLogo != ''">customer_logo = #{customerLogo},</if>
|
||||
<if test="customerInfo != null">customer_info = #{customerInfo},</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>
|
||||
</trim>
|
||||
where objid = #{objid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseCustomerById" parameterType="Long">
|
||||
delete from base_customer where objid = #{objid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseCustomerByIds" parameterType="String">
|
||||
delete from base_customer where objid in
|
||||
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||
#{objid}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,96 @@
|
||||
<?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.haiwei.manage.mapper.BaseDeviceInfoMapper">
|
||||
|
||||
<resultMap type="BaseDeviceInfo" id="BaseDeviceInfoResult">
|
||||
<result property="objid" column="objid" />
|
||||
<result property="deviceName" column="device_name" />
|
||||
<result property="deviceTypeName" column="device_type_name" />
|
||||
<result property="deviceMode" column="device_mode" />
|
||||
<result property="deviceSpe" column="device_spe" />
|
||||
<result property="deviceFunction" column="device_function" />
|
||||
<result property="deviceParam" column="device_param" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseDeviceInfoVo">
|
||||
select objid, device_name, device_type_name, device_mode, device_spe, device_function, device_param, create_by, create_time, update_by, update_time from base_device_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseDeviceInfoList" parameterType="BaseDeviceInfo" resultMap="BaseDeviceInfoResult">
|
||||
<include refid="selectBaseDeviceInfoVo"/>
|
||||
<where>
|
||||
<if test="deviceName != null and deviceName != ''"> and device_name like ('%' + #{deviceName} + '%')</if>
|
||||
<if test="deviceTypeName != null and deviceTypeName != ''"> and device_type_name = #{deviceTypeName}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseDeviceInfoById" parameterType="Long" resultMap="BaseDeviceInfoResult">
|
||||
<include refid="selectBaseDeviceInfoVo"/>
|
||||
where objid = #{objid}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseDeviceInfo" parameterType="BaseDeviceInfo">
|
||||
insert into base_device_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">objid,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="deviceTypeName != null">device_type_name,</if>
|
||||
<if test="deviceMode != null">device_mode,</if>
|
||||
<if test="deviceSpe != null">device_spe,</if>
|
||||
<if test="deviceFunction != null">device_function,</if>
|
||||
<if test="deviceParam != null">device_param,</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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">#{objid},</if>
|
||||
<if test="deviceName != null">#{deviceName},</if>
|
||||
<if test="deviceTypeName != null">#{deviceTypeName},</if>
|
||||
<if test="deviceMode != null">#{deviceMode},</if>
|
||||
<if test="deviceSpe != null">#{deviceSpe},</if>
|
||||
<if test="deviceFunction != null">#{deviceFunction},</if>
|
||||
<if test="deviceParam != null">#{deviceParam},</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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseDeviceInfo" parameterType="BaseDeviceInfo">
|
||||
update base_device_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceName != null">device_name = #{deviceName},</if>
|
||||
<if test="deviceTypeName != null">device_type_name = #{deviceTypeName},</if>
|
||||
<if test="deviceMode != null">device_mode = #{deviceMode},</if>
|
||||
<if test="deviceSpe != null">device_spe = #{deviceSpe},</if>
|
||||
<if test="deviceFunction != null">device_function = #{deviceFunction},</if>
|
||||
<if test="deviceParam != null">device_param = #{deviceParam},</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>
|
||||
</trim>
|
||||
where objid = #{objid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseDeviceInfoById" parameterType="Long">
|
||||
delete from base_device_info where objid = #{objid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseDeviceInfoByIds" parameterType="String">
|
||||
delete from base_device_info where objid in
|
||||
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||
#{objid}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,80 @@
|
||||
<?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.haiwei.manage.mapper.BaseMonitorInfoMapper">
|
||||
|
||||
<resultMap type="BaseMonitorInfo" id="BaseMonitorInfoResult">
|
||||
<result property="objid" column="objid" />
|
||||
<result property="monitorName" column="monitor_name" />
|
||||
<result property="monitorIp" column="monitor_ip" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBaseMonitorInfoVo">
|
||||
select objid, monitor_name, monitor_ip, create_by, create_time, update_by, update_time from base_monitor_info
|
||||
</sql>
|
||||
|
||||
<select id="selectBaseMonitorInfoList" parameterType="BaseMonitorInfo" resultMap="BaseMonitorInfoResult">
|
||||
<include refid="selectBaseMonitorInfoVo"/>
|
||||
<where>
|
||||
<if test="monitorName != null and monitorName != ''"> and monitor_name = #{monitorName}</if>
|
||||
<if test="monitorIp != null and monitorIp != ''"> and monitor_ip = #{monitorIp}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseMonitorInfoById" parameterType="Long" resultMap="BaseMonitorInfoResult">
|
||||
<include refid="selectBaseMonitorInfoVo"/>
|
||||
where objid = #{objid}
|
||||
</select>
|
||||
|
||||
<insert id="insertBaseMonitorInfo" parameterType="BaseMonitorInfo">
|
||||
insert into base_monitor_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">objid,</if>
|
||||
<if test="monitorName != null and monitorName != ''">monitor_name,</if>
|
||||
<if test="monitorIp != null and monitorIp != ''">monitor_ip,</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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objid != null">#{objid},</if>
|
||||
<if test="monitorName != null and monitorName != ''">#{monitorName},</if>
|
||||
<if test="monitorIp != null and monitorIp != ''">#{monitorIp},</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>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBaseMonitorInfo" parameterType="BaseMonitorInfo">
|
||||
update base_monitor_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="monitorName != null and monitorName != ''">monitor_name = #{monitorName},</if>
|
||||
<if test="monitorIp != null and monitorIp != ''">monitor_ip = #{monitorIp},</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>
|
||||
</trim>
|
||||
where objid = #{objid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBaseMonitorInfoById" parameterType="Long">
|
||||
delete from base_monitor_info where objid = #{objid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBaseMonitorInfoByIds" parameterType="String">
|
||||
delete from base_monitor_info where objid in
|
||||
<foreach item="objid" collection="array" open="(" separator="," close=")">
|
||||
#{objid}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('客户信息管理列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>客户名称:</label>
|
||||
<input type="text" name="customerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="manage:base_customer:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="manage:base_customer:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="manage:base_customer:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="manage:base_customer:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('manage:base_customer:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('manage:base_customer:remove')}]];
|
||||
var prefix = ctx + "manage/base_customer";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "客户信息管理",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'objid',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'customerName',
|
||||
title: '客户名称'
|
||||
},
|
||||
{
|
||||
field: 'customerLogo',
|
||||
title: '客户logo'
|
||||
},
|
||||
{
|
||||
field: 'customerInfo',
|
||||
title: '客户介绍'
|
||||
},
|
||||
{
|
||||
field: 'createBy',
|
||||
title: '创建人'
|
||||
},
|
||||
{
|
||||
field: 'createTime',
|
||||
title: '创建时间'
|
||||
},
|
||||
{
|
||||
field: 'updateBy',
|
||||
title: '更新人'
|
||||
},
|
||||
{
|
||||
field: 'updateTime',
|
||||
title: '更新时间'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,80 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增设备信息维护')" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
||||
<th:block th:include="include :: select2-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-base_device_info-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="deviceTypeName" class="form-control m-b" >
|
||||
<!-- <option value="">所有</option>-->
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备模型图片:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" name="deviceMode">
|
||||
<div class="file-loading">
|
||||
<input class="form-control file-upload" id="deviceMode" name="file" type="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备规格:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceSpe" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">功能描述:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceFunction" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceParam" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: select2-js" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "manage/base_device_info"
|
||||
$("#form-base_device_info-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-base_device_info-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(".file-upload").fileinput({
|
||||
uploadUrl: '/common/upload',
|
||||
maxFileCount: 1,
|
||||
autoReplace: true
|
||||
}).on('fileuploaded', function (event, data, previewId, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
||||
}).on('fileremoved', function (event, id, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val('')
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,121 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('设备信息维护列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>设备名称:</label>
|
||||
<input type="text" name="deviceName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>设备类型:</label>
|
||||
<select name="deviceTypeName">
|
||||
<option value="">所有</option>
|
||||
<option value="-1">代码生成请选择字典属性</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="manage:base_device_info:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="manage:base_device_info:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="manage:base_device_info:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="manage:base_device_info:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('manage:base_device_info:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('manage:base_device_info:remove')}]];
|
||||
var prefix = ctx + "manage/base_device_info";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "设备信息维护",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'objid',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'deviceName',
|
||||
title: '设备名称'
|
||||
},
|
||||
{
|
||||
field: 'deviceTypeName',
|
||||
title: '设备类型'
|
||||
},
|
||||
{
|
||||
field: 'deviceMode',
|
||||
title: '设备模型图片'
|
||||
},
|
||||
{
|
||||
field: 'deviceSpe',
|
||||
title: '设备规格'
|
||||
},
|
||||
{
|
||||
field: 'deviceFunction',
|
||||
title: '功能描述'
|
||||
},
|
||||
{
|
||||
field: 'deviceParam',
|
||||
title: '设备参数'
|
||||
},
|
||||
{
|
||||
field: 'updateBy',
|
||||
title: '更新人'
|
||||
},
|
||||
{
|
||||
field: 'updateTime',
|
||||
title: '更新时间'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,86 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改设备信息维护')" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-css"/>
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-base_device_info-edit" th:object="${baseDeviceInfo}">
|
||||
<input name="objid" th:field="*{objid}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceName" th:field="*{deviceName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="deviceTypeName" class="form-control m-b">
|
||||
<option value="">所有</option>
|
||||
</select>
|
||||
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备模型图片:</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="hidden" name="deviceMode" th:field="*{deviceMode}">
|
||||
<div class="file-loading">
|
||||
<input class="form-control file-upload" id="deviceMode" name="file" type="file">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备规格:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceSpe" th:field="*{deviceSpe}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">功能描述:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceFunction" th:field="*{deviceFunction}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">设备参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deviceParam" th:field="*{deviceParam}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: bootstrap-fileinput-js"/>
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "manage/base_device_info";
|
||||
$("#form-base_device_info-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-base_device_info-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$(".file-upload").each(function (i) {
|
||||
var val = $("input[name='" + this.id + "']").val()
|
||||
$(this).fileinput({
|
||||
'uploadUrl': '/common/upload',
|
||||
initialPreviewAsData: true,
|
||||
initialPreview: [val],
|
||||
maxFileCount: 1,
|
||||
autoReplace: true
|
||||
}).on('fileuploaded', function (event, data, previewId, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val(data.response.url)
|
||||
}).on('fileremoved', function (event, id, index) {
|
||||
$("input[name='" + event.currentTarget.id + "']").val('')
|
||||
})
|
||||
$(this).fileinput('_initFileActions');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue