|
@@ -4,7 +4,10 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseBusiness;
|
|
|
+import com.zhongzheng.modules.course.domain.CoursePhotoLog;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamUserApplyVo;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.grade.domain.ClassGradeUser;
|
|
@@ -85,6 +88,7 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
|
|
|
lqw.eq(bo.getSendTime() != null, InformUser::getSendTime, bo.getSendTime());
|
|
|
lqw.eq(bo.getSendStatus() != null, InformUser::getSendStatus, bo.getSendStatus());
|
|
|
lqw.eq(bo.getReceiptStatus() != null, InformUser::getReceiptStatus, bo.getReceiptStatus());
|
|
|
+ lqw.eq(bo.getStatus() != null, InformUser::getStatus, bo.getStatus());
|
|
|
lqw.eq( InformUser::getSendStatus, 1);
|
|
|
lqw.in( bo.getSystemStatusList() != null,InformUser::getSystemStatus, bo.getSystemStatusList());
|
|
|
lqw.orderByDesc(InformUser::getSendTime);
|
|
@@ -235,4 +239,23 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 清除用户系统通知
|
|
|
+ * @param bo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Boolean removeAll(InformUserEditBo bo) {
|
|
|
+ if(Validator.isEmpty(bo.getUserId())){
|
|
|
+ throw new CustomException("参数错误");
|
|
|
+ }
|
|
|
+ LambdaUpdateWrapper<InformUser> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(InformUser::getUserId, bo.getUserId());
|
|
|
+ objectLambdaUpdateWrapper.eq(InformUser::getSendStatus, 1);
|
|
|
+ objectLambdaUpdateWrapper.set(InformUser::getStatus, 0);
|
|
|
+ objectLambdaUpdateWrapper.set(InformUser::getUpdateTime,DateUtils.getNowTime());
|
|
|
+ this.update(null, objectLambdaUpdateWrapper);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|