Commit 72774269 by 崔彦峰

refactor(clues): 重构线索服务参数传递和数据转换逻辑

- 移除 CluesPadPageReq 中的 conversionUserId 字段
- 将请求参数封装到嵌套的 t 参数对象中
- 修改数据转换逻辑,使用 Long.parseLong 替代直接类型转换
- 确保所有数值转换的安全性和一致性
1 parent 24a7f859
...@@ -24,9 +24,6 @@ public class CluesPadPageReq extends AbstractRopRequest implements Serializable ...@@ -24,9 +24,6 @@ public class CluesPadPageReq extends AbstractRopRequest implements Serializable
@Schema(description = "销售人员ID,对应 seller_user_id") @Schema(description = "销售人员ID,对应 seller_user_id")
private String sellerUserId; private String sellerUserId;
@Schema(description = "转化用户ID(园区店),对应 conversion_user_id")
private String conversionUserId;
@Schema(description = "售商户号(4S店)") @Schema(description = "售商户号(4S店)")
private Integer sellerMerchantId; private Integer sellerMerchantId;
......
...@@ -31,10 +31,12 @@ public class CluesService { ...@@ -31,10 +31,12 @@ public class CluesService {
// 构建请求参数 // 构建请求参数
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("cluesStatus", request.getCluesStatus()); Map<String, Object> tParams = new HashMap<>();
params.put("keyword", request.getKeyword()); tParams.put("cluesStatus", request.getCluesStatus());
params.put("sellerUserId", request.getSellerUserId()); tParams.put("keyword", request.getKeyword());
params.put("sellerMerchantId", request.getSellerMerchantId()); tParams.put("sellerUserId", request.getSellerUserId());
tParams.put("sellerMerchantId", request.getSellerMerchantId());
params.put("t", tParams);
params.put("pageSize", request.getPageSize()); params.put("pageSize", request.getPageSize());
params.put("currentPage", request.getCurrentPage()); params.put("currentPage", request.getCurrentPage());
log.info("二手车线索分页查询调用服务:{},请求参数params:{}", GSCServiceConstants.GSC_VCP_PAD_FACADE, params); log.info("二手车线索分页查询调用服务:{},请求参数params:{}", GSCServiceConstants.GSC_VCP_PAD_FACADE, params);
...@@ -132,11 +134,11 @@ public class CluesService { ...@@ -132,11 +134,11 @@ public class CluesService {
*/ */
private static CluesStatusCountResp buildStatusCountResp(Map<String, Object> data) { private static CluesStatusCountResp buildStatusCountResp(Map<String, Object> data) {
CluesStatusCountResp response = new CluesStatusCountResp(); CluesStatusCountResp response = new CluesStatusCountResp();
response.setTotalCount((Long) data.get("totalCount")); response.setTotalCount(Long.parseLong(data.get("totalCount").toString()));
response.setPendingFollowCount((Long) data.get("pendingFollowCount")); response.setPendingFollowCount(Long.parseLong(data.get("pendingFollowCount").toString()));
response.setFollowingCount((Long) data.get("followingCount")); response.setFollowingCount(Long.parseLong(data.get("followingCount").toString()));
response.setTempLostCount((Long) data.get("tempLostCount")); response.setTempLostCount(Long.parseLong(data.get("tempLostCount").toString()));
response.setSuccessCount((Long) data.get("successCount")); response.setSuccessCount(Long.parseLong(data.get("successCount").toString()));
return response; return response;
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!