From f5313e06c7396a6889e829888c2fb4a1211f6f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=BD=AD?= Date: Sun, 15 Sep 2024 20:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E6=88=B7=E3=80=81?= =?UTF-8?q?=E6=B8=A0=E9=81=93=E3=80=81=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=82=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/controller/ChannelController.java | 105 +++ .../CustomerApplyLogController.java | 105 +++ .../system/controller/CustomerController.java | 105 +++ .../system/controller/MerchantController.java | 121 ++++ .../java/com/ruoyi/system/domain/Channel.java | 138 ++++ .../com/ruoyi/system/domain/Customer.java | 660 ++++++++++++++++++ .../ruoyi/system/domain/CustomerApplyLog.java | 111 +++ .../com/ruoyi/system/domain/Merchant.java | 642 +++++++++++++++++ .../ruoyi/system/mapper/ChannelMapper.java | 67 ++ .../system/mapper/CustomerApplyLogMapper.java | 61 ++ .../ruoyi/system/mapper/CustomerMapper.java | 61 ++ .../ruoyi/system/mapper/MerchantMapper.java | 61 ++ .../ruoyi/system/service/IChannelService.java | 67 ++ .../service/ICustomerApplyLogService.java | 61 ++ .../system/service/ICustomerService.java | 61 ++ .../system/service/IMerchantService.java | 61 ++ .../service/impl/ChannelServiceImpl.java | 114 +++ .../impl/CustomerApplyLogServiceImpl.java | 96 +++ .../service/impl/CustomerServiceImpl.java | 96 +++ .../service/impl/MerchantServiceImpl.java | 96 +++ .../resources/mapper/system/ChannelMapper.xml | 104 +++ .../mapper/system/CustomerApplyLogMapper.xml | 88 +++ .../mapper/system/CustomerMapper.xml | 279 ++++++++ .../mapper/system/MerchantMapper.xml | 278 ++++++++ 24 files changed, 3638 insertions(+) create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/ChannelController.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerApplyLogController.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerController.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/MerchantController.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Channel.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Customer.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/CustomerApplyLog.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Merchant.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ChannelMapper.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerApplyLogMapper.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerMapper.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/MerchantMapper.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IChannelService.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerApplyLogService.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerService.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IMerchantService.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ChannelServiceImpl.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerApplyLogServiceImpl.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerServiceImpl.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MerchantServiceImpl.java create mode 100644 ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/ChannelMapper.xml create mode 100644 ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerApplyLogMapper.xml create mode 100644 ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerMapper.xml create mode 100644 ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/MerchantMapper.xml diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/ChannelController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/ChannelController.java new file mode 100644 index 00000000..176535ed --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/ChannelController.java @@ -0,0 +1,105 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.Channel; +import com.ruoyi.system.service.IChannelService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 渠道配置Controller + * + * @author ruoyi + * @date 2024-09-15 + */ +@RestController +@RequestMapping("/channel") +public class ChannelController extends BaseController +{ + @Autowired + private IChannelService channelService; + + /** + * 查询渠道配置列表 + */ + @RequiresPermissions("system:channel:list") + @GetMapping("/list") + public TableDataInfo list(Channel channel) + { + startPage(); + List list = channelService.selectChannelList(channel); + return getDataTable(list); + } + + /** + * 导出渠道配置列表 + */ + @RequiresPermissions("system:channel:export") + @Log(title = "渠道配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Channel channel) + { + List list = channelService.selectChannelList(channel); + ExcelUtil util = new ExcelUtil(Channel.class); + util.exportExcel(response, list, "渠道配置数据"); + } + + /** + * 获取渠道配置详细信息 + */ + @RequiresPermissions("system:channel:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(channelService.selectChannelById(id)); + } + + /** + * 新增渠道配置 + */ + @RequiresPermissions("system:channel:add") + @Log(title = "渠道配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Channel channel) + { + return toAjax(channelService.insertChannel(channel)); + } + + /** + * 修改渠道配置 + */ + @RequiresPermissions("system:channel:edit") + @Log(title = "渠道配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Channel channel) + { + return toAjax(channelService.updateChannel(channel)); + } + + /** + * 删除渠道配置 + */ + @RequiresPermissions("system:channel:remove") + @Log(title = "渠道配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(channelService.deleteChannelByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerApplyLogController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerApplyLogController.java new file mode 100644 index 00000000..c4a8b8b4 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerApplyLogController.java @@ -0,0 +1,105 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.CustomerApplyLog; +import com.ruoyi.system.service.ICustomerApplyLogService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 客户申请记录Controller + * + * @author ruoyi + * @date 2024-09-15 + */ +@RestController +@RequestMapping("/log") +public class CustomerApplyLogController extends BaseController +{ + @Autowired + private ICustomerApplyLogService customerApplyLogService; + + /** + * 查询客户申请记录列表 + */ + @RequiresPermissions("system:log:list") + @GetMapping("/list") + public TableDataInfo list(CustomerApplyLog customerApplyLog) + { + startPage(); + List list = customerApplyLogService.selectCustomerApplyLogList(customerApplyLog); + return getDataTable(list); + } + + /** + * 导出客户申请记录列表 + */ + @RequiresPermissions("system:log:export") + @Log(title = "客户申请记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, CustomerApplyLog customerApplyLog) + { + List list = customerApplyLogService.selectCustomerApplyLogList(customerApplyLog); + ExcelUtil util = new ExcelUtil(CustomerApplyLog.class); + util.exportExcel(response, list, "客户申请记录数据"); + } + + /** + * 获取客户申请记录详细信息 + */ + @RequiresPermissions("system:log:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(customerApplyLogService.selectCustomerApplyLogById(id)); + } + + /** + * 新增客户申请记录 + */ + @RequiresPermissions("system:log:add") + @Log(title = "客户申请记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody CustomerApplyLog customerApplyLog) + { + return toAjax(customerApplyLogService.insertCustomerApplyLog(customerApplyLog)); + } + + /** + * 修改客户申请记录 + */ + @RequiresPermissions("system:log:edit") + @Log(title = "客户申请记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody CustomerApplyLog customerApplyLog) + { + return toAjax(customerApplyLogService.updateCustomerApplyLog(customerApplyLog)); + } + + /** + * 删除客户申请记录 + */ + @RequiresPermissions("system:log:remove") + @Log(title = "客户申请记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(customerApplyLogService.deleteCustomerApplyLogByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerController.java new file mode 100644 index 00000000..a4774697 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomerController.java @@ -0,0 +1,105 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.Customer; +import com.ruoyi.system.service.ICustomerService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 客户信息Controller + * + * @author ruoyi + * @date 2024-09-15 + */ +@RestController +@RequestMapping("/customer") +public class CustomerController extends BaseController +{ + @Autowired + private ICustomerService customerService; + + /** + * 查询客户信息列表 + */ + @RequiresPermissions("system:customer:list") + @GetMapping("/list") + public TableDataInfo list(Customer customer) + { + startPage(); + List list = customerService.selectCustomerList(customer); + return getDataTable(list); + } + + /** + * 导出客户信息列表 + */ + @RequiresPermissions("system:customer:export") + @Log(title = "客户信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Customer customer) + { + List list = customerService.selectCustomerList(customer); + ExcelUtil util = new ExcelUtil(Customer.class); + util.exportExcel(response, list, "客户信息数据"); + } + + /** + * 获取客户信息详细信息 + */ + @RequiresPermissions("system:customer:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(customerService.selectCustomerById(id)); + } + + /** + * 新增客户信息 + */ + @RequiresPermissions("system:customer:add") + @Log(title = "客户信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Customer customer) + { + return toAjax(customerService.insertCustomer(customer)); + } + + /** + * 修改客户信息 + */ + @RequiresPermissions("system:customer:edit") + @Log(title = "客户信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Customer customer) + { + return toAjax(customerService.updateCustomer(customer)); + } + + /** + * 删除客户信息 + */ + @RequiresPermissions("system:customer:remove") + @Log(title = "客户信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(customerService.deleteCustomerByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/MerchantController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/MerchantController.java new file mode 100644 index 00000000..4373dfbe --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/MerchantController.java @@ -0,0 +1,121 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import java.io.IOException; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.system.service.IChannelService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.log.annotation.Log; +import com.ruoyi.common.log.enums.BusinessType; +import com.ruoyi.common.security.annotation.RequiresPermissions; +import com.ruoyi.system.domain.Merchant; +import com.ruoyi.system.service.IMerchantService; +import com.ruoyi.common.core.web.controller.BaseController; +import com.ruoyi.common.core.web.domain.AjaxResult; +import com.ruoyi.common.core.utils.poi.ExcelUtil; +import com.ruoyi.common.core.web.page.TableDataInfo; + +/** + * 商户Controller + * + * @author ruoyi + * @date 2024-09-15 + */ +@RestController +@RequestMapping("/merchant") +public class MerchantController extends BaseController +{ + @Autowired + private IMerchantService merchantService; + + @Autowired + private IChannelService channelService; + + /** + * 查询商户列表 + */ + @RequiresPermissions("system:merchant:list") + @GetMapping("/list") + public TableDataInfo list(Merchant merchant) + { + startPage(); + List list = merchantService.selectMerchantList(merchant); + return getDataTable(list); + } + + /** + * 导出商户列表 + */ + @RequiresPermissions("system:merchant:export") + @Log(title = "商户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Merchant merchant) + { + List list = merchantService.selectMerchantList(merchant); + ExcelUtil util = new ExcelUtil(Merchant.class); + util.exportExcel(response, list, "商户数据"); + } + + /** + * 获取商户详细信息 + */ + @RequiresPermissions("system:merchant:query") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(merchantService.selectMerchantById(id)); + } + + /** + * 获取商户下渠道列表 + * @return + */ + @GetMapping("/getMerchantChannelList") + public AjaxResult getMerchantChannelList() + { + return success(channelService.findAllChannelList()); + } + + + /** + * 新增商户 + */ + @RequiresPermissions("system:merchant:add") + @Log(title = "商户", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Merchant merchant) + { + return toAjax(merchantService.insertMerchant(merchant)); + } + + /** + * 修改商户 + */ + @RequiresPermissions("system:merchant:edit") + @Log(title = "商户", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Merchant merchant) + { + return toAjax(merchantService.updateMerchant(merchant)); + } + + /** + * 删除商户 + */ + @RequiresPermissions("system:merchant:remove") + @Log(title = "商户", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(merchantService.deleteMerchantByIds(ids)); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Channel.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Channel.java new file mode 100644 index 00000000..018c90a5 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Channel.java @@ -0,0 +1,138 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 渠道配置对象 channel + * + * @author ruoyi + * @date 2024-09-15 + */ +public class Channel extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** */ + private Long id; + + /** 渠道名称 */ + @Excel(name = "渠道名称") + private String channelName; + + /** 渠道签名 */ + @Excel(name = "渠道签名") + private String channelSign; + + /** 扣量比 */ + @Excel(name = "扣量比") + private Long score; + + /** 推广页名称 */ + @Excel(name = "推广页名称") + private String htmlName; + + /** 推广页地址 */ + @Excel(name = "推广页地址") + private String htmlLocation; + + /** 可访问IP */ + @Excel(name = "可访问IP") + private String ips; + + /** 开启关闭时段 */ + @Excel(name = "开启关闭时段") + private String period; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setChannelName(String channelName) + { + this.channelName = channelName; + } + + public String getChannelName() + { + return channelName; + } + public void setChannelSign(String channelSign) + { + this.channelSign = channelSign; + } + + public String getChannelSign() + { + return channelSign; + } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + public void setHtmlName(String htmlName) + { + this.htmlName = htmlName; + } + + public String getHtmlName() + { + return htmlName; + } + public void setHtmlLocation(String htmlLocation) + { + this.htmlLocation = htmlLocation; + } + + public String getHtmlLocation() + { + return htmlLocation; + } + public void setIps(String ips) + { + this.ips = ips; + } + + public String getIps() + { + return ips; + } + public void setPeriod(String period) + { + this.period = period; + } + + public String getPeriod() + { + return period; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("channelName", getChannelName()) + .append("channelSign", getChannelSign()) + .append("score", getScore()) + .append("htmlName", getHtmlName()) + .append("htmlLocation", getHtmlLocation()) + .append("ips", getIps()) + .append("period", getPeriod()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Customer.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Customer.java new file mode 100644 index 00000000..cce4f58f --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Customer.java @@ -0,0 +1,660 @@ +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.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 客户信息对象 customer + * + * @author ruoyi + * @date 2024-09-15 + */ +public class Customer extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 年龄 */ + @Excel(name = "年龄") + private Long age; + + /** 0 男 1 女 */ + @Excel(name = "0 男 1 女") + private Long sex; + + /** 昵称 */ + @Excel(name = "昵称") + private String name; + + /** 真实姓名 */ + @Excel(name = "真实姓名") + private String acturlName; + + /** 手机号 */ + @Excel(name = "手机号") + private String phone; + + /** 手机号MD5 */ + @Excel(name = "手机号MD5") + private String phoneMd5; + + /** 0 未实名 1已实名 */ + @Excel(name = "0 未实名 1已实名") + private Long isAuth; + + /** 城市 */ + @Excel(name = "城市") + private String city; + + /** 城市编码 */ + @Excel(name = "城市编码") + private Long cityCode; + + /** 首次登录时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "首次登录时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date firstLoginTime; + + /** 最后登录时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastLoginTime; + + /** 最后登录IP */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最后登录IP", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastLoginIp; + + /** 用户状态 1正常 2异常 可继续扩展 */ + @Excel(name = "用户状态 1正常 2异常 可继续扩展") + private Long status; + + /** 无社保 */ + @Excel(name = "无社保") + private Long socialSecurityNo; + + /** 社保未满6个月 */ + @Excel(name = "社保未满6个月") + private Long socialSecurityLow; + + /** 社保6个月以上 */ + @Excel(name = "社保6个月以上") + private Long socialSecurityHigh; + + /** 无车 */ + @Excel(name = "无车") + private Long carNo; + + /** 有车 */ + @Excel(name = "有车") + private Long carHave; + + /** 保单缴纳不满一年 */ + @Excel(name = "保单缴纳不满一年") + private Long guaranteeSlipLow; + + /** 保单缴纳一年以上 */ + @Excel(name = "保单缴纳一年以上") + private Long guaranteeSlipCentre; + + /** 保单缴纳2年以上 */ + @Excel(name = "保单缴纳2年以上") + private Long guaranteeSlipHigh; + + /** 初中 */ + @Excel(name = "初中") + private Long educationMiddle; + + /** 高中 */ + @Excel(name = "高中") + private Long educationHighSchool; + + /** 中专 */ + @Excel(name = "中专") + private Long educationPolytechnic; + + /** 大专 */ + @Excel(name = "大专") + private Long educationJuniorCollege; + + /** 本科 */ + @Excel(name = "本科") + private Long educationUndergraduateCourse; + + /** 研究生及以上 */ + @Excel(name = "研究生及以上") + private Long educationPostgraduate; + + /** 公积金未满6个月 */ + @Excel(name = "公积金未满6个月") + private Long accumulationFundLow; + + /** 公积金满6个月以上 */ + @Excel(name = "公积金满6个月以上") + private Long accumulationFundHigh; + + /** 本地无房 */ + @Excel(name = "本地无房") + private Long hourseNo; + + /** 本地全款房 */ + @Excel(name = "本地全款房") + private Long hourseFullPayment; + + /** 本地按揭 */ + @Excel(name = "本地按揭") + private Long hourseMortgaging; + + /** 上班族 */ + @Excel(name = "上班族") + private Long officeWorker; + + /** 公务员 */ + @Excel(name = "公务员") + private Long civilServant; + + /** 私营业主 */ + @Excel(name = "私营业主") + private Long privatePropertyOwners; + + /** 个体户 */ + @Excel(name = "个体户") + private Long selfEmployedPerson; + + /** 其他职业 */ + @Excel(name = "其他职业") + private Long otherOccupations; + + /** 花呗5000以下 */ + @Excel(name = "花呗5000以下") + private Long huaBeiLow; + + /** 花呗5000-10000 */ + @Excel(name = "花呗5000-10000") + private Long huaBeiMiddle; + + /** 花呗10000以上 */ + @Excel(name = "花呗10000以上") + private Long huaBeiHigh; + + /** 白条5000以下 */ + @Excel(name = "白条5000以下") + private Long baiTiaoLow; + + /** 白条5000-10000 */ + @Excel(name = "白条5000-10000") + private Long baiTiaoMiddle; + + /** 白条10000以上 */ + @Excel(name = "白条10000以上") + private Long baiTiaoHigh; + + /** 芝麻分 */ + @Excel(name = "芝麻分") + private Long zhiMa; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setAge(Long age) + { + this.age = age; + } + + public Long getAge() + { + return age; + } + public void setSex(Long sex) + { + this.sex = sex; + } + + public Long getSex() + { + return sex; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setActurlName(String acturlName) + { + this.acturlName = acturlName; + } + + public String getActurlName() + { + return acturlName; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setPhoneMd5(String phoneMd5) + { + this.phoneMd5 = phoneMd5; + } + + public String getPhoneMd5() + { + return phoneMd5; + } + public void setIsAuth(Long isAuth) + { + this.isAuth = isAuth; + } + + public Long getIsAuth() + { + return isAuth; + } + public void setCity(String city) + { + this.city = city; + } + + public String getCity() + { + return city; + } + public void setCityCode(Long cityCode) + { + this.cityCode = cityCode; + } + + public Long getCityCode() + { + return cityCode; + } + public void setFirstLoginTime(Date firstLoginTime) + { + this.firstLoginTime = firstLoginTime; + } + + public Date getFirstLoginTime() + { + return firstLoginTime; + } + public void setLastLoginTime(Date lastLoginTime) + { + this.lastLoginTime = lastLoginTime; + } + + public Date getLastLoginTime() + { + return lastLoginTime; + } + public void setLastLoginIp(Date lastLoginIp) + { + this.lastLoginIp = lastLoginIp; + } + + public Date getLastLoginIp() + { + return lastLoginIp; + } + public void setStatus(Long status) + { + this.status = status; + } + + public Long getStatus() + { + return status; + } + public void setSocialSecurityNo(Long socialSecurityNo) + { + this.socialSecurityNo = socialSecurityNo; + } + + public Long getSocialSecurityNo() + { + return socialSecurityNo; + } + public void setSocialSecurityLow(Long socialSecurityLow) + { + this.socialSecurityLow = socialSecurityLow; + } + + public Long getSocialSecurityLow() + { + return socialSecurityLow; + } + public void setSocialSecurityHigh(Long socialSecurityHigh) + { + this.socialSecurityHigh = socialSecurityHigh; + } + + public Long getSocialSecurityHigh() + { + return socialSecurityHigh; + } + public void setCarNo(Long carNo) + { + this.carNo = carNo; + } + + public Long getCarNo() + { + return carNo; + } + public void setCarHave(Long carHave) + { + this.carHave = carHave; + } + + public Long getCarHave() + { + return carHave; + } + public void setGuaranteeSlipLow(Long guaranteeSlipLow) + { + this.guaranteeSlipLow = guaranteeSlipLow; + } + + public Long getGuaranteeSlipLow() + { + return guaranteeSlipLow; + } + public void setGuaranteeSlipCentre(Long guaranteeSlipCentre) + { + this.guaranteeSlipCentre = guaranteeSlipCentre; + } + + public Long getGuaranteeSlipCentre() + { + return guaranteeSlipCentre; + } + public void setGuaranteeSlipHigh(Long guaranteeSlipHigh) + { + this.guaranteeSlipHigh = guaranteeSlipHigh; + } + + public Long getGuaranteeSlipHigh() + { + return guaranteeSlipHigh; + } + public void setEducationMiddle(Long educationMiddle) + { + this.educationMiddle = educationMiddle; + } + + public Long getEducationMiddle() + { + return educationMiddle; + } + public void setEducationHighSchool(Long educationHighSchool) + { + this.educationHighSchool = educationHighSchool; + } + + public Long getEducationHighSchool() + { + return educationHighSchool; + } + public void setEducationPolytechnic(Long educationPolytechnic) + { + this.educationPolytechnic = educationPolytechnic; + } + + public Long getEducationPolytechnic() + { + return educationPolytechnic; + } + public void setEducationJuniorCollege(Long educationJuniorCollege) + { + this.educationJuniorCollege = educationJuniorCollege; + } + + public Long getEducationJuniorCollege() + { + return educationJuniorCollege; + } + public void setEducationUndergraduateCourse(Long educationUndergraduateCourse) + { + this.educationUndergraduateCourse = educationUndergraduateCourse; + } + + public Long getEducationUndergraduateCourse() + { + return educationUndergraduateCourse; + } + public void setEducationPostgraduate(Long educationPostgraduate) + { + this.educationPostgraduate = educationPostgraduate; + } + + public Long getEducationPostgraduate() + { + return educationPostgraduate; + } + public void setAccumulationFundLow(Long accumulationFundLow) + { + this.accumulationFundLow = accumulationFundLow; + } + + public Long getAccumulationFundLow() + { + return accumulationFundLow; + } + public void setAccumulationFundHigh(Long accumulationFundHigh) + { + this.accumulationFundHigh = accumulationFundHigh; + } + + public Long getAccumulationFundHigh() + { + return accumulationFundHigh; + } + public void setHourseNo(Long hourseNo) + { + this.hourseNo = hourseNo; + } + + public Long getHourseNo() + { + return hourseNo; + } + public void setHourseFullPayment(Long hourseFullPayment) + { + this.hourseFullPayment = hourseFullPayment; + } + + public Long getHourseFullPayment() + { + return hourseFullPayment; + } + public void setHourseMortgaging(Long hourseMortgaging) + { + this.hourseMortgaging = hourseMortgaging; + } + + public Long getHourseMortgaging() + { + return hourseMortgaging; + } + public void setOfficeWorker(Long officeWorker) + { + this.officeWorker = officeWorker; + } + + public Long getOfficeWorker() + { + return officeWorker; + } + public void setCivilServant(Long civilServant) + { + this.civilServant = civilServant; + } + + public Long getCivilServant() + { + return civilServant; + } + public void setPrivatePropertyOwners(Long privatePropertyOwners) + { + this.privatePropertyOwners = privatePropertyOwners; + } + + public Long getPrivatePropertyOwners() + { + return privatePropertyOwners; + } + public void setSelfEmployedPerson(Long selfEmployedPerson) + { + this.selfEmployedPerson = selfEmployedPerson; + } + + public Long getSelfEmployedPerson() + { + return selfEmployedPerson; + } + public void setOtherOccupations(Long otherOccupations) + { + this.otherOccupations = otherOccupations; + } + + public Long getOtherOccupations() + { + return otherOccupations; + } + public void setHuaBeiLow(Long huaBeiLow) + { + this.huaBeiLow = huaBeiLow; + } + + public Long getHuaBeiLow() + { + return huaBeiLow; + } + public void setHuaBeiMiddle(Long huaBeiMiddle) + { + this.huaBeiMiddle = huaBeiMiddle; + } + + public Long getHuaBeiMiddle() + { + return huaBeiMiddle; + } + public void setHuaBeiHigh(Long huaBeiHigh) + { + this.huaBeiHigh = huaBeiHigh; + } + + public Long getHuaBeiHigh() + { + return huaBeiHigh; + } + public void setBaiTiaoLow(Long baiTiaoLow) + { + this.baiTiaoLow = baiTiaoLow; + } + + public Long getBaiTiaoLow() + { + return baiTiaoLow; + } + public void setBaiTiaoMiddle(Long baiTiaoMiddle) + { + this.baiTiaoMiddle = baiTiaoMiddle; + } + + public Long getBaiTiaoMiddle() + { + return baiTiaoMiddle; + } + public void setBaiTiaoHigh(Long baiTiaoHigh) + { + this.baiTiaoHigh = baiTiaoHigh; + } + + public Long getBaiTiaoHigh() + { + return baiTiaoHigh; + } + public void setZhiMa(Long zhiMa) + { + this.zhiMa = zhiMa; + } + + public Long getZhiMa() + { + return zhiMa; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("age", getAge()) + .append("sex", getSex()) + .append("name", getName()) + .append("acturlName", getActurlName()) + .append("phone", getPhone()) + .append("phoneMd5", getPhoneMd5()) + .append("isAuth", getIsAuth()) + .append("city", getCity()) + .append("cityCode", getCityCode()) + .append("firstLoginTime", getFirstLoginTime()) + .append("lastLoginTime", getLastLoginTime()) + .append("lastLoginIp", getLastLoginIp()) + .append("status", getStatus()) + .append("socialSecurityNo", getSocialSecurityNo()) + .append("socialSecurityLow", getSocialSecurityLow()) + .append("socialSecurityHigh", getSocialSecurityHigh()) + .append("carNo", getCarNo()) + .append("carHave", getCarHave()) + .append("guaranteeSlipLow", getGuaranteeSlipLow()) + .append("guaranteeSlipCentre", getGuaranteeSlipCentre()) + .append("guaranteeSlipHigh", getGuaranteeSlipHigh()) + .append("educationMiddle", getEducationMiddle()) + .append("educationHighSchool", getEducationHighSchool()) + .append("educationPolytechnic", getEducationPolytechnic()) + .append("educationJuniorCollege", getEducationJuniorCollege()) + .append("educationUndergraduateCourse", getEducationUndergraduateCourse()) + .append("educationPostgraduate", getEducationPostgraduate()) + .append("accumulationFundLow", getAccumulationFundLow()) + .append("accumulationFundHigh", getAccumulationFundHigh()) + .append("hourseNo", getHourseNo()) + .append("hourseFullPayment", getHourseFullPayment()) + .append("hourseMortgaging", getHourseMortgaging()) + .append("officeWorker", getOfficeWorker()) + .append("civilServant", getCivilServant()) + .append("privatePropertyOwners", getPrivatePropertyOwners()) + .append("selfEmployedPerson", getSelfEmployedPerson()) + .append("otherOccupations", getOtherOccupations()) + .append("huaBeiLow", getHuaBeiLow()) + .append("huaBeiMiddle", getHuaBeiMiddle()) + .append("huaBeiHigh", getHuaBeiHigh()) + .append("baiTiaoLow", getBaiTiaoLow()) + .append("baiTiaoMiddle", getBaiTiaoMiddle()) + .append("baiTiaoHigh", getBaiTiaoHigh()) + .append("zhiMa", getZhiMa()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/CustomerApplyLog.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/CustomerApplyLog.java new file mode 100644 index 00000000..69519eaf --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/CustomerApplyLog.java @@ -0,0 +1,111 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 客户申请记录对象 customer_apply_log + * + * @author ruoyi + * @date 2024-09-15 + */ +public class CustomerApplyLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 用户id */ + @Excel(name = "用户id") + private Long customerId; + + /** 商户ID */ + @Excel(name = "商户ID") + private Long merchantId; + + /** $column.columnComment */ + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + private Long channelId; + + /** 订单状态 0 已申请 1 注册中 2风控中 3下单中 4 下单成功 5已成交 */ + @Excel(name = "订单状态 0 已申请 1 注册中 2风控中 3下单中 4 下单成功 5已成交 ") + private Long orderStatus; + + /** 成交金额 分 */ + @Excel(name = "成交金额 分") + private BigDecimal price; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setMerchantId(Long merchantId) + { + this.merchantId = merchantId; + } + + public Long getMerchantId() + { + return merchantId; + } + public void setChannelId(Long channelId) + { + this.channelId = channelId; + } + + public Long getChannelId() + { + return channelId; + } + public void setOrderStatus(Long orderStatus) + { + this.orderStatus = orderStatus; + } + + public Long getOrderStatus() + { + return orderStatus; + } + public void setPrice(BigDecimal price) + { + this.price = price; + } + + public BigDecimal getPrice() + { + return price; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("merchantId", getMerchantId()) + .append("channelId", getChannelId()) + .append("orderStatus", getOrderStatus()) + .append("price", getPrice()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Merchant.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Merchant.java new file mode 100644 index 00000000..809c8ad2 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/Merchant.java @@ -0,0 +1,642 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.annotation.Excel; +import com.ruoyi.common.core.web.domain.BaseEntity; + +/** + * 商户对象 merchant + * + * @author ruoyi + * @date 2024-09-15 + */ +public class Merchant extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 商户类型 1H5 2连登 3半流程 4全流程 */ + @Excel(name = "商户类型 1H5 2连登 3半流程 4全流程") + private Long merchantType; + + /** 商户名称 */ + @Excel(name = "商户名称") + private String merchantName; + + /** 商户描述 */ + @Excel(name = "商户描述") + private String merchantDescribe; + + /** 商户主体 */ + @Excel(name = "商户主体") + private String merchantCompany; + + /** logo文件地址 */ + @Excel(name = "logo文件地址") + private Long logo; + + /** 是否上下架 */ + @Excel(name = "是否上下架") + private Long status; + + /** 定量数 */ + @Excel(name = "定量数") + private String limitNum; + + /** 是否定量 0否 1是 */ + @Excel(name = "是否定量 0否 1是") + private Long limitType; + + /** 渠道限制类型 0不限 1准入 2禁入 */ + @Excel(name = "渠道限制类型 0不限 1准入 2禁入") + private Long channelLimitType; + + /** 年龄限制开始 */ + @Excel(name = "年龄限制开始") + private Long ageLimitStart; + + /** 年龄限制结束 */ + @Excel(name = "年龄限制结束") + private Long ageLimitEnd; + + /** 手机号禁入号段英文逗号分隔 */ + @Excel(name = "手机号禁入号段英文逗号分隔") + private String phoneLimit; + + /** 无社保 */ + @Excel(name = "无社保") + private Long socialSecurityNo; + + /** 社保未满6个月 */ + @Excel(name = "社保未满6个月") + private Long socialSecurityLow; + + /** 社保6个月以上 */ + @Excel(name = "社保6个月以上") + private Long socialSecurityHigh; + + /** 无车 */ + @Excel(name = "无车") + private Long carNo; + + /** 有车 */ + @Excel(name = "有车") + private Long carHave; + + /** 保单缴纳不满一年 */ + @Excel(name = "保单缴纳不满一年") + private Long guaranteeSlipLow; + + /** 保单缴纳一年以上 */ + @Excel(name = "保单缴纳一年以上") + private Long guaranteeSlipCentre; + + /** 保单缴纳2年以上 */ + @Excel(name = "保单缴纳2年以上") + private Long guaranteeSlipHigh; + + /** 初中 */ + @Excel(name = "初中") + private Long educationMiddle; + + /** 高中 */ + @Excel(name = "高中") + private Long educationHighSchool; + + /** 中专 */ + @Excel(name = "中专") + private Long educationPolytechnic; + + /** 大专 */ + @Excel(name = "大专") + private Long educationJuniorCollege; + + /** 本科 */ + @Excel(name = "本科") + private Long educationUndergraduateCourse; + + /** 研究生及以上 */ + @Excel(name = "研究生及以上") + private Long educationPostgraduate; + + /** 公积金未满6个月 */ + @Excel(name = "公积金未满6个月") + private Long accumulationFundLow; + + /** 公积金满6个月以上 */ + @Excel(name = "公积金满6个月以上") + private Long accumulationFundHigh; + + /** 本地无房 */ + @Excel(name = "本地无房") + private Long hourseNo; + + /** 本地全款房 */ + @Excel(name = "本地全款房") + private Long hourseFullPayment; + + /** 本地按揭 */ + @Excel(name = "本地按揭") + private Long hourseMortgaging; + + /** 上班族 */ + @Excel(name = "上班族") + private Long officeWorker; + + /** 公务员 */ + @Excel(name = "公务员") + private Long civilServant; + + /** 私营业主 */ + @Excel(name = "私营业主") + private Long privatePropertyOwners; + + /** 个体户 */ + @Excel(name = "个体户") + private Long selfEmployedPerson; + + /** 其他职业 */ + @Excel(name = "其他职业") + private Long otherOccupations; + + /** 花呗5000以下 */ + @Excel(name = "花呗5000以下") + private Long huaBeiLow; + + /** 花呗5000-10000 */ + @Excel(name = "花呗5000-10000") + private Long huaBeiMiddle; + + /** 花呗10000以上 */ + @Excel(name = "花呗10000以上") + private Long huaBeiHigh; + + /** 白条5000以下 */ + @Excel(name = "白条5000以下") + private Long baiTiaoLow; + + /** 白条5000-10000 */ + @Excel(name = "白条5000-10000") + private Long baiTiaoMiddle; + + /** 白条10000以上 */ + @Excel(name = "白条10000以上") + private Long baiTiaoHigh; + + /** 芝麻分 */ + @Excel(name = "芝麻分") + private Long zhiMa; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setMerchantType(Long merchantType) + { + this.merchantType = merchantType; + } + + public Long getMerchantType() + { + return merchantType; + } + public void setMerchantName(String merchantName) + { + this.merchantName = merchantName; + } + + public String getMerchantName() + { + return merchantName; + } + public void setMerchantDescribe(String merchantDescribe) + { + this.merchantDescribe = merchantDescribe; + } + + public String getMerchantDescribe() + { + return merchantDescribe; + } + public void setMerchantCompany(String merchantCompany) + { + this.merchantCompany = merchantCompany; + } + + public String getMerchantCompany() + { + return merchantCompany; + } + public void setLogo(Long logo) + { + this.logo = logo; + } + + public Long getLogo() + { + return logo; + } + public void setStatus(Long status) + { + this.status = status; + } + + public Long getStatus() + { + return status; + } + public void setLimitNum(String limitNum) + { + this.limitNum = limitNum; + } + + public String getLimitNum() + { + return limitNum; + } + public void setLimitType(Long limitType) + { + this.limitType = limitType; + } + + public Long getLimitType() + { + return limitType; + } + public void setChannelLimitType(Long channelLimitType) + { + this.channelLimitType = channelLimitType; + } + + public Long getChannelLimitType() + { + return channelLimitType; + } + public void setAgeLimitStart(Long ageLimitStart) + { + this.ageLimitStart = ageLimitStart; + } + + public Long getAgeLimitStart() + { + return ageLimitStart; + } + public void setAgeLimitEnd(Long ageLimitEnd) + { + this.ageLimitEnd = ageLimitEnd; + } + + public Long getAgeLimitEnd() + { + return ageLimitEnd; + } + public void setPhoneLimit(String phoneLimit) + { + this.phoneLimit = phoneLimit; + } + + public String getPhoneLimit() + { + return phoneLimit; + } + public void setSocialSecurityNo(Long socialSecurityNo) + { + this.socialSecurityNo = socialSecurityNo; + } + + public Long getSocialSecurityNo() + { + return socialSecurityNo; + } + public void setSocialSecurityLow(Long socialSecurityLow) + { + this.socialSecurityLow = socialSecurityLow; + } + + public Long getSocialSecurityLow() + { + return socialSecurityLow; + } + public void setSocialSecurityHigh(Long socialSecurityHigh) + { + this.socialSecurityHigh = socialSecurityHigh; + } + + public Long getSocialSecurityHigh() + { + return socialSecurityHigh; + } + public void setCarNo(Long carNo) + { + this.carNo = carNo; + } + + public Long getCarNo() + { + return carNo; + } + public void setCarHave(Long carHave) + { + this.carHave = carHave; + } + + public Long getCarHave() + { + return carHave; + } + public void setGuaranteeSlipLow(Long guaranteeSlipLow) + { + this.guaranteeSlipLow = guaranteeSlipLow; + } + + public Long getGuaranteeSlipLow() + { + return guaranteeSlipLow; + } + public void setGuaranteeSlipCentre(Long guaranteeSlipCentre) + { + this.guaranteeSlipCentre = guaranteeSlipCentre; + } + + public Long getGuaranteeSlipCentre() + { + return guaranteeSlipCentre; + } + public void setGuaranteeSlipHigh(Long guaranteeSlipHigh) + { + this.guaranteeSlipHigh = guaranteeSlipHigh; + } + + public Long getGuaranteeSlipHigh() + { + return guaranteeSlipHigh; + } + public void setEducationMiddle(Long educationMiddle) + { + this.educationMiddle = educationMiddle; + } + + public Long getEducationMiddle() + { + return educationMiddle; + } + public void setEducationHighSchool(Long educationHighSchool) + { + this.educationHighSchool = educationHighSchool; + } + + public Long getEducationHighSchool() + { + return educationHighSchool; + } + public void setEducationPolytechnic(Long educationPolytechnic) + { + this.educationPolytechnic = educationPolytechnic; + } + + public Long getEducationPolytechnic() + { + return educationPolytechnic; + } + public void setEducationJuniorCollege(Long educationJuniorCollege) + { + this.educationJuniorCollege = educationJuniorCollege; + } + + public Long getEducationJuniorCollege() + { + return educationJuniorCollege; + } + public void setEducationUndergraduateCourse(Long educationUndergraduateCourse) + { + this.educationUndergraduateCourse = educationUndergraduateCourse; + } + + public Long getEducationUndergraduateCourse() + { + return educationUndergraduateCourse; + } + public void setEducationPostgraduate(Long educationPostgraduate) + { + this.educationPostgraduate = educationPostgraduate; + } + + public Long getEducationPostgraduate() + { + return educationPostgraduate; + } + public void setAccumulationFundLow(Long accumulationFundLow) + { + this.accumulationFundLow = accumulationFundLow; + } + + public Long getAccumulationFundLow() + { + return accumulationFundLow; + } + public void setAccumulationFundHigh(Long accumulationFundHigh) + { + this.accumulationFundHigh = accumulationFundHigh; + } + + public Long getAccumulationFundHigh() + { + return accumulationFundHigh; + } + public void setHourseNo(Long hourseNo) + { + this.hourseNo = hourseNo; + } + + public Long getHourseNo() + { + return hourseNo; + } + public void setHourseFullPayment(Long hourseFullPayment) + { + this.hourseFullPayment = hourseFullPayment; + } + + public Long getHourseFullPayment() + { + return hourseFullPayment; + } + public void setHourseMortgaging(Long hourseMortgaging) + { + this.hourseMortgaging = hourseMortgaging; + } + + public Long getHourseMortgaging() + { + return hourseMortgaging; + } + public void setOfficeWorker(Long officeWorker) + { + this.officeWorker = officeWorker; + } + + public Long getOfficeWorker() + { + return officeWorker; + } + public void setCivilServant(Long civilServant) + { + this.civilServant = civilServant; + } + + public Long getCivilServant() + { + return civilServant; + } + public void setPrivatePropertyOwners(Long privatePropertyOwners) + { + this.privatePropertyOwners = privatePropertyOwners; + } + + public Long getPrivatePropertyOwners() + { + return privatePropertyOwners; + } + public void setSelfEmployedPerson(Long selfEmployedPerson) + { + this.selfEmployedPerson = selfEmployedPerson; + } + + public Long getSelfEmployedPerson() + { + return selfEmployedPerson; + } + public void setOtherOccupations(Long otherOccupations) + { + this.otherOccupations = otherOccupations; + } + + public Long getOtherOccupations() + { + return otherOccupations; + } + public void setHuaBeiLow(Long huaBeiLow) + { + this.huaBeiLow = huaBeiLow; + } + + public Long getHuaBeiLow() + { + return huaBeiLow; + } + public void setHuaBeiMiddle(Long huaBeiMiddle) + { + this.huaBeiMiddle = huaBeiMiddle; + } + + public Long getHuaBeiMiddle() + { + return huaBeiMiddle; + } + public void setHuaBeiHigh(Long huaBeiHigh) + { + this.huaBeiHigh = huaBeiHigh; + } + + public Long getHuaBeiHigh() + { + return huaBeiHigh; + } + public void setBaiTiaoLow(Long baiTiaoLow) + { + this.baiTiaoLow = baiTiaoLow; + } + + public Long getBaiTiaoLow() + { + return baiTiaoLow; + } + public void setBaiTiaoMiddle(Long baiTiaoMiddle) + { + this.baiTiaoMiddle = baiTiaoMiddle; + } + + public Long getBaiTiaoMiddle() + { + return baiTiaoMiddle; + } + public void setBaiTiaoHigh(Long baiTiaoHigh) + { + this.baiTiaoHigh = baiTiaoHigh; + } + + public Long getBaiTiaoHigh() + { + return baiTiaoHigh; + } + public void setZhiMa(Long zhiMa) + { + this.zhiMa = zhiMa; + } + + public Long getZhiMa() + { + return zhiMa; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("merchantType", getMerchantType()) + .append("merchantName", getMerchantName()) + .append("merchantDescribe", getMerchantDescribe()) + .append("merchantCompany", getMerchantCompany()) + .append("logo", getLogo()) + .append("status", getStatus()) + .append("limitNum", getLimitNum()) + .append("limitType", getLimitType()) + .append("channelLimitType", getChannelLimitType()) + .append("ageLimitStart", getAgeLimitStart()) + .append("ageLimitEnd", getAgeLimitEnd()) + .append("phoneLimit", getPhoneLimit()) + .append("socialSecurityNo", getSocialSecurityNo()) + .append("socialSecurityLow", getSocialSecurityLow()) + .append("socialSecurityHigh", getSocialSecurityHigh()) + .append("carNo", getCarNo()) + .append("carHave", getCarHave()) + .append("guaranteeSlipLow", getGuaranteeSlipLow()) + .append("guaranteeSlipCentre", getGuaranteeSlipCentre()) + .append("guaranteeSlipHigh", getGuaranteeSlipHigh()) + .append("educationMiddle", getEducationMiddle()) + .append("educationHighSchool", getEducationHighSchool()) + .append("educationPolytechnic", getEducationPolytechnic()) + .append("educationJuniorCollege", getEducationJuniorCollege()) + .append("educationUndergraduateCourse", getEducationUndergraduateCourse()) + .append("educationPostgraduate", getEducationPostgraduate()) + .append("accumulationFundLow", getAccumulationFundLow()) + .append("accumulationFundHigh", getAccumulationFundHigh()) + .append("hourseNo", getHourseNo()) + .append("hourseFullPayment", getHourseFullPayment()) + .append("hourseMortgaging", getHourseMortgaging()) + .append("officeWorker", getOfficeWorker()) + .append("civilServant", getCivilServant()) + .append("privatePropertyOwners", getPrivatePropertyOwners()) + .append("selfEmployedPerson", getSelfEmployedPerson()) + .append("otherOccupations", getOtherOccupations()) + .append("huaBeiLow", getHuaBeiLow()) + .append("huaBeiMiddle", getHuaBeiMiddle()) + .append("huaBeiHigh", getHuaBeiHigh()) + .append("baiTiaoLow", getBaiTiaoLow()) + .append("baiTiaoMiddle", getBaiTiaoMiddle()) + .append("baiTiaoHigh", getBaiTiaoHigh()) + .append("zhiMa", getZhiMa()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ChannelMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ChannelMapper.java new file mode 100644 index 00000000..1767da95 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ChannelMapper.java @@ -0,0 +1,67 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Channel; + +/** + * 渠道配置Mapper接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface ChannelMapper +{ + /** + * 查询渠道配置 + * + * @param id 渠道配置主键 + * @return 渠道配置 + */ + public Channel selectChannelById(Long id); + + /** + * 查询渠道配置列表 + * + * @param channel 渠道配置 + * @return 渠道配置集合 + */ + public List selectChannelList(Channel channel); + + /** + * 新增渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + public int insertChannel(Channel channel); + + /** + * 修改渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + public int updateChannel(Channel channel); + + /** + * 删除渠道配置 + * + * @param id 渠道配置主键 + * @return 结果 + */ + public int deleteChannelById(Long id); + + /** + * 批量删除渠道配置 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteChannelByIds(Long[] ids); + + /** + * 查询渠道配置列表 + * @return 渠道配置集合 + */ + public List findAllChannelList(); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerApplyLogMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerApplyLogMapper.java new file mode 100644 index 00000000..23c46394 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerApplyLogMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.CustomerApplyLog; + +/** + * 客户申请记录Mapper接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface CustomerApplyLogMapper +{ + /** + * 查询客户申请记录 + * + * @param id 客户申请记录主键 + * @return 客户申请记录 + */ + public CustomerApplyLog selectCustomerApplyLogById(Long id); + + /** + * 查询客户申请记录列表 + * + * @param customerApplyLog 客户申请记录 + * @return 客户申请记录集合 + */ + public List selectCustomerApplyLogList(CustomerApplyLog customerApplyLog); + + /** + * 新增客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + public int insertCustomerApplyLog(CustomerApplyLog customerApplyLog); + + /** + * 修改客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + public int updateCustomerApplyLog(CustomerApplyLog customerApplyLog); + + /** + * 删除客户申请记录 + * + * @param id 客户申请记录主键 + * @return 结果 + */ + public int deleteCustomerApplyLogById(Long id); + + /** + * 批量删除客户申请记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteCustomerApplyLogByIds(Long[] ids); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerMapper.java new file mode 100644 index 00000000..6fa20ecf --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/CustomerMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Customer; + +/** + * 客户信息Mapper接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface CustomerMapper +{ + /** + * 查询客户信息 + * + * @param id 客户信息主键 + * @return 客户信息 + */ + public Customer selectCustomerById(Long id); + + /** + * 查询客户信息列表 + * + * @param customer 客户信息 + * @return 客户信息集合 + */ + public List selectCustomerList(Customer customer); + + /** + * 新增客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + public int insertCustomer(Customer customer); + + /** + * 修改客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + public int updateCustomer(Customer customer); + + /** + * 删除客户信息 + * + * @param id 客户信息主键 + * @return 结果 + */ + public int deleteCustomerById(Long id); + + /** + * 批量删除客户信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteCustomerByIds(Long[] ids); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/MerchantMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/MerchantMapper.java new file mode 100644 index 00000000..997cf505 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/MerchantMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Merchant; + +/** + * 商户Mapper接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface MerchantMapper +{ + /** + * 查询商户 + * + * @param id 商户主键 + * @return 商户 + */ + public Merchant selectMerchantById(Long id); + + /** + * 查询商户列表 + * + * @param merchant 商户 + * @return 商户集合 + */ + public List selectMerchantList(Merchant merchant); + + /** + * 新增商户 + * + * @param merchant 商户 + * @return 结果 + */ + public int insertMerchant(Merchant merchant); + + /** + * 修改商户 + * + * @param merchant 商户 + * @return 结果 + */ + public int updateMerchant(Merchant merchant); + + /** + * 删除商户 + * + * @param id 商户主键 + * @return 结果 + */ + public int deleteMerchantById(Long id); + + /** + * 批量删除商户 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteMerchantByIds(Long[] ids); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IChannelService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IChannelService.java new file mode 100644 index 00000000..11852064 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IChannelService.java @@ -0,0 +1,67 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Channel; + +/** + * 渠道配置Service接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface IChannelService +{ + /** + * 查询渠道配置 + * + * @param id 渠道配置主键 + * @return 渠道配置 + */ + public Channel selectChannelById(Long id); + + /** + * 查询渠道配置列表 + * + * @param channel 渠道配置 + * @return 渠道配置集合 + */ + public List selectChannelList(Channel channel); + + /** + * 新增渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + public int insertChannel(Channel channel); + + /** + * 修改渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + public int updateChannel(Channel channel); + + /** + * 批量删除渠道配置 + * + * @param ids 需要删除的渠道配置主键集合 + * @return 结果 + */ + public int deleteChannelByIds(Long[] ids); + + /** + * 删除渠道配置信息 + * + * @param id 渠道配置主键 + * @return 结果 + */ + public int deleteChannelById(Long id); + + /** + * 获取所有的渠道列表 + * @return + */ + public List findAllChannelList(); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerApplyLogService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerApplyLogService.java new file mode 100644 index 00000000..18342d31 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerApplyLogService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.CustomerApplyLog; + +/** + * 客户申请记录Service接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface ICustomerApplyLogService +{ + /** + * 查询客户申请记录 + * + * @param id 客户申请记录主键 + * @return 客户申请记录 + */ + public CustomerApplyLog selectCustomerApplyLogById(Long id); + + /** + * 查询客户申请记录列表 + * + * @param customerApplyLog 客户申请记录 + * @return 客户申请记录集合 + */ + public List selectCustomerApplyLogList(CustomerApplyLog customerApplyLog); + + /** + * 新增客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + public int insertCustomerApplyLog(CustomerApplyLog customerApplyLog); + + /** + * 修改客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + public int updateCustomerApplyLog(CustomerApplyLog customerApplyLog); + + /** + * 批量删除客户申请记录 + * + * @param ids 需要删除的客户申请记录主键集合 + * @return 结果 + */ + public int deleteCustomerApplyLogByIds(Long[] ids); + + /** + * 删除客户申请记录信息 + * + * @param id 客户申请记录主键 + * @return 结果 + */ + public int deleteCustomerApplyLogById(Long id); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerService.java new file mode 100644 index 00000000..de4beb8e --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/ICustomerService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Customer; + +/** + * 客户信息Service接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface ICustomerService +{ + /** + * 查询客户信息 + * + * @param id 客户信息主键 + * @return 客户信息 + */ + public Customer selectCustomerById(Long id); + + /** + * 查询客户信息列表 + * + * @param customer 客户信息 + * @return 客户信息集合 + */ + public List selectCustomerList(Customer customer); + + /** + * 新增客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + public int insertCustomer(Customer customer); + + /** + * 修改客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + public int updateCustomer(Customer customer); + + /** + * 批量删除客户信息 + * + * @param ids 需要删除的客户信息主键集合 + * @return 结果 + */ + public int deleteCustomerByIds(Long[] ids); + + /** + * 删除客户信息信息 + * + * @param id 客户信息主键 + * @return 结果 + */ + public int deleteCustomerById(Long id); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IMerchantService.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IMerchantService.java new file mode 100644 index 00000000..d42bd871 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/IMerchantService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Merchant; + +/** + * 商户Service接口 + * + * @author ruoyi + * @date 2024-09-15 + */ +public interface IMerchantService +{ + /** + * 查询商户 + * + * @param id 商户主键 + * @return 商户 + */ + public Merchant selectMerchantById(Long id); + + /** + * 查询商户列表 + * + * @param merchant 商户 + * @return 商户集合 + */ + public List selectMerchantList(Merchant merchant); + + /** + * 新增商户 + * + * @param merchant 商户 + * @return 结果 + */ + public int insertMerchant(Merchant merchant); + + /** + * 修改商户 + * + * @param merchant 商户 + * @return 结果 + */ + public int updateMerchant(Merchant merchant); + + /** + * 批量删除商户 + * + * @param ids 需要删除的商户主键集合 + * @return 结果 + */ + public int deleteMerchantByIds(Long[] ids); + + /** + * 删除商户信息 + * + * @param id 商户主键 + * @return 结果 + */ + public int deleteMerchantById(Long id); +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ChannelServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ChannelServiceImpl.java new file mode 100644 index 00000000..8ec61d03 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ChannelServiceImpl.java @@ -0,0 +1,114 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import com.ruoyi.common.core.utils.StringUtils; +import com.ruoyi.system.mapper.ChannelMapper; +import org.apache.commons.lang3.RandomStringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.cache.annotation.Cacheable; +import org.springframework.stereotype.Service; +import com.ruoyi.system.domain.Channel; +import com.ruoyi.system.service.IChannelService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 渠道配置Service业务层处理 + * + * @author ruoyi + * @date 2024-09-15 + */ +@Service +public class ChannelServiceImpl implements IChannelService +{ + @Autowired + private ChannelMapper channelMapper; + + /** + * 查询渠道配置 + * + * @param id 渠道配置主键 + * @return 渠道配置 + */ + @Override + public Channel selectChannelById(Long id) + { + return channelMapper.selectChannelById(id); + } + + /** + * 查询渠道配置列表 + * + * @param channel 渠道配置 + * @return 渠道配置 + */ + @Override + public List selectChannelList(Channel channel) + { + return channelMapper.selectChannelList(channel); + } + + /** + * 新增渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int insertChannel(Channel channel) + { + if (StringUtils.isEmpty(channel.getChannelSign())) { + channel.setChannelSign(RandomStringUtils.random(16, true, false)); + } + channel.setCreateTime(DateUtils.getNowDate()); + return channelMapper.insertChannel(channel); + } + + /** + * 修改渠道配置 + * + * @param channel 渠道配置 + * @return 结果 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int updateChannel(Channel channel) + { + channel.setUpdateTime(DateUtils.getNowDate()); + return channelMapper.updateChannel(channel); + } + + /** + * 批量删除渠道配置 + * + * @param ids 需要删除的渠道配置主键 + * @return 结果 + */ + @Override + public int deleteChannelByIds(Long[] ids) + { + return channelMapper.deleteChannelByIds(ids); + } + + /** + * 删除渠道配置信息 + * + * @param id 渠道配置主键 + * @return 结果 + */ + @Override + public int deleteChannelById(Long id) + { + return channelMapper.deleteChannelById(id); + } + + /** + * 获取所有的渠道列表 + * @return + */ + @Cacheable(value = "channel",key = "'channel:all'") + public List findAllChannelList(){ + return channelMapper.findAllChannelList(); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerApplyLogServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerApplyLogServiceImpl.java new file mode 100644 index 00000000..cb663509 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerApplyLogServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.CustomerApplyLogMapper; +import com.ruoyi.system.domain.CustomerApplyLog; +import com.ruoyi.system.service.ICustomerApplyLogService; + +/** + * 客户申请记录Service业务层处理 + * + * @author ruoyi + * @date 2024-09-15 + */ +@Service +public class CustomerApplyLogServiceImpl implements ICustomerApplyLogService +{ + @Autowired + private CustomerApplyLogMapper customerApplyLogMapper; + + /** + * 查询客户申请记录 + * + * @param id 客户申请记录主键 + * @return 客户申请记录 + */ + @Override + public CustomerApplyLog selectCustomerApplyLogById(Long id) + { + return customerApplyLogMapper.selectCustomerApplyLogById(id); + } + + /** + * 查询客户申请记录列表 + * + * @param customerApplyLog 客户申请记录 + * @return 客户申请记录 + */ + @Override + public List selectCustomerApplyLogList(CustomerApplyLog customerApplyLog) + { + return customerApplyLogMapper.selectCustomerApplyLogList(customerApplyLog); + } + + /** + * 新增客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + @Override + public int insertCustomerApplyLog(CustomerApplyLog customerApplyLog) + { + customerApplyLog.setCreateTime(DateUtils.getNowDate()); + return customerApplyLogMapper.insertCustomerApplyLog(customerApplyLog); + } + + /** + * 修改客户申请记录 + * + * @param customerApplyLog 客户申请记录 + * @return 结果 + */ + @Override + public int updateCustomerApplyLog(CustomerApplyLog customerApplyLog) + { + customerApplyLog.setUpdateTime(DateUtils.getNowDate()); + return customerApplyLogMapper.updateCustomerApplyLog(customerApplyLog); + } + + /** + * 批量删除客户申请记录 + * + * @param ids 需要删除的客户申请记录主键 + * @return 结果 + */ + @Override + public int deleteCustomerApplyLogByIds(Long[] ids) + { + return customerApplyLogMapper.deleteCustomerApplyLogByIds(ids); + } + + /** + * 删除客户申请记录信息 + * + * @param id 客户申请记录主键 + * @return 结果 + */ + @Override + public int deleteCustomerApplyLogById(Long id) + { + return customerApplyLogMapper.deleteCustomerApplyLogById(id); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerServiceImpl.java new file mode 100644 index 00000000..3c9f12c6 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/CustomerServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.CustomerMapper; +import com.ruoyi.system.domain.Customer; +import com.ruoyi.system.service.ICustomerService; + +/** + * 客户信息Service业务层处理 + * + * @author ruoyi + * @date 2024-09-15 + */ +@Service +public class CustomerServiceImpl implements ICustomerService +{ + @Autowired + private CustomerMapper customerMapper; + + /** + * 查询客户信息 + * + * @param id 客户信息主键 + * @return 客户信息 + */ + @Override + public Customer selectCustomerById(Long id) + { + return customerMapper.selectCustomerById(id); + } + + /** + * 查询客户信息列表 + * + * @param customer 客户信息 + * @return 客户信息 + */ + @Override + public List selectCustomerList(Customer customer) + { + return customerMapper.selectCustomerList(customer); + } + + /** + * 新增客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + @Override + public int insertCustomer(Customer customer) + { + customer.setCreateTime(DateUtils.getNowDate()); + return customerMapper.insertCustomer(customer); + } + + /** + * 修改客户信息 + * + * @param customer 客户信息 + * @return 结果 + */ + @Override + public int updateCustomer(Customer customer) + { + customer.setUpdateTime(DateUtils.getNowDate()); + return customerMapper.updateCustomer(customer); + } + + /** + * 批量删除客户信息 + * + * @param ids 需要删除的客户信息主键 + * @return 结果 + */ + @Override + public int deleteCustomerByIds(Long[] ids) + { + return customerMapper.deleteCustomerByIds(ids); + } + + /** + * 删除客户信息信息 + * + * @param id 客户信息主键 + * @return 结果 + */ + @Override + public int deleteCustomerById(Long id) + { + return customerMapper.deleteCustomerById(id); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MerchantServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MerchantServiceImpl.java new file mode 100644 index 00000000..d23f6794 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/MerchantServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.MerchantMapper; +import com.ruoyi.system.domain.Merchant; +import com.ruoyi.system.service.IMerchantService; + +/** + * 商户Service业务层处理 + * + * @author ruoyi + * @date 2024-09-15 + */ +@Service +public class MerchantServiceImpl implements IMerchantService +{ + @Autowired + private MerchantMapper merchantMapper; + + /** + * 查询商户 + * + * @param id 商户主键 + * @return 商户 + */ + @Override + public Merchant selectMerchantById(Long id) + { + return merchantMapper.selectMerchantById(id); + } + + /** + * 查询商户列表 + * + * @param merchant 商户 + * @return 商户 + */ + @Override + public List selectMerchantList(Merchant merchant) + { + return merchantMapper.selectMerchantList(merchant); + } + + /** + * 新增商户 + * + * @param merchant 商户 + * @return 结果 + */ + @Override + public int insertMerchant(Merchant merchant) + { + merchant.setCreateTime(DateUtils.getNowDate()); + return merchantMapper.insertMerchant(merchant); + } + + /** + * 修改商户 + * + * @param merchant 商户 + * @return 结果 + */ + @Override + public int updateMerchant(Merchant merchant) + { + merchant.setUpdateTime(DateUtils.getNowDate()); + return merchantMapper.updateMerchant(merchant); + } + + /** + * 批量删除商户 + * + * @param ids 需要删除的商户主键 + * @return 结果 + */ + @Override + public int deleteMerchantByIds(Long[] ids) + { + return merchantMapper.deleteMerchantByIds(ids); + } + + /** + * 删除商户信息 + * + * @param id 商户主键 + * @return 结果 + */ + @Override + public int deleteMerchantById(Long id) + { + return merchantMapper.deleteMerchantById(id); + } +} diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/ChannelMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/ChannelMapper.xml new file mode 100644 index 00000000..f8c278a8 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/ChannelMapper.xml @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + select id, channel_name, channel_sign, score, html_name, html_location, ips, period, create_time, update_time, remark from channel + + + select id, channel_name, channel_sign from channel + + + + + + + insert into channel + + channel_name, + channel_sign, + score, + html_name, + html_location, + ips, + period, + create_time, + update_time, + remark, + + + #{channelName}, + #{channelSign}, + #{score}, + #{htmlName}, + #{htmlLocation}, + #{ips}, + #{period}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update channel + + channel_name = #{channelName}, + channel_sign = #{channelSign}, + score = #{score}, + html_name = #{htmlName}, + html_location = #{htmlLocation}, + ips = #{ips}, + period = #{period}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from channel where id = #{id} + + + + delete from channel where id in + + #{id} + + + + + \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerApplyLogMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerApplyLogMapper.xml new file mode 100644 index 00000000..ae26b77a --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerApplyLogMapper.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + select id, customer_id, merchant_id, channel_id, order_status, price, create_time, update_time, remark from customer_apply_log + + + + + + + + insert into customer_apply_log + + customer_id, + merchant_id, + channel_id, + order_status, + price, + create_time, + update_time, + remark, + + + #{customerId}, + #{merchantId}, + #{channelId}, + #{orderStatus}, + #{price}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update customer_apply_log + + customer_id = #{customerId}, + merchant_id = #{merchantId}, + channel_id = #{channelId}, + order_status = #{orderStatus}, + price = #{price}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from customer_apply_log where id = #{id} + + + + delete from customer_apply_log where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerMapper.xml new file mode 100644 index 00000000..68337dfc --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/CustomerMapper.xml @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, age, sex, name, acturl_name, phone, phone_md5, is_auth, city, city_code, first_login_time, last_login_time, last_login_ip, status, social_security_no, social_security_low, social_security_high, car_no, car_have, guarantee_slip_low, guarantee_slip_centre, guarantee_slip_high, education_middle, education_high_school, education_polytechnic, education_junior_college, education_undergraduate_course, education_postgraduate, accumulation_fund_low, accumulation_fund_high, hourse_no, hourse_full_payment, hourse_mortgaging, office_worker, civil_servant, private_property_owners, self_employed_person, other_occupations, hua_bei_low, hua_bei_middle, hua_bei_high, bai_tiao_low, bai_tiao_middle, bai_tiao_high, zhi_ma, create_time, update_time from customer + + + + + + + + insert into customer + + age, + sex, + name, + acturl_name, + phone, + phone_md5, + is_auth, + city, + city_code, + first_login_time, + last_login_time, + last_login_ip, + status, + social_security_no, + social_security_low, + social_security_high, + car_no, + car_have, + guarantee_slip_low, + guarantee_slip_centre, + guarantee_slip_high, + education_middle, + education_high_school, + education_polytechnic, + education_junior_college, + education_undergraduate_course, + education_postgraduate, + accumulation_fund_low, + accumulation_fund_high, + hourse_no, + hourse_full_payment, + hourse_mortgaging, + office_worker, + civil_servant, + private_property_owners, + self_employed_person, + other_occupations, + hua_bei_low, + hua_bei_middle, + hua_bei_high, + bai_tiao_low, + bai_tiao_middle, + bai_tiao_high, + zhi_ma, + create_time, + update_time, + + + #{age}, + #{sex}, + #{name}, + #{acturlName}, + #{phone}, + #{phoneMd5}, + #{isAuth}, + #{city}, + #{cityCode}, + #{firstLoginTime}, + #{lastLoginTime}, + #{lastLoginIp}, + #{status}, + #{socialSecurityNo}, + #{socialSecurityLow}, + #{socialSecurityHigh}, + #{carNo}, + #{carHave}, + #{guaranteeSlipLow}, + #{guaranteeSlipCentre}, + #{guaranteeSlipHigh}, + #{educationMiddle}, + #{educationHighSchool}, + #{educationPolytechnic}, + #{educationJuniorCollege}, + #{educationUndergraduateCourse}, + #{educationPostgraduate}, + #{accumulationFundLow}, + #{accumulationFundHigh}, + #{hourseNo}, + #{hourseFullPayment}, + #{hourseMortgaging}, + #{officeWorker}, + #{civilServant}, + #{privatePropertyOwners}, + #{selfEmployedPerson}, + #{otherOccupations}, + #{huaBeiLow}, + #{huaBeiMiddle}, + #{huaBeiHigh}, + #{baiTiaoLow}, + #{baiTiaoMiddle}, + #{baiTiaoHigh}, + #{zhiMa}, + #{createTime}, + #{updateTime}, + + + + + update customer + + age = #{age}, + sex = #{sex}, + name = #{name}, + acturl_name = #{acturlName}, + phone = #{phone}, + phone_md5 = #{phoneMd5}, + is_auth = #{isAuth}, + city = #{city}, + city_code = #{cityCode}, + first_login_time = #{firstLoginTime}, + last_login_time = #{lastLoginTime}, + last_login_ip = #{lastLoginIp}, + status = #{status}, + social_security_no = #{socialSecurityNo}, + social_security_low = #{socialSecurityLow}, + social_security_high = #{socialSecurityHigh}, + car_no = #{carNo}, + car_have = #{carHave}, + guarantee_slip_low = #{guaranteeSlipLow}, + guarantee_slip_centre = #{guaranteeSlipCentre}, + guarantee_slip_high = #{guaranteeSlipHigh}, + education_middle = #{educationMiddle}, + education_high_school = #{educationHighSchool}, + education_polytechnic = #{educationPolytechnic}, + education_junior_college = #{educationJuniorCollege}, + education_undergraduate_course = #{educationUndergraduateCourse}, + education_postgraduate = #{educationPostgraduate}, + accumulation_fund_low = #{accumulationFundLow}, + accumulation_fund_high = #{accumulationFundHigh}, + hourse_no = #{hourseNo}, + hourse_full_payment = #{hourseFullPayment}, + hourse_mortgaging = #{hourseMortgaging}, + office_worker = #{officeWorker}, + civil_servant = #{civilServant}, + private_property_owners = #{privatePropertyOwners}, + self_employed_person = #{selfEmployedPerson}, + other_occupations = #{otherOccupations}, + hua_bei_low = #{huaBeiLow}, + hua_bei_middle = #{huaBeiMiddle}, + hua_bei_high = #{huaBeiHigh}, + bai_tiao_low = #{baiTiaoLow}, + bai_tiao_middle = #{baiTiaoMiddle}, + bai_tiao_high = #{baiTiaoHigh}, + zhi_ma = #{zhiMa}, + create_time = #{createTime}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from customer where id = #{id} + + + + delete from customer where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/MerchantMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/MerchantMapper.xml new file mode 100644 index 00000000..5e0445d1 --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/MerchantMapper.xml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, merchant_type, merchant_name, merchant_describe, merchant_company, logo, status, limit_num, limit_type, channel_limit_type, age_limit_start, age_limit_end, phone_limit, social_security_no, social_security_low, social_security_high, car_no, car_have, guarantee_slip_low, guarantee_slip_centre, guarantee_slip_high, education_middle, education_high_school, education_polytechnic, education_junior_college, education_undergraduate_course, education_postgraduate, accumulation_fund_low, accumulation_fund_high, hourse_no, hourse_full_payment, hourse_mortgaging, office_worker, civil_servant, private_property_owners, self_employed_person, other_occupations, hua_bei_low, hua_bei_middle, hua_bei_high, bai_tiao_low, bai_tiao_middle, bai_tiao_high, zhi_ma, create_time, update_time, remark from merchant + + + + + + + + insert into merchant + + merchant_type, + merchant_name, + merchant_describe, + merchant_company, + logo, + status, + limit_num, + limit_type, + channel_limit_type, + age_limit_start, + age_limit_end, + phone_limit, + social_security_no, + social_security_low, + social_security_high, + car_no, + car_have, + guarantee_slip_low, + guarantee_slip_centre, + guarantee_slip_high, + education_middle, + education_high_school, + education_polytechnic, + education_junior_college, + education_undergraduate_course, + education_postgraduate, + accumulation_fund_low, + accumulation_fund_high, + hourse_no, + hourse_full_payment, + hourse_mortgaging, + office_worker, + civil_servant, + private_property_owners, + self_employed_person, + other_occupations, + hua_bei_low, + hua_bei_middle, + hua_bei_high, + bai_tiao_low, + bai_tiao_middle, + bai_tiao_high, + zhi_ma, + create_time, + update_time, + remark, + + + #{merchantType}, + #{merchantName}, + #{merchantDescribe}, + #{merchantCompany}, + #{logo}, + #{status}, + #{limitNum}, + #{limitType}, + #{channelLimitType}, + #{ageLimitStart}, + #{ageLimitEnd}, + #{phoneLimit}, + #{socialSecurityNo}, + #{socialSecurityLow}, + #{socialSecurityHigh}, + #{carNo}, + #{carHave}, + #{guaranteeSlipLow}, + #{guaranteeSlipCentre}, + #{guaranteeSlipHigh}, + #{educationMiddle}, + #{educationHighSchool}, + #{educationPolytechnic}, + #{educationJuniorCollege}, + #{educationUndergraduateCourse}, + #{educationPostgraduate}, + #{accumulationFundLow}, + #{accumulationFundHigh}, + #{hourseNo}, + #{hourseFullPayment}, + #{hourseMortgaging}, + #{officeWorker}, + #{civilServant}, + #{privatePropertyOwners}, + #{selfEmployedPerson}, + #{otherOccupations}, + #{huaBeiLow}, + #{huaBeiMiddle}, + #{huaBeiHigh}, + #{baiTiaoLow}, + #{baiTiaoMiddle}, + #{baiTiaoHigh}, + #{zhiMa}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update merchant + + merchant_type = #{merchantType}, + merchant_name = #{merchantName}, + merchant_describe = #{merchantDescribe}, + merchant_company = #{merchantCompany}, + logo = #{logo}, + status = #{status}, + limit_num = #{limitNum}, + limit_type = #{limitType}, + channel_limit_type = #{channelLimitType}, + age_limit_start = #{ageLimitStart}, + age_limit_end = #{ageLimitEnd}, + phone_limit = #{phoneLimit}, + social_security_no = #{socialSecurityNo}, + social_security_low = #{socialSecurityLow}, + social_security_high = #{socialSecurityHigh}, + car_no = #{carNo}, + car_have = #{carHave}, + guarantee_slip_low = #{guaranteeSlipLow}, + guarantee_slip_centre = #{guaranteeSlipCentre}, + guarantee_slip_high = #{guaranteeSlipHigh}, + education_middle = #{educationMiddle}, + education_high_school = #{educationHighSchool}, + education_polytechnic = #{educationPolytechnic}, + education_junior_college = #{educationJuniorCollege}, + education_undergraduate_course = #{educationUndergraduateCourse}, + education_postgraduate = #{educationPostgraduate}, + accumulation_fund_low = #{accumulationFundLow}, + accumulation_fund_high = #{accumulationFundHigh}, + hourse_no = #{hourseNo}, + hourse_full_payment = #{hourseFullPayment}, + hourse_mortgaging = #{hourseMortgaging}, + office_worker = #{officeWorker}, + civil_servant = #{civilServant}, + private_property_owners = #{privatePropertyOwners}, + self_employed_person = #{selfEmployedPerson}, + other_occupations = #{otherOccupations}, + hua_bei_low = #{huaBeiLow}, + hua_bei_middle = #{huaBeiMiddle}, + hua_bei_high = #{huaBeiHigh}, + bai_tiao_low = #{baiTiaoLow}, + bai_tiao_middle = #{baiTiaoMiddle}, + bai_tiao_high = #{baiTiaoHigh}, + zhi_ma = #{zhiMa}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from merchant where id = #{id} + + + + delete from merchant where id in + + #{id} + + + \ No newline at end of file