Commit 4b101d51 authored by 施翔轲's avatar 施翔轲

优化导出供应商分类列表

parent 2fb758a0
......@@ -36,8 +36,13 @@ public class CustomerInfoVo implements Serializable {
/**
* 供应商名称
*/
@Excel(name = "供应商名称", width = 30)
private String customerName;
/**
* 供应商名称导出
* 列表查询时customerName可能作为查询关键字被标红,所以单独设置此属性
*/
@Excel(name = "供应商名称", width = 30)
private String customerNameExport;
/**
* 二级市场企业编码
*/
......
......@@ -66,6 +66,7 @@ public class CustomerInfoServiceImpl extends ServiceImpl<DCustomerMapper, DCusto
AtomicInteger sortNum = new AtomicInteger(1);
if (CollectionUtils.isNotEmpty(page.getRecords())) {
page.getRecords().forEach(item->{
item.setCustomerNameExport(item.getCustomerName());
item.setNum(sortNum.getAndIncrement());
DCustomerListVo vo = subcontractMapper.selectStatisticByCustomerId(item.getCustomerId());
//企业合作数量
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment