Commit 94d8297c by 吴迪

Merge remote-tracking branch 'origin/master'

parents a3614c13 ff3c61c0
......@@ -2,12 +2,14 @@ package io.office.modules.manage.controller;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.office.common.utils.IPUtils;
import io.office.modules.app.annotation.Login;
import io.office.modules.manage.entity.MedicalEntity;
import io.office.modules.manage.entity.ProductEntity;
import io.office.modules.manage.entity.SearchgtinlogEntity;
import io.office.modules.manage.service.SearchgtinlogService;
......@@ -101,11 +103,13 @@ public class GlossaryController extends AbstractController {
*/
@RequestMapping("/delete")
// @RequiresPermissions("manage:glossary:delete")
public R delete(@RequestBody Integer[] ids){
public R delete(@RequestBody List<String> ids){
GlossaryEntity glossary = new GlossaryEntity();
glossary.setEditor(getUser().getUsername());
glossary.setLasteditor(getUser().getUsername());
glossaryService.updateById(glossary);
QueryWrapper<GlossaryEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.in("id", ids);
glossaryService.update(glossary, queryWrapper);
return R.ok("术语删除成功!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment