微调
This commit is contained in:
@@ -92,4 +92,11 @@ public interface IAdPlanService extends IService<AdPlan> {
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, String>> getBigTestItem(String planId);
|
||||
|
||||
/**
|
||||
* 修改计划状态
|
||||
* @param planId
|
||||
* @return
|
||||
*/
|
||||
boolean updateTestState(String planId);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njcn.common.pojo.enums.common.DataStateEnum;
|
||||
@@ -329,6 +330,13 @@ public class AdPlanServiceImpl extends ServiceImpl<AdPlanMapper, AdPlan> impleme
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateTestState(String planId) {
|
||||
return this.update(new LambdaUpdateWrapper<AdPlan>()
|
||||
.set(AdPlan::getTestState,CheckStateEnum.CHECKING.getValue())
|
||||
.eq(AdPlan::getId,planId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 逆向可视化
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user