commit
f2da5b2fd0
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 销毁Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/destoryCarrier")
|
||||
public class DestoryCarrierController extends BaseController {
|
||||
private String prefix = "system/carrier/destoryCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:destoryCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/destoryCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体销毁
|
||||
*/
|
||||
@RequiresPermissions("system:destoryCarrier:edit")
|
||||
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 维修Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/maintainCarrier")
|
||||
public class MaintainCarrierController extends BaseController {
|
||||
private String prefix = "system/carrier/maintainCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:maintainCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/maintainCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体维修
|
||||
*/
|
||||
@RequiresPermissions("system:maintainCarrier:edit")
|
||||
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 收发传递Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/recCarrier")
|
||||
public class ReceiveCarrierController extends BaseController {
|
||||
private String prefix = "system/carrier/receiveCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:recCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/receiveCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 收发传递国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 收发传递国家秘密载体
|
||||
*/
|
||||
@RequiresPermissions("system:recCarrier:edit")
|
||||
@Log(title = "载体收发传递", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 保存Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("system/saveCarrier")
|
||||
public class SaveCarrierController extends BaseController {
|
||||
private String prefix = "system/carrier/saveCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:saveCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/saveCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体保存
|
||||
*/
|
||||
@RequiresPermissions("system:saveCarrier:edit")
|
||||
@Log(title = "国家秘密载体保存", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.web.controller.carrier;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.system.domain.carrier.TdCarrier;
|
||||
import com.ruoyi.web.controller.manager.CarrierManager;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 使用Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/useCarrier")
|
||||
public class UseCarrierController extends BaseController {
|
||||
private String prefix = "system/carrier/useCarrier";
|
||||
|
||||
@Resource
|
||||
private CarrierManager carrierManager;
|
||||
|
||||
@RequiresPermissions("system:useCarrier:view")
|
||||
@GetMapping()
|
||||
public String carrier() {
|
||||
return prefix + "/useCarrier";
|
||||
}
|
||||
|
||||
/**
|
||||
* 载体列表
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TdCarrier tdCarrier) {
|
||||
startPage();
|
||||
List<TdCarrier> carriers = carrierManager.selectTdCarrierList(tdCarrier);
|
||||
return getDataTable(carriers);
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||
TdCarrier tdCarrier = carrierManager.selectTdCarrier(id);
|
||||
mmap.put("tdCarrier", tdCarrier);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 国家秘密载体使用
|
||||
*/
|
||||
@RequiresPermissions("system:useCarrier:edit")
|
||||
@Log(title = "国家秘密载体使用", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TdCarrier tdCarrier) {
|
||||
return toAjax(carrierManager.saveOrUpdate(tdCarrier));
|
||||
}
|
||||
}
|
Loading…
Reference in new issue