客户关系初版

This commit is contained in:
sk1551
2021-03-02 14:51:20 +08:00
parent 89bb38b42e
commit b981e07d4e
3 changed files with 112 additions and 19 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi.project.benyi.controller;
import java.util.Date;
import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
@ -74,6 +75,7 @@ public class ByCustomerController extends BaseController {
@PostMapping
public AjaxResult add(@RequestBody ByCustomer byCustomer) {
byCustomer.setCreateUserid(SecurityUtils.getLoginUser().getUser().getUserId());
byCustomer.setCreateTime(new Date());
return toAjax(byCustomerService.insertByCustomer(byCustomer));
}

View File

@ -1,10 +1,13 @@
package com.ruoyi.project.benyi.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;
/**
* 本一-客户关系管理对象 by_customer
*
@ -127,6 +130,13 @@ public class ByCustomer extends BaseEntity {
@Excel(name = "消费项目")
private String xfxm;
/**
* 创建时间
*/
@Excel(name = "开通截至日期", width = 30, dateFormat = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createTime;
/**
* 消费价值
*/
@ -319,4 +329,13 @@ public class ByCustomer extends BaseEntity {
.append("createTime", getCreateTime())
.toString();
}
@Override
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}