中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-24 12117d1f5a34eb7f33962df3d3c3006ade86ffe4
src/main/java/com/zy/crm/manager/controller/PlanController.java
@@ -11,6 +11,7 @@
import com.core.common.R;
import com.core.domain.KeyValueVo;
import com.core.exception.CoolException;
import com.zy.crm.common.model.SettleDto;
import com.zy.crm.common.web.BaseController;
import com.zy.crm.manager.controller.result.FollowerTableVo;
import com.zy.crm.manager.entity.Plan;
@@ -59,6 +60,9 @@
            return R.error("当前规划单类型已被禁用");
        }
        resultObj.put("formHtml", planType.getHtml());
        // 步骤条相关
        resultObj.put("step", plan.getSettle() == 5 ? 0 : plan.getSettle() + 1);
        return R.ok().add(resultObj);
    }
@@ -115,6 +119,7 @@
        plan.setForm(JSON.toJSONString(param));     // 自定义表单内容
        plan.setSettle(1);  // 1.开始
        plan.setSettleMsg(JSON.toJSONString(SettleDto.init(plan)));
        if (!planService.insert(plan)) {
            throw new CoolException("保持失败,请重试");
@@ -135,6 +140,7 @@
        plan.setUpdateTime(new Date());
        plan.setForm(JSON.toJSONString(param));     // 自定义表单内容
        plan.setSettleMsg(JSON.toJSONString(SettleDto.init(plan)));
        if (!planService.updateById(plan)) {
            throw new CoolException("保持失败,请重试");