|
|
|
@ -9,6 +9,7 @@ import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.ConstantType;
|
|
|
|
|
import com.glxp.api.controller.BaseController;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.req.basic.BusNoUserRequest;
|
|
|
|
@ -366,4 +367,40 @@ public class BasicBussinessTypeController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/busType/change/origin")
|
|
|
|
|
public BaseResponse changeOrigins(FilterBussinessTypeRequest bussinessTypeFilterRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
bussinessTypeFilterRequest.setEnable(true);
|
|
|
|
|
|
|
|
|
|
List<BasicBussinessTypeResponse> bussinessTypeEntities;
|
|
|
|
|
bussinessTypeEntities = basicBussinessTypeService.filterList(bussinessTypeFilterRequest);
|
|
|
|
|
PageSimpleResponse<BasicBussinessTypeResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setList(bussinessTypeEntities);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/udiwms/busType/change/target")
|
|
|
|
|
public BaseResponse changeTarget(FilterBussinessTypeRequest bussinessTypeFilterRequest,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
bussinessTypeFilterRequest.setEnable(true);
|
|
|
|
|
bussinessTypeFilterRequest.setMainAction(ConstantType.TYPE_PUT);
|
|
|
|
|
List<BasicBussinessTypeResponse> bussinessTypeEntities;
|
|
|
|
|
bussinessTypeEntities = basicBussinessTypeService.filterList(bussinessTypeFilterRequest);
|
|
|
|
|
PageSimpleResponse<BasicBussinessTypeResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setList(bussinessTypeEntities);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|