修改时段统计查询界面
parent
503263875f
commit
8b093cdd65
@ -0,0 +1,132 @@
|
||||
package com.ruoyi.web.controller.nanjing;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.nanjing.domain.TBdProductinfo;
|
||||
import com.ruoyi.nanjing.service.ITBdProductinfoService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.nanjing.domain.BaseBarcodePrintinfo;
|
||||
import com.ruoyi.nanjing.service.IBaseBarcodePrintinfoService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 条码打印记录Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2024-05-24
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/nanjing/PrintInfo")
|
||||
public class BaseBarcodePrintinfoController extends BaseController
|
||||
{
|
||||
private String prefix = "nanjing/PrintInfo";
|
||||
@Autowired
|
||||
private ITBdProductinfoService tBdProductinfoService;
|
||||
@Autowired
|
||||
private IBaseBarcodePrintinfoService baseBarcodePrintinfoService;
|
||||
|
||||
@RequiresPermissions("nanjing:PrintInfo:view")
|
||||
@GetMapping()
|
||||
public String PrintInfo(ModelMap map)
|
||||
{
|
||||
List<TBdProductinfo> tBdProductinfoList = tBdProductinfoService.selectTBdProductinfoList(new TBdProductinfo());
|
||||
map.addAttribute("list",tBdProductinfoList);
|
||||
return prefix + "/PrintInfo";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询条码打印记录列表
|
||||
*/
|
||||
@RequiresPermissions("nanjing:PrintInfo:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(BaseBarcodePrintinfo baseBarcodePrintinfo)
|
||||
{
|
||||
startPage();
|
||||
List<BaseBarcodePrintinfo> list = baseBarcodePrintinfoService.selectBaseBarcodePrintinfoList(baseBarcodePrintinfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出条码打印记录列表
|
||||
*/
|
||||
@RequiresPermissions("nanjing:PrintInfo:export")
|
||||
@Log(title = "条码打印记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(BaseBarcodePrintinfo baseBarcodePrintinfo)
|
||||
{
|
||||
List<BaseBarcodePrintinfo> list = baseBarcodePrintinfoService.selectBaseBarcodePrintinfoList(baseBarcodePrintinfo);
|
||||
ExcelUtil<BaseBarcodePrintinfo> util = new ExcelUtil<BaseBarcodePrintinfo>(BaseBarcodePrintinfo.class);
|
||||
return util.exportExcel(list, "PrintInfo");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增条码打印记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存条码打印记录
|
||||
*/
|
||||
@RequiresPermissions("nanjing:PrintInfo:add")
|
||||
@Log(title = "条码打印记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(BaseBarcodePrintinfo baseBarcodePrintinfo)
|
||||
{
|
||||
return toAjax(baseBarcodePrintinfoService.insertBaseBarcodePrintinfo(baseBarcodePrintinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改条码打印记录
|
||||
*/
|
||||
@GetMapping("/edit/{ID}")
|
||||
public String edit(@PathVariable("ID") String ID, ModelMap mmap)
|
||||
{
|
||||
BaseBarcodePrintinfo baseBarcodePrintinfo = baseBarcodePrintinfoService.selectBaseBarcodePrintinfoById(ID);
|
||||
mmap.put("baseBarcodePrintinfo", baseBarcodePrintinfo);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存条码打印记录
|
||||
*/
|
||||
@RequiresPermissions("nanjing:PrintInfo:edit")
|
||||
@Log(title = "条码打印记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(BaseBarcodePrintinfo baseBarcodePrintinfo)
|
||||
{
|
||||
return toAjax(baseBarcodePrintinfoService.updateBaseBarcodePrintinfo(baseBarcodePrintinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除条码打印记录
|
||||
*/
|
||||
@RequiresPermissions("nanjing:PrintInfo:remove")
|
||||
@Log(title = "条码打印记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(baseBarcodePrintinfoService.deleteBaseBarcodePrintinfoByIds(ids));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue