浏览代码

callback

master
joe 4 年前
父节点
当前提交
ad1ee433f6
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
  1. 4
    0
      crm-jr-api/src/main/java/io/renren/controller/CallBackController.java

+ 4
- 0
crm-jr-api/src/main/java/io/renren/controller/CallBackController.java 查看文件



import java.util.Date; import java.util.Date;


import io.renren.common.constant.Constant;
import io.renren.common.exception.ErrorCode; import io.renren.common.exception.ErrorCode;
import io.renren.dto.CustomersDTO; import io.renren.dto.CustomersDTO;
import io.renren.entity.CustomersEntity; import io.renren.entity.CustomersEntity;
if(null == customers || null == customers.getCompanyId()) { if(null == customers || null == customers.getCompanyId()) {
return new Result<String>().error(ErrorCode.CUSTOMER_NOT_FOUND,"客户id不正确"); return new Result<String>().error(ErrorCode.CUSTOMER_NOT_FOUND,"客户id不正确");
} }
dto.setCompanyId(customers.getCompanyId());
dto.setCreateDate(new Date()); dto.setCreateDate(new Date());
dto.setIsPush(Constant.PushStatus.UN_PUSH.getValue());
dto.setStatus(Constant.Status.ENABLE.getValue());
callBackService.save(dto); callBackService.save(dto);
return new Result<String>().pageOk(ErrorCode.SUCCESS_CODE,"添加成功"); return new Result<String>().pageOk(ErrorCode.SUCCESS_CODE,"添加成功");
} }

正在加载...
取消
保存