OMS-GW-企业国别
This commit is contained in:
+4
@@ -181,4 +181,8 @@ public class ErpCountryApplicationService{
|
||||
}
|
||||
erpCountryMapper.updateById(entity);
|
||||
}
|
||||
|
||||
public ErpCountry getById(Long id) {
|
||||
return erpCountryMapper.selectById(id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,9 +29,6 @@ public class ErpCountry implements Serializable {
|
||||
@ApiModelProperty("ERP国别名称")
|
||||
private String erpCountryName;
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("推送状态:1-未推送,2-推送中,3-推送成功,4-推送失败")
|
||||
private Integer pushStatus;
|
||||
|
||||
@@ -55,9 +52,6 @@ public class ErpCountry implements Serializable {
|
||||
@ApiModelProperty("创建人")
|
||||
private Long createBy;
|
||||
|
||||
@ApiModelProperty("创建人姓名")
|
||||
private String createByName;
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty("创建时间")
|
||||
|
||||
@@ -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