|
|
|
@ -218,6 +218,40 @@ public class BasicBussinessTypeController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取出入库明细单据类型
|
|
|
|
|
*
|
|
|
|
|
* @param bussinessTypeRequest
|
|
|
|
|
* @param bindingResult
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/orderDetail/busTypesOptimize")
|
|
|
|
|
public BaseResponse orderDetailBusTypesOptimize(FilterBussinessTypeRequest bussinessTypeRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
|
String detailType = bussinessTypeRequest.getDetailType();
|
|
|
|
|
List<BasicBussinessTypeResponse> bussinessTypeResponses = new ArrayList<>();
|
|
|
|
|
if (detailType.equals("norDetail")) {
|
|
|
|
|
} else if (detailType.equals("preDetail")) {
|
|
|
|
|
bussinessTypeRequest.setCode(Constant.INV_PRE_CODE);
|
|
|
|
|
} else if (detailType.equals("preInDetail")) {
|
|
|
|
|
bussinessTypeRequest.setCode(Constant.INV_PRE_IN_CODE);
|
|
|
|
|
}
|
|
|
|
|
bussinessTypeResponses = basicBussinessTypeService.filterJoinByInv(bussinessTypeRequest);
|
|
|
|
|
List<DictDto> reList = bussinessTypeResponses.stream().map(s-> {
|
|
|
|
|
DictDto dictDto = new DictDto(s.getAction(),s.getName());
|
|
|
|
|
return dictDto;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
|
PageInfo<DictDto> pageInfo;
|
|
|
|
|
pageInfo = new PageInfo<>(reList);
|
|
|
|
|
PageSimpleResponse<DictDto> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
pageSimpleResponse.setList(reList);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/localBusType/filterJoinByUser")
|
|
|
|
|
public BaseResponse filterJoinByUser(FilterBussinessTypeRequest bussinessTypeFilterRequest,
|
|
|
|
|