官网新增客户问题
This commit is contained in:
parent
47bc628239
commit
67ee820b88
@ -99,9 +99,11 @@ public class PsCustomController extends BaseController {
|
|||||||
add.setCustomSource("官网");
|
add.setCustomSource("官网");
|
||||||
add.setCustomLevel("2");
|
add.setCustomLevel("2");
|
||||||
add.setCreateTime(new Date());
|
add.setCreateTime(new Date());
|
||||||
|
add.setTenantId("000000");
|
||||||
|
|
||||||
|
add.setCustomName(bo.getCustomName());
|
||||||
add.setCustomMobile(bo.getCustomMobile());
|
add.setCustomMobile(bo.getCustomMobile());
|
||||||
add.setServiceType(bo.getServiceType());
|
add.setServiceType(bo.getServiceType());
|
||||||
add.setTenantId("000000");
|
|
||||||
psCustomInfoService.insertByBo(add);
|
psCustomInfoService.insertByBo(add);
|
||||||
|
|
||||||
noticeService.sendNotice(SysNoticeBo.getGonghaiInstance());
|
noticeService.sendNotice(SysNoticeBo.getGonghaiInstance());
|
||||||
@ -109,8 +111,8 @@ public class PsCustomController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
@Log(title = "getAllServiceType", businessType = BusinessType.INSERT)
|
// @Log(title = "getAllServiceType", businessType = BusinessType.INSERT)
|
||||||
@RepeatSubmit()
|
// @RepeatSubmit()
|
||||||
@GetMapping("/getAllServiceType")
|
@GetMapping("/getAllServiceType")
|
||||||
public R<Map<String, String>> getAllDictByDictType() {
|
public R<Map<String, String>> getAllDictByDictType() {
|
||||||
Map<String, String> allDictByDictType = dictService.getAllDictByDictType("contract_type");
|
Map<String, String> allDictByDictType = dictService.getAllDictByDictType("contract_type");
|
||||||
|
@ -25,24 +25,24 @@ import java.util.List;
|
|||||||
@EqualsAndHashCode
|
@EqualsAndHashCode
|
||||||
@AutoMapper(target = PsCustomInfo.class)
|
@AutoMapper(target = PsCustomInfo.class)
|
||||||
public class PsCustomInfoWebBo {
|
public class PsCustomInfoWebBo {
|
||||||
/**
|
// /**
|
||||||
* 类型 1客户列表 2黑名单 3公海
|
// * 类型 1客户列表 2黑名单 3公海
|
||||||
*/
|
// */
|
||||||
private Integer type;
|
// private Integer type;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 客户来源
|
// * 客户来源
|
||||||
*/
|
// */
|
||||||
private String customSource;
|
// private String customSource;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* 客户级别
|
// * 客户级别
|
||||||
*/
|
// */
|
||||||
private String customLevel;
|
// private String customLevel;
|
||||||
|
//
|
||||||
|
//
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
|
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
|
||||||
private Date createTime;
|
// private Date createTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 服务类别
|
* 服务类别
|
||||||
@ -55,4 +55,9 @@ public class PsCustomInfoWebBo {
|
|||||||
@Length(max = 500)
|
@Length(max = 500)
|
||||||
private String customMobile;
|
private String customMobile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户姓名
|
||||||
|
*/
|
||||||
|
private String customName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -264,7 +264,11 @@ public class PsCustomInfoServiceImpl implements IPsCustomInfoService {
|
|||||||
//客户经理就是登录用户
|
//客户经理就是登录用户
|
||||||
add.setCustomManager(LoginHelper.getUserId());
|
add.setCustomManager(LoginHelper.getUserId());
|
||||||
add.setBlack(CommonStatusEnum.N.getCode());
|
add.setBlack(CommonStatusEnum.N.getCode());
|
||||||
|
|
||||||
add.setCustomStatus(CustomerStatusEnum.INIT.getCode());
|
add.setCustomStatus(CustomerStatusEnum.INIT.getCode());
|
||||||
|
if (bo.getType() == 3){
|
||||||
|
add.setCustomStatus(CustomerStatusEnum.PUBLIC.getCode());
|
||||||
|
}
|
||||||
add.setAcceptDate(new Date());
|
add.setAcceptDate(new Date());
|
||||||
boolean flag = baseMapper.insert(add) > 0;
|
boolean flag = baseMapper.insert(add) > 0;
|
||||||
if(CollectionUtils.isNotEmpty(bo.getPriceBos())){
|
if(CollectionUtils.isNotEmpty(bo.getPriceBos())){
|
||||||
|
Loading…
Reference in New Issue
Block a user