|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkankan.manage.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.manage.common.PageInfo;
|
|
|
import com.fdkankan.manage.entity.ServiceUpTip;
|
|
@@ -55,4 +56,13 @@ public class ServiceUpTipServiceImpl extends ServiceImpl<IServiceUpTipMapper, Se
|
|
|
}
|
|
|
return list.get(0);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void banOther(Integer type) {
|
|
|
+ LambdaUpdateWrapper<ServiceUpTip> wrapper = new LambdaUpdateWrapper<>();
|
|
|
+ wrapper.eq(ServiceUpTip::getType,type);
|
|
|
+ wrapper.eq(ServiceUpTip::getBanStatus,0);
|
|
|
+ wrapper.set(ServiceUpTip::getBanStatus,1);
|
|
|
+ this.update(wrapper);
|
|
|
+ }
|
|
|
}
|