新增小程序获取往来单位接口

master
anthonywj 2 years ago
parent 15e44b7b3d
commit 6d817bf6c9

@ -55,6 +55,28 @@ public class BasicCorpController {
return ResultVOUtils.success(pageSimpleResponse);
}
@GetMapping("/udiwms/basic/unit/app/filter")
public BaseResponse filterAppBasicUnit(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest,
BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
if (basicUnitMaintainFilterRequest.getCompanyIdFk() == null)
return ResultVOUtils.error(500, "企业ID不能为空");
List<BasicCorpEntity> basicUnitMaintainEntities;
basicUnitMaintainEntities = basicUnitMaintainService.filterList(basicUnitMaintainFilterRequest);
PageInfo<BasicCorpEntity> pageInfo = new PageInfo<>(basicUnitMaintainEntities);
PageSimpleResponse<BasicCorpEntity> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(basicUnitMaintainEntities);
return ResultVOUtils.success(pageSimpleResponse);
}
@AuthRuleAnnotation("")
@PostMapping("/udiwms/basic/unit/maintain/save")
public BaseResponse save(@RequestBody @Valid BasicCorpEntity basicUnitMaintainSaveRequest,

@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel("基本单位维护过滤请求")
@Data
public class BasicUnitMaintainFilterRequest extends ListPageRequest {
@ -44,5 +45,8 @@ public class BasicUnitMaintainFilterRequest extends ListPageRequest {
@ApiModelProperty(value = "最后更新时间")
private String lastUpdateTime;
@ApiModelProperty(value = "第三方公司实体")
List<BasicErpUnitsResponse>thrCorpEntities;
List<BasicErpUnitsResponse> thrCorpEntities;
@ApiModelProperty(value = "企业ID")
private Long companyIdFk;
}

Loading…
Cancel
Save