liurunyu
2023-11-16 c889621e732862353911ecc1049dc44f0c592db9
pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
@@ -23,10 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Objects;
@@ -58,9 +55,11 @@
                            schema = @Schema(implementation = BaUser.class))}
            )
    })
    @PostMapping(path = "some")
    @PostMapping(path = "some", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    @SsoAop("-1")
    public BaseResponse<QueryResultVo<List<BaUser>>> some(QueryVo vo){
    //如果前端请求数据是json,则要加上注解@RequestBody
    //public BaseResponse<QueryResultVo<List<BaUser>>> some(@RequestBody @Parameter(description = "查询form表单数据", required = true) @Valid QueryVo vo){
    public BaseResponse<QueryResultVo<List<BaUser>>> some(@Parameter(description = "查询form表单数据", required = true) @Valid QueryVo vo){
        try {
            QueryResultVo<List<BaUser>> res = this.sv.selectSome(vo) ;
            return BaseResponseUtils.buildSuccess(res);