同步客商数据BUG修改

This commit is contained in:
秦鸿展
2026-06-11 10:46:33 +08:00
parent 10a18545f8
commit b5f5f27b84
4 changed files with 60 additions and 15 deletions
@@ -19,7 +19,6 @@ import com.mhd.common.security.service.TokenService;
import com.mhd.user.application.service.UserShipperMasterDataSyncService;
import com.mhd.user.interfaces.dto.updateDTO.SettlementInfoUpdateDTO;
import com.mhd.user.interfaces.vo.SettlementInfoQueryVo;
import com.mhd.user.interfaces.vo.ShipperMasterDataSyncResultVo;
import com.mhd.user.interfaces.vo.ShipperMasterDataSyncTimeVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -287,11 +286,11 @@ public class UserShipperAPI extends BaseController {
@PostMapping("/syncMasterData")
public AjaxResult syncMasterData() {
try {
ShipperMasterDataSyncResultVo result = userShipperMasterDataSyncService.syncMasterData();
return AjaxResult.success("同步完成", result);
userShipperMasterDataSyncService.syncMasterData();
return AjaxResult.success("同步任务已提交,请通过查询同步状态接口获取进度");
} catch (Exception e) {
log.error("同步主数据失败", e);
return AjaxResult.error("同步主数据失败:" + e.getMessage());
log.error("提交同步主数据任务失败", e);
return AjaxResult.error("提交同步主数据任务失败:" + e.getMessage());
}
}
@@ -17,4 +17,10 @@ public class ShipperMasterDataSyncTimeVo {
@ApiModelProperty("MDM增量水位时间")
private String lastModifyRecordTime;
@ApiModelProperty("同步状态:0-同步中 1-成功 2-失败")
private Integer syncStatus;
@ApiModelProperty("同步结果摘要")
private String syncMessage;
}