OMS-GW-企业国别
This commit is contained in:
@@ -5,6 +5,7 @@ import com.mhd.common.core.web.controller.BaseController;
|
||||
import com.mhd.common.core.web.domain.AjaxResult;
|
||||
import com.mhd.common.core.web.page.TableDataInfo;
|
||||
import com.mhd.oms.application.service.erpCountry.ErpCountryApplicationService;
|
||||
import com.mhd.oms.domain.erpCountry.entity.ErpCountry;
|
||||
import com.mhd.oms.interfaces.dto.erpCountry.ErpCountryDTO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -59,4 +60,14 @@ public class ErpCountryApi extends BaseController{
|
||||
return erpCountryApplicationService.batchPush(dtoList);
|
||||
}
|
||||
|
||||
@ApiOperation("获取企业国别详情")
|
||||
@GetMapping("/getInfo")
|
||||
public AjaxResult getInfo(Long id) {
|
||||
if (id == null) {
|
||||
return AjaxResult.error("ID不能为空");
|
||||
}
|
||||
ErpCountry erpCountry = erpCountryApplicationService.getById(id);
|
||||
return AjaxResult.success(erpCountry);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user