未符合项

This commit is contained in:
caozhen
2023-09-21 15:32:24 +08:00
parent 0343fc5da7
commit 8bc8fececd
8 changed files with 81 additions and 21 deletions
@@ -73,4 +73,6 @@ public interface ILawsEvaluationNotMetService extends IService<LawsEvaluationNot
* @return
*/
LawsEvaluationNotMet queryById(String id);
void batchClose(List<String> ids);
}
@@ -1,6 +1,7 @@
package com.jero.modules.projectLibrary.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.jero.modules.projectLibrary.entity.LawsEvaluationNotMet;
import com.jero.modules.projectLibrary.mapper.LawsEvaluationNotMetMapper;
import com.jero.modules.projectLibrary.service.ILawsEvaluationNotMetService;
@@ -115,4 +116,15 @@ public class LawsEvaluationNotMetServiceImpl extends ServiceImpl<LawsEvaluationN
public LawsEvaluationNotMet queryById(String id) {
return getById(id);
}
@Override
public void batchClose(List<String> ids) {
if (ids == null || ids.isEmpty()){
return;
}
LambdaUpdateWrapper<LawsEvaluationNotMet> wrapper = new LambdaUpdateWrapper<>();
wrapper.set(LawsEvaluationNotMet::getState, "5");
wrapper.in(LawsEvaluationNotMet::getId, ids);
update(wrapper);
}
}