Browse Source

1.0.3,优化

xiaofei 2 years ago
parent
commit
b73df3879d

+ 1 - 1
paper-library-business/src/main/java/com/qmth/paper/library/business/service/impl/PaperLibraryServiceImpl.java

@@ -388,7 +388,7 @@ public class PaperLibraryServiceImpl extends ServiceImpl<PaperLibraryMapper, Pap
                 throw ExceptionResultEnum.ERROR.exception("不支持的识别方式");
             }
         } catch (Exception e) {
-            throw ExceptionResultEnum.ERROR.exception("识别异常");
+            throw ExceptionResultEnum.ERROR.exception("识别异常"+ e.getMessage());
         } finally {
             try {
                 FileUtils.forceDelete(file);

+ 1 - 1
paper-library-business/src/main/resources/mapper/PaperLibraryMapper.xml

@@ -152,7 +152,7 @@
                 and bs.school_id = #{schoolId}
             </if>
             <if test="param != null and param != ''">
-                and bs.student_code like  concat('%', #{param}, '%')
+                and (bs.student_code like concat('%', #{param}, '%') or bs.student_name like concat('%', #{param}, '%'))
             </if>
         </where>
     </select>