|
@@ -38,13 +38,9 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @param dpr 数据权限
|
|
|
* @return 分页查询结果
|
|
|
*/
|
|
|
- IPage<CrmServiceResult> findServiceScopePage(@Param("iPage") Page<SysLogResult> iPage,
|
|
|
- @Param("serviceUnitId") Long serviceUnitId,
|
|
|
- @Param("city") String city,
|
|
|
- @Param("productType") ProductTypeEnum productType,
|
|
|
- @Param("customName") String customName,
|
|
|
- @Param("bindStatus") Boolean bindStatus,
|
|
|
- @Param("dpr") DataPermissionDto dpr);
|
|
|
+ IPage<CrmServiceResult> findServiceScopePage(@Param("iPage") Page<SysLogResult> iPage, @Param("serviceUnitId") Long serviceUnitId,
|
|
|
+ @Param("city") String city, @Param("productType") ProductTypeEnum productType, @Param("customName") String customName,
|
|
|
+ @Param("bindStatus") Boolean bindStatus, @Param("dpr") DataPermissionDto dpr);
|
|
|
|
|
|
/**
|
|
|
* 服务范围管理派单分页查询
|
|
@@ -57,13 +53,9 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @param dpr 数据权限
|
|
|
* @return 分页查询结果
|
|
|
*/
|
|
|
- List<CrmServiceResult> findServiceScopeList(@Param("serviceUnitId") Long serviceUnitId,
|
|
|
- @Param("city") String city,
|
|
|
- @Param("productType") ProductTypeEnum productType,
|
|
|
- @Param("customName") String customName,
|
|
|
- @Param("bindStatus") Boolean bindStatus,
|
|
|
- @Param("dpr") DataPermissionDto dpr);
|
|
|
-
|
|
|
+ List<CrmServiceResult> findServiceScopeList(@Param("serviceUnitId") Long serviceUnitId, @Param("city") String city,
|
|
|
+ @Param("productType") ProductTypeEnum productType, @Param("customName") String customName, @Param("bindStatus") Boolean bindStatus,
|
|
|
+ @Param("dpr") DataPermissionDto dpr);
|
|
|
|
|
|
/**
|
|
|
* 服务范围管理-未绑定派单分页查询
|
|
@@ -77,13 +69,9 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @param endTime 派单时间 - 截止
|
|
|
* @return 分页查询结果
|
|
|
*/
|
|
|
- IPage<CrmServiceResult> findUnbindOrderPage(@Param("iPage") Page<SysLogResult> iPage,
|
|
|
- @Param("crmUserId") Long crmUserId,
|
|
|
- @Param("productType") ProductTypeEnum productType,
|
|
|
- @Param("customName") String customName,
|
|
|
- @Param("crmNo") String crmNo,
|
|
|
- @Param("startTime") Long startTime,
|
|
|
- @Param("endTime") Long endTime);
|
|
|
+ IPage<CrmServiceResult> findUnbindOrderPage(@Param("iPage") Page<SysLogResult> iPage, @Param("crmUserId") Long crmUserId,
|
|
|
+ @Param("productType") ProductTypeEnum productType, @Param("customName") String customName, @Param("crmNo") String crmNo,
|
|
|
+ @Param("startTime") Long startTime, @Param("endTime") Long endTime);
|
|
|
|
|
|
/**
|
|
|
* 根据服务单元id集合查询派单部分信息
|
|
@@ -100,9 +88,11 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @return
|
|
|
*/
|
|
|
|
|
|
- IPage<TBCrmResult> query(IPage<Map> iPage, @Param("serviceId") Long serviceId, @Param("isBind") Boolean isBind, @Param("leadId") Long leadId, @Param("crmUserId") Long crmUserId, @Param("type") String type, @Param("custom") String custom, @Param("crmNo") String crmNo, @Param("startTime") Long startTime, @Param("endTime") Long endTime);
|
|
|
+ IPage<TBCrmResult> query(IPage<Map> iPage, @Param("serviceId") Long serviceId, @Param("isBind") Boolean isBind, @Param("leadId") Long leadId, @Param("crmUserId") Long crmUserId, @Param("type") String type,
|
|
|
+ @Param("custom") String custom, @Param("crmNo") String crmNo, @Param("startTime") Long startTime, @Param("endTime") Long endTime);
|
|
|
|
|
|
- int count(@Param("serviceId") Long serviceId, @Param("isBind") Boolean isBind, @Param("leadId") Long leadId, @Param("crmUserId") Long crmUserId, @Param("type") String type, @Param("custom") String custom, @Param("crmNo") String crmNo, @Param("startTime") Long startTime, @Param("endTime") Long endTime);
|
|
|
+ int count(@Param("serviceId") Long serviceId, @Param("isBind") Boolean isBind, @Param("leadId") Long leadId, @Param("crmUserId") Long crmUserId, @Param("type") String type, @Param("custom") String custom,
|
|
|
+ @Param("crmNo") String crmNo, @Param("startTime") Long startTime, @Param("endTime") Long endTime);
|
|
|
|
|
|
/**
|
|
|
* 根据sopNo查询派单项目信息
|
|
@@ -135,8 +125,16 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @param userArchivesId 工程师档案id
|
|
|
* @return 被占用的派单
|
|
|
*/
|
|
|
- List<TBCrm> findOccupiedCrm(@Param("userId") Long userId,
|
|
|
- @Param("userArchivesId") Long userArchivesId);
|
|
|
+ List<TBCrm> findOccupiedCrm(@Param("userId") Long userId, @Param("userArchivesId") Long userArchivesId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询工程师正在哪个派单上
|
|
|
+ *
|
|
|
+ * @param userId 工程师用户id
|
|
|
+ * @param userArchivesId 工程师档案id
|
|
|
+ * @return 被占用的派单
|
|
|
+ */
|
|
|
+ List<TBCrm> findAllCrm(@Param("userId") Long userId, @Param("userArchivesId") Long userArchivesId);
|
|
|
|
|
|
/**
|
|
|
* 根据绑定的服务单元id和客户地址查询符合条件的派单
|
|
@@ -146,7 +144,6 @@ public interface TBCrmMapper extends BaseMapper<TBCrm> {
|
|
|
* @param city 城市
|
|
|
* @return 派单集合
|
|
|
*/
|
|
|
- List<TBCrm> findByTBCrmListByServiceUnitIdAndAddress(@Param("serviceUnitId") Long serviceUnitId,
|
|
|
- @Param("province") String province,
|
|
|
- @Param("city") String city);
|
|
|
+ List<TBCrm> findByTBCrmListByServiceUnitIdAndAddress(@Param("serviceUnitId") Long serviceUnitId, @Param("province") String province,
|
|
|
+ @Param("city") String city);
|
|
|
}
|