客户维护增加过保时间
This commit is contained in:
parent
56f9776253
commit
5d0d6e01f8
@ -143,6 +143,8 @@
|
|||||||
:formatter="userFormat"
|
:formatter="userFormat"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="录入时间" align="center" prop="createTime" />
|
<el-table-column label="录入时间" align="center" prop="createTime" />
|
||||||
|
<el-table-column label="过保时间" align="center" prop="gbtime" />
|
||||||
|
<el-table-column label="转换跟进" align="center" prop="zhgj" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@ -380,6 +382,7 @@ export default {
|
|||||||
state: undefined,
|
state: undefined,
|
||||||
xfxm: undefined,
|
xfxm: undefined,
|
||||||
xfjz: undefined,
|
xfjz: undefined,
|
||||||
|
gbtime: undefined,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
@ -509,6 +512,7 @@ export default {
|
|||||||
xfjz: undefined,
|
xfjz: undefined,
|
||||||
createTime: undefined,
|
createTime: undefined,
|
||||||
createTime: undefined,
|
createTime: undefined,
|
||||||
|
gbtime: undefined,
|
||||||
};
|
};
|
||||||
this.diglogForm.province = "";
|
this.diglogForm.province = "";
|
||||||
this.diglogForm.city = "";
|
this.diglogForm.city = "";
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package com.ruoyi.project.benyi.controller;
|
package com.ruoyi.project.benyi.controller;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -74,8 +76,18 @@ public class ByCustomerController extends BaseController {
|
|||||||
@Log(title = "本一-客户关系管理", businessType = BusinessType.INSERT)
|
@Log(title = "本一-客户关系管理", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByCustomer byCustomer) {
|
public AjaxResult add(@RequestBody ByCustomer byCustomer) {
|
||||||
|
|
||||||
|
// 这里没写完 须将SimpleDateFormat转换为Date类型
|
||||||
|
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
Date date = new Date();
|
||||||
|
Calendar calendar = Calendar.getInstance();
|
||||||
|
calendar.setTime(date);
|
||||||
|
calendar.add(Calendar.DATE, 15);
|
||||||
|
df.format(calendar.getTime());
|
||||||
|
|
||||||
byCustomer.setCreateUserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
byCustomer.setCreateUserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||||
byCustomer.setCreateTime(new Date());
|
byCustomer.setCreateTime(date);
|
||||||
|
byCustomer.setGbtime(date);
|
||||||
// 判断电话号码是否存在
|
// 判断电话号码是否存在
|
||||||
ByCustomer byCustomer1 = new ByCustomer();
|
ByCustomer byCustomer1 = new ByCustomer();
|
||||||
byCustomer1.setLxdh(byCustomer.getLxdh());
|
byCustomer1.setLxdh(byCustomer.getLxdh());
|
||||||
|
@ -131,12 +131,19 @@ public class ByCustomer extends BaseEntity {
|
|||||||
private String xfxm;
|
private String xfxm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间gbtime
|
||||||
*/
|
*/
|
||||||
@Excel(name = "开通截至日期", width = 30, dateFormat = "yyyy-MM-dd")
|
@Excel(name = "开通截至日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过保时间
|
||||||
|
*/
|
||||||
|
@Excel(name = "开通截至日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
private Date gbtime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消费价值
|
* 消费价值
|
||||||
*/
|
*/
|
||||||
@ -327,6 +334,7 @@ public class ByCustomer extends BaseEntity {
|
|||||||
.append("xfxm", getXfxm())
|
.append("xfxm", getXfxm())
|
||||||
.append("xfjz", getXfjz())
|
.append("xfjz", getXfjz())
|
||||||
.append("createTime", getCreateTime())
|
.append("createTime", getCreateTime())
|
||||||
|
.append("gbtime", getGbtime())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,4 +346,12 @@ public class ByCustomer extends BaseEntity {
|
|||||||
public void setCreateTime(Date createTime) {
|
public void setCreateTime(Date createTime) {
|
||||||
this.createTime = createTime;
|
this.createTime = createTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Date getGbtime() {
|
||||||
|
return gbtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGbtime(Date gbtime) {
|
||||||
|
this.gbtime = gbtime;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,10 +26,11 @@
|
|||||||
<result property="xfxm" column="xfxm"/>
|
<result property="xfxm" column="xfxm"/>
|
||||||
<result property="xfjz" column="xfjz"/>
|
<result property="xfjz" column="xfjz"/>
|
||||||
<result property="createTime" column="create_time"/>
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="gbtime" column="gbtime"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectByCustomerVo">
|
<sql id="selectByCustomerVo">
|
||||||
select id, name, sflx, lxdh, wx, dy, qt, schoolname, rs, sheng, shengid, shi, shiid, khly, create_userid, bz, zhgj, state, xfxm, xfjz, create_time from by_customer
|
select id, name, sflx, lxdh, wx, dy, qt, schoolname, rs, sheng, shengid, shi, shiid, khly, create_userid, bz, zhgj, state, xfxm, xfjz, gbtime, create_time from by_customer
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByCustomerList" parameterType="ByCustomer" resultMap="ByCustomerResult">
|
<select id="selectByCustomerList" parameterType="ByCustomer" resultMap="ByCustomerResult">
|
||||||
@ -54,6 +55,8 @@
|
|||||||
<if test="state != null and state != ''">and state = #{state}</if>
|
<if test="state != null and state != ''">and state = #{state}</if>
|
||||||
<if test="xfxm != null and xfxm != ''">and xfxm = #{xfxm}</if>
|
<if test="xfxm != null and xfxm != ''">and xfxm = #{xfxm}</if>
|
||||||
<if test="xfjz != null and xfjz != ''">and xfjz = #{xfjz}</if>
|
<if test="xfjz != null and xfjz != ''">and xfjz = #{xfjz}</if>
|
||||||
|
<if test="gbtime != null and gbtime != ''">and gbtime = #{gbtime}</if>
|
||||||
|
<if test="createTime != null ">and create_time = #{createTime}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -86,6 +89,7 @@
|
|||||||
<if test="xfxm != null and xfxm != ''">xfxm,</if>
|
<if test="xfxm != null and xfxm != ''">xfxm,</if>
|
||||||
<if test="xfjz != null and xfjz != ''">xfjz,</if>
|
<if test="xfjz != null and xfjz != ''">xfjz,</if>
|
||||||
<if test="createTime != null ">create_time,</if>
|
<if test="createTime != null ">create_time,</if>
|
||||||
|
<if test="gbtime != null ">gbtime,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null ">#{id},</if>
|
<if test="id != null ">#{id},</if>
|
||||||
@ -109,6 +113,7 @@
|
|||||||
<if test="xfxm != null and xfxm != ''">#{xfxm},</if>
|
<if test="xfxm != null and xfxm != ''">#{xfxm},</if>
|
||||||
<if test="xfjz != null and xfjz != ''">#{xfjz},</if>
|
<if test="xfjz != null and xfjz != ''">#{xfjz},</if>
|
||||||
<if test="createTime != null ">#{createTime},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
||||||
|
<if test="gbtime != null ">#{gbtime},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -135,6 +140,7 @@
|
|||||||
<if test="xfxm != null and xfxm != ''">xfxm = #{xfxm},</if>
|
<if test="xfxm != null and xfxm != ''">xfxm = #{xfxm},</if>
|
||||||
<if test="xfjz != null and xfjz != ''">xfjz = #{xfjz},</if>
|
<if test="xfjz != null and xfjz != ''">xfjz = #{xfjz},</if>
|
||||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||||
|
<if test="gbtime != null ">gbtime = #{gbtime},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user