保无忧PC版本
This commit is contained in:
parent
8a79fccffa
commit
afc4a7ba19
7
pom.xml
7
pom.xml
|
|
@ -29,12 +29,19 @@
|
|||
<commons.io.version>2.11.0</commons.io.version>
|
||||
<poi.version>4.1.2</poi.version>
|
||||
<velocity.version>2.3</velocity.version>
|
||||
<lombok.version>1.18.12</lombok.version>
|
||||
</properties>
|
||||
|
||||
<!-- 依赖声明 -->
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot的依赖配置-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,127 @@
|
|||
package com.ruoyi.web.controller.system;
|
||||
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.Clew;
|
||||
import com.ruoyi.system.service.IClewService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 线索Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/clew")
|
||||
public class ClewController extends BaseController
|
||||
{
|
||||
private String prefix = "system/clew";
|
||||
|
||||
@Autowired
|
||||
private IClewService clewService;
|
||||
|
||||
@RequiresPermissions("system:clew:view")
|
||||
@GetMapping()
|
||||
public String clew()
|
||||
{
|
||||
return prefix + "/clew";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线索列表
|
||||
*/
|
||||
@RequiresPermissions("system:clew:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(Clew clew)
|
||||
{
|
||||
startPage();
|
||||
List<Clew> list = clewService.selectClewList(clew);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出线索列表
|
||||
*/
|
||||
@RequiresPermissions("system:clew:export")
|
||||
@Log(title = "线索", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(Clew clew)
|
||||
{
|
||||
List<Clew> list = clewService.selectClewList(clew);
|
||||
ExcelUtil<Clew> util = new ExcelUtil<Clew>(Clew.class);
|
||||
return util.exportExcel(list, "线索数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线索
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存线索
|
||||
*/
|
||||
@RequiresPermissions("system:clew:add")
|
||||
@Log(title = "线索", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(Clew clew)
|
||||
{
|
||||
return toAjax(clewService.insertClew(clew));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线索
|
||||
*/
|
||||
@RequiresPermissions("system:clew:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
Clew clew = clewService.selectClewById(id);
|
||||
mmap.put("clew", clew);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存线索
|
||||
*/
|
||||
@RequiresPermissions("system:clew:edit")
|
||||
@Log(title = "线索", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(Clew clew)
|
||||
{
|
||||
return toAjax(clewService.updateClew(clew));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线索
|
||||
*/
|
||||
@RequiresPermissions("system:clew:remove")
|
||||
@Log(title = "线索", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(clewService.deleteClewByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
package com.ruoyi.web.controller.system;
|
||||
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.CompanyApp;
|
||||
import com.ruoyi.system.service.ICompanyAppService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 客户端Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/app")
|
||||
public class CompanyAppController extends BaseController
|
||||
{
|
||||
private String prefix = "system/app";
|
||||
|
||||
@Autowired
|
||||
private ICompanyAppService companyAppService;
|
||||
|
||||
@RequiresPermissions("system:app:view")
|
||||
@GetMapping()
|
||||
public String app()
|
||||
{
|
||||
return prefix + "/app";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户端列表
|
||||
*/
|
||||
@RequiresPermissions("system:app:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(CompanyApp companyApp)
|
||||
{
|
||||
startPage();
|
||||
List<CompanyApp> list = companyAppService.selectCompanyAppList(companyApp);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出客户端列表
|
||||
*/
|
||||
@RequiresPermissions("system:app:export")
|
||||
@Log(title = "客户端", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(CompanyApp companyApp)
|
||||
{
|
||||
List<CompanyApp> list = companyAppService.selectCompanyAppList(companyApp);
|
||||
ExcelUtil<CompanyApp> util = new ExcelUtil<CompanyApp>(CompanyApp.class);
|
||||
return util.exportExcel(list, "客户端数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户端
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存客户端
|
||||
*/
|
||||
@RequiresPermissions("system:app:add")
|
||||
@Log(title = "客户端", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(CompanyApp companyApp)
|
||||
{
|
||||
return toAjax(companyAppService.insertCompanyApp(companyApp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户端
|
||||
*/
|
||||
@RequiresPermissions("system:app:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
CompanyApp companyApp = companyAppService.selectCompanyAppById(id);
|
||||
mmap.put("companyApp", companyApp);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存客户端
|
||||
*/
|
||||
@RequiresPermissions("system:app:edit")
|
||||
@Log(title = "客户端", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(CompanyApp companyApp)
|
||||
{
|
||||
return toAjax(companyAppService.updateCompanyApp(companyApp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户端
|
||||
*/
|
||||
@RequiresPermissions("system:app:remove")
|
||||
@Log(title = "客户端", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(companyAppService.deleteCompanyAppByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
package com.ruoyi.web.controller.system;
|
||||
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.Company;
|
||||
import com.ruoyi.system.service.ICompanyService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 广告主Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/company")
|
||||
public class CompanyController extends BaseController
|
||||
{
|
||||
private String prefix = "system/company";
|
||||
|
||||
@Autowired
|
||||
private ICompanyService companyService;
|
||||
|
||||
@RequiresPermissions("system:company:view")
|
||||
@GetMapping()
|
||||
public String company()
|
||||
{
|
||||
return prefix + "/company";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询广告主列表
|
||||
*/
|
||||
@RequiresPermissions("system:company:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(Company company)
|
||||
{
|
||||
startPage();
|
||||
List<Company> list = companyService.selectCompanyList(company);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出广告主列表
|
||||
*/
|
||||
@RequiresPermissions("system:company:export")
|
||||
@Log(title = "广告主", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(Company company)
|
||||
{
|
||||
List<Company> list = companyService.selectCompanyList(company);
|
||||
ExcelUtil<Company> util = new ExcelUtil<Company>(Company.class);
|
||||
return util.exportExcel(list, "广告主数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增广告主
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存广告主
|
||||
*/
|
||||
@RequiresPermissions("system:company:add")
|
||||
@Log(title = "广告主", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(Company company)
|
||||
{
|
||||
return toAjax(companyService.insertCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改广告主
|
||||
*/
|
||||
@RequiresPermissions("system:company:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
Company company = companyService.selectCompanyById(id);
|
||||
mmap.put("company", company);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存广告主
|
||||
*/
|
||||
@RequiresPermissions("system:company:edit")
|
||||
@Log(title = "广告主", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(Company company)
|
||||
{
|
||||
return toAjax(companyService.updateCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除广告主
|
||||
*/
|
||||
@RequiresPermissions("system:company:remove")
|
||||
@Log(title = "广告主", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(companyService.deleteCompanyByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
package com.ruoyi.web.controller.system;
|
||||
|
||||
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.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.CompanySale;
|
||||
import com.ruoyi.system.service.ICompanySaleService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 广告主销售Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/sale")
|
||||
public class CompanySaleController extends BaseController
|
||||
{
|
||||
private String prefix = "system/sale";
|
||||
|
||||
@Autowired
|
||||
private ICompanySaleService companySaleService;
|
||||
|
||||
@RequiresPermissions("system:sale:view")
|
||||
@GetMapping()
|
||||
public String sale()
|
||||
{
|
||||
return prefix + "/sale";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询广告主销售列表
|
||||
*/
|
||||
@RequiresPermissions("system:sale:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(CompanySale companySale)
|
||||
{
|
||||
startPage();
|
||||
List<CompanySale> list = companySaleService.selectCompanySaleList(companySale);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出广告主销售列表
|
||||
*/
|
||||
@RequiresPermissions("system:sale:export")
|
||||
@Log(title = "广告主销售", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(CompanySale companySale)
|
||||
{
|
||||
List<CompanySale> list = companySaleService.selectCompanySaleList(companySale);
|
||||
ExcelUtil<CompanySale> util = new ExcelUtil<CompanySale>(CompanySale.class);
|
||||
return util.exportExcel(list, "广告主销售数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增广告主销售
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存广告主销售
|
||||
*/
|
||||
@RequiresPermissions("system:sale:add")
|
||||
@Log(title = "广告主销售", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(CompanySale companySale)
|
||||
{
|
||||
return toAjax(companySaleService.insertCompanySale(companySale));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改广告主销售
|
||||
*/
|
||||
@RequiresPermissions("system:sale:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
CompanySale companySale = companySaleService.selectCompanySaleById(id);
|
||||
mmap.put("companySale", companySale);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存广告主销售
|
||||
*/
|
||||
@RequiresPermissions("system:sale:edit")
|
||||
@Log(title = "广告主销售", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(CompanySale companySale)
|
||||
{
|
||||
return toAjax(companySaleService.updateCompanySale(companySale));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除广告主销售
|
||||
*/
|
||||
@RequiresPermissions("system:sale:remove")
|
||||
@Log(title = "广告主销售", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(companySaleService.deleteCompanySaleByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ ruoyi:
|
|||
# 开发环境配置
|
||||
server:
|
||||
# 服务器的HTTP端口,默认为80
|
||||
port: 80
|
||||
port: 8001
|
||||
servlet:
|
||||
# 应用的访问路径
|
||||
context-path: /
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<title>登录若依系统</title>
|
||||
<meta name="description" content="若依后台管理框架">
|
||||
<title>登录保无忧系统</title>
|
||||
<meta name="description" content="保无忧后台管理框架">
|
||||
<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
|
||||
<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
|
||||
<link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
|
||||
|
|
@ -26,10 +26,10 @@
|
|||
<div class="col-sm-7">
|
||||
<div class="signin-info">
|
||||
<div class="logopanel m-b">
|
||||
<h1><img alt="[ 若依 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
|
||||
<h1><img alt="[ 保无忧 ]" src="../static/ruoyi.png" th:src="@{/ruoyi.png}"></h1>
|
||||
</div>
|
||||
<div class="m-b"></div>
|
||||
<h4>欢迎使用 <strong>若依 后台管理系统</strong></h4>
|
||||
<h4>欢迎使用 <strong>保无忧 后台管理系统</strong></h4>
|
||||
<ul class="m-b">
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增客户端')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-app-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告主id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyId" 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="appName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">app跳转的目标微信公众号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wxAppId" 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="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/app"
|
||||
$("#form-app-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-app-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -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>广告主id:</label>
|
||||
<input type="text" name="companyId"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>应用名称:</label>
|
||||
<input type="text" name="appName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>app跳转的目标微信公众号:</label>
|
||||
<input type="text" name="wxAppId"/>
|
||||
</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="system:app:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:app:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:app:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:app: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('system:app:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:app:remove')}]];
|
||||
var prefix = ctx + "system/app";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "客户端",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'companyId',
|
||||
title: '广告主id'
|
||||
},
|
||||
{
|
||||
field: 'appName',
|
||||
title: '应用名称'
|
||||
},
|
||||
{
|
||||
field: 'wxAppId',
|
||||
title: 'app跳转的目标微信公众号'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '状态'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
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.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改客户端')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-app-edit" th:object="${companyApp}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告主id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyId" th:field="*{companyId}" 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="appName" th:field="*{appName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">app跳转的目标微信公众号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wxAppId" th:field="*{wxAppId}" 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="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/app";
|
||||
$("#form-app-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-app-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,183 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增线索')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-clew-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">广告主:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="company" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">销售:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="saleId" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">信息流:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="infoFlow" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">下次跟进日期:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="nextTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">微信昵称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wxName" 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="phone" 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="debtMoney" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">App来源:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="sourceApp" 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="wxAccount" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客户评级 01.无 02.无效 03.一般 04.重要 05.关键:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerLevel" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否长按识别二维码 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="touchQrcode" 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="contactNumber" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否触达 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isTouch" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否加微 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isAddWx" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否有效 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isEffective" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否意向 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isPlan" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">成交状态 0.未成交 1.已成交:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isDeal" 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="provinceName" 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="cityName" 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="customerName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="contactTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">其他联系方式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="otherPhone" 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="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/clew"
|
||||
$("#form-clew-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-clew-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='nextTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='contactTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,270 @@
|
|||
<!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="company"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>销售:</label>
|
||||
<input type="text" name="saleId"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>信息流:</label>
|
||||
<input type="text" name="infoFlow"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>下次跟进日期:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择下次跟进日期" name="nextTime"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信昵称:</label>
|
||||
<input type="text" name="wxName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>手机号:</label>
|
||||
<input type="text" name="phone"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>债务金额:</label>
|
||||
<input type="text" name="debtMoney"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>App来源:</label>
|
||||
<input type="text" name="sourceApp"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信号:</label>
|
||||
<input type="text" name="wxAccount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>客户评级:</label>
|
||||
<input type="text" name="customerLevel"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否长按识别二维码:</label>
|
||||
<input type="text" name="touchQrcode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>跟进次数:</label>
|
||||
<input type="text" name="contactNumber"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否触达:</label>
|
||||
<input type="text" name="isTouch"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否加微:</label>
|
||||
<input type="text" name="isAddWx"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否有效:</label>
|
||||
<input type="text" name="isEffective"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否意向:</label>
|
||||
<input type="text" name="isPlan"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>成交状态:</label>
|
||||
<input type="text" name="isDeal"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>省份:</label>
|
||||
<input type="text" name="provinceName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>城市:</label>
|
||||
<input type="text" name="cityName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>姓名:</label>
|
||||
<input type="text" name="customerName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>方便接电话时间:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择方便接电话时间" name="contactTime"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>其他联系方式:</label>
|
||||
<input type="text" name="otherPhone"/>
|
||||
</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="system:clew:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:clew:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:clew:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:clew: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('system:clew:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:clew:remove')}]];
|
||||
var prefix = ctx + "system/clew";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "线索",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'company',
|
||||
title: '广告主'
|
||||
},
|
||||
{
|
||||
field: 'saleId',
|
||||
title: '销售'
|
||||
},
|
||||
{
|
||||
field: 'infoFlow',
|
||||
title: '信息流'
|
||||
},
|
||||
{
|
||||
field: 'nextTime',
|
||||
title: '下次跟进日期'
|
||||
},
|
||||
{
|
||||
field: 'wxName',
|
||||
title: '微信昵称'
|
||||
},
|
||||
{
|
||||
field: 'phone',
|
||||
title: '手机号'
|
||||
},
|
||||
{
|
||||
field: 'debtType',
|
||||
title: '债务类型'
|
||||
},
|
||||
{
|
||||
field: 'debtMoney',
|
||||
title: '债务金额'
|
||||
},
|
||||
{
|
||||
field: 'sourceType',
|
||||
title: '推广来源'
|
||||
},
|
||||
{
|
||||
field: 'sourceApp',
|
||||
title: 'App来源'
|
||||
},
|
||||
{
|
||||
field: 'wxAccount',
|
||||
title: '微信号'
|
||||
},
|
||||
{
|
||||
field: 'customerStatus',
|
||||
title: '客户状态'
|
||||
},
|
||||
{
|
||||
field: 'customerLevel',
|
||||
title: '客户评级'
|
||||
},
|
||||
{
|
||||
field: 'touchQrcode',
|
||||
title: '是否长按识别二维码'
|
||||
},
|
||||
{
|
||||
field: 'contactNumber',
|
||||
title: '跟进次数'
|
||||
},
|
||||
{
|
||||
field: 'isTouch',
|
||||
title: '是否触达'
|
||||
},
|
||||
{
|
||||
field: 'isAddWx',
|
||||
title: '是否加微'
|
||||
},
|
||||
{
|
||||
field: 'isEffective',
|
||||
title: '是否有效'
|
||||
},
|
||||
{
|
||||
field: 'isPlan',
|
||||
title: '是否意向'
|
||||
},
|
||||
{
|
||||
field: 'isDeal',
|
||||
title: '成交状态'
|
||||
},
|
||||
{
|
||||
field: 'provinceName',
|
||||
title: '省份'
|
||||
},
|
||||
{
|
||||
field: 'cityName',
|
||||
title: '城市'
|
||||
},
|
||||
{
|
||||
field: 'customerName',
|
||||
title: '姓名'
|
||||
},
|
||||
{
|
||||
field: 'contactTime',
|
||||
title: '方便接电话时间'
|
||||
},
|
||||
{
|
||||
field: 'otherPhone',
|
||||
title: '其他联系方式'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
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.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,184 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改线索')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-clew-edit" th:object="${clew}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">广告主:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="company" th:field="*{company}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">销售:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="saleId" th:field="*{saleId}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">信息流:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="infoFlow" th:field="*{infoFlow}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">下次跟进日期:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="nextTime" th:value="${#dates.format(clew.nextTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">微信昵称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wxName" th:field="*{wxName}" 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="phone" th:field="*{phone}" 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="debtMoney" th:field="*{debtMoney}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">App来源:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="sourceApp" th:field="*{sourceApp}" 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="wxAccount" th:field="*{wxAccount}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客户评级 01.无 02.无效 03.一般 04.重要 05.关键:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="customerLevel" th:field="*{customerLevel}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否长按识别二维码 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="touchQrcode" th:field="*{touchQrcode}" 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="contactNumber" th:field="*{contactNumber}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否触达 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isTouch" th:field="*{isTouch}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否加微 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isAddWx" th:field="*{isAddWx}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否有效 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isEffective" th:field="*{isEffective}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否意向 0.否 1.是:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isPlan" th:field="*{isPlan}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">成交状态 0.未成交 1.已成交:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isDeal" th:field="*{isDeal}" 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="provinceName" th:field="*{provinceName}" 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="cityName" th:field="*{cityName}" 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="customerName" th:field="*{customerName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">方便接电话时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="contactTime" th:value="${#dates.format(clew.contactTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">其他联系方式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="otherPhone" th:field="*{otherPhone}" 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="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/clew";
|
||||
$("#form-clew-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-clew-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='nextTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='contactTime']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增广告主')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-company-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告主名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyName" 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="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/company"
|
||||
$("#form-company-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-company-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
<!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="companyName"/>
|
||||
</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="system:company:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:company:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:company:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:company: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('system:company:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:company:remove')}]];
|
||||
var prefix = ctx + "system/company";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "广告主",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'companyName',
|
||||
title: '广告主名称'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '状态'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
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.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改广告主')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-company-edit" th:object="${company}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">广告主名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyName" th:field="*{companyName}" 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="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/company";
|
||||
$("#form-company-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-company-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增广告主销售')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-sale-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客服名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="saleName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">进量状态 0.禁止 1.启用:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isEnable" 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="wxAccount" 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="wxQrcode" 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="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/sale"
|
||||
$("#form-sale-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-sale-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改广告主销售')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-sale-edit" th:object="${companySale}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">客服名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="saleName" th:field="*{saleName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">进量状态 0.禁止 1.启用:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isEnable" th:field="*{isEnable}" 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="wxAccount" th:field="*{wxAccount}" 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="wxQrcode" th:field="*{wxQrcode}" 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="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "system/sale";
|
||||
$("#form-sale-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-sale-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
<!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="saleName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>进量状态:</label>
|
||||
<input type="text" name="isEnable"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信帐号:</label>
|
||||
<input type="text" name="wxAccount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信二维码:</label>
|
||||
<input type="text" name="wxQrcode"/>
|
||||
</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="system:sale:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:sale:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:sale:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:sale: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('system:sale:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('system:sale:remove')}]];
|
||||
var prefix = ctx + "system/sale";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "广告主销售",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'saleName',
|
||||
title: '客服名称'
|
||||
},
|
||||
{
|
||||
field: 'isEnable',
|
||||
title: '进量状态'
|
||||
},
|
||||
{
|
||||
field: 'wxAccount',
|
||||
title: '微信帐号'
|
||||
},
|
||||
{
|
||||
field: 'wxQrcode',
|
||||
title: '微信二维码'
|
||||
},
|
||||
{
|
||||
field: 'remark',
|
||||
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.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -95,6 +95,11 @@
|
|||
<artifactId>javax.servlet-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
package com.ruoyi.system.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 线索对象 clew
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Data
|
||||
public class Clew extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 广告主 */
|
||||
@Excel(name = "广告主")
|
||||
private Long company;
|
||||
|
||||
/** 销售 */
|
||||
@Excel(name = "销售")
|
||||
private Long saleId;
|
||||
|
||||
/** 信息流 */
|
||||
@Excel(name = "信息流")
|
||||
private String infoFlow;
|
||||
|
||||
/** 下次跟进日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "下次跟进日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nextTime;
|
||||
|
||||
/** 微信昵称 */
|
||||
@Excel(name = "微信昵称")
|
||||
private String wxName;
|
||||
|
||||
/** 手机号 */
|
||||
@Excel(name = "手机号")
|
||||
private String phone;
|
||||
|
||||
/** 债务类型 01.贷款 02.网贷 03.信用卡 04.其他 */
|
||||
@Excel(name = "债务类型 01.贷款 02.网贷 03.信用卡 04.其他")
|
||||
private String debtType;
|
||||
|
||||
/** 债务金额 */
|
||||
@Excel(name = "债务金额")
|
||||
private String debtMoney;
|
||||
|
||||
/** 推广来源 01.App 02.小程序 03.网页 */
|
||||
@Excel(name = "推广来源 01.App 02.小程序 03.网页")
|
||||
private String sourceType;
|
||||
|
||||
/** App来源 */
|
||||
@Excel(name = "App来源")
|
||||
private Long sourceApp;
|
||||
|
||||
/** 微信号 */
|
||||
@Excel(name = "微信号")
|
||||
private String wxAccount;
|
||||
|
||||
/** 客户状态 01.无 02.加微 */
|
||||
@Excel(name = "客户状态 01.无 02.加微")
|
||||
private String customerStatus;
|
||||
|
||||
/** 客户评级 01.无 02.无效 03.一般 04.重要 05.关键 */
|
||||
@Excel(name = "客户评级 01.无 02.无效 03.一般 04.重要 05.关键")
|
||||
private String customerLevel;
|
||||
|
||||
/** 是否长按识别二维码 0.否 1.是 */
|
||||
@Excel(name = "是否长按识别二维码 0.否 1.是")
|
||||
private String touchQrcode;
|
||||
|
||||
/** 跟进次数 */
|
||||
@Excel(name = "跟进次数")
|
||||
private Long contactNumber;
|
||||
|
||||
/** 是否触达 0.否 1.是 */
|
||||
@Excel(name = "是否触达 0.否 1.是")
|
||||
private String isTouch;
|
||||
|
||||
/** 是否加微 0.否 1.是 */
|
||||
@Excel(name = "是否加微 0.否 1.是")
|
||||
private String isAddWx;
|
||||
|
||||
/** 是否有效 0.否 1.是 */
|
||||
@Excel(name = "是否有效 0.否 1.是")
|
||||
private String isEffective;
|
||||
|
||||
/** 是否意向 0.否 1.是 */
|
||||
@Excel(name = "是否意向 0.否 1.是")
|
||||
private String isPlan;
|
||||
|
||||
/** 成交状态 0.未成交 1.已成交 */
|
||||
@Excel(name = "成交状态 0.未成交 1.已成交")
|
||||
private String isDeal;
|
||||
|
||||
/** 省份 */
|
||||
@Excel(name = "省份")
|
||||
private String provinceName;
|
||||
|
||||
/** 城市 */
|
||||
@Excel(name = "城市")
|
||||
private String cityName;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String customerName;
|
||||
|
||||
/** 方便接电话时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "方便接电话时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date contactTime;
|
||||
|
||||
/** 其他联系方式 */
|
||||
@Excel(name = "其他联系方式")
|
||||
private String otherPhone;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package com.ruoyi.system.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 广告主对象 company
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Data
|
||||
public class Company extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 广告主名称 */
|
||||
@Excel(name = "广告主名称")
|
||||
private String companyName;
|
||||
|
||||
/** 状态 0.启用 1.禁用 */
|
||||
@Excel(name = "状态 0.启用 1.禁用")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.ruoyi.system.domain;
|
||||
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 客户端对象 company_app
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Data
|
||||
public class CompanyApp extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 广告主id */
|
||||
@Excel(name = "广告主id")
|
||||
private Long companyId;
|
||||
|
||||
/** 应用名称 */
|
||||
@Excel(name = "应用名称")
|
||||
private String appName;
|
||||
|
||||
/** app跳转的目标微信公众号 */
|
||||
@Excel(name = "app跳转的目标微信公众号")
|
||||
private String wxAppId;
|
||||
|
||||
/** 状态 0.启用 1.禁用 */
|
||||
@Excel(name = "状态 0.启用 1.禁用")
|
||||
private String status;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.ruoyi.system.domain;
|
||||
|
||||
import lombok.Data;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 广告主销售对象 company_sale
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Data
|
||||
public class CompanySale extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 客服名称 */
|
||||
@Excel(name = "客服名称")
|
||||
private String saleName;
|
||||
|
||||
/** 进量状态 0.禁止 1.启用 */
|
||||
@Excel(name = "进量状态 0.禁止 1.启用")
|
||||
private String isEnable;
|
||||
|
||||
/** 微信帐号 */
|
||||
@Excel(name = "微信帐号")
|
||||
private String wxAccount;
|
||||
|
||||
/** 微信二维码 */
|
||||
@Excel(name = "微信二维码")
|
||||
private String wxQrcode;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.Clew;
|
||||
|
||||
/**
|
||||
* 线索Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface ClewMapper
|
||||
{
|
||||
/**
|
||||
* 查询线索
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 线索
|
||||
*/
|
||||
public Clew selectClewById(Long id);
|
||||
|
||||
/**
|
||||
* 查询线索列表
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 线索集合
|
||||
*/
|
||||
public List<Clew> selectClewList(Clew clew);
|
||||
|
||||
/**
|
||||
* 新增线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertClew(Clew clew);
|
||||
|
||||
/**
|
||||
* 修改线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateClew(Clew clew);
|
||||
|
||||
/**
|
||||
* 删除线索
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteClewById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除线索
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteClewByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompanyApp;
|
||||
|
||||
/**
|
||||
* 客户端Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface CompanyAppMapper
|
||||
{
|
||||
/**
|
||||
* 查询客户端
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 客户端
|
||||
*/
|
||||
public CompanyApp selectCompanyAppById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户端列表
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 客户端集合
|
||||
*/
|
||||
public List<CompanyApp> selectCompanyAppList(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 新增客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompanyApp(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 修改客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompanyApp(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 删除客户端
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyAppById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除客户端
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyAppByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.Company;
|
||||
|
||||
/**
|
||||
* 广告主Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface CompanyMapper
|
||||
{
|
||||
/**
|
||||
* 查询广告主
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 广告主
|
||||
*/
|
||||
public Company selectCompanyById(String id);
|
||||
|
||||
/**
|
||||
* 查询广告主列表
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 广告主集合
|
||||
*/
|
||||
public List<Company> selectCompanyList(Company company);
|
||||
|
||||
/**
|
||||
* 新增广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompany(Company company);
|
||||
|
||||
/**
|
||||
* 修改广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompany(Company company);
|
||||
|
||||
/**
|
||||
* 删除广告主
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除广告主
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompanySale;
|
||||
|
||||
/**
|
||||
* 广告主销售Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface CompanySaleMapper
|
||||
{
|
||||
/**
|
||||
* 查询广告主销售
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 广告主销售
|
||||
*/
|
||||
public CompanySale selectCompanySaleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询广告主销售列表
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 广告主销售集合
|
||||
*/
|
||||
public List<CompanySale> selectCompanySaleList(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 新增广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompanySale(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 修改广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompanySale(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 删除广告主销售
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanySaleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除广告主销售
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanySaleByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.Clew;
|
||||
|
||||
/**
|
||||
* 线索Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface IClewService
|
||||
{
|
||||
/**
|
||||
* 查询线索
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 线索
|
||||
*/
|
||||
public Clew selectClewById(Long id);
|
||||
|
||||
/**
|
||||
* 查询线索列表
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 线索集合
|
||||
*/
|
||||
public List<Clew> selectClewList(Clew clew);
|
||||
|
||||
/**
|
||||
* 新增线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertClew(Clew clew);
|
||||
|
||||
/**
|
||||
* 修改线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateClew(Clew clew);
|
||||
|
||||
/**
|
||||
* 批量删除线索
|
||||
*
|
||||
* @param ids 需要删除的线索主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteClewByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除线索信息
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteClewById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompanyApp;
|
||||
|
||||
/**
|
||||
* 客户端Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface ICompanyAppService
|
||||
{
|
||||
/**
|
||||
* 查询客户端
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 客户端
|
||||
*/
|
||||
public CompanyApp selectCompanyAppById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户端列表
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 客户端集合
|
||||
*/
|
||||
public List<CompanyApp> selectCompanyAppList(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 新增客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompanyApp(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 修改客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompanyApp(CompanyApp companyApp);
|
||||
|
||||
/**
|
||||
* 批量删除客户端
|
||||
*
|
||||
* @param ids 需要删除的客户端主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyAppByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除客户端信息
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyAppById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.CompanySale;
|
||||
|
||||
/**
|
||||
* 广告主销售Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface ICompanySaleService
|
||||
{
|
||||
/**
|
||||
* 查询广告主销售
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 广告主销售
|
||||
*/
|
||||
public CompanySale selectCompanySaleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询广告主销售列表
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 广告主销售集合
|
||||
*/
|
||||
public List<CompanySale> selectCompanySaleList(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 新增广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompanySale(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 修改广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompanySale(CompanySale companySale);
|
||||
|
||||
/**
|
||||
* 批量删除广告主销售
|
||||
*
|
||||
* @param ids 需要删除的广告主销售主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanySaleByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除广告主销售信息
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanySaleById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.system.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.system.domain.Company;
|
||||
|
||||
/**
|
||||
* 广告主Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
public interface ICompanyService
|
||||
{
|
||||
/**
|
||||
* 查询广告主
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 广告主
|
||||
*/
|
||||
public Company selectCompanyById(String id);
|
||||
|
||||
/**
|
||||
* 查询广告主列表
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 广告主集合
|
||||
*/
|
||||
public List<Company> selectCompanyList(Company company);
|
||||
|
||||
/**
|
||||
* 新增广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompany(Company company);
|
||||
|
||||
/**
|
||||
* 修改广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompany(Company company);
|
||||
|
||||
/**
|
||||
* 批量删除广告主
|
||||
*
|
||||
* @param ids 需要删除的广告主主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除广告主信息
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyById(String id);
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
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.ClewMapper;
|
||||
import com.ruoyi.system.domain.Clew;
|
||||
import com.ruoyi.system.service.IClewService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 线索Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Service
|
||||
public class ClewServiceImpl implements IClewService
|
||||
{
|
||||
@Autowired
|
||||
private ClewMapper clewMapper;
|
||||
|
||||
/**
|
||||
* 查询线索
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 线索
|
||||
*/
|
||||
@Override
|
||||
public Clew selectClewById(Long id)
|
||||
{
|
||||
return clewMapper.selectClewById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线索列表
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 线索
|
||||
*/
|
||||
@Override
|
||||
public List<Clew> selectClewList(Clew clew)
|
||||
{
|
||||
return clewMapper.selectClewList(clew);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertClew(Clew clew)
|
||||
{
|
||||
clew.setCreateTime(DateUtils.getNowDate());
|
||||
return clewMapper.insertClew(clew);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线索
|
||||
*
|
||||
* @param clew 线索
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateClew(Clew clew)
|
||||
{
|
||||
clew.setUpdateTime(DateUtils.getNowDate());
|
||||
return clewMapper.updateClew(clew);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除线索
|
||||
*
|
||||
* @param ids 需要删除的线索主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteClewByIds(String ids)
|
||||
{
|
||||
return clewMapper.deleteClewByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线索信息
|
||||
*
|
||||
* @param id 线索主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteClewById(Long id)
|
||||
{
|
||||
return clewMapper.deleteClewById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
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.CompanyAppMapper;
|
||||
import com.ruoyi.system.domain.CompanyApp;
|
||||
import com.ruoyi.system.service.ICompanyAppService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 客户端Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Service
|
||||
public class CompanyAppServiceImpl implements ICompanyAppService
|
||||
{
|
||||
@Autowired
|
||||
private CompanyAppMapper companyAppMapper;
|
||||
|
||||
/**
|
||||
* 查询客户端
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 客户端
|
||||
*/
|
||||
@Override
|
||||
public CompanyApp selectCompanyAppById(Long id)
|
||||
{
|
||||
return companyAppMapper.selectCompanyAppById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询客户端列表
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 客户端
|
||||
*/
|
||||
@Override
|
||||
public List<CompanyApp> selectCompanyAppList(CompanyApp companyApp)
|
||||
{
|
||||
return companyAppMapper.selectCompanyAppList(companyApp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompanyApp(CompanyApp companyApp)
|
||||
{
|
||||
companyApp.setCreateTime(DateUtils.getNowDate());
|
||||
return companyAppMapper.insertCompanyApp(companyApp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户端
|
||||
*
|
||||
* @param companyApp 客户端
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompanyApp(CompanyApp companyApp)
|
||||
{
|
||||
companyApp.setUpdateTime(DateUtils.getNowDate());
|
||||
return companyAppMapper.updateCompanyApp(companyApp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除客户端
|
||||
*
|
||||
* @param ids 需要删除的客户端主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyAppByIds(String ids)
|
||||
{
|
||||
return companyAppMapper.deleteCompanyAppByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除客户端信息
|
||||
*
|
||||
* @param id 客户端主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyAppById(Long id)
|
||||
{
|
||||
return companyAppMapper.deleteCompanyAppById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
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.CompanySaleMapper;
|
||||
import com.ruoyi.system.domain.CompanySale;
|
||||
import com.ruoyi.system.service.ICompanySaleService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 广告主销售Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Service
|
||||
public class CompanySaleServiceImpl implements ICompanySaleService
|
||||
{
|
||||
@Autowired
|
||||
private CompanySaleMapper companySaleMapper;
|
||||
|
||||
/**
|
||||
* 查询广告主销售
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 广告主销售
|
||||
*/
|
||||
@Override
|
||||
public CompanySale selectCompanySaleById(Long id)
|
||||
{
|
||||
return companySaleMapper.selectCompanySaleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询广告主销售列表
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 广告主销售
|
||||
*/
|
||||
@Override
|
||||
public List<CompanySale> selectCompanySaleList(CompanySale companySale)
|
||||
{
|
||||
return companySaleMapper.selectCompanySaleList(companySale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompanySale(CompanySale companySale)
|
||||
{
|
||||
companySale.setCreateTime(DateUtils.getNowDate());
|
||||
return companySaleMapper.insertCompanySale(companySale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改广告主销售
|
||||
*
|
||||
* @param companySale 广告主销售
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompanySale(CompanySale companySale)
|
||||
{
|
||||
companySale.setUpdateTime(DateUtils.getNowDate());
|
||||
return companySaleMapper.updateCompanySale(companySale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除广告主销售
|
||||
*
|
||||
* @param ids 需要删除的广告主销售主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanySaleByIds(String ids)
|
||||
{
|
||||
return companySaleMapper.deleteCompanySaleByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除广告主销售信息
|
||||
*
|
||||
* @param id 广告主销售主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanySaleById(Long id)
|
||||
{
|
||||
return companySaleMapper.deleteCompanySaleById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
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.CompanyMapper;
|
||||
import com.ruoyi.system.domain.Company;
|
||||
import com.ruoyi.system.service.ICompanyService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 广告主Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2023-05-15
|
||||
*/
|
||||
@Service
|
||||
public class CompanyServiceImpl implements ICompanyService
|
||||
{
|
||||
@Autowired
|
||||
private CompanyMapper companyMapper;
|
||||
|
||||
/**
|
||||
* 查询广告主
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 广告主
|
||||
*/
|
||||
@Override
|
||||
public Company selectCompanyById(String id)
|
||||
{
|
||||
return companyMapper.selectCompanyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询广告主列表
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 广告主
|
||||
*/
|
||||
@Override
|
||||
public List<Company> selectCompanyList(Company company)
|
||||
{
|
||||
return companyMapper.selectCompanyList(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompany(Company company)
|
||||
{
|
||||
company.setCreateTime(DateUtils.getNowDate());
|
||||
return companyMapper.insertCompany(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改广告主
|
||||
*
|
||||
* @param company 广告主
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompany(Company company)
|
||||
{
|
||||
company.setUpdateTime(DateUtils.getNowDate());
|
||||
return companyMapper.updateCompany(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除广告主
|
||||
*
|
||||
* @param ids 需要删除的广告主主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyByIds(String ids)
|
||||
{
|
||||
return companyMapper.deleteCompanyByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除广告主信息
|
||||
*
|
||||
* @param id 广告主主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyById(String id)
|
||||
{
|
||||
return companyMapper.deleteCompanyById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,197 @@
|
|||
<?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.ClewMapper">
|
||||
|
||||
<resultMap type="Clew" id="ClewResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="company" column="company" />
|
||||
<result property="saleId" column="sale_id" />
|
||||
<result property="infoFlow" column="info_flow" />
|
||||
<result property="nextTime" column="next_time" />
|
||||
<result property="wxName" column="wx_name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="debtType" column="debt_type" />
|
||||
<result property="debtMoney" column="debt_money" />
|
||||
<result property="sourceType" column="source_type" />
|
||||
<result property="sourceApp" column="source_app" />
|
||||
<result property="wxAccount" column="wx_account" />
|
||||
<result property="customerStatus" column="customer_status" />
|
||||
<result property="customerLevel" column="customer_level" />
|
||||
<result property="touchQrcode" column="touch_qrcode" />
|
||||
<result property="contactNumber" column="contact_number" />
|
||||
<result property="isTouch" column="is_touch" />
|
||||
<result property="isAddWx" column="is_add_wx" />
|
||||
<result property="isEffective" column="is_effective" />
|
||||
<result property="isPlan" column="is_plan" />
|
||||
<result property="isDeal" column="is_deal" />
|
||||
<result property="provinceName" column="province_name" />
|
||||
<result property="cityName" column="city_name" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="contactTime" column="contact_time" />
|
||||
<result property="otherPhone" column="other_phone" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectClewVo">
|
||||
select id, company, sale_id, info_flow, next_time, wx_name, phone, debt_type, debt_money, source_type, source_app, wx_account, customer_status, customer_level, touch_qrcode, contact_number, is_touch, is_add_wx, is_effective, is_plan, is_deal, province_name, city_name, customer_name, contact_time, other_phone, create_time, create_by, update_by, update_time, remark from clew
|
||||
</sql>
|
||||
|
||||
<select id="selectClewList" parameterType="Clew" resultMap="ClewResult">
|
||||
<include refid="selectClewVo"/>
|
||||
<where>
|
||||
<if test="company != null "> and company = #{company}</if>
|
||||
<if test="saleId != null "> and sale_id = #{saleId}</if>
|
||||
<if test="infoFlow != null and infoFlow != ''"> and info_flow = #{infoFlow}</if>
|
||||
<if test="nextTime != null "> and next_time = #{nextTime}</if>
|
||||
<if test="wxName != null and wxName != ''"> and wx_name like concat('%', #{wxName}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="debtType != null and debtType != ''"> and debt_type = #{debtType}</if>
|
||||
<if test="debtMoney != null and debtMoney != ''"> and debt_money = #{debtMoney}</if>
|
||||
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType}</if>
|
||||
<if test="sourceApp != null "> and source_app = #{sourceApp}</if>
|
||||
<if test="wxAccount != null and wxAccount != ''"> and wx_account = #{wxAccount}</if>
|
||||
<if test="customerStatus != null and customerStatus != ''"> and customer_status = #{customerStatus}</if>
|
||||
<if test="customerLevel != null and customerLevel != ''"> and customer_level = #{customerLevel}</if>
|
||||
<if test="touchQrcode != null and touchQrcode != ''"> and touch_qrcode = #{touchQrcode}</if>
|
||||
<if test="contactNumber != null "> and contact_number = #{contactNumber}</if>
|
||||
<if test="isTouch != null and isTouch != ''"> and is_touch = #{isTouch}</if>
|
||||
<if test="isAddWx != null and isAddWx != ''"> and is_add_wx = #{isAddWx}</if>
|
||||
<if test="isEffective != null and isEffective != ''"> and is_effective = #{isEffective}</if>
|
||||
<if test="isPlan != null and isPlan != ''"> and is_plan = #{isPlan}</if>
|
||||
<if test="isDeal != null and isDeal != ''"> and is_deal = #{isDeal}</if>
|
||||
<if test="provinceName != null and provinceName != ''"> and province_name like concat('%', #{provinceName}, '%')</if>
|
||||
<if test="cityName != null and cityName != ''"> and city_name like concat('%', #{cityName}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="contactTime != null "> and contact_time = #{contactTime}</if>
|
||||
<if test="otherPhone != null and otherPhone != ''"> and other_phone = #{otherPhone}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectClewById" parameterType="Long" resultMap="ClewResult">
|
||||
<include refid="selectClewVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertClew" parameterType="Clew" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into clew
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="company != null">company,</if>
|
||||
<if test="saleId != null">sale_id,</if>
|
||||
<if test="infoFlow != null and infoFlow != ''">info_flow,</if>
|
||||
<if test="nextTime != null">next_time,</if>
|
||||
<if test="wxName != null">wx_name,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="debtType != null">debt_type,</if>
|
||||
<if test="debtMoney != null">debt_money,</if>
|
||||
<if test="sourceType != null">source_type,</if>
|
||||
<if test="sourceApp != null">source_app,</if>
|
||||
<if test="wxAccount != null">wx_account,</if>
|
||||
<if test="customerStatus != null">customer_status,</if>
|
||||
<if test="customerLevel != null">customer_level,</if>
|
||||
<if test="touchQrcode != null">touch_qrcode,</if>
|
||||
<if test="contactNumber != null">contact_number,</if>
|
||||
<if test="isTouch != null">is_touch,</if>
|
||||
<if test="isAddWx != null">is_add_wx,</if>
|
||||
<if test="isEffective != null">is_effective,</if>
|
||||
<if test="isPlan != null">is_plan,</if>
|
||||
<if test="isDeal != null">is_deal,</if>
|
||||
<if test="provinceName != null">province_name,</if>
|
||||
<if test="cityName != null">city_name,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="contactTime != null">contact_time,</if>
|
||||
<if test="otherPhone != null">other_phone,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</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="company != null">#{company},</if>
|
||||
<if test="saleId != null">#{saleId},</if>
|
||||
<if test="infoFlow != null and infoFlow != ''">#{infoFlow},</if>
|
||||
<if test="nextTime != null">#{nextTime},</if>
|
||||
<if test="wxName != null">#{wxName},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="debtType != null">#{debtType},</if>
|
||||
<if test="debtMoney != null">#{debtMoney},</if>
|
||||
<if test="sourceType != null">#{sourceType},</if>
|
||||
<if test="sourceApp != null">#{sourceApp},</if>
|
||||
<if test="wxAccount != null">#{wxAccount},</if>
|
||||
<if test="customerStatus != null">#{customerStatus},</if>
|
||||
<if test="customerLevel != null">#{customerLevel},</if>
|
||||
<if test="touchQrcode != null">#{touchQrcode},</if>
|
||||
<if test="contactNumber != null">#{contactNumber},</if>
|
||||
<if test="isTouch != null">#{isTouch},</if>
|
||||
<if test="isAddWx != null">#{isAddWx},</if>
|
||||
<if test="isEffective != null">#{isEffective},</if>
|
||||
<if test="isPlan != null">#{isPlan},</if>
|
||||
<if test="isDeal != null">#{isDeal},</if>
|
||||
<if test="provinceName != null">#{provinceName},</if>
|
||||
<if test="cityName != null">#{cityName},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="contactTime != null">#{contactTime},</if>
|
||||
<if test="otherPhone != null">#{otherPhone},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateClew" parameterType="Clew">
|
||||
update clew
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="company != null">company = #{company},</if>
|
||||
<if test="saleId != null">sale_id = #{saleId},</if>
|
||||
<if test="infoFlow != null and infoFlow != ''">info_flow = #{infoFlow},</if>
|
||||
<if test="nextTime != null">next_time = #{nextTime},</if>
|
||||
<if test="wxName != null">wx_name = #{wxName},</if>
|
||||
<if test="phone != null">phone = #{phone},</if>
|
||||
<if test="debtType != null">debt_type = #{debtType},</if>
|
||||
<if test="debtMoney != null">debt_money = #{debtMoney},</if>
|
||||
<if test="sourceType != null">source_type = #{sourceType},</if>
|
||||
<if test="sourceApp != null">source_app = #{sourceApp},</if>
|
||||
<if test="wxAccount != null">wx_account = #{wxAccount},</if>
|
||||
<if test="customerStatus != null">customer_status = #{customerStatus},</if>
|
||||
<if test="customerLevel != null">customer_level = #{customerLevel},</if>
|
||||
<if test="touchQrcode != null">touch_qrcode = #{touchQrcode},</if>
|
||||
<if test="contactNumber != null">contact_number = #{contactNumber},</if>
|
||||
<if test="isTouch != null">is_touch = #{isTouch},</if>
|
||||
<if test="isAddWx != null">is_add_wx = #{isAddWx},</if>
|
||||
<if test="isEffective != null">is_effective = #{isEffective},</if>
|
||||
<if test="isPlan != null">is_plan = #{isPlan},</if>
|
||||
<if test="isDeal != null">is_deal = #{isDeal},</if>
|
||||
<if test="provinceName != null">province_name = #{provinceName},</if>
|
||||
<if test="cityName != null">city_name = #{cityName},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="contactTime != null">contact_time = #{contactTime},</if>
|
||||
<if test="otherPhone != null">other_phone = #{otherPhone},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</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="deleteClewById" parameterType="Long">
|
||||
delete from clew where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteClewByIds" parameterType="String">
|
||||
delete from clew where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
<?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.CompanyAppMapper">
|
||||
|
||||
<resultMap type="CompanyApp" id="CompanyAppResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyId" column="company_id" />
|
||||
<result property="appName" column="app_name" />
|
||||
<result property="wxAppId" column="wx_app_id" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyAppVo">
|
||||
select id, company_id, app_name, wx_app_id, status, create_time, create_by, update_by, update_time, remark from company_app
|
||||
</sql>
|
||||
|
||||
<select id="selectCompanyAppList" parameterType="CompanyApp" resultMap="CompanyAppResult">
|
||||
<include refid="selectCompanyAppVo"/>
|
||||
<where>
|
||||
<if test="companyId != null "> and company_id = #{companyId}</if>
|
||||
<if test="appName != null and appName != ''"> and app_name like concat('%', #{appName}, '%')</if>
|
||||
<if test="wxAppId != null and wxAppId != ''"> and wx_app_id = #{wxAppId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompanyAppById" parameterType="Long" resultMap="CompanyAppResult">
|
||||
<include refid="selectCompanyAppVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompanyApp" parameterType="CompanyApp" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into company_app
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="companyId != null">company_id,</if>
|
||||
<if test="appName != null">app_name,</if>
|
||||
<if test="wxAppId != null">wx_app_id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</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="companyId != null">#{companyId},</if>
|
||||
<if test="appName != null">#{appName},</if>
|
||||
<if test="wxAppId != null">#{wxAppId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompanyApp" parameterType="CompanyApp">
|
||||
update company_app
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="companyId != null">company_id = #{companyId},</if>
|
||||
<if test="appName != null">app_name = #{appName},</if>
|
||||
<if test="wxAppId != null">wx_app_id = #{wxAppId},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</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="deleteCompanyAppById" parameterType="Long">
|
||||
delete from company_app where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompanyAppByIds" parameterType="String">
|
||||
delete from company_app where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
<?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.CompanyMapper">
|
||||
|
||||
<resultMap type="Company" id="CompanyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="status" column="status" />
|
||||
<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="selectCompanyVo">
|
||||
select id, company_name, status, create_by, create_time, update_by, update_time, remark from company
|
||||
</sql>
|
||||
|
||||
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
||||
<include refid="selectCompanyVo"/>
|
||||
<where>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompanyById" parameterType="String" resultMap="CompanyResult">
|
||||
<include refid="selectCompanyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompany" parameterType="Company" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into company
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="companyName != null">company_name,</if>
|
||||
<if test="status != null">status,</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="companyName != null">#{companyName},</if>
|
||||
<if test="status != null">#{status},</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="updateCompany" parameterType="Company">
|
||||
update company
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="companyName != null">company_name = #{companyName},</if>
|
||||
<if test="status != null">status = #{status},</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="deleteCompanyById" parameterType="String">
|
||||
delete from company where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompanyByIds" parameterType="String">
|
||||
delete from company where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
<?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.CompanySaleMapper">
|
||||
|
||||
<resultMap type="CompanySale" id="CompanySaleResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="saleName" column="sale_name" />
|
||||
<result property="isEnable" column="is_enable" />
|
||||
<result property="wxAccount" column="wx_account" />
|
||||
<result property="wxQrcode" column="wx_qrcode" />
|
||||
<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="selectCompanySaleVo">
|
||||
select id, sale_name, is_enable, wx_account, wx_qrcode, create_by, create_time, update_by, update_time, remark from company_sale
|
||||
</sql>
|
||||
|
||||
<select id="selectCompanySaleList" parameterType="CompanySale" resultMap="CompanySaleResult">
|
||||
<include refid="selectCompanySaleVo"/>
|
||||
<where>
|
||||
<if test="saleName != null and saleName != ''"> and sale_name like concat('%', #{saleName}, '%')</if>
|
||||
<if test="isEnable != null and isEnable != ''"> and is_enable = #{isEnable}</if>
|
||||
<if test="wxAccount != null and wxAccount != ''"> and wx_account = #{wxAccount}</if>
|
||||
<if test="wxQrcode != null and wxQrcode != ''"> and wx_qrcode = #{wxQrcode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompanySaleById" parameterType="Long" resultMap="CompanySaleResult">
|
||||
<include refid="selectCompanySaleVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompanySale" parameterType="CompanySale" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into company_sale
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="saleName != null">sale_name,</if>
|
||||
<if test="isEnable != null">is_enable,</if>
|
||||
<if test="wxAccount != null">wx_account,</if>
|
||||
<if test="wxQrcode != null">wx_qrcode,</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="saleName != null">#{saleName},</if>
|
||||
<if test="isEnable != null">#{isEnable},</if>
|
||||
<if test="wxAccount != null">#{wxAccount},</if>
|
||||
<if test="wxQrcode != null">#{wxQrcode},</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="updateCompanySale" parameterType="CompanySale">
|
||||
update company_sale
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="saleName != null">sale_name = #{saleName},</if>
|
||||
<if test="isEnable != null">is_enable = #{isEnable},</if>
|
||||
<if test="wxAccount != null">wx_account = #{wxAccount},</if>
|
||||
<if test="wxQrcode != null">wx_qrcode = #{wxQrcode},</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="deleteCompanySaleById" parameterType="Long">
|
||||
delete from company_sale where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompanySaleByIds" parameterType="String">
|
||||
delete from company_sale where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue