0325-海宁pad走访修改
This commit is contained in:
@@ -4,9 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.ibs.draw.domain.dto.grid.DrawGridCustListDTO;
|
||||
import com.ruoyi.ibs.draw.domain.entity.DrawGridCustUserUnbind;
|
||||
import com.ruoyi.ibs.draw.domain.vo.DrawGridCustVO;
|
||||
import com.ruoyi.ibs.grid.domain.entity.RegionCustUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -19,14 +17,4 @@ public interface DrawGridCustUserUnbindMapper extends BaseMapper<DrawGridCustUse
|
||||
List<DrawGridCustVO> getCustList(DrawGridCustListDTO drawGridCustListDTO);
|
||||
|
||||
List<DrawGridCustVO> getCustListByManager(DrawGridCustListDTO drawGridCustListDTO);
|
||||
|
||||
/**
|
||||
* 根据绘制网格ID查询所有客户(用于客群导入,拼接headId绕过拦截器)
|
||||
* @param gridId 绘制网格ID
|
||||
* @param headId 总行机构号前三位(用于拼接动态表名)
|
||||
* @return 客户列表
|
||||
*/
|
||||
List<RegionCustUser> selectCustByDrawGridId(@Param("gridId") Long gridId, @Param("headId") String headId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@ package com.ruoyi.ibs.draw.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ruoyi.ibs.draw.domain.entity.DrawGridShapeRelate;
|
||||
import com.ruoyi.ibs.grid.domain.entity.RegionCustUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author 吴凯程
|
||||
@@ -23,10 +23,7 @@ public interface DrawGridShapeRelateMapper extends BaseMapper<DrawGridShapeRelat
|
||||
List<DrawGridShapeRelate> selectByGridId(@Param("gridId") Long gridId);
|
||||
|
||||
/**
|
||||
* 根据网格ID查询所有客户(用于客群导入,直接拼接headId绕过拦截器)
|
||||
* @param gridId 网格ID
|
||||
* @param headId 部门代码(用于拼接动态表名)
|
||||
* @return 客户列表,包含 custId, custName, custType
|
||||
* 根据绘制网格ID查询所有客户(用于客群导入,直接拼接headId绕过拦截器)
|
||||
*/
|
||||
List<Map<String, Object>> selectCustListByGridId(@Param("gridId") Long gridId, @Param("headId") String headId);
|
||||
List<RegionCustUser> selectCustByDrawGridId(@Param("gridId") Long gridId, @Param("headId") String headId);
|
||||
}
|
||||
|
||||
@@ -56,16 +56,4 @@
|
||||
<if test="custType != null and custType != ''">AND b.cust_type = #{custType}</if>
|
||||
</select>
|
||||
|
||||
<!-- 根据绘制网格ID查询所有客户(用于客群导入,直接拼接headId绕过拦截器) -->
|
||||
<select id="selectCustByDrawGridId" resultType="com.ruoyi.ibs.grid.domain.entity.RegionCustUser">
|
||||
SELECT DISTINCT
|
||||
sc.cust_id,
|
||||
sc.cust_name,
|
||||
sc.cust_type
|
||||
FROM grid_draw_shape_relate sr
|
||||
INNER JOIN draw_shape_cust_${headId} sc ON sc.shape_id = sr.shape_id
|
||||
WHERE sr.grid_id = #{gridId}
|
||||
AND sr.delete_flag = '0'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.ibs.draw.mapper.DrawGridShapeRelateMapper">
|
||||
|
||||
<select id="selectByGridId" resultType="com.ruoyi.ibs.draw.domain.entity.DrawGridShapeRelate">
|
||||
SELECT *
|
||||
FROM grid_draw_shape_relate
|
||||
WHERE grid_id = #{gridId}
|
||||
AND delete_flag = '0'
|
||||
</select>
|
||||
|
||||
<select id="selectCustByDrawGridId" resultType="com.ruoyi.ibs.grid.domain.entity.RegionCustUser">
|
||||
SELECT DISTINCT
|
||||
sc.cust_id,
|
||||
sc.cust_name,
|
||||
sc.cust_type
|
||||
FROM grid_draw_shape_relate sr
|
||||
INNER JOIN draw_shape_cust_${headId} sc ON sc.shape_id = sr.shape_id
|
||||
WHERE sr.grid_id = #{gridId}
|
||||
AND sr.delete_flag = '0'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user