文档翻译表-批量更新发布情况接口完善

This commit is contained in:
wangzhijiang
2022-07-26 11:08:12 +08:00
parent 7938be413e
commit 663316d75e
3 changed files with 9 additions and 9 deletions
@@ -165,15 +165,15 @@ public class DocTranslationEOController extends JeroController<DocTranslationEO,
} }
/** /**
* 批量更新文档翻译表状态 * 批量更新文档翻译表发布情况
* @param json * @param json
* @return * @return
*/ */
@AutoLog(value = "文档翻译表-批量更新状态") @AutoLog(value = "文档翻译表-批量更新发布情况")
@ApiOperation(value="文档翻译表-批量更新状态", notes="文档翻译表-批量更新状态") @ApiOperation(value="文档翻译表-批量更新发布情况", notes="文档翻译表-批量更新发布情况")
@PostMapping(value = "/updateStatusBatch") @PostMapping(value = "/updateRleaseConditionBatch")
public Result<?> updateStatusBatch(@RequestBody JSONObject json) { public Result<?> updateRleaseConditionBatch(@RequestBody JSONObject json) {
return this.docTranslationEOService.updateStatusBatch(json); return this.docTranslationEOService.updateRleaseConditionBatch(json);
} }
/** /**
@@ -76,11 +76,11 @@ public interface IDocTranslationEOService extends IService<DocTranslationEO> {
IPage<DocTranslationEO> queryPageList(DocTranslationEO docTranslationEO, Integer pageNo, Integer pageSize, String cut, HttpServletRequest req); IPage<DocTranslationEO> queryPageList(DocTranslationEO docTranslationEO, Integer pageNo, Integer pageSize, String cut, HttpServletRequest req);
/** /**
* 批量更新状态 * 批量更新发布情况
* @param json * @param json
* @return * @return
*/ */
Result<?> updateStatusBatch(JSONObject json); Result<?> updateRleaseConditionBatch(JSONObject json);
/** /**
* 查询文本状态下拉选项(文档库中,文件类型字段) * 查询文本状态下拉选项(文档库中,文件类型字段)
@@ -170,7 +170,7 @@ public class DocTranslationEOServiceImpl extends ServiceImpl<DocTranslationEOMap
} }
@Override @Override
public Result<?> updateStatusBatch(JSONObject json) { public Result<?> updateRleaseConditionBatch(JSONObject json) {
String ids = json.getString("ids"); String ids = json.getString("ids");
// 值对应枚举类 ReleaseConditionEnum 发布published 或撤回draft // 值对应枚举类 ReleaseConditionEnum 发布published 或撤回draft
String releaseCondition = json.getString("releaseCondition"); String releaseCondition = json.getString("releaseCondition");