|
|
@ -1,11 +1,19 @@
|
|
|
|
package com.ruoyi.web.controller.carrier.issued;
|
|
|
|
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.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 com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
|
|
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* ClassName: CarrierIssuedController
|
|
|
|
* ClassName: CarrierIssuedController
|
|
|
@ -26,4 +34,94 @@ public class CarrierIssuedController extends BaseController {
|
|
|
|
private CarrierIssuedManager carrierIssuedManager;
|
|
|
|
private CarrierIssuedManager carrierIssuedManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:view")
|
|
|
|
|
|
|
|
@GetMapping()
|
|
|
|
|
|
|
|
public String carrierIssued() {
|
|
|
|
|
|
|
|
return prefix + "/carrierIssued";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 载体列表
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:list")
|
|
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public TableDataInfo list(TdCarrierIssued tdCarrierIssued) {
|
|
|
|
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
|
|
|
|
|
|
|
return getDataTable(carriers);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 新增载体
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping("/add")
|
|
|
|
|
|
|
|
public String add() {
|
|
|
|
|
|
|
|
return prefix + "/add";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 新增载体
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:add")
|
|
|
|
|
|
|
|
@Log(title = "国家秘密载体登记", businessType = BusinessType.INSERT)
|
|
|
|
|
|
|
|
@PostMapping("/add")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public AjaxResult addSave(TdCarrierIssued tdCarrierIssued) {
|
|
|
|
|
|
|
|
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 修改场国家秘密载体
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued: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:carrierIssued:edit")
|
|
|
|
|
|
|
|
@Log(title = "国家秘密载体修改", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public AjaxResult editSave(TdCarrierIssued tdCarrierIssued) {
|
|
|
|
|
|
|
|
return toAjax(carrierIssuedManager.saveOrUpdate(tdCarrierIssued));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 详情国家秘密载体
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:detail")
|
|
|
|
|
|
|
|
@GetMapping("/detail/{id}")
|
|
|
|
|
|
|
|
public String detail(@PathVariable("id") String id, ModelMap mmap) {
|
|
|
|
|
|
|
|
TdCarrierIssued tdCarrierIssued = carrierIssuedManager.selectTdCarrier(id);
|
|
|
|
|
|
|
|
mmap.put("tdCarrierIssued", tdCarrierIssued);
|
|
|
|
|
|
|
|
return prefix + "/detail";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 删除国家秘密载体
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrier:remove")
|
|
|
|
|
|
|
|
@Log(title = "国家秘密载体", businessType = BusinessType.DELETE)
|
|
|
|
|
|
|
|
@PostMapping("/remove")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public AjaxResult remove(String ids) {
|
|
|
|
|
|
|
|
return toAjax(carrierIssuedManager.deletedTdCarrierByids(ids));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|