فهرست منبع

驾校查询接口

小么熊🐻 3 سال پیش
والد
کامیت
74171ce9cc

+ 13 - 0
twzd-admin/src/main/java/com/miaxis/app/controller/h5/ScoreInfoController.java

@@ -152,4 +152,17 @@ public class ScoreInfoController extends BaseController {
         return Response.success(list);
     }
 
+    /**
+     * 根据userID获取最大成绩,平均成绩,预测成绩
+     */
+    @GetMapping(value = "/getScoreInfoAllByUserId")
+    @ApiOperation("根据userID获取最大成绩,平均成绩,预测成绩")
+    public Response<ScoreInfoAllDTO> getScoreInfoAllByUserId(ScoreInfoUserIdDTO scoreInfoUserIdDTO){
+        ScoreInfo scoreInfo = new ScoreInfo();
+        scoreInfo.setUserId(scoreInfoUserIdDTO.getUserId());
+        ScoreInfoAllDTO scoreInfoAllDTO = scoreInfoService.getScoreInfoAll(scoreInfo);
+        return Response.success(scoreInfoAllDTO);
+    }
+
+
 }

+ 0 - 3
twzd-admin/src/main/java/com/miaxis/pc/controller/school/SchoolInfoController.java

@@ -5,15 +5,12 @@ import com.miaxis.common.core.controller.BaseController;
 import com.miaxis.common.core.domain.Response;
 import com.miaxis.common.core.page.ResponsePageInfo;
 import com.miaxis.common.enums.BusinessTypeEnum;
-import com.miaxis.common.utils.poi.ExcelUtil;
 import com.miaxis.school.domain.SchoolInfo;
 import com.miaxis.school.service.ISchoolInfoService;
 import io.swagger.annotations.*;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
-import java.util.Arrays;
 import java.util.List;
 
 /**

+ 4 - 0
twzd-service/src/main/java/com/miaxis/score/dto/ScoreInfoPcDTO.java

@@ -30,4 +30,8 @@ public class ScoreInfoPcDTO extends BaseBusinessEntity {
     @ApiModelProperty(value = "区级")
     private String areaName;
 
+    /** 车型 */
+    @ApiModelProperty(value = "车型")
+    private String type;
+
 }

+ 2 - 0
twzd-service/src/main/resources/mapper/score/ScoreInfoMapper.xml

@@ -77,6 +77,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="areaName != null and areaName != ''"> and u.area_name like concat('%', #{areaName}, '%')</if>
             <if test="schoolName != null and schoolName != ''"> and u.school_name like concat('%', #{schoolName}, '%')</if>
             <if test="nickName != null and nickName != ''"> and u.nick_name like concat('%', #{nickName}, '%')</if>
+            <if test="nickName != null and nickName != ''"> and u.nick_name like concat('%', #{nickName}, '%')</if>
+            <if test="type != null and type != ''"> and u.type like concat('%', #{type}, '%')</if>
         </where>
         order by user_id,create_time desc
     </select>