111
This commit is contained in:
parent
00acde64e4
commit
d9824bdebb
|
|
@ -0,0 +1,126 @@
|
||||||
|
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.WkCrmCustomer;
|
||||||
|
import com.ruoyi.system.service.IWkCrmCustomerService;
|
||||||
|
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 2021-04-06
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/customer")
|
||||||
|
public class WkCrmCustomerController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "system/customer";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IWkCrmCustomerService wkCrmCustomerService;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:customer:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String customer()
|
||||||
|
{
|
||||||
|
return prefix + "/customer";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:customer:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<WkCrmCustomer> list = wkCrmCustomerService.selectWkCrmCustomerList(wkCrmCustomer);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出客户列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:customer:export")
|
||||||
|
@Log(title = "客户", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
List<WkCrmCustomer> list = wkCrmCustomerService.selectWkCrmCustomerList(wkCrmCustomer);
|
||||||
|
ExcelUtil<WkCrmCustomer> util = new ExcelUtil<WkCrmCustomer>(WkCrmCustomer.class);
|
||||||
|
return util.exportExcel(list, "customer");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存客户
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:customer:add")
|
||||||
|
@Log(title = "客户", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
return toAjax(wkCrmCustomerService.insertWkCrmCustomer(wkCrmCustomer));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{customerId}")
|
||||||
|
public String edit(@PathVariable("customerId") Long customerId, ModelMap mmap)
|
||||||
|
{
|
||||||
|
WkCrmCustomer wkCrmCustomer = wkCrmCustomerService.selectWkCrmCustomerById(customerId);
|
||||||
|
mmap.put("wkCrmCustomer", wkCrmCustomer);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存客户
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:customer:edit")
|
||||||
|
@Log(title = "客户", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
return toAjax(wkCrmCustomerService.updateWkCrmCustomer(wkCrmCustomer));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:customer:remove")
|
||||||
|
@Log(title = "客户", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(wkCrmCustomerService.deleteWkCrmCustomerByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,240 @@
|
||||||
|
<!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" />
|
||||||
|
<th:block th:include="include :: summernote-css" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-customer-add">
|
||||||
|
<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="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">成交状态 0 未成交 1 已成交:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="radio-box">
|
||||||
|
<input type="radio" name="dealStatus" value="">
|
||||||
|
<label th:for="dealStatus" th:text="未知"></label>
|
||||||
|
</div>
|
||||||
|
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">成交时间:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="input-group date">
|
||||||
|
<input name="dealTime" 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="mobile" 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="telephone" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">网址:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="website" class="form-control"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">邮箱:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="email" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="remark" class="form-control"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">创建人ID:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="createUserId" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">负责人ID:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="ownerUserId" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">只读权限:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="roUserId" class="form-control"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">读写权限:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="rwUserId" class="form-control"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">详细地址:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="detailAddress" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">批次 比如附件批次:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="batchId" 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="lastTime" 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">
|
||||||
|
<div class="input-group date">
|
||||||
|
<input name="poolTime" 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">1 分配 2 领取:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="isReceive" 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 type="hidden" class="form-control" name="lastContent">
|
||||||
|
<div class="summernote" id="lastContent"></div>
|
||||||
|
</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="receiveTime" 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">进入公海前负责人id:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="preOwnerUserId" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<th:block th:include="include :: datetimepicker-js" />
|
||||||
|
<th:block th:include="include :: summernote-js" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/customer"
|
||||||
|
$("#form-customer-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-customer-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$("input[name='nextTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='dealTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='lastTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='poolTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='receiveTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$('.summernote').summernote({
|
||||||
|
lang: 'zh-CN',
|
||||||
|
callbacks: {
|
||||||
|
onChange: function(contents, $edittable) {
|
||||||
|
$("input[name='" + this.id + "']").val(contents);
|
||||||
|
},
|
||||||
|
onImageUpload: function(files) {
|
||||||
|
var obj = this;
|
||||||
|
var data = new FormData();
|
||||||
|
data.append("file", files[0]);
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
url: ctx + "common/upload",
|
||||||
|
data: data,
|
||||||
|
cache: false,
|
||||||
|
contentType: false,
|
||||||
|
processData: false,
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(result) {
|
||||||
|
if (result.code == web_status.SUCCESS) {
|
||||||
|
$('#' + obj.id).summernote('insertImage', result.url);
|
||||||
|
} else {
|
||||||
|
$.modal.alertError(result.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(error) {
|
||||||
|
$.modal.alertWarning("图片上传失败。");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,229 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('客户列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>客户名称:</label>
|
||||||
|
<input type="text" name="customerName"/>
|
||||||
|
</li>
|
||||||
|
<!--<li>
|
||||||
|
<label>下次联系时间:</label>
|
||||||
|
<input type="text" class="time-input" placeholder="请选择下次联系时间" name="nextTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>成交状态 0 未成交 1 已成交:</label>
|
||||||
|
<select name="dealStatus">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option value="-1">代码生成请选择字典属性</option>
|
||||||
|
</select>
|
||||||
|
</li>-->
|
||||||
|
<li>
|
||||||
|
<label>成交时间:</label>
|
||||||
|
<input type="text" class="time-input" placeholder="请选择成交时间" name="dealTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>手机:</label>
|
||||||
|
<input type="text" name="mobile"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>电话:</label>
|
||||||
|
<input type="text" name="telephone"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>邮箱:</label>
|
||||||
|
<input type="text" name="email"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>创建人ID:</label>
|
||||||
|
<input type="text" name="createUserId"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>负责人ID:</label>
|
||||||
|
<input type="text" name="ownerUserId"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>详细地址:</label>
|
||||||
|
<input type="text" name="detailAddress"/>
|
||||||
|
</li>
|
||||||
|
<!--<li>
|
||||||
|
<label>批次 比如附件批次:</label>
|
||||||
|
<input type="text" name="batchId"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>最后跟进时间:</label>
|
||||||
|
<input type="text" class="time-input" placeholder="请选择最后跟进时间" name="lastTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>放入公海时间:</label>
|
||||||
|
<input type="text" class="time-input" placeholder="请选择放入公海时间" name="poolTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>1 分配 2 领取:</label>
|
||||||
|
<input type="text" name="isReceive"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>接收到客户时间:</label>
|
||||||
|
<input type="text" class="time-input" placeholder="请选择接收到客户时间" name="receiveTime"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>进入公海前负责人id:</label>
|
||||||
|
<input type="text" name="preOwnerUserId"/>
|
||||||
|
</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:customer:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:customer:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:customer:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:customer:export">
|
||||||
|
<i class="fa fa-download"></i> 导出
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('system:customer:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('system:customer:remove')}]];
|
||||||
|
var prefix = ctx + "system/customer";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "客户",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'customerId',
|
||||||
|
title: 'id',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'customerName',
|
||||||
|
title: '客户名称'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'nextTime',
|
||||||
|
title: '下次联系时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'dealStatus',
|
||||||
|
title: '成交状态 0 未成交 1 已成交'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'dealTime',
|
||||||
|
title: '成交时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'mobile',
|
||||||
|
title: '手机'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'telephone',
|
||||||
|
title: '电话'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'website',
|
||||||
|
title: '网址'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'email',
|
||||||
|
title: '邮箱'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'remark',
|
||||||
|
title: '备注'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'createUserId',
|
||||||
|
title: '创建人ID'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'ownerUserId',
|
||||||
|
title: '负责人ID'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'roUserId',
|
||||||
|
title: '只读权限'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'rwUserId',
|
||||||
|
title: '读写权限'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'detailAddress',
|
||||||
|
title: '详细地址'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'batchId',
|
||||||
|
title: '批次 比如附件批次'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'lastTime',
|
||||||
|
title: '最后跟进时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'poolTime',
|
||||||
|
title: '放入公海时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'isReceive',
|
||||||
|
title: '1 分配 2 领取'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'lastContent',
|
||||||
|
title: '最后一条跟进记录'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'receiveTime',
|
||||||
|
title: '接收到客户时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'preOwnerUserId',
|
||||||
|
title: '进入公海前负责人id'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
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.customerId + '\')"><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.customerId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,245 @@
|
||||||
|
<!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" />
|
||||||
|
<th:block th:include="include :: summernote-css" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-customer-edit" th:object="${wkCrmCustomer}">
|
||||||
|
<input name="customerId" th:field="*{customerId}" type="hidden">
|
||||||
|
<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="nextTime" th:value="${#dates.format(wkCrmCustomer.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">成交状态 0 未成交 1 已成交:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="radio-box">
|
||||||
|
<input type="radio" name="dealStatus" value="">
|
||||||
|
<label th:for="dealStatus" th:text="未知"></label>
|
||||||
|
</div>
|
||||||
|
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">成交时间:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="input-group date">
|
||||||
|
<input name="dealTime" th:value="${#dates.format(wkCrmCustomer.dealTime, '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="mobile" th:field="*{mobile}" 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="telephone" th:field="*{telephone}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">网址:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="website" class="form-control">[[*{website}]]</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">邮箱:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="email" th:field="*{email}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">备注:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">创建人ID:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="createUserId" th:field="*{createUserId}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">负责人ID:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="ownerUserId" th:field="*{ownerUserId}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">只读权限:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="roUserId" class="form-control">[[*{roUserId}]]</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">读写权限:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<textarea name="rwUserId" class="form-control">[[*{rwUserId}]]</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">详细地址:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="detailAddress" th:field="*{detailAddress}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label is-required">批次 比如附件批次:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="batchId" th:field="*{batchId}" 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="lastTime" th:value="${#dates.format(wkCrmCustomer.lastTime, '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">
|
||||||
|
<div class="input-group date">
|
||||||
|
<input name="poolTime" th:value="${#dates.format(wkCrmCustomer.poolTime, '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">1 分配 2 领取:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="isReceive" th:field="*{isReceive}" 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 type="hidden" class="form-control" th:field="*{lastContent}">
|
||||||
|
<div class="summernote" id="lastContent"></div>
|
||||||
|
</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="receiveTime" th:value="${#dates.format(wkCrmCustomer.receiveTime, '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">进入公海前负责人id:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="preOwnerUserId" th:field="*{preOwnerUserId}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<th:block th:include="include :: datetimepicker-js" />
|
||||||
|
<th:block th:include="include :: summernote-js" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/customer";
|
||||||
|
$("#form-customer-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-customer-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$("input[name='nextTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='dealTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='lastTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='poolTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$("input[name='receiveTime']").datetimepicker({
|
||||||
|
format: "yyyy-mm-dd",
|
||||||
|
minView: "month",
|
||||||
|
autoclose: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$('.summernote').each(function(i) {
|
||||||
|
$('#' + this.id).summernote({
|
||||||
|
lang: 'zh-CN',
|
||||||
|
callbacks: {
|
||||||
|
onChange: function(contents, $edittable) {
|
||||||
|
$("input[name='" + this.id + "']").val(contents);
|
||||||
|
},
|
||||||
|
onImageUpload: function(files) {
|
||||||
|
var obj = this;
|
||||||
|
var data = new FormData();
|
||||||
|
data.append("file", files[0]);
|
||||||
|
$.ajax({
|
||||||
|
type: "post",
|
||||||
|
url: ctx + "common/upload",
|
||||||
|
data: data,
|
||||||
|
cache: false,
|
||||||
|
contentType: false,
|
||||||
|
processData: false,
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(result) {
|
||||||
|
if (result.code == web_status.SUCCESS) {
|
||||||
|
$('#' + obj.id).summernote('insertImage', result.url);
|
||||||
|
} else {
|
||||||
|
$.modal.alertError(result.msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function(error) {
|
||||||
|
$.modal.alertWarning("图片上传失败。");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
var content = $("input[name='" + this.id + "']").val();
|
||||||
|
$('#' + this.id).summernote('code', content);
|
||||||
|
})
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,327 @@
|
||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户对象 wk_crm_customer
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-06
|
||||||
|
*/
|
||||||
|
public class WkCrmCustomer extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long customerId;
|
||||||
|
|
||||||
|
/** 客户名称 */
|
||||||
|
@Excel(name = "客户名称")
|
||||||
|
private String customerName;
|
||||||
|
|
||||||
|
/** 下次联系时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "下次联系时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date nextTime;
|
||||||
|
|
||||||
|
/** 成交状态 0 未成交 1 已成交 */
|
||||||
|
@Excel(name = "成交状态 0 未成交 1 已成交")
|
||||||
|
private Integer dealStatus;
|
||||||
|
|
||||||
|
/** 成交时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date dealTime;
|
||||||
|
|
||||||
|
/** 手机 */
|
||||||
|
@Excel(name = "手机")
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
|
/** 电话 */
|
||||||
|
@Excel(name = "电话")
|
||||||
|
private String telephone;
|
||||||
|
|
||||||
|
/** 网址 */
|
||||||
|
@Excel(name = "网址")
|
||||||
|
private String website;
|
||||||
|
|
||||||
|
/** 邮箱 */
|
||||||
|
@Excel(name = "邮箱")
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
/** 创建人ID */
|
||||||
|
@Excel(name = "创建人ID")
|
||||||
|
private Long createUserId;
|
||||||
|
|
||||||
|
/** 负责人ID */
|
||||||
|
@Excel(name = "负责人ID")
|
||||||
|
private Long ownerUserId;
|
||||||
|
|
||||||
|
/** 只读权限 */
|
||||||
|
@Excel(name = "只读权限")
|
||||||
|
private String roUserId;
|
||||||
|
|
||||||
|
/** 读写权限 */
|
||||||
|
@Excel(name = "读写权限")
|
||||||
|
private String rwUserId;
|
||||||
|
|
||||||
|
/** 详细地址 */
|
||||||
|
@Excel(name = "详细地址")
|
||||||
|
private String detailAddress;
|
||||||
|
|
||||||
|
/** 批次 比如附件批次 */
|
||||||
|
@Excel(name = "批次 比如附件批次")
|
||||||
|
private String batchId;
|
||||||
|
|
||||||
|
/** 最后跟进时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "最后跟进时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date lastTime;
|
||||||
|
|
||||||
|
/** 放入公海时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "放入公海时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date poolTime;
|
||||||
|
|
||||||
|
/** 1 分配 2 领取 */
|
||||||
|
@Excel(name = "1 分配 2 领取")
|
||||||
|
private Integer isReceive;
|
||||||
|
|
||||||
|
/** 最后一条跟进记录 */
|
||||||
|
@Excel(name = "最后一条跟进记录")
|
||||||
|
private String lastContent;
|
||||||
|
|
||||||
|
/** 接收到客户时间 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "接收到客户时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date receiveTime;
|
||||||
|
|
||||||
|
/** 进入公海前负责人id */
|
||||||
|
@Excel(name = "进入公海前负责人id")
|
||||||
|
private Long preOwnerUserId;
|
||||||
|
|
||||||
|
public void setCustomerId(Long customerId)
|
||||||
|
{
|
||||||
|
this.customerId = customerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCustomerId()
|
||||||
|
{
|
||||||
|
return customerId;
|
||||||
|
}
|
||||||
|
public void setCustomerName(String customerName)
|
||||||
|
{
|
||||||
|
this.customerName = customerName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCustomerName()
|
||||||
|
{
|
||||||
|
return customerName;
|
||||||
|
}
|
||||||
|
public void setNextTime(Date nextTime)
|
||||||
|
{
|
||||||
|
this.nextTime = nextTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getNextTime()
|
||||||
|
{
|
||||||
|
return nextTime;
|
||||||
|
}
|
||||||
|
public void setDealStatus(Integer dealStatus)
|
||||||
|
{
|
||||||
|
this.dealStatus = dealStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getDealStatus()
|
||||||
|
{
|
||||||
|
return dealStatus;
|
||||||
|
}
|
||||||
|
public void setDealTime(Date dealTime)
|
||||||
|
{
|
||||||
|
this.dealTime = dealTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDealTime()
|
||||||
|
{
|
||||||
|
return dealTime;
|
||||||
|
}
|
||||||
|
public void setMobile(String mobile)
|
||||||
|
{
|
||||||
|
this.mobile = mobile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMobile()
|
||||||
|
{
|
||||||
|
return mobile;
|
||||||
|
}
|
||||||
|
public void setTelephone(String telephone)
|
||||||
|
{
|
||||||
|
this.telephone = telephone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTelephone()
|
||||||
|
{
|
||||||
|
return telephone;
|
||||||
|
}
|
||||||
|
public void setWebsite(String website)
|
||||||
|
{
|
||||||
|
this.website = website;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWebsite()
|
||||||
|
{
|
||||||
|
return website;
|
||||||
|
}
|
||||||
|
public void setEmail(String email)
|
||||||
|
{
|
||||||
|
this.email = email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmail()
|
||||||
|
{
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
public void setCreateUserId(Long createUserId)
|
||||||
|
{
|
||||||
|
this.createUserId = createUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCreateUserId()
|
||||||
|
{
|
||||||
|
return createUserId;
|
||||||
|
}
|
||||||
|
public void setOwnerUserId(Long ownerUserId)
|
||||||
|
{
|
||||||
|
this.ownerUserId = ownerUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getOwnerUserId()
|
||||||
|
{
|
||||||
|
return ownerUserId;
|
||||||
|
}
|
||||||
|
public void setRoUserId(String roUserId)
|
||||||
|
{
|
||||||
|
this.roUserId = roUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRoUserId()
|
||||||
|
{
|
||||||
|
return roUserId;
|
||||||
|
}
|
||||||
|
public void setRwUserId(String rwUserId)
|
||||||
|
{
|
||||||
|
this.rwUserId = rwUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRwUserId()
|
||||||
|
{
|
||||||
|
return rwUserId;
|
||||||
|
}
|
||||||
|
public void setDetailAddress(String detailAddress)
|
||||||
|
{
|
||||||
|
this.detailAddress = detailAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetailAddress()
|
||||||
|
{
|
||||||
|
return detailAddress;
|
||||||
|
}
|
||||||
|
public void setBatchId(String batchId)
|
||||||
|
{
|
||||||
|
this.batchId = batchId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBatchId()
|
||||||
|
{
|
||||||
|
return batchId;
|
||||||
|
}
|
||||||
|
public void setLastTime(Date lastTime)
|
||||||
|
{
|
||||||
|
this.lastTime = lastTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getLastTime()
|
||||||
|
{
|
||||||
|
return lastTime;
|
||||||
|
}
|
||||||
|
public void setPoolTime(Date poolTime)
|
||||||
|
{
|
||||||
|
this.poolTime = poolTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getPoolTime()
|
||||||
|
{
|
||||||
|
return poolTime;
|
||||||
|
}
|
||||||
|
public void setIsReceive(Integer isReceive)
|
||||||
|
{
|
||||||
|
this.isReceive = isReceive;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getIsReceive()
|
||||||
|
{
|
||||||
|
return isReceive;
|
||||||
|
}
|
||||||
|
public void setLastContent(String lastContent)
|
||||||
|
{
|
||||||
|
this.lastContent = lastContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLastContent()
|
||||||
|
{
|
||||||
|
return lastContent;
|
||||||
|
}
|
||||||
|
public void setReceiveTime(Date receiveTime)
|
||||||
|
{
|
||||||
|
this.receiveTime = receiveTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getReceiveTime()
|
||||||
|
{
|
||||||
|
return receiveTime;
|
||||||
|
}
|
||||||
|
public void setPreOwnerUserId(Long preOwnerUserId)
|
||||||
|
{
|
||||||
|
this.preOwnerUserId = preOwnerUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPreOwnerUserId()
|
||||||
|
{
|
||||||
|
return preOwnerUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("customerId", getCustomerId())
|
||||||
|
.append("customerName", getCustomerName())
|
||||||
|
.append("nextTime", getNextTime())
|
||||||
|
.append("dealStatus", getDealStatus())
|
||||||
|
.append("dealTime", getDealTime())
|
||||||
|
.append("mobile", getMobile())
|
||||||
|
.append("telephone", getTelephone())
|
||||||
|
.append("website", getWebsite())
|
||||||
|
.append("email", getEmail())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createUserId", getCreateUserId())
|
||||||
|
.append("ownerUserId", getOwnerUserId())
|
||||||
|
.append("roUserId", getRoUserId())
|
||||||
|
.append("rwUserId", getRwUserId())
|
||||||
|
.append("detailAddress", getDetailAddress())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("batchId", getBatchId())
|
||||||
|
.append("lastTime", getLastTime())
|
||||||
|
.append("poolTime", getPoolTime())
|
||||||
|
.append("isReceive", getIsReceive())
|
||||||
|
.append("lastContent", getLastContent())
|
||||||
|
.append("receiveTime", getReceiveTime())
|
||||||
|
.append("preOwnerUserId", getPreOwnerUserId())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.WkCrmCustomer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-06
|
||||||
|
*/
|
||||||
|
public interface WkCrmCustomerMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询客户
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 客户
|
||||||
|
*/
|
||||||
|
public WkCrmCustomer selectWkCrmCustomerById(Long customerId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户列表
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 客户集合
|
||||||
|
*/
|
||||||
|
public List<WkCrmCustomer> selectWkCrmCustomerList(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWkCrmCustomer(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWkCrmCustomer(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWkCrmCustomerById(Long customerId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户
|
||||||
|
*
|
||||||
|
* @param customerIds 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWkCrmCustomerByIds(String[] customerIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.system.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.WkCrmCustomer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-06
|
||||||
|
*/
|
||||||
|
public interface IWkCrmCustomerService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询客户
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 客户
|
||||||
|
*/
|
||||||
|
public WkCrmCustomer selectWkCrmCustomerById(Long customerId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户列表
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 客户集合
|
||||||
|
*/
|
||||||
|
public List<WkCrmCustomer> selectWkCrmCustomerList(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWkCrmCustomer(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWkCrmCustomer(WkCrmCustomer wkCrmCustomer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWkCrmCustomerByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户信息
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWkCrmCustomerById(Long customerId);
|
||||||
|
}
|
||||||
|
|
@ -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.WkCrmCustomerMapper;
|
||||||
|
import com.ruoyi.system.domain.WkCrmCustomer;
|
||||||
|
import com.ruoyi.system.service.IWkCrmCustomerService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2021-04-06
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WkCrmCustomerServiceImpl implements IWkCrmCustomerService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private WkCrmCustomerMapper wkCrmCustomerMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 客户
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public WkCrmCustomer selectWkCrmCustomerById(Long customerId)
|
||||||
|
{
|
||||||
|
return wkCrmCustomerMapper.selectWkCrmCustomerById(customerId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询客户列表
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 客户
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<WkCrmCustomer> selectWkCrmCustomerList(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
return wkCrmCustomerMapper.selectWkCrmCustomerList(wkCrmCustomer);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertWkCrmCustomer(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
wkCrmCustomer.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return wkCrmCustomerMapper.insertWkCrmCustomer(wkCrmCustomer);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改客户
|
||||||
|
*
|
||||||
|
* @param wkCrmCustomer 客户
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateWkCrmCustomer(WkCrmCustomer wkCrmCustomer)
|
||||||
|
{
|
||||||
|
wkCrmCustomer.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return wkCrmCustomerMapper.updateWkCrmCustomer(wkCrmCustomer);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteWkCrmCustomerByIds(String ids)
|
||||||
|
{
|
||||||
|
return wkCrmCustomerMapper.deleteWkCrmCustomerByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户信息
|
||||||
|
*
|
||||||
|
* @param customerId 客户ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteWkCrmCustomerById(Long customerId)
|
||||||
|
{
|
||||||
|
return wkCrmCustomerMapper.deleteWkCrmCustomerById(customerId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,164 @@
|
||||||
|
<?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.WkCrmCustomerMapper">
|
||||||
|
|
||||||
|
<resultMap type="WkCrmCustomer" id="WkCrmCustomerResult">
|
||||||
|
<result property="customerId" column="customer_id" />
|
||||||
|
<result property="customerName" column="customer_name" />
|
||||||
|
<result property="nextTime" column="next_time" />
|
||||||
|
<result property="dealStatus" column="deal_status" />
|
||||||
|
<result property="dealTime" column="deal_time" />
|
||||||
|
<result property="mobile" column="mobile" />
|
||||||
|
<result property="telephone" column="telephone" />
|
||||||
|
<result property="website" column="website" />
|
||||||
|
<result property="email" column="email" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createUserId" column="create_user_id" />
|
||||||
|
<result property="ownerUserId" column="owner_user_id" />
|
||||||
|
<result property="roUserId" column="ro_user_id" />
|
||||||
|
<result property="rwUserId" column="rw_user_id" />
|
||||||
|
<result property="detailAddress" column="detail_address" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="batchId" column="batch_id" />
|
||||||
|
<result property="lastTime" column="last_time" />
|
||||||
|
<result property="poolTime" column="pool_time" />
|
||||||
|
<result property="isReceive" column="is_receive" />
|
||||||
|
<result property="lastContent" column="last_content" />
|
||||||
|
<result property="receiveTime" column="receive_time" />
|
||||||
|
<result property="preOwnerUserId" column="pre_owner_user_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectWkCrmCustomerVo">
|
||||||
|
select customer_id, customer_name, next_time, deal_status, deal_time, mobile, telephone, website, email, remark, create_user_id, owner_user_id, ro_user_id, rw_user_id, detail_address, create_time, update_time, batch_id, last_time, pool_time, is_receive, last_content, receive_time, pre_owner_user_id from wk_crm_customer
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectWkCrmCustomerList" parameterType="WkCrmCustomer" resultMap="WkCrmCustomerResult">
|
||||||
|
<include refid="selectWkCrmCustomerVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||||
|
<if test="nextTime != null "> and next_time = #{nextTime}</if>
|
||||||
|
<if test="dealStatus != null "> and deal_status = #{dealStatus}</if>
|
||||||
|
<if test="dealTime != null "> and deal_time = #{dealTime}</if>
|
||||||
|
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
||||||
|
<if test="telephone != null and telephone != ''"> and telephone = #{telephone}</if>
|
||||||
|
<if test="website != null and website != ''"> and website = #{website}</if>
|
||||||
|
<if test="email != null and email != ''"> and email = #{email}</if>
|
||||||
|
<if test="createUserId != null "> and create_user_id = #{createUserId}</if>
|
||||||
|
<if test="ownerUserId != null "> and owner_user_id = #{ownerUserId}</if>
|
||||||
|
<if test="roUserId != null and roUserId != ''"> and ro_user_id = #{roUserId}</if>
|
||||||
|
<if test="rwUserId != null and rwUserId != ''"> and rw_user_id = #{rwUserId}</if>
|
||||||
|
<if test="detailAddress != null and detailAddress != ''"> and detail_address = #{detailAddress}</if>
|
||||||
|
<if test="batchId != null and batchId != ''"> and batch_id = #{batchId}</if>
|
||||||
|
<if test="lastTime != null "> and last_time = #{lastTime}</if>
|
||||||
|
<if test="poolTime != null "> and pool_time = #{poolTime}</if>
|
||||||
|
<if test="isReceive != null "> and is_receive = #{isReceive}</if>
|
||||||
|
<if test="lastContent != null and lastContent != ''"> and last_content = #{lastContent}</if>
|
||||||
|
<if test="receiveTime != null "> and receive_time = #{receiveTime}</if>
|
||||||
|
<if test="preOwnerUserId != null "> and pre_owner_user_id = #{preOwnerUserId}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectWkCrmCustomerById" parameterType="Long" resultMap="WkCrmCustomerResult">
|
||||||
|
<include refid="selectWkCrmCustomerVo"/>
|
||||||
|
where customer_id = #{customerId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertWkCrmCustomer" parameterType="WkCrmCustomer" useGeneratedKeys="true" keyProperty="customerId">
|
||||||
|
insert into wk_crm_customer
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="customerName != null">customer_name,</if>
|
||||||
|
<if test="nextTime != null">next_time,</if>
|
||||||
|
<if test="dealStatus != null">deal_status,</if>
|
||||||
|
<if test="dealTime != null">deal_time,</if>
|
||||||
|
<if test="mobile != null">mobile,</if>
|
||||||
|
<if test="telephone != null">telephone,</if>
|
||||||
|
<if test="website != null">website,</if>
|
||||||
|
<if test="email != null">email,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createUserId != null">create_user_id,</if>
|
||||||
|
<if test="ownerUserId != null">owner_user_id,</if>
|
||||||
|
<if test="roUserId != null">ro_user_id,</if>
|
||||||
|
<if test="rwUserId != null">rw_user_id,</if>
|
||||||
|
<if test="detailAddress != null">detail_address,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="batchId != null and batchId != ''">batch_id,</if>
|
||||||
|
<if test="lastTime != null">last_time,</if>
|
||||||
|
<if test="poolTime != null">pool_time,</if>
|
||||||
|
<if test="isReceive != null">is_receive,</if>
|
||||||
|
<if test="lastContent != null">last_content,</if>
|
||||||
|
<if test="receiveTime != null">receive_time,</if>
|
||||||
|
<if test="preOwnerUserId != null">pre_owner_user_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="customerName != null">#{customerName},</if>
|
||||||
|
<if test="nextTime != null">#{nextTime},</if>
|
||||||
|
<if test="dealStatus != null">#{dealStatus},</if>
|
||||||
|
<if test="dealTime != null">#{dealTime},</if>
|
||||||
|
<if test="mobile != null">#{mobile},</if>
|
||||||
|
<if test="telephone != null">#{telephone},</if>
|
||||||
|
<if test="website != null">#{website},</if>
|
||||||
|
<if test="email != null">#{email},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createUserId != null">#{createUserId},</if>
|
||||||
|
<if test="ownerUserId != null">#{ownerUserId},</if>
|
||||||
|
<if test="roUserId != null">#{roUserId},</if>
|
||||||
|
<if test="rwUserId != null">#{rwUserId},</if>
|
||||||
|
<if test="detailAddress != null">#{detailAddress},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="batchId != null and batchId != ''">#{batchId},</if>
|
||||||
|
<if test="lastTime != null">#{lastTime},</if>
|
||||||
|
<if test="poolTime != null">#{poolTime},</if>
|
||||||
|
<if test="isReceive != null">#{isReceive},</if>
|
||||||
|
<if test="lastContent != null">#{lastContent},</if>
|
||||||
|
<if test="receiveTime != null">#{receiveTime},</if>
|
||||||
|
<if test="preOwnerUserId != null">#{preOwnerUserId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateWkCrmCustomer" parameterType="WkCrmCustomer">
|
||||||
|
update wk_crm_customer
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||||
|
<if test="nextTime != null">next_time = #{nextTime},</if>
|
||||||
|
<if test="dealStatus != null">deal_status = #{dealStatus},</if>
|
||||||
|
<if test="dealTime != null">deal_time = #{dealTime},</if>
|
||||||
|
<if test="mobile != null">mobile = #{mobile},</if>
|
||||||
|
<if test="telephone != null">telephone = #{telephone},</if>
|
||||||
|
<if test="website != null">website = #{website},</if>
|
||||||
|
<if test="email != null">email = #{email},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createUserId != null">create_user_id = #{createUserId},</if>
|
||||||
|
<if test="ownerUserId != null">owner_user_id = #{ownerUserId},</if>
|
||||||
|
<if test="roUserId != null">ro_user_id = #{roUserId},</if>
|
||||||
|
<if test="rwUserId != null">rw_user_id = #{rwUserId},</if>
|
||||||
|
<if test="detailAddress != null">detail_address = #{detailAddress},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="batchId != null and batchId != ''">batch_id = #{batchId},</if>
|
||||||
|
<if test="lastTime != null">last_time = #{lastTime},</if>
|
||||||
|
<if test="poolTime != null">pool_time = #{poolTime},</if>
|
||||||
|
<if test="isReceive != null">is_receive = #{isReceive},</if>
|
||||||
|
<if test="lastContent != null">last_content = #{lastContent},</if>
|
||||||
|
<if test="receiveTime != null">receive_time = #{receiveTime},</if>
|
||||||
|
<if test="preOwnerUserId != null">pre_owner_user_id = #{preOwnerUserId},</if>
|
||||||
|
</trim>
|
||||||
|
where customer_id = #{customerId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteWkCrmCustomerById" parameterType="Long">
|
||||||
|
delete from wk_crm_customer where customer_id = #{customerId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWkCrmCustomerByIds" parameterType="String">
|
||||||
|
delete from wk_crm_customer where customer_id in
|
||||||
|
<foreach item="customerId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{customerId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue