中扬CRM客户关系管理系统
#
lsh
2024-04-15 13a34d2197b001799ef8f0f09e5b48af2add0926
#
8个文件已修改
48 ■■■■■ 已修改文件
src/main/java/com/zy/crm/manager/controller/CstmrController.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/manager/mapper/CstmrGradeMapper.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/manager/service/CstmrGradeService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/manager/service/impl/CstmrGradeServiceImpl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/CstmrGradeMapper.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/CstmrMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/cstmr/cstmr.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/cstmr/cstmr2.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/manager/controller/CstmrController.java
@@ -13,14 +13,8 @@
import com.core.exception.CoolException;
import com.zy.crm.common.web.BaseController;
import com.zy.crm.manager.controller.result.FollowerTableVo;
import com.zy.crm.manager.entity.Cstmr;
import com.zy.crm.manager.entity.CstmrFoll;
import com.zy.crm.manager.entity.CstmrType;
import com.zy.crm.manager.entity.Order;
import com.zy.crm.manager.service.CstmrFollService;
import com.zy.crm.manager.service.CstmrService;
import com.zy.crm.manager.service.CstmrTypeService;
import com.zy.crm.manager.service.OrderService;
import com.zy.crm.manager.entity.*;
import com.zy.crm.manager.service.*;
import com.zy.crm.manager.utils.CompanySearchUtils;
import com.zy.crm.system.entity.Dept;
import com.zy.crm.system.entity.Dic;
@@ -55,6 +49,8 @@
    private CstmrService cstmrService;
    @Autowired
    private CstmrTypeService cstmrTypeService;
    @Autowired
    private CstmrGradeService cstmrGradeService;
    @Autowired
    private DicService dicService;
    @Autowired
@@ -411,6 +407,12 @@
                throw new CoolException("第" + i + "行客户类别不合法,请重新导入");
            }
            cstmr.setCstmrType(cstmrType.getId());
            CstmrGrade cstmrGrade = cstmrGradeService.selectByName(hostId, type);
            if (null == cstmrGrade) {
                throw new CoolException("第" + i + "行客户等级不合法,请重新导入");
            }
            cstmr.setCstmrGrade(cstmrGrade.getId());
            // 客户关系
            cstmr.setRela(dataFormatter.formatCellValue(row.getCell(3)));
            // 电话
src/main/java/com/zy/crm/manager/mapper/CstmrGradeMapper.java
@@ -3,10 +3,12 @@
import com.zy.crm.manager.entity.CstmrGrade;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface CstmrGradeMapper extends BaseMapper<CstmrGrade> {
    CstmrGrade selectByName(@Param("hostId") Long hostId, @Param("name") String name);
}
src/main/java/com/zy/crm/manager/service/CstmrGradeService.java
@@ -4,5 +4,6 @@
import com.baomidou.mybatisplus.service.IService;
public interface CstmrGradeService extends IService<CstmrGrade> {
    CstmrGrade selectByName(Long hostId, String name);
}
src/main/java/com/zy/crm/manager/service/impl/CstmrGradeServiceImpl.java
@@ -8,5 +8,8 @@
@Service("cstmrGradeService")
public class CstmrGradeServiceImpl extends ServiceImpl<CstmrGradeMapper, CstmrGrade> implements CstmrGradeService {
    @Override
    public CstmrGrade selectByName(Long hostId, String name) {
        return this.baseMapper.selectByName(hostId, name);
    }
}
src/main/resources/mapper/CstmrGradeMapper.xml
@@ -18,4 +18,13 @@
    </resultMap>
    <select id="selectByName" resultMap="BaseResultMap">
        select top 1 *
        from man_cstmr_grade
        where 1=1
        and name = #{name}
        <if test="hostId != null">
            and host_id = #{hostId}
        </if>
    </select>
</mapper>
src/main/resources/mapper/CstmrMapper.xml
@@ -9,6 +9,7 @@
        <result column="dept_id" property="deptId" />
        <result column="user_id" property="userId" />
        <result column="cstmr_type" property="cstmrType" />
        <result column="cstmr_grade" property="cstmrGrade" />
        <result column="uuid" property="uuid" />
        <result column="name" property="name" />
        <result column="simple" property="simple" />
@@ -35,7 +36,6 @@
        <result column="credit_code" property="creditCode" />
        <result column="issue_time" property="issueTime" />
        <result column="company_type" property="companyType" />
        <result column="company_grade" property="companyGrade" />
        <result column="company_person" property="companyPerson" />
        <result column="company_status" property="companyStatus" />
        <result column="reg_money" property="regMoney" />
src/main/webapp/static/js/cstmr/cstmr.js
@@ -149,7 +149,7 @@
            ,{field: 'weeklyDailyReality', align: 'center',title: '行程',hide : false, toolbar: '#tbLookReality'}
            ,{field: 'remarks', align: 'left',title: '备注', hide: false, templet:function(d){return emptyShow(d.remarks)}}
            ,{field: 'cstmrType$', align: 'left',title: '客户类别', hide: false}
            ,{field: 'cstmrGrade$', align: 'left',title: '客户类别', hide: false}
            ,{field: 'cstmrGrade$', align: 'left',title: '客户等级', hide: false}
            ,{field: 'industry', align: 'left',title: '客户行业', hide: false}
            ,{field: 'productCategory', align: 'left',title: '产品类型', hide: false}
            ,{field: 'userId$', align: 'left',title: '添加人员', hide: true}
@@ -286,8 +286,8 @@
                                {type: 'numbers'}
                                // ,{field: 'weeklyDay$', align: 'center',title: '星期'}
                                ,{field: 'dailyTime$',width : 120, align: 'center',title: '日期'}
                                ,{field: 'workContent', align: 'center', title: '工作内容', edit:false}
                                ,{field: 'workPurpose', title: '工作目的', edit:false}
                                ,{field: 'workContent', align: 'center', title: '工作内容及目的', edit:false}
                                // ,{field: 'workPurpose', title: '工作目的', edit:false}
                                ,{field: 'comment', title: '评论', edit:false}
                                ,{field: 'weeklyMatter', title: '需协助事项',  edit:false}
                                // ,{field: 'dailyTime$', align: 'center',title: '日报日期'}
src/main/webapp/static/js/cstmr/cstmr2.js
@@ -149,6 +149,7 @@
            ,{field: 'weeklyDailyReality', align: 'center',title: '行程',hide : false, toolbar: '#tbLookReality'}
            ,{field: 'remarks', align: 'left',title: '备注', hide: false, templet:function(d){return emptyShow(d.remarks)}}
            ,{field: 'cstmrType$', align: 'left',title: '客户类别', hide: false}
            ,{field: 'cstmrGrade$', align: 'left',title: '客户等级', hide: false}
            ,{field: 'industry', align: 'left',title: '客户行业', hide: false}
            ,{field: 'productCategory', align: 'left',title: '产品类型', hide: false}
            ,{field: 'userId$', align: 'left',title: '添加人员', hide: true}
@@ -298,8 +299,8 @@
                                {type: 'numbers'}
                                // ,{field: 'weeklyDay$', align: 'center',title: '星期'}
                                ,{field: 'dailyTime$',width : 120, align: 'center',title: '日期'}
                                ,{field: 'workContent', align: 'center', title: '工作内容', edit:false}
                                ,{field: 'workPurpose', title: '工作目的', edit:false}
                                ,{field: 'workContent', align: 'center', title: '工作内容及目的', edit:false}
                                // ,{field: 'workPurpose', title: '工作目的', edit:false}
                                ,{field: 'comment', title: '评论', edit:false}
                                ,{field: 'weeklyMatter', title: '需协助事项',  edit:false}
                                // ,{field: 'dailyTime$', align: 'center',title: '日报日期'}