OMS-GW推送-企业币值
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.mhd.oms.interfaces.dto.exchangeRate;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ApiModel(description = "汇率批量推送DTO")
|
||||
public class ExchangeRateDTO {
|
||||
|
||||
@ApiModelProperty(value = "汇率ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "币种编码(ERP编码)")
|
||||
private String erpCurrCode;
|
||||
|
||||
@ApiModelProperty(value = "币种名称(ERP名称)")
|
||||
private String erpCurrName;
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.mhd.oms.interfaces.facade.exchangeRate;
|
||||
|
||||
|
||||
import com.mhd.common.core.web.domain.AjaxResult;
|
||||
import com.mhd.common.core.web.page.TableDataInfo;
|
||||
import com.mhd.oms.application.service.exchangeRate.ExchangeRateApplicationService;
|
||||
import com.mhd.oms.interfaces.dto.exchangeRate.ExchangeRateDTO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -13,6 +15,8 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static com.mhd.common.core.utils.PageUtils.startPage;
|
||||
|
||||
|
||||
@@ -34,4 +38,12 @@ public class ExchangeRateApi {
|
||||
return exchangeRateApplicationService.queryExchangeRateList(pageNum, pageSize, pushStatus, organizationId);
|
||||
}
|
||||
|
||||
@ApiOperation("批量推送汇率")
|
||||
@PostMapping("/batchPush")
|
||||
public AjaxResult batchPush(@RequestBody List<ExchangeRateDTO> exchangeRateDTOList) {
|
||||
return exchangeRateApplicationService.batchPushExchangeRate(exchangeRateDTOList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user