|
@ -20,6 +20,8 @@ import com.ruoyi.system.domain.exportDto.SysCustomerDto; |
|
|
import com.ruoyi.system.mapper.SysCustomerQuoteChildMapper; |
|
|
import com.ruoyi.system.mapper.SysCustomerQuoteChildMapper; |
|
|
import com.ruoyi.system.service.*; |
|
|
import com.ruoyi.system.service.*; |
|
|
import com.ruoyi.system.service.impl.SysCustomerQuoteServiceImpl; |
|
|
import com.ruoyi.system.service.impl.SysCustomerQuoteServiceImpl; |
|
|
|
|
|
import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamage; |
|
|
|
|
|
import com.ruoyi.warehouse.domain.WarehouseInventoryReportDamageChild; |
|
|
import org.activiti.engine.RuntimeService; |
|
|
import org.activiti.engine.RuntimeService; |
|
|
import org.activiti.engine.TaskService; |
|
|
import org.activiti.engine.TaskService; |
|
|
import org.activiti.engine.runtime.ProcessInstance; |
|
|
import org.activiti.engine.runtime.ProcessInstance; |
|
@ -29,6 +31,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.util.StringUtils; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
import javax.servlet.http.HttpServletRequest; |
|
@ -375,11 +378,18 @@ public class SysCustomerQuoteController extends BaseController |
|
|
@Log(title = "客户报价信息", businessType = BusinessType.EXPORT) |
|
|
@Log(title = "客户报价信息", businessType = BusinessType.EXPORT) |
|
|
@PostMapping("/export") |
|
|
@PostMapping("/export") |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
public AjaxResult export(@RequestBody String[] supplierCodes) |
|
|
public AjaxResult export(SysCustomerQuoteVo sysCustomerQuoteVo, String ids) |
|
|
{ |
|
|
{ |
|
|
List<SysCustomerQuote> list = sysCustomerQuoteService.selectCustomerQuoteOneBySupplierCodes(supplierCodes); |
|
|
if (StringUtils.isEmpty(ids)){ |
|
|
|
|
|
List<SysCustomerQuoteVo> list = sysCustomerQuoteService.exportSysCustomerQuoteList(sysCustomerQuoteVo); |
|
|
|
|
|
ExcelUtil<SysCustomerQuoteVo> util = new ExcelUtil<SysCustomerQuoteVo>(SysCustomerQuoteVo.class); |
|
|
|
|
|
return util.exportExcel(list, "客户报价数据"); |
|
|
|
|
|
}else { |
|
|
|
|
|
String[] supplierCodes = ids.split(","); |
|
|
|
|
|
List<SysCustomerQuote> list = sysCustomerQuoteService.selectCustomerQuoteOneBySupplierCodes(supplierCodes);//客户报价编号
|
|
|
ExcelUtil<SysCustomerQuote> util = new ExcelUtil<SysCustomerQuote>(SysCustomerQuote.class); |
|
|
ExcelUtil<SysCustomerQuote> util = new ExcelUtil<SysCustomerQuote>(SysCustomerQuote.class); |
|
|
return util.exportExcel(list, "销售客户报价数据"); |
|
|
return util.exportExcel(list, ids); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|