增加状态更新接口客户的状态可以是线索高一项第1项客户
This commit is contained in:
@@ -6,6 +6,7 @@ import com.rj.common.AudioManagementConstants;
|
||||
import com.rj.common.DataEnrichmentUtil;
|
||||
import com.rj.dto.CustomerPhotoPreviewResult;
|
||||
import com.rj.dto.CustomerPhotoUploadResult;
|
||||
import com.rj.dto.CustomerStageUpdateResult;
|
||||
import com.rj.dto.NearbyMerchantSearchResult;
|
||||
import com.rj.entity.AudioManagement;
|
||||
import com.rj.entity.CustomerManagement;
|
||||
@@ -335,6 +336,24 @@ public class CustomerManagementController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据客户 ID 更新阶段(stage)
|
||||
*/
|
||||
@PatchMapping("/updateStage")
|
||||
@Operation(summary = "更新客户阶段", description = "根据客户 ID 更新 stage 字段")
|
||||
public ResponseEntity<Map<String, Object>> updateStage(
|
||||
@Parameter(description = "客户ID", required = true) @RequestParam String id,
|
||||
@Parameter(description = "阶段", required = true) @RequestParam String stage) {
|
||||
CustomerStageUpdateResult updateResult = customerManagementService.updateCustomerStage(id, stage);
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("success", updateResult.isSuccess());
|
||||
result.put("message", updateResult.getMessage());
|
||||
if (updateResult.getCustomer() != null) {
|
||||
result.put("data", updateResult.getCustomer());
|
||||
}
|
||||
return ResponseEntity.status(updateResult.getHttpStatus()).body(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID删除客户
|
||||
*/
|
||||
@@ -487,7 +506,7 @@ public class CustomerManagementController {
|
||||
audio.setSalesPhone(customer.getSalesPhone());
|
||||
audio.setDealershipId(customer.getDealershipId());
|
||||
audio.setDealershipName(customer.getDealershipName());
|
||||
audio.setIntentionLevel(customer.getIntendedModel());
|
||||
audio.setIntentionLevel(customer.getStage());
|
||||
audio.setRemarks(customer.getDetailedAddress());
|
||||
audio.setInfoCarddescription(customer.getInfoCard());
|
||||
audio.setCompanyType(customer.getCustomerSource());
|
||||
|
||||
Reference in New Issue
Block a user