|
@ -7,11 +7,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.ui.ModelMap; |
|
|
import org.springframework.ui.ModelMap; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
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.annotation.Log; |
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
import com.ruoyi.system.domain.SysInvoice; |
|
|
import com.ruoyi.system.domain.SysInvoice; |
|
@ -61,15 +57,32 @@ public class SysInvoiceController extends BaseController |
|
|
*/ |
|
|
*/ |
|
|
@RequiresPermissions("system:invoice:export") |
|
|
@RequiresPermissions("system:invoice:export") |
|
|
@Log(title = "其他开票信息", businessType = BusinessType.EXPORT) |
|
|
@Log(title = "其他开票信息", businessType = BusinessType.EXPORT) |
|
|
@PostMapping("/export") |
|
|
@PostMapping("/exportAll") |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
public AjaxResult export(SysInvoice sysInvoice) |
|
|
public AjaxResult exportAll(SysInvoice sysInvoice) |
|
|
{ |
|
|
{ |
|
|
List<SysInvoice> list = sysInvoiceService.selectSysInvoiceList(sysInvoice); |
|
|
List<SysInvoice> list = sysInvoiceService.selectSysInvoiceList(sysInvoice); |
|
|
ExcelUtil<SysInvoice> util = new ExcelUtil<SysInvoice>(SysInvoice.class); |
|
|
ExcelUtil<SysInvoice> util = new ExcelUtil<SysInvoice>(SysInvoice.class); |
|
|
return util.exportExcel(list, "其他开票信息数据"); |
|
|
return util.exportExcel(list, "其他开票信息数据"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 导出其他开票信息列表 |
|
|
|
|
|
*/ |
|
|
|
|
|
@RequiresPermissions("system:invoice:export") |
|
|
|
|
|
@Log(title = "其他开票信息", businessType = BusinessType.EXPORT) |
|
|
|
|
|
@PostMapping("/export") |
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
public AjaxResult export(@RequestBody Long[] ids) |
|
|
|
|
|
{ |
|
|
|
|
|
List<SysInvoice> list = sysInvoiceService.selectSysInvoiceListByIds(ids); |
|
|
|
|
|
ExcelUtil<SysInvoice> util = new ExcelUtil<SysInvoice>(SysInvoice.class); |
|
|
|
|
|
return util.exportExcel(list, "其他开票信息数据"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 新增其他开票信息 |
|
|
* 新增其他开票信息 |
|
|
*/ |
|
|
*/ |
|
|