he2802 3 лет назад
Родитель
Сommit
17f2b4bcc8

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

@@ -400,7 +400,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
 
     private void sendPeriodSMS(UserPeriodEditBo bo) {
         if(Validator.isEmpty(bo.getGoodsId())||Validator.isEmpty(bo.getUserId())||Validator.isEmpty(bo.getGradeId())){
-            throw new CustomException("信息参数确实");
+            throw new CustomException("信息参数缺失");
         }
         String key = "Period-" + bo.getGoodsId() + "-" + bo.getUserId();
         Long value = redisCache.getCacheObject(key);

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/MajorMapper.xml

@@ -73,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="projectId != null and projectId!=0 ">
             AND t.id = #{projectId}
         </if>
-        <if test="categoryName != null and categoryName!=0 ">
+        <if test="categoryName != null and categoryName!='' ">
             AND m.category_name like concat('%', #{categoryName}, '%')
         </if>
         <if test="businessId != null and businessId!=0 ">