fix: 不符合项库导出

This commit is contained in:
2024-07-01 13:38:38 +08:00
parent d94d9c6852
commit b59318227b
3 changed files with 5 additions and 2 deletions
@@ -63,7 +63,7 @@ public class LawsEvaluationNotMetController extends JeroController<LawsEvaluatio
@ApiOperation(value="法规符合性评估库-不符合项库-批量关闭", notes="法规符合性评估库-不符合项库-批量关闭")
@PostMapping(value = "/batchClose")
public Result<T> batchClose(@RequestBody LawsEvaluationNotMetLibrary lawsEvaluationNotMet) {
String ids = lawsEvaluationNotMet.getIds();
String ids = lawsEvaluationNotMet.getSelections();
if (StringUtils.isEmpty(ids)){
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
}
@@ -236,7 +236,7 @@ public class LawsEvaluationNotMetLibrary implements Serializable {
*/
@TableField(exist = false)
@ApiModelProperty(value = "关闭用主键ids")
private String ids;
private String selections;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@@ -56,6 +56,9 @@ public class LawsEvaluationNotMetLibraryServiceImpl extends ServiceImpl<LawsEval
"nm.rectify_status", lawsEvaluationNotMet.getRectifyStatus());
queryWrapper.like(StringUtils.isNotBlank(lawsEvaluationNotMet.getPcrNo()),
"nm.pcr_no", lawsEvaluationNotMet.getPcrNo());
if (StringUtils.isNotBlank(lawsEvaluationNotMet.getSelections())) {
queryWrapper.in("nm.id", Arrays.asList(lawsEvaluationNotMet.getSelections().split(",")));
}
queryWrapper.orderByDesc("nm.create_time");
Page<LawsEvaluationNotMetLibrary> page = new Page<>(pageNo, pageSize);
return notMetMapper.pageList(page, queryWrapper, lawsEvaluationNotMet);