From d9824bdebb128e66f6709a108fc7ad3cf6c8e8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B3=BD=E6=96=8C?= <1059064476@qq.com> Date: Tue, 6 Apr 2021 10:17:12 +0800 Subject: [PATCH] 111 --- .../system/WkCrmCustomerController.java | 126 +++++++ .../templates/system/customer/add.html | 240 +++++++++++++ .../templates/system/customer/customer.html | 229 ++++++++++++ .../templates/system/customer/edit.html | 245 +++++++++++++ .../ruoyi/system/domain/WkCrmCustomer.java | 327 ++++++++++++++++++ .../system/mapper/WkCrmCustomerMapper.java | 61 ++++ .../system/service/IWkCrmCustomerService.java | 61 ++++ .../impl/WkCrmCustomerServiceImpl.java | 97 ++++++ .../mapper/system/WkCrmCustomerMapper.xml | 164 +++++++++ 9 files changed, 1550 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/customer/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/customer/customer.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/customer/edit.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomer.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerController.java new file mode 100644 index 000000000..c37cc8769 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerController.java @@ -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 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 list = wkCrmCustomerService.selectWkCrmCustomerList(wkCrmCustomer); + ExcelUtil util = new ExcelUtil(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)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/system/customer/add.html b/ruoyi-admin/src/main/resources/templates/system/customer/add.html new file mode 100644 index 000000000..a19ff4137 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/customer/add.html @@ -0,0 +1,240 @@ + + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/customer/customer.html b/ruoyi-admin/src/main/resources/templates/system/customer/customer.html new file mode 100644 index 000000000..b856ed60b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/customer/customer.html @@ -0,0 +1,229 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • + +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • + +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/customer/edit.html b/ruoyi-admin/src/main/resources/templates/system/customer/edit.html new file mode 100644 index 000000000..9e0dc5f4b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/customer/edit.html @@ -0,0 +1,245 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+ 代码生成请选择字典属性 +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomer.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomer.java new file mode 100644 index 000000000..45cf26597 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomer.java @@ -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(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerMapper.java new file mode 100644 index 000000000..1daded697 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerMapper.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerService.java new file mode 100644 index 000000000..e2d21cdb1 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerService.java @@ -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 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); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerServiceImpl.java new file mode 100644 index 000000000..828574b12 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerServiceImpl.java @@ -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 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); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerMapper.xml new file mode 100644 index 000000000..a5cb6106f --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + insert into wk_crm_customer + + 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, + + + #{customerName}, + #{nextTime}, + #{dealStatus}, + #{dealTime}, + #{mobile}, + #{telephone}, + #{website}, + #{email}, + #{remark}, + #{createUserId}, + #{ownerUserId}, + #{roUserId}, + #{rwUserId}, + #{detailAddress}, + #{createTime}, + #{updateTime}, + #{batchId}, + #{lastTime}, + #{poolTime}, + #{isReceive}, + #{lastContent}, + #{receiveTime}, + #{preOwnerUserId}, + + + + + update wk_crm_customer + + customer_name = #{customerName}, + next_time = #{nextTime}, + deal_status = #{dealStatus}, + deal_time = #{dealTime}, + mobile = #{mobile}, + telephone = #{telephone}, + website = #{website}, + email = #{email}, + remark = #{remark}, + create_user_id = #{createUserId}, + owner_user_id = #{ownerUserId}, + ro_user_id = #{roUserId}, + rw_user_id = #{rwUserId}, + detail_address = #{detailAddress}, + create_time = #{createTime}, + update_time = #{updateTime}, + batch_id = #{batchId}, + last_time = #{lastTime}, + pool_time = #{poolTime}, + is_receive = #{isReceive}, + last_content = #{lastContent}, + receive_time = #{receiveTime}, + pre_owner_user_id = #{preOwnerUserId}, + + where customer_id = #{customerId} + + + + delete from wk_crm_customer where customer_id = #{customerId} + + + + delete from wk_crm_customer where customer_id in + + #{customerId} + + + + \ No newline at end of file