From a57dfe862d488301e6aac72f72335f7d0ac79412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=91=84=E6=94=BF=E7=8E=8B?= <1013936323@qq.com> Date: Fri, 2 Apr 2021 15:57:58 +0800 Subject: [PATCH 1/8] a --- ruoyi-generator/src/main/resources/generator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-generator/src/main/resources/generator.yml b/ruoyi-generator/src/main/resources/generator.yml index f3792cdc6..9c739f4a8 100644 --- a/ruoyi-generator/src/main/resources/generator.yml +++ b/ruoyi-generator/src/main/resources/generator.yml @@ -8,4 +8,4 @@ gen: # 自动去除表前缀,默认是false autoRemovePre: false # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) - tablePrefix: sys_ \ No newline at end of file + tablePrefix: wk_ \ No newline at end of file From b5c201adf100033b8608406280824ca960ecef39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B3=BD=E6=96=8C?= <1059064476@qq.com> Date: Fri, 2 Apr 2021 17:44:35 +0800 Subject: [PATCH 2/8] 11 --- ruoyi-admin/src/main/resources/templates/index-topnav.html | 2 +- ruoyi-admin/src/main/resources/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/index-topnav.html b/ruoyi-admin/src/main/resources/templates/index-topnav.html index 4ce7d73bc..d3315c501 100644 --- a/ruoyi-admin/src/main/resources/templates/index-topnav.html +++ b/ruoyi-admin/src/main/resources/templates/index-topnav.html @@ -26,7 +26,7 @@ -> + 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 4/8] 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 From 5f0a45d3bb46c26152e1a081219e5f4cbdca64bc 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 14:44:23 +0800 Subject: [PATCH 5/8] 111 --- .../system/WkCrmLeadsController.java | 126 +++++++++++ .../resources/templates/system/leads/add.html | 155 ++++++++++++++ .../templates/system/leads/edit.html | 160 ++++++++++++++ .../templates/system/leads/leads.html | 166 +++++++++++++++ .../com/ruoyi/system/domain/WkCrmLeads.java | 198 ++++++++++++++++++ .../ruoyi/system/mapper/WkCrmLeadsMapper.java | 61 ++++++ .../system/service/IWkCrmLeadsService.java | 61 ++++++ .../service/impl/WkCrmLeadsServiceImpl.java | 97 +++++++++ .../mapper/system/WkCrmLeadsMapper.xml | 119 +++++++++++ 9 files changed, 1143 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmLeadsController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/leads/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/leads/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/leads/leads.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmLeads.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmLeadsMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmLeadsService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmLeadsServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmLeadsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmLeadsController.java new file mode 100644 index 000000000..4de0b1259 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmLeadsController.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.WkCrmLeads; +import com.ruoyi.system.service.IWkCrmLeadsService; +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/leads") +public class WkCrmLeadsController extends BaseController +{ + private String prefix = "system/leads"; + + @Autowired + private IWkCrmLeadsService wkCrmLeadsService; + + @RequiresPermissions("system:leads:view") + @GetMapping() + public String leads() + { + return prefix + "/leads"; + } + + /** + * 查询线索列表 + */ + @RequiresPermissions("system:leads:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmLeads wkCrmLeads) + { + startPage(); + List list = wkCrmLeadsService.selectWkCrmLeadsList(wkCrmLeads); + return getDataTable(list); + } + + /** + * 导出线索列表 + */ + @RequiresPermissions("system:leads:export") + @Log(title = "线索", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmLeads wkCrmLeads) + { + List list = wkCrmLeadsService.selectWkCrmLeadsList(wkCrmLeads); + ExcelUtil util = new ExcelUtil(WkCrmLeads.class); + return util.exportExcel(list, "leads"); + } + + /** + * 新增线索 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存线索 + */ + @RequiresPermissions("system:leads:add") + @Log(title = "线索", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmLeads wkCrmLeads) + { + return toAjax(wkCrmLeadsService.insertWkCrmLeads(wkCrmLeads)); + } + + /** + * 修改线索 + */ + @GetMapping("/edit/{leadsId}") + public String edit(@PathVariable("leadsId") Long leadsId, ModelMap mmap) + { + WkCrmLeads wkCrmLeads = wkCrmLeadsService.selectWkCrmLeadsById(leadsId); + mmap.put("wkCrmLeads", wkCrmLeads); + return prefix + "/edit"; + } + + /** + * 修改保存线索 + */ + @RequiresPermissions("system:leads:edit") + @Log(title = "线索", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmLeads wkCrmLeads) + { + return toAjax(wkCrmLeadsService.updateWkCrmLeads(wkCrmLeads)); + } + + /** + * 删除线索 + */ + @RequiresPermissions("system:leads:remove") + @Log(title = "线索", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmLeadsService.deleteWkCrmLeadsByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/system/leads/add.html b/ruoyi-admin/src/main/resources/templates/system/leads/add.html new file mode 100644 index 000000000..8a60759c7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/leads/add.html @@ -0,0 +1,155 @@ + + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/leads/edit.html b/ruoyi-admin/src/main/resources/templates/system/leads/edit.html new file mode 100644 index 000000000..80f819aee --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/leads/edit.html @@ -0,0 +1,160 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/leads/leads.html b/ruoyi-admin/src/main/resources/templates/system/leads/leads.html new file mode 100644 index 000000000..60ba816f2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/leads/leads.html @@ -0,0 +1,166 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmLeads.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmLeads.java new file mode 100644 index 000000000..b93d22ef8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmLeads.java @@ -0,0 +1,198 @@ +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_leads + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmLeads extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long leadsId; + + /** 跟进状态 0未跟进1已跟进 */ + @Excel(name = "跟进状态 0未跟进1已跟进") + private Long followup; + + /** 线索名称 */ + @Excel(name = "线索名称") + private String leadsName; + + /** 下次联系时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "下次联系时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date nextTime; + + /** 电话 */ + @Excel(name = "电话") + private String telephone; + + /** 手机号 */ + @Excel(name = "手机号") + private String mobile; + + /** 邮箱 */ + @Excel(name = "邮箱") + private String email; + + /** 地址 */ + @Excel(name = "地址") + private String address; + + /** 创建人ID */ + @Excel(name = "创建人ID") + private Long createUserId; + + /** 负责人ID */ + @Excel(name = "负责人ID") + private Long ownerUserId; + + /** 最后跟进时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后跟进时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastTime; + + /** 最后一条跟进记录 */ + @Excel(name = "最后一条跟进记录") + private String lastContent; + + public void setLeadsId(Long leadsId) + { + this.leadsId = leadsId; + } + + public Long getLeadsId() + { + return leadsId; + } + public void setFollowup(Long followup) + { + this.followup = followup; + } + + public Long getFollowup() + { + return followup; + } + public void setLeadsName(String leadsName) + { + this.leadsName = leadsName; + } + + public String getLeadsName() + { + return leadsName; + } + public void setNextTime(Date nextTime) + { + this.nextTime = nextTime; + } + + public Date getNextTime() + { + return nextTime; + } + public void setTelephone(String telephone) + { + this.telephone = telephone; + } + + public String getTelephone() + { + return telephone; + } + public void setMobile(String mobile) + { + this.mobile = mobile; + } + + public String getMobile() + { + return mobile; + } + public void setEmail(String email) + { + this.email = email; + } + + public String getEmail() + { + return email; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + 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 setLastTime(Date lastTime) + { + this.lastTime = lastTime; + } + + public Date getLastTime() + { + return lastTime; + } + public void setLastContent(String lastContent) + { + this.lastContent = lastContent; + } + + public String getLastContent() + { + return lastContent; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("leadsId", getLeadsId()) + .append("followup", getFollowup()) + .append("leadsName", getLeadsName()) + .append("nextTime", getNextTime()) + .append("telephone", getTelephone()) + .append("mobile", getMobile()) + .append("email", getEmail()) + .append("address", getAddress()) + .append("remark", getRemark()) + .append("createUserId", getCreateUserId()) + .append("ownerUserId", getOwnerUserId()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("lastTime", getLastTime()) + .append("lastContent", getLastContent()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmLeadsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmLeadsMapper.java new file mode 100644 index 000000000..daa0d7efa --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmLeadsMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmLeads; + +/** + * 线索Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmLeadsMapper +{ + /** + * 查询线索 + * + * @param leadsId 线索ID + * @return 线索 + */ + public WkCrmLeads selectWkCrmLeadsById(Long leadsId); + + /** + * 查询线索列表 + * + * @param wkCrmLeads 线索 + * @return 线索集合 + */ + public List selectWkCrmLeadsList(WkCrmLeads wkCrmLeads); + + /** + * 新增线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + public int insertWkCrmLeads(WkCrmLeads wkCrmLeads); + + /** + * 修改线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + public int updateWkCrmLeads(WkCrmLeads wkCrmLeads); + + /** + * 删除线索 + * + * @param leadsId 线索ID + * @return 结果 + */ + public int deleteWkCrmLeadsById(Long leadsId); + + /** + * 批量删除线索 + * + * @param leadsIds 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmLeadsByIds(String[] leadsIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmLeadsService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmLeadsService.java new file mode 100644 index 000000000..da814cb94 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmLeadsService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmLeads; + +/** + * 线索Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmLeadsService +{ + /** + * 查询线索 + * + * @param leadsId 线索ID + * @return 线索 + */ + public WkCrmLeads selectWkCrmLeadsById(Long leadsId); + + /** + * 查询线索列表 + * + * @param wkCrmLeads 线索 + * @return 线索集合 + */ + public List selectWkCrmLeadsList(WkCrmLeads wkCrmLeads); + + /** + * 新增线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + public int insertWkCrmLeads(WkCrmLeads wkCrmLeads); + + /** + * 修改线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + public int updateWkCrmLeads(WkCrmLeads wkCrmLeads); + + /** + * 批量删除线索 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmLeadsByIds(String ids); + + /** + * 删除线索信息 + * + * @param leadsId 线索ID + * @return 结果 + */ + public int deleteWkCrmLeadsById(Long leadsId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmLeadsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmLeadsServiceImpl.java new file mode 100644 index 000000000..7ecd3306c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmLeadsServiceImpl.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.WkCrmLeadsMapper; +import com.ruoyi.system.domain.WkCrmLeads; +import com.ruoyi.system.service.IWkCrmLeadsService; +import com.ruoyi.common.core.text.Convert; + +/** + * 线索Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmLeadsServiceImpl implements IWkCrmLeadsService +{ + @Autowired + private WkCrmLeadsMapper wkCrmLeadsMapper; + + /** + * 查询线索 + * + * @param leadsId 线索ID + * @return 线索 + */ + @Override + public WkCrmLeads selectWkCrmLeadsById(Long leadsId) + { + return wkCrmLeadsMapper.selectWkCrmLeadsById(leadsId); + } + + /** + * 查询线索列表 + * + * @param wkCrmLeads 线索 + * @return 线索 + */ + @Override + public List selectWkCrmLeadsList(WkCrmLeads wkCrmLeads) + { + return wkCrmLeadsMapper.selectWkCrmLeadsList(wkCrmLeads); + } + + /** + * 新增线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + @Override + public int insertWkCrmLeads(WkCrmLeads wkCrmLeads) + { + wkCrmLeads.setCreateTime(DateUtils.getNowDate()); + return wkCrmLeadsMapper.insertWkCrmLeads(wkCrmLeads); + } + + /** + * 修改线索 + * + * @param wkCrmLeads 线索 + * @return 结果 + */ + @Override + public int updateWkCrmLeads(WkCrmLeads wkCrmLeads) + { + wkCrmLeads.setUpdateTime(DateUtils.getNowDate()); + return wkCrmLeadsMapper.updateWkCrmLeads(wkCrmLeads); + } + + /** + * 删除线索对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmLeadsByIds(String ids) + { + return wkCrmLeadsMapper.deleteWkCrmLeadsByIds(Convert.toStrArray(ids)); + } + + /** + * 删除线索信息 + * + * @param leadsId 线索ID + * @return 结果 + */ + @Override + public int deleteWkCrmLeadsById(Long leadsId) + { + return wkCrmLeadsMapper.deleteWkCrmLeadsById(leadsId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml new file mode 100644 index 000000000..125e974c6 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + select leads_id, followup, leads_name, next_time, telephone, mobile, email, address, remark, create_user_id, owner_user_id, create_time, update_time, last_time, last_content from wk_crm_leads + + + + + + + + insert into wk_crm_leads + + followup, + leads_name, + next_time, + telephone, + mobile, + email, + address, + remark, + create_user_id, + owner_user_id, + create_time, + update_time, + last_time, + last_content, + + + #{followup}, + #{leadsName}, + #{nextTime}, + #{telephone}, + #{mobile}, + #{email}, + #{address}, + #{remark}, + #{createUserId}, + #{ownerUserId}, + #{createTime}, + #{updateTime}, + #{lastTime}, + #{lastContent}, + + + + + update wk_crm_leads + + followup = #{followup}, + leads_name = #{leadsName}, + next_time = #{nextTime}, + telephone = #{telephone}, + mobile = #{mobile}, + email = #{email}, + address = #{address}, + remark = #{remark}, + create_user_id = #{createUserId}, + owner_user_id = #{ownerUserId}, + create_time = #{createTime}, + update_time = #{updateTime}, + last_time = #{lastTime}, + last_content = #{lastContent}, + + where leads_id = #{leadsId} + + + + delete from wk_crm_leads where leads_id = #{leadsId} + + + + delete from wk_crm_leads where leads_id in + + #{leadsId} + + + + \ No newline at end of file From 2dc534389c1a0f6c0c5726b55770eea88dfcedbc 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 15:19:19 +0800 Subject: [PATCH 6/8] 111 --- .../system/WkCrmContactsController.java | 126 +++++++++++ .../templates/system/contacts/add.html | 123 ++++++++++ .../templates/system/contacts/contacts.html | 174 ++++++++++++++ .../templates/system/contacts/edit.html | 124 ++++++++++ .../templates/system/customer/customer.html | 8 +- .../templates/system/leads/edit.html | 6 +- .../templates/system/leads/leads.html | 16 +- .../ruoyi/system/domain/WkCrmContacts.java | 212 ++++++++++++++++++ .../system/mapper/WkCrmContactsMapper.java | 61 +++++ .../system/service/IWkCrmContactsService.java | 61 +++++ .../impl/WkCrmContactsServiceImpl.java | 97 ++++++++ .../mapper/system/WkCrmContactsMapper.xml | 124 ++++++++++ 12 files changed, 1117 insertions(+), 15 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmContactsController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/contacts/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/contacts/edit.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmContacts.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmContactsMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmContactsService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmContactsServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmContactsMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmContactsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmContactsController.java new file mode 100644 index 000000000..0e3c74f58 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmContactsController.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.WkCrmContacts; +import com.ruoyi.system.service.IWkCrmContactsService; +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/contacts") +public class WkCrmContactsController extends BaseController +{ + private String prefix = "system/contacts"; + + @Autowired + private IWkCrmContactsService wkCrmContactsService; + + @RequiresPermissions("system:contacts:view") + @GetMapping() + public String contacts() + { + return prefix + "/contacts"; + } + + /** + * 查询联系人列表 + */ + @RequiresPermissions("system:contacts:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmContacts wkCrmContacts) + { + startPage(); + List list = wkCrmContactsService.selectWkCrmContactsList(wkCrmContacts); + return getDataTable(list); + } + + /** + * 导出联系人列表 + */ + @RequiresPermissions("system:contacts:export") + @Log(title = "联系人", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmContacts wkCrmContacts) + { + List list = wkCrmContactsService.selectWkCrmContactsList(wkCrmContacts); + ExcelUtil util = new ExcelUtil(WkCrmContacts.class); + return util.exportExcel(list, "contacts"); + } + + /** + * 新增联系人 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存联系人 + */ + @RequiresPermissions("system:contacts:add") + @Log(title = "联系人", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmContacts wkCrmContacts) + { + return toAjax(wkCrmContactsService.insertWkCrmContacts(wkCrmContacts)); + } + + /** + * 修改联系人 + */ + @GetMapping("/edit/{contactsId}") + public String edit(@PathVariable("contactsId") Long contactsId, ModelMap mmap) + { + WkCrmContacts wkCrmContacts = wkCrmContactsService.selectWkCrmContactsById(contactsId); + mmap.put("wkCrmContacts", wkCrmContacts); + return prefix + "/edit"; + } + + /** + * 修改保存联系人 + */ + @RequiresPermissions("system:contacts:edit") + @Log(title = "联系人", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmContacts wkCrmContacts) + { + return toAjax(wkCrmContactsService.updateWkCrmContacts(wkCrmContacts)); + } + + /** + * 删除联系人 + */ + @RequiresPermissions("system:contacts:remove") + @Log(title = "联系人", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmContactsService.deleteWkCrmContactsByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/system/contacts/add.html b/ruoyi-admin/src/main/resources/templates/system/contacts/add.html new file mode 100644 index 000000000..50870d3f5 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/contacts/add.html @@ -0,0 +1,123 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html b/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html new file mode 100644 index 000000000..c01945ed2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html @@ -0,0 +1,174 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • + +
  • + + +
  • +
  • + + +
  • + +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/contacts/edit.html b/ruoyi-admin/src/main/resources/templates/system/contacts/edit.html new file mode 100644 index 000000000..ff547c861 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/contacts/edit.html @@ -0,0 +1,124 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ 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 index b856ed60b..11f7740e6 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customer/customer.html +++ b/ruoyi-admin/src/main/resources/templates/system/customer/customer.html @@ -25,10 +25,10 @@ --> -
  • +
  • @@ -37,7 +37,7 @@
  • -
  • +
  • -
  • +
  • @@ -30,15 +30,15 @@
  • -
  • +
  • -
  • +
  •  搜索  重置 diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmContacts.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmContacts.java new file mode 100644 index 000000000..ee79950b0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmContacts.java @@ -0,0 +1,212 @@ +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_contacts + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmContacts extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long contactsId; + + /** 联系人名称 */ + @Excel(name = "联系人名称") + private String name; + + /** 下次联系时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "下次联系时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date nextTime; + + /** 手机 */ + @Excel(name = "手机") + private String mobile; + + /** 电话 */ + @Excel(name = "电话") + private String telephone; + + /** 电子邮箱 */ + @Excel(name = "电子邮箱") + private String email; + + /** 职务 */ + @Excel(name = "职务") + private String post; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 地址 */ + @Excel(name = "地址") + private String address; + + /** 创建人ID */ + @Excel(name = "创建人ID") + private Long createUserId; + + /** 负责人ID */ + @Excel(name = "负责人ID") + private Long ownerUserId; + + /** 批次 */ + @Excel(name = "批次") + private String batchId; + + /** 最后跟进时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后跟进时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastTime; + + public void setContactsId(Long contactsId) + { + this.contactsId = contactsId; + } + + public Long getContactsId() + { + return contactsId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setNextTime(Date nextTime) + { + this.nextTime = nextTime; + } + + public Date getNextTime() + { + return nextTime; + } + 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 setEmail(String email) + { + this.email = email; + } + + public String getEmail() + { + return email; + } + public void setPost(String post) + { + this.post = post; + } + + public String getPost() + { + return post; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + 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 setBatchId(String batchId) + { + this.batchId = batchId; + } + + public String getBatchId() + { + return batchId; + } + public void setLastTime(Date lastTime) + { + this.lastTime = lastTime; + } + + public Date getLastTime() + { + return lastTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("contactsId", getContactsId()) + .append("name", getName()) + .append("nextTime", getNextTime()) + .append("mobile", getMobile()) + .append("telephone", getTelephone()) + .append("email", getEmail()) + .append("post", getPost()) + .append("customerId", getCustomerId()) + .append("address", getAddress()) + .append("remark", getRemark()) + .append("createUserId", getCreateUserId()) + .append("ownerUserId", getOwnerUserId()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("batchId", getBatchId()) + .append("lastTime", getLastTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmContactsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmContactsMapper.java new file mode 100644 index 000000000..498877d19 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmContactsMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmContacts; + +/** + * 联系人Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmContactsMapper +{ + /** + * 查询联系人 + * + * @param contactsId 联系人ID + * @return 联系人 + */ + public WkCrmContacts selectWkCrmContactsById(Long contactsId); + + /** + * 查询联系人列表 + * + * @param wkCrmContacts 联系人 + * @return 联系人集合 + */ + public List selectWkCrmContactsList(WkCrmContacts wkCrmContacts); + + /** + * 新增联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + public int insertWkCrmContacts(WkCrmContacts wkCrmContacts); + + /** + * 修改联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + public int updateWkCrmContacts(WkCrmContacts wkCrmContacts); + + /** + * 删除联系人 + * + * @param contactsId 联系人ID + * @return 结果 + */ + public int deleteWkCrmContactsById(Long contactsId); + + /** + * 批量删除联系人 + * + * @param contactsIds 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmContactsByIds(String[] contactsIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmContactsService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmContactsService.java new file mode 100644 index 000000000..42f51d32d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmContactsService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmContacts; + +/** + * 联系人Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmContactsService +{ + /** + * 查询联系人 + * + * @param contactsId 联系人ID + * @return 联系人 + */ + public WkCrmContacts selectWkCrmContactsById(Long contactsId); + + /** + * 查询联系人列表 + * + * @param wkCrmContacts 联系人 + * @return 联系人集合 + */ + public List selectWkCrmContactsList(WkCrmContacts wkCrmContacts); + + /** + * 新增联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + public int insertWkCrmContacts(WkCrmContacts wkCrmContacts); + + /** + * 修改联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + public int updateWkCrmContacts(WkCrmContacts wkCrmContacts); + + /** + * 批量删除联系人 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmContactsByIds(String ids); + + /** + * 删除联系人信息 + * + * @param contactsId 联系人ID + * @return 结果 + */ + public int deleteWkCrmContactsById(Long contactsId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmContactsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmContactsServiceImpl.java new file mode 100644 index 000000000..2d85bfd01 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmContactsServiceImpl.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.WkCrmContactsMapper; +import com.ruoyi.system.domain.WkCrmContacts; +import com.ruoyi.system.service.IWkCrmContactsService; +import com.ruoyi.common.core.text.Convert; + +/** + * 联系人Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmContactsServiceImpl implements IWkCrmContactsService +{ + @Autowired + private WkCrmContactsMapper wkCrmContactsMapper; + + /** + * 查询联系人 + * + * @param contactsId 联系人ID + * @return 联系人 + */ + @Override + public WkCrmContacts selectWkCrmContactsById(Long contactsId) + { + return wkCrmContactsMapper.selectWkCrmContactsById(contactsId); + } + + /** + * 查询联系人列表 + * + * @param wkCrmContacts 联系人 + * @return 联系人 + */ + @Override + public List selectWkCrmContactsList(WkCrmContacts wkCrmContacts) + { + return wkCrmContactsMapper.selectWkCrmContactsList(wkCrmContacts); + } + + /** + * 新增联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + @Override + public int insertWkCrmContacts(WkCrmContacts wkCrmContacts) + { + wkCrmContacts.setCreateTime(DateUtils.getNowDate()); + return wkCrmContactsMapper.insertWkCrmContacts(wkCrmContacts); + } + + /** + * 修改联系人 + * + * @param wkCrmContacts 联系人 + * @return 结果 + */ + @Override + public int updateWkCrmContacts(WkCrmContacts wkCrmContacts) + { + wkCrmContacts.setUpdateTime(DateUtils.getNowDate()); + return wkCrmContactsMapper.updateWkCrmContacts(wkCrmContacts); + } + + /** + * 删除联系人对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmContactsByIds(String ids) + { + return wkCrmContactsMapper.deleteWkCrmContactsByIds(Convert.toStrArray(ids)); + } + + /** + * 删除联系人信息 + * + * @param contactsId 联系人ID + * @return 结果 + */ + @Override + public int deleteWkCrmContactsById(Long contactsId) + { + return wkCrmContactsMapper.deleteWkCrmContactsById(contactsId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmContactsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmContactsMapper.xml new file mode 100644 index 000000000..73f55a425 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmContactsMapper.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select contacts_id, name, next_time, mobile, telephone, email, post, customer_id, address, remark, create_user_id, owner_user_id, create_time, update_time, batch_id, last_time from wk_crm_contacts + + + + + + + + insert into wk_crm_contacts + + name, + next_time, + mobile, + telephone, + email, + post, + customer_id, + address, + remark, + create_user_id, + owner_user_id, + create_time, + update_time, + batch_id, + last_time, + + + #{name}, + #{nextTime}, + #{mobile}, + #{telephone}, + #{email}, + #{post}, + #{customerId}, + #{address}, + #{remark}, + #{createUserId}, + #{ownerUserId}, + #{createTime}, + #{updateTime}, + #{batchId}, + #{lastTime}, + + + + + update wk_crm_contacts + + name = #{name}, + next_time = #{nextTime}, + mobile = #{mobile}, + telephone = #{telephone}, + email = #{email}, + post = #{post}, + customer_id = #{customerId}, + address = #{address}, + remark = #{remark}, + create_user_id = #{createUserId}, + owner_user_id = #{ownerUserId}, + create_time = #{createTime}, + update_time = #{updateTime}, + batch_id = #{batchId}, + last_time = #{lastTime}, + + where contacts_id = #{contactsId} + + + + delete from wk_crm_contacts where contacts_id = #{contactsId} + + + + delete from wk_crm_contacts where contacts_id in + + #{contactsId} + + + + \ No newline at end of file From dece245a286fd6c67d65f881b4abf5dffc05d1dd Mon Sep 17 00:00:00 2001 From: haodong <2451763483@qq.com> Date: Tue, 6 Apr 2021 22:40:13 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E5=8A=A0=E4=BA=86=E5=91=98=E5=B7=A5?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=8B=9B=E8=81=98=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/WkCrmCandidateController.java | 126 +++ ...WkCrmOrganizationManagementController.java | 126 +++ .../WkCrmRecruitmentController.java | 126 +++ .../WkCrmStaffManagement1Controller.java | 129 +++ .../templates/system/candidate/add.html | 163 ++++ .../templates/system/candidate/candidate.html | 233 ++++++ .../templates/system/candidate/edit.html | 164 ++++ .../templates/system/management/add.html | 67 ++ .../templates/system/management/edit.html | 68 ++ .../system/management/management.html | 134 ++++ .../templates/system/management1/add.html | 395 ++++++++++ .../templates/system/management1/edit.html | 395 ++++++++++ .../system/management1/management1.html | 479 ++++++++++++ .../templates/system/recruitment/add.html | 85 ++ .../templates/system/recruitment/edit.html | 86 ++ .../system/recruitment/recruitment.html | 158 ++++ .../ruoyi/system/domain/WkCrmCandidate.java | 307 ++++++++ .../domain/WkCrmOrganizationManagement.java | 135 ++++ .../ruoyi/system/domain/WkCrmRecruitment.java | 177 +++++ .../system/domain/WkCrmStaffManagement1.java | 732 ++++++++++++++++++ .../system/mapper/WkCrmCandidateMapper.java | 61 ++ .../WkCrmOrganizationManagementMapper.java | 61 ++ .../system/mapper/WkCrmRecruitmentMapper.java | 61 ++ .../mapper/WkCrmStaffManagement1Mapper.java | 61 ++ .../service/IWkCrmCandidateService.java | 61 ++ .../IWkCrmOrganizationManagementService.java | 61 ++ .../service/IWkCrmRecruitmentService.java | 61 ++ .../IWkCrmStaffManagement1Service.java | 61 ++ .../impl/WkCrmCandidateServiceImpl.java | 94 +++ ...kCrmOrganizationManagementServiceImpl.java | 94 +++ .../impl/WkCrmRecruitmentServiceImpl.java | 94 +++ .../WkCrmStaffManagement1ServiceImpl.java | 94 +++ .../mapper/system/WkCrmCandidateMapper.xml | 147 ++++ .../WkCrmOrganizationManagementMapper.xml | 87 +++ .../mapper/system/WkCrmRecruitmentMapper.xml | 102 +++ .../system/WkCrmStaffManagement1Mapper.xml | 297 +++++++ 36 files changed, 5782 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmCandidateController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmOrganizationManagementController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmRecruitmentController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmStaffManagement1Controller.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/candidate/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/candidate/candidate.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/candidate/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management/management.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management1/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management1/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/management1/management1.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/recruitment/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/recruitment/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/recruitment/recruitment.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCandidate.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmOrganizationManagement.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmRecruitment.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmStaffManagement1.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCandidateMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmOrganizationManagementMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmRecruitmentMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmStaffManagement1Mapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCandidateService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmOrganizationManagementService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmRecruitmentService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmStaffManagement1Service.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCandidateServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmOrganizationManagementServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmRecruitmentServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmStaffManagement1ServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmCandidateMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmOrganizationManagementMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmRecruitmentMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmStaffManagement1Mapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmCandidateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmCandidateController.java new file mode 100644 index 000000000..3a4b860e0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmCandidateController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.WkCrmCandidate; +import com.ruoyi.system.service.IWkCrmCandidateService; +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/candidate") +public class WkCrmCandidateController extends BaseController +{ + private String prefix = "system/candidate"; + + @Autowired + private IWkCrmCandidateService wkCrmCandidateService; + + @RequiresPermissions("system:candidate:view") + @GetMapping() + public String candidate() + { + return prefix + "/candidate"; + } + + /** + * 查询候选人列表 + */ + @RequiresPermissions("system:candidate:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmCandidate wkCrmCandidate) + { + startPage(); + List list = wkCrmCandidateService.selectWkCrmCandidateList(wkCrmCandidate); + return getDataTable(list); + } + + /** + * 导出候选人列表 + */ + @RequiresPermissions("system:candidate:export") + @Log(title = "候选人", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmCandidate wkCrmCandidate) + { + List list = wkCrmCandidateService.selectWkCrmCandidateList(wkCrmCandidate); + ExcelUtil util = new ExcelUtil(WkCrmCandidate.class); + return util.exportExcel(list, "candidate"); + } + + /** + * 新增候选人 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存候选人 + */ + @RequiresPermissions("system:candidate:add") + @Log(title = "候选人", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmCandidate wkCrmCandidate) + { + return toAjax(wkCrmCandidateService.insertWkCrmCandidate(wkCrmCandidate)); + } + + /** + * 修改候选人 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Integer id, ModelMap mmap) + { + WkCrmCandidate wkCrmCandidate = wkCrmCandidateService.selectWkCrmCandidateById(id); + mmap.put("wkCrmCandidate", wkCrmCandidate); + return prefix + "/edit"; + } + + /** + * 修改保存候选人 + */ + @RequiresPermissions("system:candidate:edit") + @Log(title = "候选人", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmCandidate wkCrmCandidate) + { + return toAjax(wkCrmCandidateService.updateWkCrmCandidate(wkCrmCandidate)); + } + + /** + * 删除候选人 + */ + @RequiresPermissions("system:candidate:remove") + @Log(title = "候选人", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmCandidateService.deleteWkCrmCandidateByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmOrganizationManagementController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmOrganizationManagementController.java new file mode 100644 index 000000000..a1fbd04b9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmOrganizationManagementController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.WkCrmOrganizationManagement; +import com.ruoyi.system.service.IWkCrmOrganizationManagementService; +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/management") +public class WkCrmOrganizationManagementController extends BaseController +{ + private String prefix = "system/management"; + + @Autowired + private IWkCrmOrganizationManagementService wkCrmOrganizationManagementService; + + @RequiresPermissions("system:management:view") + @GetMapping() + public String management() + { + return prefix + "/management"; + } + + /** + * 查询组织管理列表 + */ + @RequiresPermissions("system:management:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + startPage(); + List list = wkCrmOrganizationManagementService.selectWkCrmOrganizationManagementList(wkCrmOrganizationManagement); + return getDataTable(list); + } + + /** + * 导出组织管理列表 + */ + @RequiresPermissions("system:management:export") + @Log(title = "组织管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + List list = wkCrmOrganizationManagementService.selectWkCrmOrganizationManagementList(wkCrmOrganizationManagement); + ExcelUtil util = new ExcelUtil(WkCrmOrganizationManagement.class); + return util.exportExcel(list, "management"); + } + + /** + * 新增组织管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存组织管理 + */ + @RequiresPermissions("system:management:add") + @Log(title = "组织管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + return toAjax(wkCrmOrganizationManagementService.insertWkCrmOrganizationManagement(wkCrmOrganizationManagement)); + } + + /** + * 修改组织管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + WkCrmOrganizationManagement wkCrmOrganizationManagement = wkCrmOrganizationManagementService.selectWkCrmOrganizationManagementById(id); + mmap.put("wkCrmOrganizationManagement", wkCrmOrganizationManagement); + return prefix + "/edit"; + } + + /** + * 修改保存组织管理 + */ + @RequiresPermissions("system:management:edit") + @Log(title = "组织管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + return toAjax(wkCrmOrganizationManagementService.updateWkCrmOrganizationManagement(wkCrmOrganizationManagement)); + } + + /** + * 删除组织管理 + */ + @RequiresPermissions("system:management:remove") + @Log(title = "组织管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmOrganizationManagementService.deleteWkCrmOrganizationManagementByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmRecruitmentController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmRecruitmentController.java new file mode 100644 index 000000000..efba98f2b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmRecruitmentController.java @@ -0,0 +1,126 @@ +package com.ruoyi.web.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.WkCrmRecruitment; +import com.ruoyi.system.service.IWkCrmRecruitmentService; +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/recruitment") +public class WkCrmRecruitmentController extends BaseController +{ + private String prefix = "system/recruitment"; + + @Autowired + private IWkCrmRecruitmentService wkCrmRecruitmentService; + + @RequiresPermissions("system:recruitment:view") + @GetMapping() + public String recruitment() + { + return prefix + "/recruitment"; + } + + /** + * 查询招聘职位列表 + */ + @RequiresPermissions("system:recruitment:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmRecruitment wkCrmRecruitment) + { + startPage(); + List list = wkCrmRecruitmentService.selectWkCrmRecruitmentList(wkCrmRecruitment); + return getDataTable(list); + } + + /** + * 导出招聘职位列表 + */ + @RequiresPermissions("system:recruitment:export") + @Log(title = "招聘职位", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmRecruitment wkCrmRecruitment) + { + List list = wkCrmRecruitmentService.selectWkCrmRecruitmentList(wkCrmRecruitment); + ExcelUtil util = new ExcelUtil(WkCrmRecruitment.class); + return util.exportExcel(list, "recruitment"); + } + + /** + * 新增招聘职位 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存招聘职位 + */ + @RequiresPermissions("system:recruitment:add") + @Log(title = "招聘职位", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmRecruitment wkCrmRecruitment) + { + return toAjax(wkCrmRecruitmentService.insertWkCrmRecruitment(wkCrmRecruitment)); + } + + /** + * 修改招聘职位 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + WkCrmRecruitment wkCrmRecruitment = wkCrmRecruitmentService.selectWkCrmRecruitmentById(id); + mmap.put("wkCrmRecruitment", wkCrmRecruitment); + return prefix + "/edit"; + } + + /** + * 修改保存招聘职位 + */ + @RequiresPermissions("system:recruitment:edit") + @Log(title = "招聘职位", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmRecruitment wkCrmRecruitment) + { + return toAjax(wkCrmRecruitmentService.updateWkCrmRecruitment(wkCrmRecruitment)); + } + + /** + * 删除招聘职位 + */ + @RequiresPermissions("system:recruitment:remove") + @Log(title = "招聘职位", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmRecruitmentService.deleteWkCrmRecruitmentByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmStaffManagement1Controller.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmStaffManagement1Controller.java new file mode 100644 index 000000000..a8115a352 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/WkCrmStaffManagement1Controller.java @@ -0,0 +1,129 @@ +package com.ruoyi.web.controller; + +import java.util.List; + +import com.ruoyi.system.service.IWkCrmCandidateService; +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.WkCrmStaffManagement1; +import com.ruoyi.system.service.IWkCrmStaffManagement1Service; +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/management1") +public class WkCrmStaffManagement1Controller extends BaseController +{ + private String prefix = "system/management1"; + + @Autowired + private IWkCrmStaffManagement1Service wkCrmStaffManagement1Service; + + @RequiresPermissions("system:management1:view") + @GetMapping() + public String management1() + { + return prefix + "/management1"; + } + + /** + * 查询员工管理列表 + */ + @RequiresPermissions("system:management1:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + startPage(); + List list = wkCrmStaffManagement1Service.selectWkCrmStaffManagement1List(wkCrmStaffManagement1); + return getDataTable(list); + } + + /** + * 导出员工管理列表 + */ + @RequiresPermissions("system:management1:export") + @Log(title = "员工管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + List list = wkCrmStaffManagement1Service.selectWkCrmStaffManagement1List(wkCrmStaffManagement1); + ExcelUtil util = new ExcelUtil(WkCrmStaffManagement1.class); + return util.exportExcel(list, "management1"); + } + + /** + * 新增员工管理 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存员工管理 + */ + @RequiresPermissions("system:management1:add") + @Log(title = "员工管理", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + return toAjax(wkCrmStaffManagement1Service.insertWkCrmStaffManagement1(wkCrmStaffManagement1)); + } + + /** + * 修改员工管理 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + WkCrmStaffManagement1 wkCrmStaffManagement1 = wkCrmStaffManagement1Service.selectWkCrmStaffManagement1ById(id); + mmap.put("wkCrmStaffManagement1", wkCrmStaffManagement1); + return prefix + "/edit"; + } + + /** + * 修改保存员工管理 + */ + @RequiresPermissions("system:management1:edit") + @Log(title = "员工管理", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + return toAjax(wkCrmStaffManagement1Service.updateWkCrmStaffManagement1(wkCrmStaffManagement1)); + } + + /** + * 删除员工管理 + */ + @RequiresPermissions("system:management1:remove") + @Log(title = "员工管理", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + + return toAjax(wkCrmStaffManagement1Service.deleteWkCrmStaffManagement1ByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/system/candidate/add.html b/ruoyi-admin/src/main/resources/templates/system/candidate/add.html new file mode 100644 index 000000000..64781b060 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/candidate/add.html @@ -0,0 +1,163 @@ + + + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/candidate/candidate.html b/ruoyi-admin/src/main/resources/templates/system/candidate/candidate.html new file mode 100644 index 000000000..1d5e140e8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/candidate/candidate.html @@ -0,0 +1,233 @@ + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/candidate/edit.html b/ruoyi-admin/src/main/resources/templates/system/candidate/edit.html new file mode 100644 index 000000000..8dc3f91c2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/candidate/edit.html @@ -0,0 +1,164 @@ + + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management/add.html b/ruoyi-admin/src/main/resources/templates/system/management/add.html new file mode 100644 index 000000000..260854314 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management/add.html @@ -0,0 +1,67 @@ + + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management/edit.html b/ruoyi-admin/src/main/resources/templates/system/management/edit.html new file mode 100644 index 000000000..530a57758 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management/edit.html @@ -0,0 +1,68 @@ + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management/management.html b/ruoyi-admin/src/main/resources/templates/system/management/management.html new file mode 100644 index 000000000..59d69927a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management/management.html @@ -0,0 +1,134 @@ + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management1/add.html b/ruoyi-admin/src/main/resources/templates/system/management1/add.html new file mode 100644 index 000000000..9c3185f75 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management1/add.html @@ -0,0 +1,395 @@ + + + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + + 代码生成请选择字典属性 +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management1/edit.html b/ruoyi-admin/src/main/resources/templates/system/management1/edit.html new file mode 100644 index 000000000..ea3634105 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management1/edit.html @@ -0,0 +1,395 @@ + + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + + 代码生成请选择字典属性 +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/management1/management1.html b/ruoyi-admin/src/main/resources/templates/system/management1/management1.html new file mode 100644 index 000000000..d5b1131d8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/management1/management1.html @@ -0,0 +1,479 @@ + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/recruitment/add.html b/ruoyi-admin/src/main/resources/templates/system/recruitment/add.html new file mode 100644 index 000000000..47dce0b10 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/recruitment/add.html @@ -0,0 +1,85 @@ + + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/recruitment/edit.html b/ruoyi-admin/src/main/resources/templates/system/recruitment/edit.html new file mode 100644 index 000000000..1c4c66583 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/recruitment/edit.html @@ -0,0 +1,86 @@ + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/recruitment/recruitment.html b/ruoyi-admin/src/main/resources/templates/system/recruitment/recruitment.html new file mode 100644 index 000000000..095828e40 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/recruitment/recruitment.html @@ -0,0 +1,158 @@ + + + + + + +
    +
    +
    +
    +
    +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • +  搜索 +  重置 +
    • +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCandidate.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCandidate.java new file mode 100644 index 000000000..18365bc30 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCandidate.java @@ -0,0 +1,307 @@ +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_candidate + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmCandidate extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Integer id; + + /** 应聘职位 */ + @Excel(name = "应聘职位") + private String position; + + /** 用人部门 */ + @Excel(name = "用人部门") + private String department; + + /** 候选人状态 */ + @Excel(name = "候选人状态") + private String candidateStatus; + + /** 手机号 */ + @Excel(name = "手机号") + private String phone; + + /** 性别 */ + @Excel(name = "性别") + private String gender; + + /** 年龄 */ + @Excel(name = "年龄") + private Long age; + + /** 邮箱 */ + @Excel(name = "邮箱") + private String email; + + /** 招聘负责人 */ + @Excel(name = "招聘负责人") + private String boss; + + /** 工作年限 */ + @Excel(name = "工作年限") + private String workingYears; + + /** 学历 */ + @Excel(name = "学历") + private String education; + + /** 毕业院校 */ + @Excel(name = "毕业院校") + private String graduate; + + /** 最近工作单位 */ + @Excel(name = "最近工作单位") + private String work; + + /** 招聘渠道 */ + @Excel(name = "招聘渠道") + private String recruitment; + + /** 面试时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "面试时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date interview; + + /** 面试轮次 */ + @Excel(name = "面试轮次") + private String degree; + + /** 面试官 */ + @Excel(name = "面试官") + private String interviewer; + + /** 面试方式 */ + @Excel(name = "面试方式") + private String waysOfIntervie; + + /** 其他面试官 */ + @Excel(name = "其他面试官") + private String elseInterviewer; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date creation; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setPosition(String position) + { + this.position = position; + } + + public String getPosition() + { + return position; + } + public void setDepartment(String department) + { + this.department = department; + } + + public String getDepartment() + { + return department; + } + public void setCandidateStatus(String candidateStatus) + { + this.candidateStatus = candidateStatus; + } + + public String getCandidateStatus() + { + return candidateStatus; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setGender(String gender) + { + this.gender = gender; + } + + public String getGender() + { + return gender; + } + public void setAge(Long age) + { + this.age = age; + } + + public Long getAge() + { + return age; + } + public void setEmail(String email) + { + this.email = email; + } + + public String getEmail() + { + return email; + } + public void setBoss(String boss) + { + this.boss = boss; + } + + public String getBoss() + { + return boss; + } + public void setWorkingYears(String workingYears) + { + this.workingYears = workingYears; + } + + public String getWorkingYears() + { + return workingYears; + } + public void setEducation(String education) + { + this.education = education; + } + + public String getEducation() + { + return education; + } + public void setGraduate(String graduate) + { + this.graduate = graduate; + } + + public String getGraduate() + { + return graduate; + } + public void setWork(String work) + { + this.work = work; + } + + public String getWork() + { + return work; + } + public void setRecruitment(String recruitment) + { + this.recruitment = recruitment; + } + + public String getRecruitment() + { + return recruitment; + } + public void setInterview(Date interview) + { + this.interview = interview; + } + + public Date getInterview() + { + return interview; + } + public void setDegree(String degree) + { + this.degree = degree; + } + + public String getDegree() + { + return degree; + } + public void setInterviewer(String interviewer) + { + this.interviewer = interviewer; + } + + public String getInterviewer() + { + return interviewer; + } + public void setWaysOfIntervie(String waysOfIntervie) + { + this.waysOfIntervie = waysOfIntervie; + } + + public String getWaysOfIntervie() + { + return waysOfIntervie; + } + public void setElseInterviewer(String elseInterviewer) + { + this.elseInterviewer = elseInterviewer; + } + + public String getElseInterviewer() + { + return elseInterviewer; + } + public void setCreation(Date creation) + { + this.creation = creation; + } + + public Date getCreation() + { + return creation; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("position", getPosition()) + .append("department", getDepartment()) + .append("candidateStatus", getCandidateStatus()) + .append("phone", getPhone()) + .append("gender", getGender()) + .append("age", getAge()) + .append("email", getEmail()) + .append("boss", getBoss()) + .append("workingYears", getWorkingYears()) + .append("education", getEducation()) + .append("graduate", getGraduate()) + .append("work", getWork()) + .append("recruitment", getRecruitment()) + .append("interview", getInterview()) + .append("degree", getDegree()) + .append("interviewer", getInterviewer()) + .append("waysOfIntervie", getWaysOfIntervie()) + .append("elseInterviewer", getElseInterviewer()) + .append("creation", getCreation()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmOrganizationManagement.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmOrganizationManagement.java new file mode 100644 index 000000000..e5e258acb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmOrganizationManagement.java @@ -0,0 +1,135 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 组织管理对象 wk_crm_organization_management + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmOrganizationManagement extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long id; + + /** 公司 */ + @Excel(name = "公司") + private String company; + + /** 总经理 */ + @Excel(name = "总经理") + private String generalManager; + + /** 行政部 */ + @Excel(name = "行政部") + private String administrationSection; + + /** 人事部 */ + @Excel(name = "人事部") + private String ministryPersonnel; + + /** 财务部 */ + @Excel(name = "财务部") + private String accountingDepartment; + + /** 研发部 */ + @Excel(name = "研发部") + private String researchDevelopment; + + /** 市场部 */ + @Excel(name = "市场部") + private String bazaar; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCompany(String company) + { + this.company = company; + } + + public String getCompany() + { + return company; + } + public void setGeneralManager(String generalManager) + { + this.generalManager = generalManager; + } + + public String getGeneralManager() + { + return generalManager; + } + public void setAdministrationSection(String administrationSection) + { + this.administrationSection = administrationSection; + } + + public String getAdministrationSection() + { + return administrationSection; + } + public void setMinistryPersonnel(String ministryPersonnel) + { + this.ministryPersonnel = ministryPersonnel; + } + + public String getMinistryPersonnel() + { + return ministryPersonnel; + } + public void setAccountingDepartment(String accountingDepartment) + { + this.accountingDepartment = accountingDepartment; + } + + public String getAccountingDepartment() + { + return accountingDepartment; + } + public void setResearchDevelopment(String researchDevelopment) + { + this.researchDevelopment = researchDevelopment; + } + + public String getResearchDevelopment() + { + return researchDevelopment; + } + public void setBazaar(String bazaar) + { + this.bazaar = bazaar; + } + + public String getBazaar() + { + return bazaar; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("company", getCompany()) + .append("generalManager", getGeneralManager()) + .append("administrationSection", getAdministrationSection()) + .append("ministryPersonnel", getMinistryPersonnel()) + .append("accountingDepartment", getAccountingDepartment()) + .append("researchDevelopment", getResearchDevelopment()) + .append("bazaar", getBazaar()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmRecruitment.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmRecruitment.java new file mode 100644 index 000000000..a8c07c38a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmRecruitment.java @@ -0,0 +1,177 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 招聘职位对象 wk_crm_recruitment + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmRecruitment extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long id; + + /** 职位名称 */ + @Excel(name = "职位名称") + private String jobTitle; + + /** 用人部门 */ + @Excel(name = "用人部门") + private String employPersons; + + /** 工作性质 */ + @Excel(name = "工作性质") + private String natureofWork; + + /** 工作城市 */ + @Excel(name = "工作城市") + private String workCity; + + /** 招聘人数 */ + @Excel(name = "招聘人数") + private Long hiring; + + /** 已入职人数 */ + @Excel(name = "已入职人数") + private Long employees; + + /** 招聘进度 */ + @Excel(name = "招聘进度") + private String schedule; + + /** 工作经验 */ + @Excel(name = "工作经验") + private String experience; + + /** 学历要求 */ + @Excel(name = "学历要求") + private String required; + + /** 薪资范围 */ + @Excel(name = "薪资范围") + private String range; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setJobTitle(String jobTitle) + { + this.jobTitle = jobTitle; + } + + public String getJobTitle() + { + return jobTitle; + } + public void setEmployPersons(String employPersons) + { + this.employPersons = employPersons; + } + + public String getEmployPersons() + { + return employPersons; + } + public void setNatureofWork(String natureofWork) + { + this.natureofWork = natureofWork; + } + + public String getNatureofWork() + { + return natureofWork; + } + public void setWorkCity(String workCity) + { + this.workCity = workCity; + } + + public String getWorkCity() + { + return workCity; + } + public void setHiring(Long hiring) + { + this.hiring = hiring; + } + + public Long getHiring() + { + return hiring; + } + public void setEmployees(Long employees) + { + this.employees = employees; + } + + public Long getEmployees() + { + return employees; + } + public void setSchedule(String schedule) + { + this.schedule = schedule; + } + + public String getSchedule() + { + return schedule; + } + public void setExperience(String experience) + { + this.experience = experience; + } + + public String getExperience() + { + return experience; + } + public void setRequired(String required) + { + this.required = required; + } + + public String getRequired() + { + return required; + } + public void setRange(String range) + { + this.range = range; + } + + public String getRange() + { + return range; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("jobTitle", getJobTitle()) + .append("employPersons", getEmployPersons()) + .append("natureofWork", getNatureofWork()) + .append("workCity", getWorkCity()) + .append("hiring", getHiring()) + .append("employees", getEmployees()) + .append("schedule", getSchedule()) + .append("experience", getExperience()) + .append("required", getRequired()) + .append("range", getRange()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmStaffManagement1.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmStaffManagement1.java new file mode 100644 index 000000000..f2b5909b2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmStaffManagement1.java @@ -0,0 +1,732 @@ +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_staff_management1 + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmStaffManagement1 extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long id; + + /** 姓名 */ + @Excel(name = "姓名") + private String name; + + /** 手机号 */ + @Excel(name = "手机号") + private String mobilePhone; + + /** 证件类型 */ + @Excel(name = "证件类型") + private String certificateType; + + /** 证件号码 */ + @Excel(name = "证件号码") + private String certificateId; + + /** 性别 */ + @Excel(name = "性别") + private String gender; + + /** 出生日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date birthdayDate; + + /** 生日 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd") + private Date birthday; + + /** 年龄 */ + @Excel(name = "年龄") + private Long age; + + /** 是否已婚 */ + @Excel(name = "是否已婚") + private String married; + + /** 是否已孕 */ + @Excel(name = "是否已孕") + private String pregnancy; + + /** 国家地区 */ + @Excel(name = "国家地区") + private String countriesRegions; + + /** 民族 */ + @Excel(name = "民族") + private String nation; + + /** 政治面貌 */ + @Excel(name = "政治面貌") + private String politicsStatus; + + /** 籍贯 */ + @Excel(name = "籍贯") + private String nativePlace; + + /** 户籍所在地 */ + @Excel(name = "户籍所在地") + private String placeOfDomicile; + + /** 健康状态 */ + @Excel(name = "健康状态") + private String health; + + /** 最高学历 */ + @Excel(name = "最高学历") + private String highestEducation; + + /** 入职时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date hireDate; + + /** 试用期 */ + @Excel(name = "试用期") + private Long probationPeriod; + + /** 转正日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "转正日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date regularizationDate; + + /** 工号 */ + @Excel(name = "工号") + private Long jobNumber; + + /** 部门 */ + @Excel(name = "部门") + private String department; + + /** 直属上级 */ + @Excel(name = "直属上级") + private String directSupervisor; + + /** 岗位 */ + @Excel(name = "岗位") + private String post; + + /** 职级 */ + @Excel(name = "职级") + private String jobGrade; + + /** 工作地点 */ + @Excel(name = "工作地点") + private String workSite; + + /** 详细工作地点 */ + @Excel(name = "详细工作地点") + private String detailedWorkLocation; + + /** 工作城市 */ + @Excel(name = "工作城市") + private String workCity; + + /** 招聘渠道 */ + @Excel(name = "招聘渠道") + private String recruitmentChannel; + + /** 聘用城市 */ + @Excel(name = "聘用城市") + private String employmentCity; + + /** 司龄开始日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "司龄开始日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date commencementSeniorityDate; + + /** 司龄 */ + @Excel(name = "司龄") + private Long workingYears; + + /** 合同类型 */ + @Excel(name = "合同类型") + private String contractType; + + /** 现合同开始时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "现合同开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date contractCommencementTime; + + /** 现合同结束时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "现合同结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date endOfContrac; + + /** 现合同期限 */ + @Excel(name = "现合同期限") + private Long currentContractTerm; + + /** 工资卡卡号 */ + @Excel(name = "工资卡卡号") + private Long wagesCardNumber; + + /** 工资卡开户城市 */ + @Excel(name = "工资卡开户城市") + private String accountOpeningCity; + + /** 银行卡名称 */ + @Excel(name = "银行卡名称") + private String bankCardName; + + /** 工资卡开户行 */ + @Excel(name = "工资卡开户行") + private String payCardBank; + + /** 个人社保账号 */ + @Excel(name = "个人社保账号") + private Long socialSecurityAccount; + + /** 个人公积金账号 */ + @Excel(name = "个人公积金账号") + private Long providentFundAccount; + + /** 操作 */ + @Excel(name = "操作") + private String operation; + + /** 办理转正 */ + @Excel(name = "办理转正") + private String regularization; + + /** 调整部门岗位 */ + @Excel(name = "调整部门岗位") + private String adjustmentOfDepartmentalPosts; + + /** 晋升/降级 */ + @Excel(name = "晋升/降级") + private String promotion; + + /** 参保方案 */ + @Excel(name = "参保方案") + private String ginsengProtectPlan; + + /** 办理离职 */ + @Excel(name = "办理离职") + private String forDeparture; + + /** 钉钉用户id */ + @Excel(name = "钉钉用户id") + private String userId; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setMobilePhone(String mobilePhone) + { + this.mobilePhone = mobilePhone; + } + + public String getMobilePhone() + { + return mobilePhone; + } + public void setCertificateType(String certificateType) + { + this.certificateType = certificateType; + } + + public String getCertificateType() + { + return certificateType; + } + public void setCertificateId(String certificateId) + { + this.certificateId = certificateId; + } + + public String getCertificateId() + { + return certificateId; + } + public void setGender(String gender) + { + this.gender = gender; + } + + public String getGender() + { + return gender; + } + public void setBirthdayDate(Date birthdayDate) + { + this.birthdayDate = birthdayDate; + } + + public Date getBirthdayDate() + { + return birthdayDate; + } + public void setBirthday(Date birthday) + { + this.birthday = birthday; + } + + public Date getBirthday() + { + return birthday; + } + public void setAge(Long age) + { + this.age = age; + } + + public Long getAge() + { + return age; + } + public void setMarried(String married) + { + this.married = married; + } + + public String getMarried() + { + return married; + } + public void setPregnancy(String pregnancy) + { + this.pregnancy = pregnancy; + } + + public String getPregnancy() + { + return pregnancy; + } + public void setCountriesRegions(String countriesRegions) + { + this.countriesRegions = countriesRegions; + } + + public String getCountriesRegions() + { + return countriesRegions; + } + public void setNation(String nation) + { + this.nation = nation; + } + + public String getNation() + { + return nation; + } + public void setPoliticsStatus(String politicsStatus) + { + this.politicsStatus = politicsStatus; + } + + public String getPoliticsStatus() + { + return politicsStatus; + } + public void setNativePlace(String nativePlace) + { + this.nativePlace = nativePlace; + } + + public String getNativePlace() + { + return nativePlace; + } + public void setPlaceOfDomicile(String placeOfDomicile) + { + this.placeOfDomicile = placeOfDomicile; + } + + public String getPlaceOfDomicile() + { + return placeOfDomicile; + } + public void setHealth(String health) + { + this.health = health; + } + + public String getHealth() + { + return health; + } + public void setHighestEducation(String highestEducation) + { + this.highestEducation = highestEducation; + } + + public String getHighestEducation() + { + return highestEducation; + } + public void setHireDate(Date hireDate) + { + this.hireDate = hireDate; + } + + public Date getHireDate() + { + return hireDate; + } + public void setProbationPeriod(Long probationPeriod) + { + this.probationPeriod = probationPeriod; + } + + public Long getProbationPeriod() + { + return probationPeriod; + } + public void setRegularizationDate(Date regularizationDate) + { + this.regularizationDate = regularizationDate; + } + + public Date getRegularizationDate() + { + return regularizationDate; + } + public void setJobNumber(Long jobNumber) + { + this.jobNumber = jobNumber; + } + + public Long getJobNumber() + { + return jobNumber; + } + public void setDepartment(String department) + { + this.department = department; + } + + public String getDepartment() + { + return department; + } + public void setDirectSupervisor(String directSupervisor) + { + this.directSupervisor = directSupervisor; + } + + public String getDirectSupervisor() + { + return directSupervisor; + } + public void setPost(String post) + { + this.post = post; + } + + public String getPost() + { + return post; + } + public void setJobGrade(String jobGrade) + { + this.jobGrade = jobGrade; + } + + public String getJobGrade() + { + return jobGrade; + } + public void setWorkSite(String workSite) + { + this.workSite = workSite; + } + + public String getWorkSite() + { + return workSite; + } + public void setDetailedWorkLocation(String detailedWorkLocation) + { + this.detailedWorkLocation = detailedWorkLocation; + } + + public String getDetailedWorkLocation() + { + return detailedWorkLocation; + } + public void setWorkCity(String workCity) + { + this.workCity = workCity; + } + + public String getWorkCity() + { + return workCity; + } + public void setRecruitmentChannel(String recruitmentChannel) + { + this.recruitmentChannel = recruitmentChannel; + } + + public String getRecruitmentChannel() + { + return recruitmentChannel; + } + public void setEmploymentCity(String employmentCity) + { + this.employmentCity = employmentCity; + } + + public String getEmploymentCity() + { + return employmentCity; + } + public void setCommencementSeniorityDate(Date commencementSeniorityDate) + { + this.commencementSeniorityDate = commencementSeniorityDate; + } + + public Date getCommencementSeniorityDate() + { + return commencementSeniorityDate; + } + public void setWorkingYears(Long workingYears) + { + this.workingYears = workingYears; + } + + public Long getWorkingYears() + { + return workingYears; + } + public void setContractType(String contractType) + { + this.contractType = contractType; + } + + public String getContractType() + { + return contractType; + } + public void setContractCommencementTime(Date contractCommencementTime) + { + this.contractCommencementTime = contractCommencementTime; + } + + public Date getContractCommencementTime() + { + return contractCommencementTime; + } + public void setEndOfContrac(Date endOfContrac) + { + this.endOfContrac = endOfContrac; + } + + public Date getEndOfContrac() + { + return endOfContrac; + } + public void setCurrentContractTerm(Long currentContractTerm) + { + this.currentContractTerm = currentContractTerm; + } + + public Long getCurrentContractTerm() + { + return currentContractTerm; + } + public void setWagesCardNumber(Long wagesCardNumber) + { + this.wagesCardNumber = wagesCardNumber; + } + + public Long getWagesCardNumber() + { + return wagesCardNumber; + } + public void setAccountOpeningCity(String accountOpeningCity) + { + this.accountOpeningCity = accountOpeningCity; + } + + public String getAccountOpeningCity() + { + return accountOpeningCity; + } + public void setBankCardName(String bankCardName) + { + this.bankCardName = bankCardName; + } + + public String getBankCardName() + { + return bankCardName; + } + public void setPayCardBank(String payCardBank) + { + this.payCardBank = payCardBank; + } + + public String getPayCardBank() + { + return payCardBank; + } + public void setSocialSecurityAccount(Long socialSecurityAccount) + { + this.socialSecurityAccount = socialSecurityAccount; + } + + public Long getSocialSecurityAccount() + { + return socialSecurityAccount; + } + public void setProvidentFundAccount(Long providentFundAccount) + { + this.providentFundAccount = providentFundAccount; + } + + public Long getProvidentFundAccount() + { + return providentFundAccount; + } + public void setOperation(String operation) + { + this.operation = operation; + } + + public String getOperation() + { + return operation; + } + public void setRegularization(String regularization) + { + this.regularization = regularization; + } + + public String getRegularization() + { + return regularization; + } + public void setAdjustmentOfDepartmentalPosts(String adjustmentOfDepartmentalPosts) + { + this.adjustmentOfDepartmentalPosts = adjustmentOfDepartmentalPosts; + } + + public String getAdjustmentOfDepartmentalPosts() + { + return adjustmentOfDepartmentalPosts; + } + public void setPromotion(String promotion) + { + this.promotion = promotion; + } + + public String getPromotion() + { + return promotion; + } + public void setGinsengProtectPlan(String ginsengProtectPlan) + { + this.ginsengProtectPlan = ginsengProtectPlan; + } + + public String getGinsengProtectPlan() + { + return ginsengProtectPlan; + } + public void setForDeparture(String forDeparture) + { + this.forDeparture = forDeparture; + } + + public String getForDeparture() + { + return forDeparture; + } + public void setUserId(String userId) + { + this.userId = userId; + } + + public String getUserId() + { + return userId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("mobilePhone", getMobilePhone()) + .append("certificateType", getCertificateType()) + .append("certificateId", getCertificateId()) + .append("gender", getGender()) + .append("birthdayDate", getBirthdayDate()) + .append("birthday", getBirthday()) + .append("age", getAge()) + .append("married", getMarried()) + .append("pregnancy", getPregnancy()) + .append("countriesRegions", getCountriesRegions()) + .append("nation", getNation()) + .append("politicsStatus", getPoliticsStatus()) + .append("nativePlace", getNativePlace()) + .append("placeOfDomicile", getPlaceOfDomicile()) + .append("health", getHealth()) + .append("highestEducation", getHighestEducation()) + .append("hireDate", getHireDate()) + .append("probationPeriod", getProbationPeriod()) + .append("regularizationDate", getRegularizationDate()) + .append("jobNumber", getJobNumber()) + .append("department", getDepartment()) + .append("directSupervisor", getDirectSupervisor()) + .append("post", getPost()) + .append("jobGrade", getJobGrade()) + .append("workSite", getWorkSite()) + .append("detailedWorkLocation", getDetailedWorkLocation()) + .append("workCity", getWorkCity()) + .append("recruitmentChannel", getRecruitmentChannel()) + .append("employmentCity", getEmploymentCity()) + .append("commencementSeniorityDate", getCommencementSeniorityDate()) + .append("workingYears", getWorkingYears()) + .append("contractType", getContractType()) + .append("contractCommencementTime", getContractCommencementTime()) + .append("endOfContrac", getEndOfContrac()) + .append("currentContractTerm", getCurrentContractTerm()) + .append("wagesCardNumber", getWagesCardNumber()) + .append("accountOpeningCity", getAccountOpeningCity()) + .append("bankCardName", getBankCardName()) + .append("payCardBank", getPayCardBank()) + .append("socialSecurityAccount", getSocialSecurityAccount()) + .append("providentFundAccount", getProvidentFundAccount()) + .append("operation", getOperation()) + .append("regularization", getRegularization()) + .append("adjustmentOfDepartmentalPosts", getAdjustmentOfDepartmentalPosts()) + .append("promotion", getPromotion()) + .append("ginsengProtectPlan", getGinsengProtectPlan()) + .append("forDeparture", getForDeparture()) + .append("userId", getUserId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCandidateMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCandidateMapper.java new file mode 100644 index 000000000..ba221cba4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCandidateMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmCandidate; + +/** + * 候选人Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmCandidateMapper +{ + /** + * 查询候选人 + * + * @param id 候选人ID + * @return 候选人 + */ + public WkCrmCandidate selectWkCrmCandidateById(Integer id); + + /** + * 查询候选人列表 + * + * @param wkCrmCandidate 候选人 + * @return 候选人集合 + */ + public List selectWkCrmCandidateList(WkCrmCandidate wkCrmCandidate); + + /** + * 新增候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + public int insertWkCrmCandidate(WkCrmCandidate wkCrmCandidate); + + /** + * 修改候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + public int updateWkCrmCandidate(WkCrmCandidate wkCrmCandidate); + + /** + * 删除候选人 + * + * @param id 候选人ID + * @return 结果 + */ + public int deleteWkCrmCandidateById(Integer id); + + /** + * 批量删除候选人 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmCandidateByIds(String[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmOrganizationManagementMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmOrganizationManagementMapper.java new file mode 100644 index 000000000..88b00af6e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmOrganizationManagementMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmOrganizationManagement; + +/** + * 组织管理Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmOrganizationManagementMapper +{ + /** + * 查询组织管理 + * + * @param id 组织管理ID + * @return 组织管理 + */ + public WkCrmOrganizationManagement selectWkCrmOrganizationManagementById(Long id); + + /** + * 查询组织管理列表 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 组织管理集合 + */ + public List selectWkCrmOrganizationManagementList(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 新增组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + public int insertWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 修改组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + public int updateWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 删除组织管理 + * + * @param id 组织管理ID + * @return 结果 + */ + public int deleteWkCrmOrganizationManagementById(Long id); + + /** + * 批量删除组织管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmOrganizationManagementByIds(String[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmRecruitmentMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmRecruitmentMapper.java new file mode 100644 index 000000000..bd64d27ce --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmRecruitmentMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmRecruitment; + +/** + * 招聘职位Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmRecruitmentMapper +{ + /** + * 查询招聘职位 + * + * @param id 招聘职位ID + * @return 招聘职位 + */ + public WkCrmRecruitment selectWkCrmRecruitmentById(Long id); + + /** + * 查询招聘职位列表 + * + * @param wkCrmRecruitment 招聘职位 + * @return 招聘职位集合 + */ + public List selectWkCrmRecruitmentList(WkCrmRecruitment wkCrmRecruitment); + + /** + * 新增招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + public int insertWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment); + + /** + * 修改招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + public int updateWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment); + + /** + * 删除招聘职位 + * + * @param id 招聘职位ID + * @return 结果 + */ + public int deleteWkCrmRecruitmentById(Long id); + + /** + * 批量删除招聘职位 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmRecruitmentByIds(String[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmStaffManagement1Mapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmStaffManagement1Mapper.java new file mode 100644 index 000000000..65d00689a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmStaffManagement1Mapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmStaffManagement1; + +/** + * 员工管理Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmStaffManagement1Mapper +{ + /** + * 查询员工管理 + * + * @param id 员工管理ID + * @return 员工管理 + */ + public WkCrmStaffManagement1 selectWkCrmStaffManagement1ById(Long id); + + /** + * 查询员工管理列表 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 员工管理集合 + */ + public List selectWkCrmStaffManagement1List(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 新增员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + public int insertWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 修改员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + public int updateWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 删除员工管理 + * + * @param id 员工管理ID + * @return 结果 + */ + public int deleteWkCrmStaffManagement1ById(Long id); + + /** + * 批量删除员工管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmStaffManagement1ByIds(String[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCandidateService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCandidateService.java new file mode 100644 index 000000000..7dff94a64 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCandidateService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmCandidate; + +/** + * 候选人Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmCandidateService +{ + /** + * 查询候选人 + * + * @param id 候选人ID + * @return 候选人 + */ + public WkCrmCandidate selectWkCrmCandidateById(Integer id); + + /** + * 查询候选人列表 + * + * @param wkCrmCandidate 候选人 + * @return 候选人集合 + */ + public List selectWkCrmCandidateList(WkCrmCandidate wkCrmCandidate); + + /** + * 新增候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + public int insertWkCrmCandidate(WkCrmCandidate wkCrmCandidate); + + /** + * 修改候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + public int updateWkCrmCandidate(WkCrmCandidate wkCrmCandidate); + + /** + * 批量删除候选人 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmCandidateByIds(String ids); + + /** + * 删除候选人信息 + * + * @param id 候选人ID + * @return 结果 + */ + public int deleteWkCrmCandidateById(Integer id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmOrganizationManagementService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmOrganizationManagementService.java new file mode 100644 index 000000000..318b44873 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmOrganizationManagementService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmOrganizationManagement; + +/** + * 组织管理Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmOrganizationManagementService +{ + /** + * 查询组织管理 + * + * @param id 组织管理ID + * @return 组织管理 + */ + public WkCrmOrganizationManagement selectWkCrmOrganizationManagementById(Long id); + + /** + * 查询组织管理列表 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 组织管理集合 + */ + public List selectWkCrmOrganizationManagementList(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 新增组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + public int insertWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 修改组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + public int updateWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement); + + /** + * 批量删除组织管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmOrganizationManagementByIds(String ids); + + /** + * 删除组织管理信息 + * + * @param id 组织管理ID + * @return 结果 + */ + public int deleteWkCrmOrganizationManagementById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmRecruitmentService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmRecruitmentService.java new file mode 100644 index 000000000..14aea981f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmRecruitmentService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmRecruitment; + +/** + * 招聘职位Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmRecruitmentService +{ + /** + * 查询招聘职位 + * + * @param id 招聘职位ID + * @return 招聘职位 + */ + public WkCrmRecruitment selectWkCrmRecruitmentById(Long id); + + /** + * 查询招聘职位列表 + * + * @param wkCrmRecruitment 招聘职位 + * @return 招聘职位集合 + */ + public List selectWkCrmRecruitmentList(WkCrmRecruitment wkCrmRecruitment); + + /** + * 新增招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + public int insertWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment); + + /** + * 修改招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + public int updateWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment); + + /** + * 批量删除招聘职位 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmRecruitmentByIds(String ids); + + /** + * 删除招聘职位信息 + * + * @param id 招聘职位ID + * @return 结果 + */ + public int deleteWkCrmRecruitmentById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmStaffManagement1Service.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmStaffManagement1Service.java new file mode 100644 index 000000000..6b58f136e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmStaffManagement1Service.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmStaffManagement1; + +/** + * 员工管理Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmStaffManagement1Service +{ + /** + * 查询员工管理 + * + * @param id 员工管理ID + * @return 员工管理 + */ + public WkCrmStaffManagement1 selectWkCrmStaffManagement1ById(Long id); + + /** + * 查询员工管理列表 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 员工管理集合 + */ + public List selectWkCrmStaffManagement1List(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 新增员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + public int insertWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 修改员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + public int updateWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1); + + /** + * 批量删除员工管理 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmStaffManagement1ByIds(String ids); + + /** + * 删除员工管理信息 + * + * @param id 员工管理ID + * @return 结果 + */ + public int deleteWkCrmStaffManagement1ById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCandidateServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCandidateServiceImpl.java new file mode 100644 index 000000000..8c5839f45 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCandidateServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WkCrmCandidateMapper; +import com.ruoyi.system.domain.WkCrmCandidate; +import com.ruoyi.system.service.IWkCrmCandidateService; +import com.ruoyi.common.core.text.Convert; + +/** + * 候选人Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmCandidateServiceImpl implements IWkCrmCandidateService +{ + @Autowired + private WkCrmCandidateMapper wkCrmCandidateMapper; + + /** + * 查询候选人 + * + * @param id 候选人ID + * @return 候选人 + */ + @Override + public WkCrmCandidate selectWkCrmCandidateById(Integer id) + { + return wkCrmCandidateMapper.selectWkCrmCandidateById(id); + } + + /** + * 查询候选人列表 + * + * @param wkCrmCandidate 候选人 + * @return 候选人 + */ + @Override + public List selectWkCrmCandidateList(WkCrmCandidate wkCrmCandidate) + { + return wkCrmCandidateMapper.selectWkCrmCandidateList(wkCrmCandidate); + } + + /** + * 新增候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + @Override + public int insertWkCrmCandidate(WkCrmCandidate wkCrmCandidate) + { + return wkCrmCandidateMapper.insertWkCrmCandidate(wkCrmCandidate); + } + + /** + * 修改候选人 + * + * @param wkCrmCandidate 候选人 + * @return 结果 + */ + @Override + public int updateWkCrmCandidate(WkCrmCandidate wkCrmCandidate) + { + return wkCrmCandidateMapper.updateWkCrmCandidate(wkCrmCandidate); + } + + /** + * 删除候选人对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmCandidateByIds(String ids) + { + return wkCrmCandidateMapper.deleteWkCrmCandidateByIds(Convert.toStrArray(ids)); + } + + /** + * 删除候选人信息 + * + * @param id 候选人ID + * @return 结果 + */ + @Override + public int deleteWkCrmCandidateById(Integer id) + { + return wkCrmCandidateMapper.deleteWkCrmCandidateById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmOrganizationManagementServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmOrganizationManagementServiceImpl.java new file mode 100644 index 000000000..2513337b7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmOrganizationManagementServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WkCrmOrganizationManagementMapper; +import com.ruoyi.system.domain.WkCrmOrganizationManagement; +import com.ruoyi.system.service.IWkCrmOrganizationManagementService; +import com.ruoyi.common.core.text.Convert; + +/** + * 组织管理Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmOrganizationManagementServiceImpl implements IWkCrmOrganizationManagementService +{ + @Autowired + private WkCrmOrganizationManagementMapper wkCrmOrganizationManagementMapper; + + /** + * 查询组织管理 + * + * @param id 组织管理ID + * @return 组织管理 + */ + @Override + public WkCrmOrganizationManagement selectWkCrmOrganizationManagementById(Long id) + { + return wkCrmOrganizationManagementMapper.selectWkCrmOrganizationManagementById(id); + } + + /** + * 查询组织管理列表 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 组织管理 + */ + @Override + public List selectWkCrmOrganizationManagementList(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + return wkCrmOrganizationManagementMapper.selectWkCrmOrganizationManagementList(wkCrmOrganizationManagement); + } + + /** + * 新增组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + @Override + public int insertWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + return wkCrmOrganizationManagementMapper.insertWkCrmOrganizationManagement(wkCrmOrganizationManagement); + } + + /** + * 修改组织管理 + * + * @param wkCrmOrganizationManagement 组织管理 + * @return 结果 + */ + @Override + public int updateWkCrmOrganizationManagement(WkCrmOrganizationManagement wkCrmOrganizationManagement) + { + return wkCrmOrganizationManagementMapper.updateWkCrmOrganizationManagement(wkCrmOrganizationManagement); + } + + /** + * 删除组织管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmOrganizationManagementByIds(String ids) + { + return wkCrmOrganizationManagementMapper.deleteWkCrmOrganizationManagementByIds(Convert.toStrArray(ids)); + } + + /** + * 删除组织管理信息 + * + * @param id 组织管理ID + * @return 结果 + */ + @Override + public int deleteWkCrmOrganizationManagementById(Long id) + { + return wkCrmOrganizationManagementMapper.deleteWkCrmOrganizationManagementById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmRecruitmentServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmRecruitmentServiceImpl.java new file mode 100644 index 000000000..142e5889f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmRecruitmentServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WkCrmRecruitmentMapper; +import com.ruoyi.system.domain.WkCrmRecruitment; +import com.ruoyi.system.service.IWkCrmRecruitmentService; +import com.ruoyi.common.core.text.Convert; + +/** + * 招聘职位Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmRecruitmentServiceImpl implements IWkCrmRecruitmentService +{ + @Autowired + private WkCrmRecruitmentMapper wkCrmRecruitmentMapper; + + /** + * 查询招聘职位 + * + * @param id 招聘职位ID + * @return 招聘职位 + */ + @Override + public WkCrmRecruitment selectWkCrmRecruitmentById(Long id) + { + return wkCrmRecruitmentMapper.selectWkCrmRecruitmentById(id); + } + + /** + * 查询招聘职位列表 + * + * @param wkCrmRecruitment 招聘职位 + * @return 招聘职位 + */ + @Override + public List selectWkCrmRecruitmentList(WkCrmRecruitment wkCrmRecruitment) + { + return wkCrmRecruitmentMapper.selectWkCrmRecruitmentList(wkCrmRecruitment); + } + + /** + * 新增招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + @Override + public int insertWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment) + { + return wkCrmRecruitmentMapper.insertWkCrmRecruitment(wkCrmRecruitment); + } + + /** + * 修改招聘职位 + * + * @param wkCrmRecruitment 招聘职位 + * @return 结果 + */ + @Override + public int updateWkCrmRecruitment(WkCrmRecruitment wkCrmRecruitment) + { + return wkCrmRecruitmentMapper.updateWkCrmRecruitment(wkCrmRecruitment); + } + + /** + * 删除招聘职位对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmRecruitmentByIds(String ids) + { + return wkCrmRecruitmentMapper.deleteWkCrmRecruitmentByIds(Convert.toStrArray(ids)); + } + + /** + * 删除招聘职位信息 + * + * @param id 招聘职位ID + * @return 结果 + */ + @Override + public int deleteWkCrmRecruitmentById(Long id) + { + return wkCrmRecruitmentMapper.deleteWkCrmRecruitmentById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmStaffManagement1ServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmStaffManagement1ServiceImpl.java new file mode 100644 index 000000000..cf37e8573 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmStaffManagement1ServiceImpl.java @@ -0,0 +1,94 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WkCrmStaffManagement1Mapper; +import com.ruoyi.system.domain.WkCrmStaffManagement1; +import com.ruoyi.system.service.IWkCrmStaffManagement1Service; +import com.ruoyi.common.core.text.Convert; + +/** + * 员工管理Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmStaffManagement1ServiceImpl implements IWkCrmStaffManagement1Service +{ + @Autowired + private WkCrmStaffManagement1Mapper wkCrmStaffManagement1Mapper; + + /** + * 查询员工管理 + * + * @param id 员工管理ID + * @return 员工管理 + */ + @Override + public WkCrmStaffManagement1 selectWkCrmStaffManagement1ById(Long id) + { + return wkCrmStaffManagement1Mapper.selectWkCrmStaffManagement1ById(id); + } + + /** + * 查询员工管理列表 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 员工管理 + */ + @Override + public List selectWkCrmStaffManagement1List(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + return wkCrmStaffManagement1Mapper.selectWkCrmStaffManagement1List(wkCrmStaffManagement1); + } + + /** + * 新增员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + @Override + public int insertWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + return wkCrmStaffManagement1Mapper.insertWkCrmStaffManagement1(wkCrmStaffManagement1); + } + + /** + * 修改员工管理 + * + * @param wkCrmStaffManagement1 员工管理 + * @return 结果 + */ + @Override + public int updateWkCrmStaffManagement1(WkCrmStaffManagement1 wkCrmStaffManagement1) + { + return wkCrmStaffManagement1Mapper.updateWkCrmStaffManagement1(wkCrmStaffManagement1); + } + + /** + * 删除员工管理对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmStaffManagement1ByIds(String ids) + { + return wkCrmStaffManagement1Mapper.deleteWkCrmStaffManagement1ByIds(Convert.toStrArray(ids)); + } + + /** + * 删除员工管理信息 + * + * @param id 员工管理ID + * @return 结果 + */ + @Override + public int deleteWkCrmStaffManagement1ById(Long id) + { + return wkCrmStaffManagement1Mapper.deleteWkCrmStaffManagement1ById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmCandidateMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmCandidateMapper.xml new file mode 100644 index 000000000..5bc280609 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmCandidateMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, position, department, candidate_status, phone, gender, age, email, boss, working_years, education, graduate, work, recruitment, interview, degree, interviewer, ways_of_intervie, else_interviewer, creation from wk_crm_candidate + + + + + + + + insert into wk_crm_candidate + + position, + department, + candidate_status, + phone, + gender, + age, + email, + boss, + working_years, + education, + graduate, + work, + recruitment, + interview, + degree, + interviewer, + ways_of_intervie, + else_interviewer, + creation, + + + #{position}, + #{department}, + #{candidateStatus}, + #{phone}, + #{gender}, + #{age}, + #{email}, + #{boss}, + #{workingYears}, + #{education}, + #{graduate}, + #{work}, + #{recruitment}, + #{interview}, + #{degree}, + #{interviewer}, + #{waysOfIntervie}, + #{elseInterviewer}, + #{creation}, + + + + + update wk_crm_candidate + + position = #{position}, + department = #{department}, + candidate_status = #{candidateStatus}, + phone = #{phone}, + gender = #{gender}, + age = #{age}, + email = #{email}, + boss = #{boss}, + working_years = #{workingYears}, + education = #{education}, + graduate = #{graduate}, + work = #{work}, + recruitment = #{recruitment}, + interview = #{interview}, + degree = #{degree}, + interviewer = #{interviewer}, + ways_of_intervie = #{waysOfIntervie}, + else_interviewer = #{elseInterviewer}, + creation = #{creation}, + + where id = #{id} + + + + delete from wk_crm_candidate where id = #{id} + + + + delete from wk_crm_candidate where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmOrganizationManagementMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmOrganizationManagementMapper.xml new file mode 100644 index 000000000..4f29ba195 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmOrganizationManagementMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + select id, company, general_manager, administration_section, ministry_personnel, accounting_department, research_development, bazaar from wk_crm_organization_management + + + + + + + + insert into wk_crm_organization_management + + company, + general_manager, + administration_section, + ministry_personnel, + accounting_department, + research_development, + bazaar, + + + #{company}, + #{generalManager}, + #{administrationSection}, + #{ministryPersonnel}, + #{accountingDepartment}, + #{researchDevelopment}, + #{bazaar}, + + + + + update wk_crm_organization_management + + company = #{company}, + general_manager = #{generalManager}, + administration_section = #{administrationSection}, + ministry_personnel = #{ministryPersonnel}, + accounting_department = #{accountingDepartment}, + research_development = #{researchDevelopment}, + bazaar = #{bazaar}, + + where id = #{id} + + + + delete from wk_crm_organization_management where id = #{id} + + + + delete from wk_crm_organization_management where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmRecruitmentMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmRecruitmentMapper.xml new file mode 100644 index 000000000..d92b66886 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmRecruitmentMapper.xml @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + select id, job_title, employ_persons, natureof_work, work_city, hiring, employees, schedule, experience, required, range from wk_crm_recruitment + + + + + + + + insert into wk_crm_recruitment + + job_title, + employ_persons, + natureof_work, + work_city, + hiring, + employees, + schedule, + experience, + required, + range, + + + #{jobTitle}, + #{employPersons}, + #{natureofWork}, + #{workCity}, + #{hiring}, + #{employees}, + #{schedule}, + #{experience}, + #{required}, + #{range}, + + + + + update wk_crm_recruitment + + job_title = #{jobTitle}, + employ_persons = #{employPersons}, + natureof_work = #{natureofWork}, + work_city = #{workCity}, + hiring = #{hiring}, + employees = #{employees}, + schedule = #{schedule}, + experience = #{experience}, + required = #{required}, + range = #{range}, + + where id = #{id} + + + + delete from wk_crm_recruitment where id = #{id} + + + + delete from wk_crm_recruitment where id in + + #{id} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmStaffManagement1Mapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmStaffManagement1Mapper.xml new file mode 100644 index 000000000..f21815e3e --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmStaffManagement1Mapper.xml @@ -0,0 +1,297 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, name, mobile_phone, certificate_type, certificate_id, gender, birthday_date, birthday, age, married, pregnancy, countries_regions, nation, politics_status, native_place, place_of_domicile, health, highest_education, hire_date, probation_period, Regularization_date, job_number, department, direct_supervisor, post, job_grade, work_site, detailed_work_location, work_city, recruitment_channel, employment_city, commencement_seniority_date, working_years, contract_type, contract_commencement_time, end_of_contrac, current_contract_term, wages_card_number, account_opening_city, bank_card_name, pay_card_bank, social_security_account, provident_fund_account, operation, regularization, adjustment_of_departmental_posts, promotion, ginseng_protect_plan, for_departure, userId from wk_crm_staff_management1 + + + + + + + + insert into wk_crm_staff_management1 + + name, + mobile_phone, + certificate_type, + certificate_id, + gender, + birthday_date, + birthday, + age, + married, + pregnancy, + countries_regions, + nation, + politics_status, + native_place, + place_of_domicile, + health, + highest_education, + hire_date, + probation_period, + Regularization_date, + job_number, + department, + direct_supervisor, + post, + job_grade, + work_site, + detailed_work_location, + work_city, + recruitment_channel, + employment_city, + commencement_seniority_date, + working_years, + contract_type, + contract_commencement_time, + end_of_contrac, + current_contract_term, + wages_card_number, + account_opening_city, + bank_card_name, + pay_card_bank, + social_security_account, + provident_fund_account, + operation, + regularization, + adjustment_of_departmental_posts, + promotion, + ginseng_protect_plan, + for_departure, + userId, + + + #{name}, + #{mobilePhone}, + #{certificateType}, + #{certificateId}, + #{gender}, + #{birthdayDate}, + #{birthday}, + #{age}, + #{married}, + #{pregnancy}, + #{countriesRegions}, + #{nation}, + #{politicsStatus}, + #{nativePlace}, + #{placeOfDomicile}, + #{health}, + #{highestEducation}, + #{hireDate}, + #{probationPeriod}, + #{regularizationDate}, + #{jobNumber}, + #{department}, + #{directSupervisor}, + #{post}, + #{jobGrade}, + #{workSite}, + #{detailedWorkLocation}, + #{workCity}, + #{recruitmentChannel}, + #{employmentCity}, + #{commencementSeniorityDate}, + #{workingYears}, + #{contractType}, + #{contractCommencementTime}, + #{endOfContrac}, + #{currentContractTerm}, + #{wagesCardNumber}, + #{accountOpeningCity}, + #{bankCardName}, + #{payCardBank}, + #{socialSecurityAccount}, + #{providentFundAccount}, + #{operation}, + #{regularization}, + #{adjustmentOfDepartmentalPosts}, + #{promotion}, + #{ginsengProtectPlan}, + #{forDeparture}, + #{userId}, + + + + + update wk_crm_staff_management1 + + name = #{name}, + mobile_phone = #{mobilePhone}, + certificate_type = #{certificateType}, + certificate_id = #{certificateId}, + gender = #{gender}, + birthday_date = #{birthdayDate}, + birthday = #{birthday}, + age = #{age}, + married = #{married}, + pregnancy = #{pregnancy}, + countries_regions = #{countriesRegions}, + nation = #{nation}, + politics_status = #{politicsStatus}, + native_place = #{nativePlace}, + place_of_domicile = #{placeOfDomicile}, + health = #{health}, + highest_education = #{highestEducation}, + hire_date = #{hireDate}, + probation_period = #{probationPeriod}, + Regularization_date = #{regularizationDate}, + job_number = #{jobNumber}, + department = #{department}, + direct_supervisor = #{directSupervisor}, + post = #{post}, + job_grade = #{jobGrade}, + work_site = #{workSite}, + detailed_work_location = #{detailedWorkLocation}, + work_city = #{workCity}, + recruitment_channel = #{recruitmentChannel}, + employment_city = #{employmentCity}, + commencement_seniority_date = #{commencementSeniorityDate}, + working_years = #{workingYears}, + contract_type = #{contractType}, + contract_commencement_time = #{contractCommencementTime}, + end_of_contrac = #{endOfContrac}, + current_contract_term = #{currentContractTerm}, + wages_card_number = #{wagesCardNumber}, + account_opening_city = #{accountOpeningCity}, + bank_card_name = #{bankCardName}, + pay_card_bank = #{payCardBank}, + social_security_account = #{socialSecurityAccount}, + provident_fund_account = #{providentFundAccount}, + operation = #{operation}, + regularization = #{regularization}, + adjustment_of_departmental_posts = #{adjustmentOfDepartmentalPosts}, + promotion = #{promotion}, + ginseng_protect_plan = #{ginsengProtectPlan}, + for_departure = #{forDeparture}, + userId = #{userId}, + + where id = #{id} + + + + delete from wk_crm_staff_management1 where id = #{id} + + + + delete from wk_crm_staff_management1 where id in + + #{id} + + + + \ No newline at end of file From 3fe333922abe0c37258f27e3e81a5d8576288679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B3=BD=E6=96=8C?= <1059064476@qq.com> Date: Wed, 7 Apr 2021 09:41:36 +0800 Subject: [PATCH 8/8] 111 --- .../system/WkCrmCustomerPoolController.java | 126 ++++++++++ .../templates/system/contacts/contacts.html | 4 +- .../templates/system/customer/customer.html | 5 + .../templates/system/leads/leads.html | 4 +- .../resources/templates/system/pool/add.html | 107 +++++++++ .../resources/templates/system/pool/edit.html | 108 +++++++++ .../resources/templates/system/pool/pool.html | 173 ++++++++++++++ .../system/domain/WkCrmCustomerPool.java | 220 ++++++++++++++++++ .../mapper/WkCrmCustomerPoolMapper.java | 61 +++++ .../service/IWkCrmCustomerPoolService.java | 61 +++++ .../impl/WkCrmCustomerPoolServiceImpl.java | 96 ++++++++ .../mapper/system/WkCrmCustomerPoolMapper.xml | 121 ++++++++++ .../mapper/system/WkCrmLeadsMapper.xml | 2 +- 13 files changed, 1083 insertions(+), 5 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerPoolController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/pool/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/pool/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/system/pool/pool.html create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomerPool.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerPoolMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerPoolService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerPoolServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerPoolMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerPoolController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerPoolController.java new file mode 100644 index 000000000..893074d9e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/WkCrmCustomerPoolController.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.WkCrmCustomerPool; +import com.ruoyi.system.service.IWkCrmCustomerPoolService; +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/pool") +public class WkCrmCustomerPoolController extends BaseController +{ + private String prefix = "system/pool"; + + @Autowired + private IWkCrmCustomerPoolService wkCrmCustomerPoolService; + + @RequiresPermissions("system:pool:view") + @GetMapping() + public String pool() + { + return prefix + "/pool"; + } + + /** + * 查询公海列表 + */ + @RequiresPermissions("system:pool:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WkCrmCustomerPool wkCrmCustomerPool) + { + startPage(); + List list = wkCrmCustomerPoolService.selectWkCrmCustomerPoolList(wkCrmCustomerPool); + return getDataTable(list); + } + + /** + * 导出公海列表 + */ + @RequiresPermissions("system:pool:export") + @Log(title = "公海", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WkCrmCustomerPool wkCrmCustomerPool) + { + List list = wkCrmCustomerPoolService.selectWkCrmCustomerPoolList(wkCrmCustomerPool); + ExcelUtil util = new ExcelUtil(WkCrmCustomerPool.class); + return util.exportExcel(list, "pool"); + } + + /** + * 新增公海 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存公海 + */ + @RequiresPermissions("system:pool:add") + @Log(title = "公海", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WkCrmCustomerPool wkCrmCustomerPool) + { + return toAjax(wkCrmCustomerPoolService.insertWkCrmCustomerPool(wkCrmCustomerPool)); + } + + /** + * 修改公海 + */ + @GetMapping("/edit/{poolId}") + public String edit(@PathVariable("poolId") Long poolId, ModelMap mmap) + { + WkCrmCustomerPool wkCrmCustomerPool = wkCrmCustomerPoolService.selectWkCrmCustomerPoolById(poolId); + mmap.put("wkCrmCustomerPool", wkCrmCustomerPool); + return prefix + "/edit"; + } + + /** + * 修改保存公海 + */ + @RequiresPermissions("system:pool:edit") + @Log(title = "公海", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WkCrmCustomerPool wkCrmCustomerPool) + { + return toAjax(wkCrmCustomerPoolService.updateWkCrmCustomerPool(wkCrmCustomerPool)); + } + + /** + * 删除公海 + */ + @RequiresPermissions("system:pool:remove") + @Log(title = "公海", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(wkCrmCustomerPoolService.deleteWkCrmCustomerPoolByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html b/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html index c01945ed2..a6b643ca4 100644 --- a/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html +++ b/ruoyi-admin/src/main/resources/templates/system/contacts/contacts.html @@ -148,10 +148,10 @@ field: 'ownerUserId', title: '负责人ID' }, - { + /*{ field: 'batchId', title: '批次' - }, + },*/ { field: 'lastTime', title: '最后跟进时间' diff --git a/ruoyi-admin/src/main/resources/templates/system/customer/customer.html b/ruoyi-admin/src/main/resources/templates/system/customer/customer.html index 11f7740e6..521b7c5e5 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customer/customer.html +++ b/ruoyi-admin/src/main/resources/templates/system/customer/customer.html @@ -81,6 +81,11 @@  搜索  重置
  • +
  • + +
  • diff --git a/ruoyi-admin/src/main/resources/templates/system/leads/leads.html b/ruoyi-admin/src/main/resources/templates/system/leads/leads.html index 90d9c748c..0399a45dd 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leads/leads.html +++ b/ruoyi-admin/src/main/resources/templates/system/leads/leads.html @@ -100,10 +100,10 @@ title: '', visible: false }, - { + /*{ field: 'followup', title: '跟进状态 0未跟进1已跟进' - }, + },*/ { field: 'leadsName', title: '线索名称' diff --git a/ruoyi-admin/src/main/resources/templates/system/pool/add.html b/ruoyi-admin/src/main/resources/templates/system/pool/add.html new file mode 100644 index 000000000..9c2792bd9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/pool/add.html @@ -0,0 +1,107 @@ + + + + + + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/pool/edit.html b/ruoyi-admin/src/main/resources/templates/system/pool/edit.html new file mode 100644 index 000000000..34ab4b4aa --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/pool/edit.html @@ -0,0 +1,108 @@ + + + + + + +
    +
    + +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    +
    + + +
    + 代码生成请选择字典属性 +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/pool/pool.html b/ruoyi-admin/src/main/resources/templates/system/pool/pool.html new file mode 100644 index 000000000..9be824bee --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/pool/pool.html @@ -0,0 +1,173 @@ + + + + + + +
    +
    +
    +
    +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomerPool.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomerPool.java new file mode 100644 index 000000000..dde2995e0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/WkCrmCustomerPool.java @@ -0,0 +1,220 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 公海对象 wk_crm_customer_pool + * + * @author ruoyi + * @date 2021-04-06 + */ +public class WkCrmCustomerPool extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 公海id */ + private Long poolId; + + /** 公海名称 */ + @Excel(name = "公海名称") + private String poolName; + + /** 管理员 “,”分割 */ + @Excel(name = "管理员 “,”分割") + private String adminUserId; + + /** 公海规则员工成员 “,”分割 */ + @Excel(name = "公海规则员工成员 “,”分割") + private String memberUserId; + + /** 公海规则部门成员 “,”分割 */ + @Excel(name = "公海规则部门成员 “,”分割") + private String memberDeptId; + + /** 状态 0 停用 1启用 */ + @Excel(name = "状态 0 停用 1启用") + private Integer status; + + /** 前负责人领取规则 0不限制 1限制 */ + @Excel(name = "前负责人领取规则 0不限制 1限制") + private Integer preOwnerSetting; + + /** 前负责人领取规则限制天数 */ + @Excel(name = "前负责人领取规则限制天数") + private Integer preOwnerSettingDay; + + /** 是否限制领取频率 0不限制 1限制 */ + @Excel(name = "是否限制领取频率 0不限制 1限制") + private Integer receiveSetting; + + /** 领取频率规则 */ + @Excel(name = "领取频率规则") + private Integer receiveNum; + + /** 是否设置提前提醒 0不开启 1开启 */ + @Excel(name = "是否设置提前提醒 0不开启 1开启") + private Integer remindSetting; + + /** 提醒规则天数 */ + @Excel(name = "提醒规则天数") + private Long remindDay; + + /** 收回规则 0不自动收回 1自动收回 */ + @Excel(name = "收回规则 0不自动收回 1自动收回") + private Integer putInRule; + + /** */ + @Excel(name = "") + private Long createUserId; + + public void setPoolId(Long poolId) + { + this.poolId = poolId; + } + + public Long getPoolId() + { + return poolId; + } + public void setPoolName(String poolName) + { + this.poolName = poolName; + } + + public String getPoolName() + { + return poolName; + } + public void setAdminUserId(String adminUserId) + { + this.adminUserId = adminUserId; + } + + public String getAdminUserId() + { + return adminUserId; + } + public void setMemberUserId(String memberUserId) + { + this.memberUserId = memberUserId; + } + + public String getMemberUserId() + { + return memberUserId; + } + public void setMemberDeptId(String memberDeptId) + { + this.memberDeptId = memberDeptId; + } + + public String getMemberDeptId() + { + return memberDeptId; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + public void setPreOwnerSetting(Integer preOwnerSetting) + { + this.preOwnerSetting = preOwnerSetting; + } + + public Integer getPreOwnerSetting() + { + return preOwnerSetting; + } + public void setPreOwnerSettingDay(Integer preOwnerSettingDay) + { + this.preOwnerSettingDay = preOwnerSettingDay; + } + + public Integer getPreOwnerSettingDay() + { + return preOwnerSettingDay; + } + public void setReceiveSetting(Integer receiveSetting) + { + this.receiveSetting = receiveSetting; + } + + public Integer getReceiveSetting() + { + return receiveSetting; + } + public void setReceiveNum(Integer receiveNum) + { + this.receiveNum = receiveNum; + } + + public Integer getReceiveNum() + { + return receiveNum; + } + public void setRemindSetting(Integer remindSetting) + { + this.remindSetting = remindSetting; + } + + public Integer getRemindSetting() + { + return remindSetting; + } + public void setRemindDay(Long remindDay) + { + this.remindDay = remindDay; + } + + public Long getRemindDay() + { + return remindDay; + } + public void setPutInRule(Integer putInRule) + { + this.putInRule = putInRule; + } + + public Integer getPutInRule() + { + return putInRule; + } + public void setCreateUserId(Long createUserId) + { + this.createUserId = createUserId; + } + + public Long getCreateUserId() + { + return createUserId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("poolId", getPoolId()) + .append("poolName", getPoolName()) + .append("adminUserId", getAdminUserId()) + .append("memberUserId", getMemberUserId()) + .append("memberDeptId", getMemberDeptId()) + .append("status", getStatus()) + .append("preOwnerSetting", getPreOwnerSetting()) + .append("preOwnerSettingDay", getPreOwnerSettingDay()) + .append("receiveSetting", getReceiveSetting()) + .append("receiveNum", getReceiveNum()) + .append("remindSetting", getRemindSetting()) + .append("remindDay", getRemindDay()) + .append("putInRule", getPutInRule()) + .append("createUserId", getCreateUserId()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerPoolMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerPoolMapper.java new file mode 100644 index 000000000..cbdfdbac2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/WkCrmCustomerPoolMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmCustomerPool; + +/** + * 公海Mapper接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface WkCrmCustomerPoolMapper +{ + /** + * 查询公海 + * + * @param poolId 公海ID + * @return 公海 + */ + public WkCrmCustomerPool selectWkCrmCustomerPoolById(Long poolId); + + /** + * 查询公海列表 + * + * @param wkCrmCustomerPool 公海 + * @return 公海集合 + */ + public List selectWkCrmCustomerPoolList(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 新增公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + public int insertWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 修改公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + public int updateWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 删除公海 + * + * @param poolId 公海ID + * @return 结果 + */ + public int deleteWkCrmCustomerPoolById(Long poolId); + + /** + * 批量删除公海 + * + * @param poolIds 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmCustomerPoolByIds(String[] poolIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerPoolService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerPoolService.java new file mode 100644 index 000000000..bcef44387 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IWkCrmCustomerPoolService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.WkCrmCustomerPool; + +/** + * 公海Service接口 + * + * @author ruoyi + * @date 2021-04-06 + */ +public interface IWkCrmCustomerPoolService +{ + /** + * 查询公海 + * + * @param poolId 公海ID + * @return 公海 + */ + public WkCrmCustomerPool selectWkCrmCustomerPoolById(Long poolId); + + /** + * 查询公海列表 + * + * @param wkCrmCustomerPool 公海 + * @return 公海集合 + */ + public List selectWkCrmCustomerPoolList(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 新增公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + public int insertWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 修改公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + public int updateWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool); + + /** + * 批量删除公海 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWkCrmCustomerPoolByIds(String ids); + + /** + * 删除公海信息 + * + * @param poolId 公海ID + * @return 结果 + */ + public int deleteWkCrmCustomerPoolById(Long poolId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerPoolServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerPoolServiceImpl.java new file mode 100644 index 000000000..b8e931fb4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/WkCrmCustomerPoolServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.WkCrmCustomerPoolMapper; +import com.ruoyi.system.domain.WkCrmCustomerPool; +import com.ruoyi.system.service.IWkCrmCustomerPoolService; +import com.ruoyi.common.core.text.Convert; + +/** + * 公海Service业务层处理 + * + * @author ruoyi + * @date 2021-04-06 + */ +@Service +public class WkCrmCustomerPoolServiceImpl implements IWkCrmCustomerPoolService +{ + @Autowired + private WkCrmCustomerPoolMapper wkCrmCustomerPoolMapper; + + /** + * 查询公海 + * + * @param poolId 公海ID + * @return 公海 + */ + @Override + public WkCrmCustomerPool selectWkCrmCustomerPoolById(Long poolId) + { + return wkCrmCustomerPoolMapper.selectWkCrmCustomerPoolById(poolId); + } + + /** + * 查询公海列表 + * + * @param wkCrmCustomerPool 公海 + * @return 公海 + */ + @Override + public List selectWkCrmCustomerPoolList(WkCrmCustomerPool wkCrmCustomerPool) + { + return wkCrmCustomerPoolMapper.selectWkCrmCustomerPoolList(wkCrmCustomerPool); + } + + /** + * 新增公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + @Override + public int insertWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool) + { + wkCrmCustomerPool.setCreateTime(DateUtils.getNowDate()); + return wkCrmCustomerPoolMapper.insertWkCrmCustomerPool(wkCrmCustomerPool); + } + + /** + * 修改公海 + * + * @param wkCrmCustomerPool 公海 + * @return 结果 + */ + @Override + public int updateWkCrmCustomerPool(WkCrmCustomerPool wkCrmCustomerPool) + { + return wkCrmCustomerPoolMapper.updateWkCrmCustomerPool(wkCrmCustomerPool); + } + + /** + * 删除公海对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWkCrmCustomerPoolByIds(String ids) + { + return wkCrmCustomerPoolMapper.deleteWkCrmCustomerPoolByIds(Convert.toStrArray(ids)); + } + + /** + * 删除公海信息 + * + * @param poolId 公海ID + * @return 结果 + */ + @Override + public int deleteWkCrmCustomerPoolById(Long poolId) + { + return wkCrmCustomerPoolMapper.deleteWkCrmCustomerPoolById(poolId); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerPoolMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerPoolMapper.xml new file mode 100644 index 000000000..fae312758 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmCustomerPoolMapper.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + select pool_id, pool_name, admin_user_id, member_user_id, member_dept_id, status, pre_owner_setting, pre_owner_setting_day, receive_setting, receive_num, remind_setting, remind_day, put_in_rule, create_user_id, create_time from wk_crm_customer_pool + + + + + + + + insert into wk_crm_customer_pool + + pool_name, + admin_user_id, + member_user_id, + member_dept_id, + status, + pre_owner_setting, + pre_owner_setting_day, + receive_setting, + receive_num, + remind_setting, + remind_day, + put_in_rule, + create_user_id, + create_time, + + + #{poolName}, + #{adminUserId}, + #{memberUserId}, + #{memberDeptId}, + #{status}, + #{preOwnerSetting}, + #{preOwnerSettingDay}, + #{receiveSetting}, + #{receiveNum}, + #{remindSetting}, + #{remindDay}, + #{putInRule}, + #{createUserId}, + #{createTime}, + + + + + update wk_crm_customer_pool + + pool_name = #{poolName}, + admin_user_id = #{adminUserId}, + member_user_id = #{memberUserId}, + member_dept_id = #{memberDeptId}, + status = #{status}, + pre_owner_setting = #{preOwnerSetting}, + pre_owner_setting_day = #{preOwnerSettingDay}, + receive_setting = #{receiveSetting}, + receive_num = #{receiveNum}, + remind_setting = #{remindSetting}, + remind_day = #{remindDay}, + put_in_rule = #{putInRule}, + create_user_id = #{createUserId}, + create_time = #{createTime}, + + where pool_id = #{poolId} + + + + delete from wk_crm_customer_pool where pool_id = #{poolId} + + + + delete from wk_crm_customer_pool where pool_id in + + #{poolId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml index 125e974c6..01fa8edb3 100644 --- a/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/WkCrmLeadsMapper.xml @@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - +