feat(个人中心、新旧版本比对): 接口排序
This commit is contained in:
+17
-3
@@ -6,7 +6,10 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.constant.enums.LanguageEnum;
|
||||
@@ -17,14 +20,13 @@ import com.jero.generater.modules.online.cgform.entity.OnlCgformField;
|
||||
import com.jero.generater.modules.online.cgform.service.impl.OnlCgformFieldServiceImpl;
|
||||
import com.jero.modules.compare.entity.SarFileCompareDetailVO;
|
||||
import com.jero.modules.compare.entity.SarFileCompareInfo;
|
||||
import com.jero.modules.compare.service.ISarFileCompareInfoService;
|
||||
import com.jero.modules.compare.enums.ReleaseConditionEnum;
|
||||
import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.modules.compare.service.ISarFileCompareInfoService;
|
||||
import com.jero.modules.laws.standard.entity.LawsDomesticStandard;
|
||||
import com.jero.modules.laws.standard.entity.LawsEnterpriseStandard;
|
||||
import com.jero.modules.laws.standard.entity.LawsOverseasStandard;
|
||||
import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
||||
import com.jero.modules.laws.standard.service.ILawsDomesticStandardService;
|
||||
import com.jero.modules.laws.standard.service.ILawsEnterpriseStandardService;
|
||||
import com.jero.modules.laws.standard.service.ILawsOverseasStandardService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import com.jero.modules.system.util.MyStringUtils;
|
||||
@@ -56,6 +58,7 @@ import java.util.stream.Collectors;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "文档对比信息表")
|
||||
@ApiSupport(order = 306)
|
||||
@RestController
|
||||
@RequestMapping("/compare/sarFileCompareInfo")
|
||||
@Slf4j
|
||||
@@ -80,6 +83,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-分页列表查询")
|
||||
@ApiOperation(value = "文档对比信息表-分页列表查询", notes = "文档对比信息表-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
@ApiOperationSupport(order = 1)
|
||||
public Result<?> queryPageList(@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
@RequestParam(name = "cut", defaultValue = "cn") String cut,
|
||||
@@ -256,6 +260,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-列表查询")
|
||||
@ApiOperation(value = "文档对比信息表-列表查询", notes = "文档对比信息表-列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
public Result<List<SarFileCompareInfo>> queryList() {
|
||||
List<SarFileCompareInfo> list = sarFileCompareInfoService.queryList();
|
||||
return Result.OK(list);
|
||||
@@ -270,6 +275,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-添加")
|
||||
@ApiOperation(value = "文档对比信息表-添加", notes = "文档对比信息表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
@ApiOperationSupport(order = 3)
|
||||
public Result<?> add(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
||||
sarFileCompareInfoService.add(sarFileCompareInfo);
|
||||
return Result.OK("添加成功!");
|
||||
@@ -284,6 +290,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-编辑")
|
||||
@ApiOperation(value = "文档对比信息表-编辑", notes = "文档对比信息表-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
@ApiOperationSupport(order = 4)
|
||||
public Result<?> edit(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
||||
sarFileCompareInfoService.editById(sarFileCompareInfo);
|
||||
return Result.OK("编辑成功!");
|
||||
@@ -296,6 +303,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-通过id删除")
|
||||
@ApiOperation(value = "文档对比信息表-通过id删除", notes = "文档对比信息表-通过id删除")
|
||||
@PostMapping(value = "/delete")
|
||||
@ApiOperationSupport(order = 5)
|
||||
public Result<?> delete(@RequestBody JSONObject object) {
|
||||
sarFileCompareInfoService.deleteById(object.getString("id"));
|
||||
return Result.OK("删除成功!");
|
||||
@@ -308,6 +316,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-批量删除")
|
||||
@ApiOperation(value = "文档对比信息表-批量删除", notes = "文档对比信息表-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
@ApiOperationSupport(order = 6)
|
||||
public Result<?> deleteBatch(@RequestBody JSONObject object) {
|
||||
this.sarFileCompareInfoService.deleteByIds(Arrays.asList(object.getString("ids").split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
@@ -322,6 +331,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-通过id查询")
|
||||
@ApiOperation(value = "文档对比信息表-通过id查询", notes = "文档对比信息表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
@ApiOperationSupport(order = 7)
|
||||
public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
SarFileCompareInfo sarFileCompareInfo = sarFileCompareInfoService.queryById(id);
|
||||
if (sarFileCompareInfo == null) {
|
||||
@@ -364,6 +374,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-发起文档对比")
|
||||
@ApiOperation(value = "文档对比信息表-发起文档对比", notes = "文档对比信息表-发起文档对比")
|
||||
@RequestMapping(value = "/fullTextComparison", method = RequestMethod.POST)
|
||||
@ApiOperationSupport(order = 8)
|
||||
public Result<?> fullTextComparison(@RequestBody JSONObject json) {
|
||||
try {
|
||||
String leftStandard = json.get("leftStandard").toString();
|
||||
@@ -394,6 +405,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-更改发布状态")
|
||||
@ApiOperation(value = "文档对比信息表-更改发布状态", notes = "文档对比信息表-更改发布状态")
|
||||
@RequestMapping(value = "/changeState", method = RequestMethod.POST)
|
||||
@ApiOperationSupport(order = 9)
|
||||
public Result<?> changeState(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
||||
SarFileCompareInfo info = sarFileCompareInfoService.queryById(sarFileCompareInfo.getId());
|
||||
if (ReleaseConditionEnum.DRAFT.getValue().equals(sarFileCompareInfo.getReleaseState())) {
|
||||
@@ -413,6 +425,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-请求对比详情")
|
||||
@ApiOperation(value = "文档对比信息表-请求对比详情", notes = "文档对比信息表-请求对比详情")
|
||||
@RequestMapping(value = "/getComparisonDetail", method = RequestMethod.POST)
|
||||
@ApiOperationSupport(order = 10)
|
||||
public Result<?> getComparisonDetail(@RequestBody JSONObject json) {
|
||||
SarFileCompareDetailVO sarFileCompareDetailVO = sarFileCompareInfoService.getComparisonDetail(json.get("id").toString());
|
||||
return Result.OK(sarFileCompareDetailVO);
|
||||
@@ -422,6 +435,7 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@AutoLog(value = "文档对比信息表-编辑全文评论")
|
||||
@ApiOperation(value = "文档对比信息表-编辑全文评论", notes = "文档对比信息表-编辑全文评论")
|
||||
@PostMapping(value = "/editComments")
|
||||
@ApiOperationSupport(order = 11)
|
||||
public Result<?> editComments(@Validated @RequestBody SarFileCompareInfo sarFileCompareInfo) {
|
||||
SarFileCompareInfo info = sarFileCompareInfoService.getById(sarFileCompareInfo.getId());
|
||||
info.setComments(sarFileCompareInfo.getComments());
|
||||
|
||||
Reference in New Issue
Block a user