|
|
@ -2,7 +2,6 @@ package com.glxp.udi.admin.controller.basic;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
|
|
|
import com.glxp.udi.admin.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.udi.admin.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.udi.admin.common.res.BaseResponse;
|
|
|
|
import com.glxp.udi.admin.common.res.BaseResponse;
|
|
|
|
import com.glxp.udi.admin.constant.Constant;
|
|
|
|
import com.glxp.udi.admin.constant.Constant;
|
|
|
@ -13,7 +12,6 @@ import com.glxp.udi.admin.req.basic.BussinessLocalTypeFilterRequest;
|
|
|
|
import com.glxp.udi.admin.req.basic.BussinessTypeFilterRequest;
|
|
|
|
import com.glxp.udi.admin.req.basic.BussinessTypeFilterRequest;
|
|
|
|
import com.glxp.udi.admin.req.info.DeleteRequest;
|
|
|
|
import com.glxp.udi.admin.req.info.DeleteRequest;
|
|
|
|
import com.glxp.udi.admin.res.PageSimpleResponse;
|
|
|
|
import com.glxp.udi.admin.res.PageSimpleResponse;
|
|
|
|
import com.glxp.udi.admin.res.basic.BussinessTypResponse;
|
|
|
|
|
|
|
|
import com.glxp.udi.admin.service.auth.AuthAdminService;
|
|
|
|
import com.glxp.udi.admin.service.auth.AuthAdminService;
|
|
|
|
import com.glxp.udi.admin.service.auth.CustomerService;
|
|
|
|
import com.glxp.udi.admin.service.auth.CustomerService;
|
|
|
|
import com.glxp.udi.admin.service.basic.BussinessTypeService;
|
|
|
|
import com.glxp.udi.admin.service.basic.BussinessTypeService;
|
|
|
@ -91,21 +89,6 @@ public class BussinessTypeController {
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/udiwms/bussinessType/udimsFilter")
|
|
|
|
|
|
|
|
public BaseResponse udimsFilter(BussinessTypeFilterRequest bussinessTypeFilterRequest, BindingResult bindingResult) {
|
|
|
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
bussinessTypeFilterRequest.setSpUse(true);
|
|
|
|
|
|
|
|
Page<BussinessTypResponse> page = bussinessTypeService.filterJoinList(bussinessTypeFilterRequest);
|
|
|
|
|
|
|
|
PageSimpleResponse<BussinessTypResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
|
|
|
pageSimpleResponse.setTotal(page.getTotal());
|
|
|
|
|
|
|
|
pageSimpleResponse.setList(page.getRecords());
|
|
|
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
@PostMapping("/udiwms/bussinessType/delete")
|
|
|
|
@PostMapping("/udiwms/bussinessType/delete")
|
|
|
|
public BaseResponse deleteBussinessType(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|
public BaseResponse deleteBussinessType(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
|
|
|
|