|
|
|
@ -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,
|
|
|
|
|