Merge branch 'master' into master_zhp

pull/379/head
zhp 1 year ago
commit 19c50fe6d5

@ -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<Channel> 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<Channel> list = channelService.selectChannelList(channel);
ExcelUtil<Channel> util = new ExcelUtil<Channel>(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));
}
}

@ -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<CustomerApplyLog> 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<CustomerApplyLog> list = customerApplyLogService.selectCustomerApplyLogList(customerApplyLog);
ExcelUtil<CustomerApplyLog> util = new ExcelUtil<CustomerApplyLog>(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));
}
}

@ -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<Customer> 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<Customer> list = customerService.selectCustomerList(customer);
ExcelUtil<Customer> util = new ExcelUtil<Customer>(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));
}
}

@ -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<Merchant> 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<Merchant> list = merchantService.selectMerchantList(merchant);
ExcelUtil<Merchant> util = new ExcelUtil<Merchant>(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));
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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();
}
}

@ -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<Channel> 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<Channel> findAllChannelList();
}

@ -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<CustomerApplyLog> 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);
}

@ -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<Customer> 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);
}

@ -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<Merchant> 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);
}

@ -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<Channel> 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<Channel> findAllChannelList();
}

@ -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<CustomerApplyLog> 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);
}

@ -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<Customer> 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);
}

@ -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<Merchant> 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);
}

@ -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<Channel> 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<Channel> findAllChannelList(){
return channelMapper.findAllChannelList();
}
}

@ -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<CustomerApplyLog> 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);
}
}

@ -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<Customer> 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);
}
}

@ -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<Merchant> 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);
}
}

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.ChannelMapper">
<resultMap type="com.ruoyi.system.domain.Channel" id="ChannelResult">
<result property="id" column="id" />
<result property="channelName" column="channel_name" />
<result property="channelSign" column="channel_sign" />
<result property="score" column="score" />
<result property="htmlName" column="html_name" />
<result property="htmlLocation" column="html_location" />
<result property="ips" column="ips" />
<result property="period" column="period" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectChannelVo">
select id, channel_name, channel_sign, score, html_name, html_location, ips, period, create_time, update_time, remark from channel
</sql>
<sql id="selectChannelIdName">
select id, channel_name, channel_sign from channel
</sql>
<select id="selectChannelList" parameterType="com.ruoyi.system.domain.Channel" resultMap="ChannelResult">
<include refid="selectChannelVo"/>
<where>
<if test="channelName != null and channelName != ''"> and channel_name like concat('%', #{channelName}, '%')</if>
<if test="channelSign != null and channelSign != ''"> and channel_sign = #{channelSign}</if>
<if test="score != null "> and score = #{score}</if>
<if test="htmlName != null and htmlName != ''"> and html_name like concat('%', #{htmlName}, '%')</if>
<if test="htmlLocation != null and htmlLocation != ''"> and html_location = #{htmlLocation}</if>
<if test="ips != null and ips != ''"> and ips = #{ips}</if>
<if test="period != null and period != ''"> and period = #{period}</if>
</where>
</select>
<select id="selectChannelById" parameterType="java.lang.Long" resultMap="ChannelResult">
<include refid="selectChannelVo"/>
where id = #{id}
</select>
<insert id="insertChannel" parameterType="com.ruoyi.system.domain.Channel" useGeneratedKeys="true" keyProperty="id">
insert into channel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="channelName != null">channel_name,</if>
<if test="channelSign != null">channel_sign,</if>
<if test="score != null">score,</if>
<if test="htmlName != null">html_name,</if>
<if test="htmlLocation != null">html_location,</if>
<if test="ips != null">ips,</if>
<if test="period != null">period,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="channelName != null">#{channelName},</if>
<if test="channelSign != null">#{channelSign},</if>
<if test="score != null">#{score},</if>
<if test="htmlName != null">#{htmlName},</if>
<if test="htmlLocation != null">#{htmlLocation},</if>
<if test="ips != null">#{ips},</if>
<if test="period != null">#{period},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateChannel" parameterType="com.ruoyi.system.domain.Channel">
update channel
<trim prefix="SET" suffixOverrides=",">
<if test="channelName != null">channel_name = #{channelName},</if>
<if test="channelSign != null">channel_sign = #{channelSign},</if>
<if test="score != null">score = #{score},</if>
<if test="htmlName != null">html_name = #{htmlName},</if>
<if test="htmlLocation != null">html_location = #{htmlLocation},</if>
<if test="ips != null">ips = #{ips},</if>
<if test="period != null">period = #{period},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteChannelById" parameterType="java.lang.Long">
delete from channel where id = #{id}
</delete>
<delete id="deleteChannelByIds" parameterType="java.lang.String">
delete from channel where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="findAllChannelList" resultMap="ChannelResult">
<include refid="selectChannelIdName"/>
</select>
</mapper>

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.CustomerApplyLogMapper">
<resultMap type="com.ruoyi.system.domain.CustomerApplyLog" id="CustomerApplyLogResult">
<result property="id" column="id" />
<result property="customerId" column="customer_id" />
<result property="merchantId" column="merchant_id" />
<result property="channelId" column="channel_id" />
<result property="orderStatus" column="order_status" />
<result property="price" column="price" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectCustomerApplyLogVo">
select id, customer_id, merchant_id, channel_id, order_status, price, create_time, update_time, remark from customer_apply_log
</sql>
<select id="selectCustomerApplyLogList" parameterType="com.ruoyi.system.domain.CustomerApplyLog" resultMap="CustomerApplyLogResult">
<include refid="selectCustomerApplyLogVo"/>
<where>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="merchantId != null "> and merchant_id = #{merchantId}</if>
<if test="channelId != null "> and channel_id = #{channelId}</if>
<if test="orderStatus != null "> and order_status = #{orderStatus}</if>
<if test="price != null "> and price = #{price}</if>
</where>
</select>
<select id="selectCustomerApplyLogById" parameterType="java.lang.Long" resultMap="CustomerApplyLogResult">
<include refid="selectCustomerApplyLogVo"/>
where id = #{id}
</select>
<insert id="insertCustomerApplyLog" parameterType="com.ruoyi.system.domain.CustomerApplyLog" useGeneratedKeys="true" keyProperty="id">
insert into customer_apply_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">customer_id,</if>
<if test="merchantId != null">merchant_id,</if>
<if test="channelId != null">channel_id,</if>
<if test="orderStatus != null">order_status,</if>
<if test="price != null">price,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">#{customerId},</if>
<if test="merchantId != null">#{merchantId},</if>
<if test="channelId != null">#{channelId},</if>
<if test="orderStatus != null">#{orderStatus},</if>
<if test="price != null">#{price},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateCustomerApplyLog" parameterType="com.ruoyi.system.domain.CustomerApplyLog">
update customer_apply_log
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="channelId != null">channel_id = #{channelId},</if>
<if test="orderStatus != null">order_status = #{orderStatus},</if>
<if test="price != null">price = #{price},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomerApplyLogById" parameterType="java.lang.Long">
delete from customer_apply_log where id = #{id}
</delete>
<delete id="deleteCustomerApplyLogByIds" parameterType="java.lang.String">
delete from customer_apply_log where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,279 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.CustomerMapper">
<resultMap type="com.ruoyi.system.domain.Customer" id="CustomerResult">
<result property="id" column="id" />
<result property="age" column="age" />
<result property="sex" column="sex" />
<result property="name" column="name" />
<result property="acturlName" column="acturl_name" />
<result property="phone" column="phone" />
<result property="phoneMd5" column="phone_md5" />
<result property="isAuth" column="is_auth" />
<result property="city" column="city" />
<result property="cityCode" column="city_code" />
<result property="firstLoginTime" column="first_login_time" />
<result property="lastLoginTime" column="last_login_time" />
<result property="lastLoginIp" column="last_login_ip" />
<result property="status" column="status" />
<result property="socialSecurityNo" column="social_security_no" />
<result property="socialSecurityLow" column="social_security_low" />
<result property="socialSecurityHigh" column="social_security_high" />
<result property="carNo" column="car_no" />
<result property="carHave" column="car_have" />
<result property="guaranteeSlipLow" column="guarantee_slip_low" />
<result property="guaranteeSlipCentre" column="guarantee_slip_centre" />
<result property="guaranteeSlipHigh" column="guarantee_slip_high" />
<result property="educationMiddle" column="education_middle" />
<result property="educationHighSchool" column="education_high_school" />
<result property="educationPolytechnic" column="education_polytechnic" />
<result property="educationJuniorCollege" column="education_junior_college" />
<result property="educationUndergraduateCourse" column="education_undergraduate_course" />
<result property="educationPostgraduate" column="education_postgraduate" />
<result property="accumulationFundLow" column="accumulation_fund_low" />
<result property="accumulationFundHigh" column="accumulation_fund_high" />
<result property="hourseNo" column="hourse_no" />
<result property="hourseFullPayment" column="hourse_full_payment" />
<result property="hourseMortgaging" column="hourse_mortgaging" />
<result property="officeWorker" column="office_worker" />
<result property="civilServant" column="civil_servant" />
<result property="privatePropertyOwners" column="private_property_owners" />
<result property="selfEmployedPerson" column="self_employed_person" />
<result property="otherOccupations" column="other_occupations" />
<result property="huaBeiLow" column="hua_bei_low" />
<result property="huaBeiMiddle" column="hua_bei_middle" />
<result property="huaBeiHigh" column="hua_bei_high" />
<result property="baiTiaoLow" column="bai_tiao_low" />
<result property="baiTiaoMiddle" column="bai_tiao_middle" />
<result property="baiTiaoHigh" column="bai_tiao_high" />
<result property="zhiMa" column="zhi_ma" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCustomerVo">
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
</sql>
<select id="selectCustomerList" parameterType="com.ruoyi.system.domain.Customer" resultMap="CustomerResult">
<include refid="selectCustomerVo"/>
<where>
<if test="age != null "> and age = #{age}</if>
<if test="sex != null "> and sex = #{sex}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="acturlName != null and acturlName != ''"> and acturl_name like concat('%', #{acturlName}, '%')</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="phoneMd5 != null and phoneMd5 != ''"> and phone_md5 = #{phoneMd5}</if>
<if test="isAuth != null "> and is_auth = #{isAuth}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="cityCode != null "> and city_code = #{cityCode}</if>
<if test="firstLoginTime != null "> and first_login_time = #{firstLoginTime}</if>
<if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
<if test="lastLoginIp != null "> and last_login_ip = #{lastLoginIp}</if>
<if test="status != null "> and status = #{status}</if>
<if test="socialSecurityNo != null "> and social_security_no = #{socialSecurityNo}</if>
<if test="socialSecurityLow != null "> and social_security_low = #{socialSecurityLow}</if>
<if test="socialSecurityHigh != null "> and social_security_high = #{socialSecurityHigh}</if>
<if test="carNo != null "> and car_no = #{carNo}</if>
<if test="carHave != null "> and car_have = #{carHave}</if>
<if test="guaranteeSlipLow != null "> and guarantee_slip_low = #{guaranteeSlipLow}</if>
<if test="guaranteeSlipCentre != null "> and guarantee_slip_centre = #{guaranteeSlipCentre}</if>
<if test="guaranteeSlipHigh != null "> and guarantee_slip_high = #{guaranteeSlipHigh}</if>
<if test="educationMiddle != null "> and education_middle = #{educationMiddle}</if>
<if test="educationHighSchool != null "> and education_high_school = #{educationHighSchool}</if>
<if test="educationPolytechnic != null "> and education_polytechnic = #{educationPolytechnic}</if>
<if test="educationJuniorCollege != null "> and education_junior_college = #{educationJuniorCollege}</if>
<if test="educationUndergraduateCourse != null "> and education_undergraduate_course = #{educationUndergraduateCourse}</if>
<if test="educationPostgraduate != null "> and education_postgraduate = #{educationPostgraduate}</if>
<if test="accumulationFundLow != null "> and accumulation_fund_low = #{accumulationFundLow}</if>
<if test="accumulationFundHigh != null "> and accumulation_fund_high = #{accumulationFundHigh}</if>
<if test="hourseNo != null "> and hourse_no = #{hourseNo}</if>
<if test="hourseFullPayment != null "> and hourse_full_payment = #{hourseFullPayment}</if>
<if test="hourseMortgaging != null "> and hourse_mortgaging = #{hourseMortgaging}</if>
<if test="officeWorker != null "> and office_worker = #{officeWorker}</if>
<if test="civilServant != null "> and civil_servant = #{civilServant}</if>
<if test="privatePropertyOwners != null "> and private_property_owners = #{privatePropertyOwners}</if>
<if test="selfEmployedPerson != null "> and self_employed_person = #{selfEmployedPerson}</if>
<if test="otherOccupations != null "> and other_occupations = #{otherOccupations}</if>
<if test="huaBeiLow != null "> and hua_bei_low = #{huaBeiLow}</if>
<if test="huaBeiMiddle != null "> and hua_bei_middle = #{huaBeiMiddle}</if>
<if test="huaBeiHigh != null "> and hua_bei_high = #{huaBeiHigh}</if>
<if test="baiTiaoLow != null "> and bai_tiao_low = #{baiTiaoLow}</if>
<if test="baiTiaoMiddle != null "> and bai_tiao_middle = #{baiTiaoMiddle}</if>
<if test="baiTiaoHigh != null "> and bai_tiao_high = #{baiTiaoHigh}</if>
<if test="zhiMa != null "> and zhi_ma = #{zhiMa}</if>
</where>
</select>
<select id="selectCustomerById" parameterType="java.lang.Long" resultMap="CustomerResult">
<include refid="selectCustomerVo"/>
where id = #{id}
</select>
<insert id="insertCustomer" parameterType="com.ruoyi.system.domain.Customer" useGeneratedKeys="true" keyProperty="id">
insert into customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="age != null">age,</if>
<if test="sex != null">sex,</if>
<if test="name != null">name,</if>
<if test="acturlName != null">acturl_name,</if>
<if test="phone != null">phone,</if>
<if test="phoneMd5 != null">phone_md5,</if>
<if test="isAuth != null">is_auth,</if>
<if test="city != null">city,</if>
<if test="cityCode != null">city_code,</if>
<if test="firstLoginTime != null">first_login_time,</if>
<if test="lastLoginTime != null">last_login_time,</if>
<if test="lastLoginIp != null">last_login_ip,</if>
<if test="status != null">status,</if>
<if test="socialSecurityNo != null">social_security_no,</if>
<if test="socialSecurityLow != null">social_security_low,</if>
<if test="socialSecurityHigh != null">social_security_high,</if>
<if test="carNo != null">car_no,</if>
<if test="carHave != null">car_have,</if>
<if test="guaranteeSlipLow != null">guarantee_slip_low,</if>
<if test="guaranteeSlipCentre != null">guarantee_slip_centre,</if>
<if test="guaranteeSlipHigh != null">guarantee_slip_high,</if>
<if test="educationMiddle != null">education_middle,</if>
<if test="educationHighSchool != null">education_high_school,</if>
<if test="educationPolytechnic != null">education_polytechnic,</if>
<if test="educationJuniorCollege != null">education_junior_college,</if>
<if test="educationUndergraduateCourse != null">education_undergraduate_course,</if>
<if test="educationPostgraduate != null">education_postgraduate,</if>
<if test="accumulationFundLow != null">accumulation_fund_low,</if>
<if test="accumulationFundHigh != null">accumulation_fund_high,</if>
<if test="hourseNo != null">hourse_no,</if>
<if test="hourseFullPayment != null">hourse_full_payment,</if>
<if test="hourseMortgaging != null">hourse_mortgaging,</if>
<if test="officeWorker != null">office_worker,</if>
<if test="civilServant != null">civil_servant,</if>
<if test="privatePropertyOwners != null">private_property_owners,</if>
<if test="selfEmployedPerson != null">self_employed_person,</if>
<if test="otherOccupations != null">other_occupations,</if>
<if test="huaBeiLow != null">hua_bei_low,</if>
<if test="huaBeiMiddle != null">hua_bei_middle,</if>
<if test="huaBeiHigh != null">hua_bei_high,</if>
<if test="baiTiaoLow != null">bai_tiao_low,</if>
<if test="baiTiaoMiddle != null">bai_tiao_middle,</if>
<if test="baiTiaoHigh != null">bai_tiao_high,</if>
<if test="zhiMa != null">zhi_ma,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="age != null">#{age},</if>
<if test="sex != null">#{sex},</if>
<if test="name != null">#{name},</if>
<if test="acturlName != null">#{acturlName},</if>
<if test="phone != null">#{phone},</if>
<if test="phoneMd5 != null">#{phoneMd5},</if>
<if test="isAuth != null">#{isAuth},</if>
<if test="city != null">#{city},</if>
<if test="cityCode != null">#{cityCode},</if>
<if test="firstLoginTime != null">#{firstLoginTime},</if>
<if test="lastLoginTime != null">#{lastLoginTime},</if>
<if test="lastLoginIp != null">#{lastLoginIp},</if>
<if test="status != null">#{status},</if>
<if test="socialSecurityNo != null">#{socialSecurityNo},</if>
<if test="socialSecurityLow != null">#{socialSecurityLow},</if>
<if test="socialSecurityHigh != null">#{socialSecurityHigh},</if>
<if test="carNo != null">#{carNo},</if>
<if test="carHave != null">#{carHave},</if>
<if test="guaranteeSlipLow != null">#{guaranteeSlipLow},</if>
<if test="guaranteeSlipCentre != null">#{guaranteeSlipCentre},</if>
<if test="guaranteeSlipHigh != null">#{guaranteeSlipHigh},</if>
<if test="educationMiddle != null">#{educationMiddle},</if>
<if test="educationHighSchool != null">#{educationHighSchool},</if>
<if test="educationPolytechnic != null">#{educationPolytechnic},</if>
<if test="educationJuniorCollege != null">#{educationJuniorCollege},</if>
<if test="educationUndergraduateCourse != null">#{educationUndergraduateCourse},</if>
<if test="educationPostgraduate != null">#{educationPostgraduate},</if>
<if test="accumulationFundLow != null">#{accumulationFundLow},</if>
<if test="accumulationFundHigh != null">#{accumulationFundHigh},</if>
<if test="hourseNo != null">#{hourseNo},</if>
<if test="hourseFullPayment != null">#{hourseFullPayment},</if>
<if test="hourseMortgaging != null">#{hourseMortgaging},</if>
<if test="officeWorker != null">#{officeWorker},</if>
<if test="civilServant != null">#{civilServant},</if>
<if test="privatePropertyOwners != null">#{privatePropertyOwners},</if>
<if test="selfEmployedPerson != null">#{selfEmployedPerson},</if>
<if test="otherOccupations != null">#{otherOccupations},</if>
<if test="huaBeiLow != null">#{huaBeiLow},</if>
<if test="huaBeiMiddle != null">#{huaBeiMiddle},</if>
<if test="huaBeiHigh != null">#{huaBeiHigh},</if>
<if test="baiTiaoLow != null">#{baiTiaoLow},</if>
<if test="baiTiaoMiddle != null">#{baiTiaoMiddle},</if>
<if test="baiTiaoHigh != null">#{baiTiaoHigh},</if>
<if test="zhiMa != null">#{zhiMa},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCustomer" parameterType="com.ruoyi.system.domain.Customer">
update customer
<trim prefix="SET" suffixOverrides=",">
<if test="age != null">age = #{age},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="name != null">name = #{name},</if>
<if test="acturlName != null">acturl_name = #{acturlName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="phoneMd5 != null">phone_md5 = #{phoneMd5},</if>
<if test="isAuth != null">is_auth = #{isAuth},</if>
<if test="city != null">city = #{city},</if>
<if test="cityCode != null">city_code = #{cityCode},</if>
<if test="firstLoginTime != null">first_login_time = #{firstLoginTime},</if>
<if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if>
<if test="lastLoginIp != null">last_login_ip = #{lastLoginIp},</if>
<if test="status != null">status = #{status},</if>
<if test="socialSecurityNo != null">social_security_no = #{socialSecurityNo},</if>
<if test="socialSecurityLow != null">social_security_low = #{socialSecurityLow},</if>
<if test="socialSecurityHigh != null">social_security_high = #{socialSecurityHigh},</if>
<if test="carNo != null">car_no = #{carNo},</if>
<if test="carHave != null">car_have = #{carHave},</if>
<if test="guaranteeSlipLow != null">guarantee_slip_low = #{guaranteeSlipLow},</if>
<if test="guaranteeSlipCentre != null">guarantee_slip_centre = #{guaranteeSlipCentre},</if>
<if test="guaranteeSlipHigh != null">guarantee_slip_high = #{guaranteeSlipHigh},</if>
<if test="educationMiddle != null">education_middle = #{educationMiddle},</if>
<if test="educationHighSchool != null">education_high_school = #{educationHighSchool},</if>
<if test="educationPolytechnic != null">education_polytechnic = #{educationPolytechnic},</if>
<if test="educationJuniorCollege != null">education_junior_college = #{educationJuniorCollege},</if>
<if test="educationUndergraduateCourse != null">education_undergraduate_course = #{educationUndergraduateCourse},</if>
<if test="educationPostgraduate != null">education_postgraduate = #{educationPostgraduate},</if>
<if test="accumulationFundLow != null">accumulation_fund_low = #{accumulationFundLow},</if>
<if test="accumulationFundHigh != null">accumulation_fund_high = #{accumulationFundHigh},</if>
<if test="hourseNo != null">hourse_no = #{hourseNo},</if>
<if test="hourseFullPayment != null">hourse_full_payment = #{hourseFullPayment},</if>
<if test="hourseMortgaging != null">hourse_mortgaging = #{hourseMortgaging},</if>
<if test="officeWorker != null">office_worker = #{officeWorker},</if>
<if test="civilServant != null">civil_servant = #{civilServant},</if>
<if test="privatePropertyOwners != null">private_property_owners = #{privatePropertyOwners},</if>
<if test="selfEmployedPerson != null">self_employed_person = #{selfEmployedPerson},</if>
<if test="otherOccupations != null">other_occupations = #{otherOccupations},</if>
<if test="huaBeiLow != null">hua_bei_low = #{huaBeiLow},</if>
<if test="huaBeiMiddle != null">hua_bei_middle = #{huaBeiMiddle},</if>
<if test="huaBeiHigh != null">hua_bei_high = #{huaBeiHigh},</if>
<if test="baiTiaoLow != null">bai_tiao_low = #{baiTiaoLow},</if>
<if test="baiTiaoMiddle != null">bai_tiao_middle = #{baiTiaoMiddle},</if>
<if test="baiTiaoHigh != null">bai_tiao_high = #{baiTiaoHigh},</if>
<if test="zhiMa != null">zhi_ma = #{zhiMa},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCustomerById" parameterType="java.lang.Long">
delete from customer where id = #{id}
</delete>
<delete id="deleteCustomerByIds" parameterType="java.lang.String">
delete from customer where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

@ -0,0 +1,278 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.MerchantMapper">
<resultMap type="com.ruoyi.system.domain.Merchant" id="MerchantResult">
<result property="id" column="id" />
<result property="merchantType" column="merchant_type" />
<result property="merchantName" column="merchant_name" />
<result property="merchantDescribe" column="merchant_describe" />
<result property="merchantCompany" column="merchant_company" />
<result property="logo" column="logo" />
<result property="status" column="status" />
<result property="limitNum" column="limit_num" />
<result property="limitType" column="limit_type" />
<result property="channelLimitType" column="channel_limit_type" />
<result property="ageLimitStart" column="age_limit_start" />
<result property="ageLimitEnd" column="age_limit_end" />
<result property="phoneLimit" column="phone_limit" />
<result property="socialSecurityNo" column="social_security_no" />
<result property="socialSecurityLow" column="social_security_low" />
<result property="socialSecurityHigh" column="social_security_high" />
<result property="carNo" column="car_no" />
<result property="carHave" column="car_have" />
<result property="guaranteeSlipLow" column="guarantee_slip_low" />
<result property="guaranteeSlipCentre" column="guarantee_slip_centre" />
<result property="guaranteeSlipHigh" column="guarantee_slip_high" />
<result property="educationMiddle" column="education_middle" />
<result property="educationHighSchool" column="education_high_school" />
<result property="educationPolytechnic" column="education_polytechnic" />
<result property="educationJuniorCollege" column="education_junior_college" />
<result property="educationUndergraduateCourse" column="education_undergraduate_course" />
<result property="educationPostgraduate" column="education_postgraduate" />
<result property="accumulationFundLow" column="accumulation_fund_low" />
<result property="accumulationFundHigh" column="accumulation_fund_high" />
<result property="hourseNo" column="hourse_no" />
<result property="hourseFullPayment" column="hourse_full_payment" />
<result property="hourseMortgaging" column="hourse_mortgaging" />
<result property="officeWorker" column="office_worker" />
<result property="civilServant" column="civil_servant" />
<result property="privatePropertyOwners" column="private_property_owners" />
<result property="selfEmployedPerson" column="self_employed_person" />
<result property="otherOccupations" column="other_occupations" />
<result property="huaBeiLow" column="hua_bei_low" />
<result property="huaBeiMiddle" column="hua_bei_middle" />
<result property="huaBeiHigh" column="hua_bei_high" />
<result property="baiTiaoLow" column="bai_tiao_low" />
<result property="baiTiaoMiddle" column="bai_tiao_middle" />
<result property="baiTiaoHigh" column="bai_tiao_high" />
<result property="zhiMa" column="zhi_ma" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectMerchantVo">
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
</sql>
<select id="selectMerchantList" parameterType="com.ruoyi.system.domain.Merchant" resultMap="MerchantResult">
<include refid="selectMerchantVo"/>
<where>
<if test="merchantType != null "> and merchant_type = #{merchantType}</if>
<if test="merchantName != null and merchantName != ''"> and merchant_name like concat('%', #{merchantName}, '%')</if>
<if test="merchantDescribe != null and merchantDescribe != ''"> and merchant_describe = #{merchantDescribe}</if>
<if test="merchantCompany != null and merchantCompany != ''"> and merchant_company = #{merchantCompany}</if>
<if test="logo != null "> and logo = #{logo}</if>
<if test="status != null "> and status = #{status}</if>
<if test="limitNum != null and limitNum != ''"> and limit_num = #{limitNum}</if>
<if test="limitType != null "> and limit_type = #{limitType}</if>
<if test="channelLimitType != null "> and channel_limit_type = #{channelLimitType}</if>
<if test="ageLimitStart != null "> and age_limit_start = #{ageLimitStart}</if>
<if test="ageLimitEnd != null "> and age_limit_end = #{ageLimitEnd}</if>
<if test="phoneLimit != null and phoneLimit != ''"> and phone_limit = #{phoneLimit}</if>
<if test="socialSecurityNo != null "> and social_security_no = #{socialSecurityNo}</if>
<if test="socialSecurityLow != null "> and social_security_low = #{socialSecurityLow}</if>
<if test="socialSecurityHigh != null "> and social_security_high = #{socialSecurityHigh}</if>
<if test="carNo != null "> and car_no = #{carNo}</if>
<if test="carHave != null "> and car_have = #{carHave}</if>
<if test="guaranteeSlipLow != null "> and guarantee_slip_low = #{guaranteeSlipLow}</if>
<if test="guaranteeSlipCentre != null "> and guarantee_slip_centre = #{guaranteeSlipCentre}</if>
<if test="guaranteeSlipHigh != null "> and guarantee_slip_high = #{guaranteeSlipHigh}</if>
<if test="educationMiddle != null "> and education_middle = #{educationMiddle}</if>
<if test="educationHighSchool != null "> and education_high_school = #{educationHighSchool}</if>
<if test="educationPolytechnic != null "> and education_polytechnic = #{educationPolytechnic}</if>
<if test="educationJuniorCollege != null "> and education_junior_college = #{educationJuniorCollege}</if>
<if test="educationUndergraduateCourse != null "> and education_undergraduate_course = #{educationUndergraduateCourse}</if>
<if test="educationPostgraduate != null "> and education_postgraduate = #{educationPostgraduate}</if>
<if test="accumulationFundLow != null "> and accumulation_fund_low = #{accumulationFundLow}</if>
<if test="accumulationFundHigh != null "> and accumulation_fund_high = #{accumulationFundHigh}</if>
<if test="hourseNo != null "> and hourse_no = #{hourseNo}</if>
<if test="hourseFullPayment != null "> and hourse_full_payment = #{hourseFullPayment}</if>
<if test="hourseMortgaging != null "> and hourse_mortgaging = #{hourseMortgaging}</if>
<if test="officeWorker != null "> and office_worker = #{officeWorker}</if>
<if test="civilServant != null "> and civil_servant = #{civilServant}</if>
<if test="privatePropertyOwners != null "> and private_property_owners = #{privatePropertyOwners}</if>
<if test="selfEmployedPerson != null "> and self_employed_person = #{selfEmployedPerson}</if>
<if test="otherOccupations != null "> and other_occupations = #{otherOccupations}</if>
<if test="huaBeiLow != null "> and hua_bei_low = #{huaBeiLow}</if>
<if test="huaBeiMiddle != null "> and hua_bei_middle = #{huaBeiMiddle}</if>
<if test="huaBeiHigh != null "> and hua_bei_high = #{huaBeiHigh}</if>
<if test="baiTiaoLow != null "> and bai_tiao_low = #{baiTiaoLow}</if>
<if test="baiTiaoMiddle != null "> and bai_tiao_middle = #{baiTiaoMiddle}</if>
<if test="baiTiaoHigh != null "> and bai_tiao_high = #{baiTiaoHigh}</if>
<if test="zhiMa != null "> and zhi_ma = #{zhiMa}</if>
</where>
</select>
<select id="selectMerchantById" parameterType="java.lang.Long" resultMap="MerchantResult">
<include refid="selectMerchantVo"/>
where id = #{id}
</select>
<insert id="insertMerchant" parameterType="com.ruoyi.system.domain.Merchant" useGeneratedKeys="true" keyProperty="id">
insert into merchant
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="merchantType != null">merchant_type,</if>
<if test="merchantName != null">merchant_name,</if>
<if test="merchantDescribe != null">merchant_describe,</if>
<if test="merchantCompany != null">merchant_company,</if>
<if test="logo != null">logo,</if>
<if test="status != null">status,</if>
<if test="limitNum != null">limit_num,</if>
<if test="limitType != null">limit_type,</if>
<if test="channelLimitType != null">channel_limit_type,</if>
<if test="ageLimitStart != null">age_limit_start,</if>
<if test="ageLimitEnd != null">age_limit_end,</if>
<if test="phoneLimit != null">phone_limit,</if>
<if test="socialSecurityNo != null">social_security_no,</if>
<if test="socialSecurityLow != null">social_security_low,</if>
<if test="socialSecurityHigh != null">social_security_high,</if>
<if test="carNo != null">car_no,</if>
<if test="carHave != null">car_have,</if>
<if test="guaranteeSlipLow != null">guarantee_slip_low,</if>
<if test="guaranteeSlipCentre != null">guarantee_slip_centre,</if>
<if test="guaranteeSlipHigh != null">guarantee_slip_high,</if>
<if test="educationMiddle != null">education_middle,</if>
<if test="educationHighSchool != null">education_high_school,</if>
<if test="educationPolytechnic != null">education_polytechnic,</if>
<if test="educationJuniorCollege != null">education_junior_college,</if>
<if test="educationUndergraduateCourse != null">education_undergraduate_course,</if>
<if test="educationPostgraduate != null">education_postgraduate,</if>
<if test="accumulationFundLow != null">accumulation_fund_low,</if>
<if test="accumulationFundHigh != null">accumulation_fund_high,</if>
<if test="hourseNo != null">hourse_no,</if>
<if test="hourseFullPayment != null">hourse_full_payment,</if>
<if test="hourseMortgaging != null">hourse_mortgaging,</if>
<if test="officeWorker != null">office_worker,</if>
<if test="civilServant != null">civil_servant,</if>
<if test="privatePropertyOwners != null">private_property_owners,</if>
<if test="selfEmployedPerson != null">self_employed_person,</if>
<if test="otherOccupations != null">other_occupations,</if>
<if test="huaBeiLow != null">hua_bei_low,</if>
<if test="huaBeiMiddle != null">hua_bei_middle,</if>
<if test="huaBeiHigh != null">hua_bei_high,</if>
<if test="baiTiaoLow != null">bai_tiao_low,</if>
<if test="baiTiaoMiddle != null">bai_tiao_middle,</if>
<if test="baiTiaoHigh != null">bai_tiao_high,</if>
<if test="zhiMa != null">zhi_ma,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="merchantType != null">#{merchantType},</if>
<if test="merchantName != null">#{merchantName},</if>
<if test="merchantDescribe != null">#{merchantDescribe},</if>
<if test="merchantCompany != null">#{merchantCompany},</if>
<if test="logo != null">#{logo},</if>
<if test="status != null">#{status},</if>
<if test="limitNum != null">#{limitNum},</if>
<if test="limitType != null">#{limitType},</if>
<if test="channelLimitType != null">#{channelLimitType},</if>
<if test="ageLimitStart != null">#{ageLimitStart},</if>
<if test="ageLimitEnd != null">#{ageLimitEnd},</if>
<if test="phoneLimit != null">#{phoneLimit},</if>
<if test="socialSecurityNo != null">#{socialSecurityNo},</if>
<if test="socialSecurityLow != null">#{socialSecurityLow},</if>
<if test="socialSecurityHigh != null">#{socialSecurityHigh},</if>
<if test="carNo != null">#{carNo},</if>
<if test="carHave != null">#{carHave},</if>
<if test="guaranteeSlipLow != null">#{guaranteeSlipLow},</if>
<if test="guaranteeSlipCentre != null">#{guaranteeSlipCentre},</if>
<if test="guaranteeSlipHigh != null">#{guaranteeSlipHigh},</if>
<if test="educationMiddle != null">#{educationMiddle},</if>
<if test="educationHighSchool != null">#{educationHighSchool},</if>
<if test="educationPolytechnic != null">#{educationPolytechnic},</if>
<if test="educationJuniorCollege != null">#{educationJuniorCollege},</if>
<if test="educationUndergraduateCourse != null">#{educationUndergraduateCourse},</if>
<if test="educationPostgraduate != null">#{educationPostgraduate},</if>
<if test="accumulationFundLow != null">#{accumulationFundLow},</if>
<if test="accumulationFundHigh != null">#{accumulationFundHigh},</if>
<if test="hourseNo != null">#{hourseNo},</if>
<if test="hourseFullPayment != null">#{hourseFullPayment},</if>
<if test="hourseMortgaging != null">#{hourseMortgaging},</if>
<if test="officeWorker != null">#{officeWorker},</if>
<if test="civilServant != null">#{civilServant},</if>
<if test="privatePropertyOwners != null">#{privatePropertyOwners},</if>
<if test="selfEmployedPerson != null">#{selfEmployedPerson},</if>
<if test="otherOccupations != null">#{otherOccupations},</if>
<if test="huaBeiLow != null">#{huaBeiLow},</if>
<if test="huaBeiMiddle != null">#{huaBeiMiddle},</if>
<if test="huaBeiHigh != null">#{huaBeiHigh},</if>
<if test="baiTiaoLow != null">#{baiTiaoLow},</if>
<if test="baiTiaoMiddle != null">#{baiTiaoMiddle},</if>
<if test="baiTiaoHigh != null">#{baiTiaoHigh},</if>
<if test="zhiMa != null">#{zhiMa},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateMerchant" parameterType="com.ruoyi.system.domain.Merchant">
update merchant
<trim prefix="SET" suffixOverrides=",">
<if test="merchantType != null">merchant_type = #{merchantType},</if>
<if test="merchantName != null">merchant_name = #{merchantName},</if>
<if test="merchantDescribe != null">merchant_describe = #{merchantDescribe},</if>
<if test="merchantCompany != null">merchant_company = #{merchantCompany},</if>
<if test="logo != null">logo = #{logo},</if>
<if test="status != null">status = #{status},</if>
<if test="limitNum != null">limit_num = #{limitNum},</if>
<if test="limitType != null">limit_type = #{limitType},</if>
<if test="channelLimitType != null">channel_limit_type = #{channelLimitType},</if>
<if test="ageLimitStart != null">age_limit_start = #{ageLimitStart},</if>
<if test="ageLimitEnd != null">age_limit_end = #{ageLimitEnd},</if>
<if test="phoneLimit != null">phone_limit = #{phoneLimit},</if>
<if test="socialSecurityNo != null">social_security_no = #{socialSecurityNo},</if>
<if test="socialSecurityLow != null">social_security_low = #{socialSecurityLow},</if>
<if test="socialSecurityHigh != null">social_security_high = #{socialSecurityHigh},</if>
<if test="carNo != null">car_no = #{carNo},</if>
<if test="carHave != null">car_have = #{carHave},</if>
<if test="guaranteeSlipLow != null">guarantee_slip_low = #{guaranteeSlipLow},</if>
<if test="guaranteeSlipCentre != null">guarantee_slip_centre = #{guaranteeSlipCentre},</if>
<if test="guaranteeSlipHigh != null">guarantee_slip_high = #{guaranteeSlipHigh},</if>
<if test="educationMiddle != null">education_middle = #{educationMiddle},</if>
<if test="educationHighSchool != null">education_high_school = #{educationHighSchool},</if>
<if test="educationPolytechnic != null">education_polytechnic = #{educationPolytechnic},</if>
<if test="educationJuniorCollege != null">education_junior_college = #{educationJuniorCollege},</if>
<if test="educationUndergraduateCourse != null">education_undergraduate_course = #{educationUndergraduateCourse},</if>
<if test="educationPostgraduate != null">education_postgraduate = #{educationPostgraduate},</if>
<if test="accumulationFundLow != null">accumulation_fund_low = #{accumulationFundLow},</if>
<if test="accumulationFundHigh != null">accumulation_fund_high = #{accumulationFundHigh},</if>
<if test="hourseNo != null">hourse_no = #{hourseNo},</if>
<if test="hourseFullPayment != null">hourse_full_payment = #{hourseFullPayment},</if>
<if test="hourseMortgaging != null">hourse_mortgaging = #{hourseMortgaging},</if>
<if test="officeWorker != null">office_worker = #{officeWorker},</if>
<if test="civilServant != null">civil_servant = #{civilServant},</if>
<if test="privatePropertyOwners != null">private_property_owners = #{privatePropertyOwners},</if>
<if test="selfEmployedPerson != null">self_employed_person = #{selfEmployedPerson},</if>
<if test="otherOccupations != null">other_occupations = #{otherOccupations},</if>
<if test="huaBeiLow != null">hua_bei_low = #{huaBeiLow},</if>
<if test="huaBeiMiddle != null">hua_bei_middle = #{huaBeiMiddle},</if>
<if test="huaBeiHigh != null">hua_bei_high = #{huaBeiHigh},</if>
<if test="baiTiaoLow != null">bai_tiao_low = #{baiTiaoLow},</if>
<if test="baiTiaoMiddle != null">bai_tiao_middle = #{baiTiaoMiddle},</if>
<if test="baiTiaoHigh != null">bai_tiao_high = #{baiTiaoHigh},</if>
<if test="zhiMa != null">zhi_ma = #{zhiMa},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteMerchantById" parameterType="java.lang.Long">
delete from merchant where id = #{id}
</delete>
<delete id="deleteMerchantByIds" parameterType="java.lang.String">
delete from merchant where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
Loading…
Cancel
Save