|
|
|
@ -40,7 +40,6 @@ import com.alibaba.fastjson.JSON; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Description: 单位基本情况联系人 |
|
|
|
@ -88,7 +87,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "单位基本情况联系人-添加") |
|
|
|
|
@ApiOperation(value="单位基本情况联系人-添加", notes="单位基本情况联系人-添加") |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:add") |
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
|
public Result<String> add(@RequestBody Depadminlx depadminlx) { |
|
|
|
|
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
@ -107,7 +105,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "单位基本情况联系人-编辑") |
|
|
|
|
@ApiOperation(value="单位基本情况联系人-编辑", notes="单位基本情况联系人-编辑") |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:edit") |
|
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
|
|
|
|
public Result<String> edit(@RequestBody Depadminlx depadminlx) { |
|
|
|
|
depadminlxService.updateById(depadminlx); |
|
|
|
@ -122,7 +119,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "单位基本情况联系人-通过id删除") |
|
|
|
|
@ApiOperation(value="单位基本情况联系人-通过id删除", notes="单位基本情况联系人-通过id删除") |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:delete") |
|
|
|
|
@DeleteMapping(value = "/delete") |
|
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
depadminlxService.removeById(id); |
|
|
|
@ -137,7 +133,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "单位基本情况联系人-批量删除") |
|
|
|
|
@ApiOperation(value="单位基本情况联系人-批量删除", notes="单位基本情况联系人-批量删除") |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:deleteBatch") |
|
|
|
|
@DeleteMapping(value = "/deleteBatch") |
|
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
|
|
|
|
this.depadminlxService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
@ -167,7 +162,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
* @param request |
|
|
|
|
* @param depadminlx |
|
|
|
|
*/ |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:exportXls") |
|
|
|
|
@RequestMapping(value = "/exportXls") |
|
|
|
|
public ModelAndView exportXls(HttpServletRequest request, Depadminlx depadminlx) { |
|
|
|
|
return super.exportXls(request, depadminlx, Depadminlx.class, "单位基本情况联系人"); |
|
|
|
@ -180,7 +174,6 @@ public class DepadminlxController extends JeecgController<Depadminlx, IDepadminl |
|
|
|
|
* @param response |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@RequiresPermissions("depadminlx:depadminlx:importExcel") |
|
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
|
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
|
|
|
|
return super.importExcel(request, response, Depadminlx.class); |
|
|
|
|