|
|
@ -3,10 +3,13 @@ package com.ruoyi.system.controller; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.ruoyi.system.domain.SysCompanyBankInfo; |
|
|
|
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.util.StringUtils; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
@ -59,11 +62,19 @@ public class BaseExchangeRateController extends BaseController |
|
|
|
@Log(title = "基础资料汇率管理", businessType = BusinessType.EXPORT) |
|
|
|
@PostMapping("/export") |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult export(BaseExchangeRate baseExchangeRate) |
|
|
|
public AjaxResult export(BaseExchangeRate baseExchangeRate,String ids) |
|
|
|
{ |
|
|
|
List<BaseExchangeRate> list = baseExchangeRateService.selectBaseExchangeRateList(baseExchangeRate); |
|
|
|
ExcelUtil<BaseExchangeRate> util = new ExcelUtil<BaseExchangeRate>(BaseExchangeRate.class); |
|
|
|
return util.exportExcel(list, "基础资料汇率管理数据"); |
|
|
|
if (StringUtils.isEmpty(ids)){ |
|
|
|
List<BaseExchangeRate> list = baseExchangeRateService.selectBaseExchangeRateList(baseExchangeRate); |
|
|
|
ExcelUtil<BaseExchangeRate> util = new ExcelUtil<BaseExchangeRate>(BaseExchangeRate.class); |
|
|
|
return util.exportExcel(list, "基础资料汇率管理数据"); |
|
|
|
}else { |
|
|
|
String[] exchangeRateIds = ids.split(","); |
|
|
|
List<BaseExchangeRate> list = baseExchangeRateService.selectBaseExchangeRateListByIds(exchangeRateIds); |
|
|
|
ExcelUtil<BaseExchangeRate> util = new ExcelUtil<BaseExchangeRate>(BaseExchangeRate.class); |
|
|
|
return util.exportExcel(list, "基础资料汇率管理数据"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|