|
|
|
@ -1,25 +1,20 @@
|
|
|
|
package com.ruoyi.szxc.controller;
|
|
|
|
package com.ruoyi.szxc.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import com.ruoyi.szxc.domain.SzxcJmTag;
|
|
|
|
import com.ruoyi.szxc.domain.SzxcJmTag;
|
|
|
|
import com.ruoyi.szxc.service.ISzxcJmTagService;
|
|
|
|
import com.ruoyi.szxc.service.ISzxcJmTagService;
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 居民标签关联Controller
|
|
|
|
* 居民标签关联Controller
|
|
|
|
@ -69,6 +64,18 @@ public class SzxcJmTagController extends BaseController
|
|
|
|
return success(szxcJmTagService.selectSzxcJmTagByJmId(jmId));
|
|
|
|
return success(szxcJmTagService.selectSzxcJmTagByJmId(jmId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 新增、修改、删除居民标签集合关联
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('szxc:jmtag:add')")
|
|
|
|
|
|
|
|
@Log(title = "居民标签关联", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
@PostMapping("/addAll")
|
|
|
|
|
|
|
|
public AjaxResult addAll(@RequestBody JSONObject json)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
List<SzxcJmTag> szxcJmTags = json.getJSONArray("szxcJmTags").toJavaList(SzxcJmTag.class);
|
|
|
|
|
|
|
|
return toAjax(szxcJmTagService.insertSzxcJmTags(szxcJmTags));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增居民标签关联
|
|
|
|
* 新增居民标签关联
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|