#
luxiaotao1123
2021-01-26 58758fe8a1a59f0af9e04c8a5f1cf1a7139deb0d
src/main/java/zy/cloud/wms/manager/controller/TagController.java
@@ -1,6 +1,5 @@
package zy.cloud.wms.manager.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
@@ -44,7 +43,7 @@
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(tagService.selectPage(new Page<>(curr, limit), wrapper));
        return R.parse("0-操作成功").add(tagService.selectList(wrapper));
    }
    private void convert(Map<String, Object> map, EntityWrapper wrapper){
@@ -79,13 +78,9 @@
    @RequestMapping(value = "/tag/delete/auth")
    @ManagerAuth
    public R delete(@RequestParam String param){
        List<Tag> list = JSONArray.parseArray(param, Tag.class);
        if (Cools.isEmpty(list)){
            return R.error();
        }
        for (Tag entity : list){
            tagService.delete(new EntityWrapper<>(entity));
    public R delete(@RequestParam(value="ids[]") Long[] ids){
        for (Long id : ids){
            tagService.deleteById(id);
        }
        return R.ok();
    }