|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.glxp.api.controller.basic;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
@ -91,11 +92,11 @@ public class BasicBusTypeChangeController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/basic/bustype/change/delete")
|
|
|
|
|
public BaseResponse delBussinessType(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|
|
public BaseResponse delBussinessType(@RequestBody @Valid DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
if (deleteRequest != null) {
|
|
|
|
|
if (deleteRequest != null && StrUtil.isNotBlank(deleteRequest.getId())) {
|
|
|
|
|
basicBusTypeChangeService.deleteById(deleteRequest.getId());
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error(999, "参数错误");
|
|
|
|
|