add 法规更新记录列表查询

This commit is contained in:
liao
2023-09-12 17:35:46 +08:00
parent 2b4a154665
commit 33fb6a9d28
@@ -1,5 +1,6 @@
package com.jero.modules.laws.common.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jero.common.api.vo.Result;
import com.jero.common.aspect.annotation.AutoLog;
@@ -7,6 +8,8 @@ import com.jero.modules.laws.common.service.ILawsCommonService;
import com.jero.modules.laws.common.vo.ManyStandardSelectionBox;
import com.jero.modules.laws.common.vo.ManyStandardSelectionBoxVO;
import com.jero.modules.laws.standard.entity.LawsNodeRelation;
import com.jero.modules.laws.standard.entity.LawsUpdateRecord;
import com.jero.modules.laws.standard.service.ILawsUpdateRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@@ -16,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* @Author: liao
@@ -29,6 +33,8 @@ public class LawsCommonController {
@Autowired
private ILawsCommonService lawsCommonService;
@Autowired
private ILawsUpdateRecordService lawsUpdateRecordService;
@ApiOperation(value="多选标准弹框", notes="多选标准弹框")
@GetMapping(value = "/getManyStandardSelectionBox")
@@ -38,4 +44,14 @@ public class LawsCommonController {
return Result.OK(lawsCommonService.getManyStandardSelectionBox(selectionBoxVO, pageNo, pageSize));
}
@AutoLog(value = "法规更新记录列表查询")
@ApiOperation(value="法规更新记录列表查询", notes="法规更新记录列表查询")
@GetMapping(value = "/getUpdateRecordList")
public Result<List<LawsUpdateRecord>> getUpdateRecordList(@RequestParam("standardNumber") String standardNumber) {
LambdaQueryWrapper<LawsUpdateRecord> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(LawsUpdateRecord::getUniqueRelationFlag, standardNumber);
queryWrapper.orderByDesc(LawsUpdateRecord::getCreateTime);
return Result.OK(lawsUpdateRecordService.list(queryWrapper));
}
}