fix:载体下发销毁接口提交

pg_adapter
wangxy 6 months ago
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));
}
}

@ -33,6 +33,10 @@ public class CarrierIssuedManager {
return carrierIssuedService.selectTdCarrierList(tdCarrierIssued); return carrierIssuedService.selectTdCarrierList(tdCarrierIssued);
} }
public List<TdCarrierIssued> selectTdCarrierUpdateList(TdCarrierIssued tdCarrierIssued) {
return carrierIssuedService.selectTdCarrierUpdateList(tdCarrierIssued);
}
public boolean saveOrUpdate(TdCarrierIssued tdCarrierIssued) { public boolean saveOrUpdate(TdCarrierIssued tdCarrierIssued) {
if (CharSequenceUtil.isNotBlank(tdCarrierIssued.getId())) { if (CharSequenceUtil.isNotBlank(tdCarrierIssued.getId())) {
tdCarrierIssued.setUpdateBy(ShiroUtils.getSysUser().getLoginName()); tdCarrierIssued.setUpdateBy(ShiroUtils.getSysUser().getLoginName());

Loading…
Cancel
Save