客户关系初版
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user