未符合项
This commit is contained in:
+2
@@ -73,4 +73,6 @@ public interface ILawsEvaluationNotMetService extends IService<LawsEvaluationNot
|
||||
* @return
|
||||
*/
|
||||
LawsEvaluationNotMet queryById(String id);
|
||||
|
||||
void batchClose(List<String> ids);
|
||||
}
|
||||
|
||||
+12
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user