parent
98f6e6652d
commit
e7b8a9d4c4
@ -0,0 +1,69 @@
|
|||||||
|
package com.ruoyi.web.controller.carrier.issued;
|
||||||
|
|
||||||
|
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.TdCarrierIssued;
|
||||||
|
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||||
|
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
|
||||||
|
* @author Administrator
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/destoryIssued")
|
||||||
|
public class DestoryIssuedController extends BaseController {
|
||||||
|
private String prefix = "system/destoryIssued";
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CarrierIssuedManager carrierIssuedManager;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:destoryIssued:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String destoryIssued() {
|
||||||
|
return prefix + "/destoryIssued";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 载体列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:destoryIssued:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||||
|
startPage();
|
||||||
|
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
||||||
|
return getDataTable(carriers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国家秘密载体销毁
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:destoryIssued:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||||
|
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||||
|
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国家秘密载体销毁
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:destoryIssued:edit")
|
||||||
|
@Log(title = "国家秘密载体销毁", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||||
|
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
package com.ruoyi.web.controller.carrier.issued;
|
||||||
|
|
||||||
|
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.TdCarrierIssued;
|
||||||
|
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
||||||
|
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/maintainIssued")
|
||||||
|
public class MaintainIssuedController extends BaseController {
|
||||||
|
private String prefix = "system/maintainIssued";
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private CarrierIssuedManager carrierIssuedManager;
|
||||||
|
@RequiresPermissions("system:maintainIssued:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String maintainIssued() {
|
||||||
|
return prefix + "/maintainIssued";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 载体列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:maintainIssued:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
||||||
|
startPage();
|
||||||
|
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierUpdateList(tdCarrierIssued);
|
||||||
|
return getDataTable(carriers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国家秘密载体维修
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:maintainIssued:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") String id, ModelMap mmap) {
|
||||||
|
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
||||||
|
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 国家秘密载体维修
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:maintainIssued:edit")
|
||||||
|
@Log(title = "国家秘密载体维修", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
||||||
|
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue