From aa7c7a4f8f45728f2cf76f1eacf78de624a84133 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Thu, 23 Nov 2023 08:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E4=BA=8B?= =?UTF-8?q?=E4=B8=9A=E9=83=A8=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E8=81=8C=E5=8A=A1=E5=AD=97=E6=AE=B5=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=A1=A8=E6=93=8D=E4=BD=9C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/system/domain/SysCustomerOper.java | 89 +++++++++++++++++++ .../system/mapper/SysCustomerOperMapper.java | 47 ++++++++++ .../service/ISysCustomerOperService.java | 49 ++++++++++ .../impl/SysCustomerOperServiceImpl.java | 42 +++++++++ .../mapper/system/SysCustomerOperMapper.xml | 47 ++++++++++ 5 files changed, 274 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomerOper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysCustomerOperMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysCustomerOperService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerOperServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/system/SysCustomerOperMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomerOper.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomerOper.java new file mode 100644 index 00000000..6500f1e3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysCustomerOper.java @@ -0,0 +1,89 @@ +package com.ruoyi.system.domain; + +import lombok.Data; + +import java.util.Date; +import java.util.Formatter; + +public class SysCustomerOper { + //客户表的操作记录id + private int id; + //客户表中的业务员信息 + private String sysCustomerPuser; + //客户表中的客户名称 + private String sysCustomerEnterPriseName; + //操作 + private String oper; + private Date updateTime; + private String updateBy; + private String updateStatus; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getSysCustomerPuser() { + return sysCustomerPuser; + } + + public void setSysCustomerPuser(String sysCustomerPuser) { + this.sysCustomerPuser = sysCustomerPuser; + } + + public String getSysCustomerEnterPriseName() { + return sysCustomerEnterPriseName; + } + + public void setSysCustomerEnterPriseName(String sysCustomerEnterPriseName) { + this.sysCustomerEnterPriseName = sysCustomerEnterPriseName; + } + + public String getOper() { + return oper; + } + + public void setOper(String oper) { + this.oper = oper; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public String getUpdateStatus() { + return updateStatus; + } + + public void setUpdateStatus(String updateStatus) { + this.updateStatus = updateStatus; + } + + @Override + public String toString() { + return "SysCustomerOper{" + + "id=" + id + + ", sysCustomerPuser='" + sysCustomerPuser + '\'' + + ", sysCustomerEnterPriseName='" + sysCustomerEnterPriseName + '\'' + + ", oper='" + oper + '\'' + + ", updateTime=" + updateTime + + ", updateBy='" + updateBy + '\'' + + ", updateStatus='" + updateStatus + '\'' + + '}'; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysCustomerOperMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysCustomerOperMapper.java new file mode 100644 index 00000000..7642beba --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysCustomerOperMapper.java @@ -0,0 +1,47 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.system.domain.SysCustomerOper; + +import java.util.List; + +/** + * 客户表操作信息Mapper接口 + * + * @author ruoyi + * @date 2022-11-02 + */ +public interface SysCustomerOperMapper +{ + /** + * 查询客户操作记录信息 + * + * @param id 客户操作信息ID + * @return 客户操作信息 + */ + public SysCustomerOper selectSysCustomerOperById(long id); + + /** + * 查询客户操作信息列表 + * + * @param sysCustomerOper 客户基本信息 + * @return 客户基本信息集合 + */ + public List selectSysCustomerOperList(SysCustomerOper sysCustomerOper); + + /** + * 新增客户操作信息 + * + * @param sysCustomerOper 客户基本信息 + * @return 结果 + */ + public int insertSysCustomerOper(SysCustomerOper sysCustomerOper); + + /** + * 修改客户操作信息 + * + * @param sysCustomerOper 客户基本信息 + * @return 结果 + */ + public int updateSysCustomerOper(SysCustomerOper sysCustomerOper); + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysCustomerOperService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysCustomerOperService.java new file mode 100644 index 00000000..b7270f78 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysCustomerOperService.java @@ -0,0 +1,49 @@ +package com.ruoyi.system.service; + +import com.ruoyi.system.domain.SysCustomer; +import com.ruoyi.system.domain.SysCustomerOper; +import org.activiti.engine.runtime.ProcessInstance; + +import java.util.List; +import java.util.Map; + +/** + * 客户基本信息Service接口 + * + * @author ruoyi + * @date 2022-11-02 + */ +public interface ISysCustomerOperService +{ + /** + * 查询客户操作记录信息 + * + * @param id 客户操作信息ID + * @return 客户操作信息 + */ + public SysCustomerOper selectSysCustomerOperOperById(long id); + + /** + * 查询客户操作信息列表 + * + * @param sysCustomerOper 客户基本信息 + * @return 客户基本信息集合 + */ + public List selectSysCustomerOperList(SysCustomerOper sysCustomerOper); + + /** + * 新增客户操作信息 + * + * @param sysCustomerOper 客户基本信息 + * @return 结果 + */ + public int insertSysCustomerOper(SysCustomerOper sysCustomerOper); + + /** + * 修改客户操作信息 + * + * @param sysCustomerOper 客户基本信息 + * @return 结果 + */ + public int updateSysCustomerOper(SysCustomerOper sysCustomerOper); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerOperServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerOperServiceImpl.java new file mode 100644 index 00000000..66f00c8c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerOperServiceImpl.java @@ -0,0 +1,42 @@ +package com.ruoyi.system.service.impl; + +import com.ruoyi.system.domain.SysCustomerOper; +import com.ruoyi.system.mapper.SysCustomerOperMapper; +import com.ruoyi.system.service.ISysCustomerOperService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import java.util.List; + + +/** + * 客户表操作信息Service业务层处理 + * + * @author ruoyi + * @date 2022-11-02 + */ +@Service +public class SysCustomerOperServiceImpl implements ISysCustomerOperService +{ + @Autowired + private SysCustomerOperMapper sysCustomerOperMapper; + + @Override + public SysCustomerOper selectSysCustomerOperOperById(long id) { + return sysCustomerOperMapper.selectSysCustomerOperById(id); + } + + @Override + public List selectSysCustomerOperList(SysCustomerOper sysCustomerOper) { + return sysCustomerOperMapper.selectSysCustomerOperList(sysCustomerOper); + } + + @Override + public int insertSysCustomerOper(SysCustomerOper sysCustomerOper) { + return sysCustomerOperMapper.insertSysCustomerOper(sysCustomerOper); + } + + @Override + public int updateSysCustomerOper(SysCustomerOper sysCustomerOper) { + return sysCustomerOperMapper.updateSysCustomerOper(sysCustomerOper); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysCustomerOperMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerOperMapper.xml new file mode 100644 index 00000000..b578f449 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerOperMapper.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + select id,sys_customer_purser,sys_customer_enterpriseName,oper,updateTime,updateBy,operStatus from sys_customer_oper + + + + + + + + insert into sys_customer_oper + + #{sysCustomerPuser}, + #{sysCustomerEnterPriseName}, + #{oper}, + #{updateTime}, + #{updateBy}, + #{updateStatus}, + now(), + + + \ No newline at end of file