Bladeren bron

feat:长三角比赛

Joburgess 5 jaren geleden
bovenliggende
commit
2e688ec364

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentCompetitionMapper.xml

@@ -132,7 +132,7 @@
 				AND is_show_=#{isShow}
 			</if>
 			<if test="search!=null and search!=''">
-				AND (age_=#{search} OR username_ LIKE CONCAT('%', #search), '%') OR id_card_no_ LIKE CONCAT('%', #search), '%')
+				AND (CAST(age_ AS CHAR)=#{search} OR username_ LIKE CONCAT('%', #{search}, '%') OR id_card_no_ LIKE CONCAT('%', #{search}, '%'))
 			</if>
 		</where>
 	</sql>

+ 1 - 1
mec-student/src/main/java/com/ym/mec/student/controller/StudentCompetitionController.java

@@ -50,7 +50,7 @@ public class StudentCompetitionController extends BaseController {
         return succeed();
     }
 
-    @ApiOperation(value = "新增参赛作品")
+    @ApiOperation(value = "检测学生是否已有上传作品")
     @GetMapping("/checkIsUpload")
     public HttpResponseResult<StudentCompetition> checkIsUpload(){
         SysUser sysUser = sysUserFeignService.queryUserInfo();