载体保存维修销毁

pg_adapter
20918 8 months ago
parent eaf201ab95
commit 07f52bd4f9

@ -28,20 +28,17 @@ import java.util.List;
@RequestMapping("/system/carrier") @RequestMapping("/system/carrier")
public class CarrierController extends BaseController { public class CarrierController extends BaseController {
private String prefix = "system/carrier"; private String prefix = "system/carrier";
@Resource @Resource
private CarrierManager carrierManager; private CarrierManager carrierManager;
@RequiresPermissions("system:carrier:view") @RequiresPermissions("system:carrier:view")
@GetMapping() @GetMapping()
public String carrier() { public String carrier() {
return prefix + "/carrier"; return prefix + "/carrier";
} }
/** /**
* *
*/ */
@ -126,10 +123,4 @@ public class CarrierController extends BaseController {
return toAjax(carrierManager.updateStatus(id,status)); return toAjax(carrierManager.updateStatus(id,status));
} }
} }

@ -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));
}
}

@ -45,7 +45,7 @@ public class TdPropertyEmentDestoryController extends BaseController {
} }
/** /**
* *
*/ */
@RequiresPermissions("system:ementDestory:destroy") @RequiresPermissions("system:ementDestory:destroy")
@GetMapping("/destory/{id}") @GetMapping("/destory/{id}")

Loading…
Cancel
Save