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