src/main/java/com/nathan/crm/service/CusDevPlanService.java
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.nathan.crm.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.nathan.base.BaseService;
import com.nathan.crm.dao.CusDevPlanMapper;
import com.nathan.crm.dao.SaleChanceMapper;
import com.nathan.crm.query.CusDevPlanQuery;
import com.nathan.crm.utils.AssertUtil;
import com.nathan.crm.vo.CusDevPlan;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/*
客户开发计划业务层
*/
@Service
public class CusDevPlanService extends BaseService<CusDevPlan,Integer> {
@Resource
private CusDevPlanMapper cusDevPlanMapper;
@Resource
private SaleChanceMapper saleChanceMapper;
/*
多条件查询客户开发计划
*/
public Map<String,Object> queryCusDevPlanByParams(CusDevPlanQuery cusDevPlanQuery){
Map<String,Object> map = new HashMap<>();
//开启分页
PageHelper.startPage(cusDevPlanQuery.getPage(),cusDevPlanQuery.getLimit());
PageInfo<CusDevPlan> pageInfo = new PageInfo<>(cusDevPlanMapper.queryCusDevPlanByParams(cusDevPlanQuery));
map.put("code",0);
map.put("msg","success");
map.put("count",pageInfo.getTotal());
map.put("data",pageInfo.getList());
return map;
}
/*
添加客户开发计划项数据
1。参数校验
营销机会ID 非空,数据存在
计划项内容 非空
计划时间 非空
2.设置参数的默认值
是否有效 默认有效
创建时间 系统当前时间
修改时间 系统当前时间
3。执行添加操作,判断受影响的行数
*/
后面还有 64 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。