优化商品和供应商客户的导出Excel,小数点保留两位
This commit is contained in:
@@ -352,10 +352,10 @@ public class MaterialController {
|
|||||||
objs[7] = m.getCommodityUnit();
|
objs[7] = m.getCommodityUnit();
|
||||||
objs[8] = m.getWeight() == null? "" : m.getWeight().toString();
|
objs[8] = m.getWeight() == null? "" : m.getWeight().toString();
|
||||||
objs[9] = m.getExpiryNum() == null? "" : m.getExpiryNum().toString();
|
objs[9] = m.getExpiryNum() == null? "" : m.getExpiryNum().toString();
|
||||||
objs[10] = m.getPurchaseDecimal() == null? "" : m.getPurchaseDecimal().toString();
|
objs[10] = m.getPurchaseDecimal() == null? "" : m.getPurchaseDecimal().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[11] = m.getCommodityDecimal() == null? "" : m.getCommodityDecimal().toString();
|
objs[11] = m.getCommodityDecimal() == null? "" : m.getCommodityDecimal().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[12] = m.getWholesaleDecimal() == null? "" : m.getWholesaleDecimal().toString();
|
objs[12] = m.getWholesaleDecimal() == null? "" : m.getWholesaleDecimal().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[13] = m.getLowDecimal() == null? "" : m.getLowDecimal().toString();
|
objs[13] = m.getLowDecimal() == null? "" : m.getLowDecimal().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[14] = m.getRemark();
|
objs[14] = m.getRemark();
|
||||||
objs[15] = m.getEnabled() ? "启用" : "禁用";
|
objs[15] = m.getEnabled() ? "启用" : "禁用";
|
||||||
objs[16] = "1".equals(m.getEnableSerialNumber()) ? "有" : "无";
|
objs[16] = "1".equals(m.getEnableSerialNumber()) ? "有" : "无";
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ public class SupplierService {
|
|||||||
objs[2] = s.getTelephone();
|
objs[2] = s.getTelephone();
|
||||||
objs[3] = s.getPhoneNum();
|
objs[3] = s.getPhoneNum();
|
||||||
objs[4] = s.getEmail();
|
objs[4] = s.getEmail();
|
||||||
objs[5] = s.getAdvanceIn() == null? "" : s.getAdvanceIn().toString();
|
objs[5] = s.getAdvanceIn() == null? "" : s.getAdvanceIn().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[6] = s.getDescription();
|
objs[6] = s.getDescription();
|
||||||
objs[7] = s.getSort();
|
objs[7] = s.getSort();
|
||||||
objs[8] = s.getEnabled() ? "启用" : "禁用";
|
objs[8] = s.getEnabled() ? "启用" : "禁用";
|
||||||
@@ -608,14 +608,14 @@ public class SupplierService {
|
|||||||
objs[4] = s.getEmail();
|
objs[4] = s.getEmail();
|
||||||
objs[5] = s.getFax();
|
objs[5] = s.getFax();
|
||||||
if(("客户").equals(s.getType())) {
|
if(("客户").equals(s.getType())) {
|
||||||
objs[6] = s.getBeginNeedGet() == null? "" : s.getBeginNeedGet().toString();
|
objs[6] = s.getBeginNeedGet() == null? "" : s.getBeginNeedGet().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[7] = s.getAllNeedGet() == null? "" : s.getAllNeedGet().toString();
|
objs[7] = s.getAllNeedGet() == null? "" : s.getAllNeedGet().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
} else if(("供应商").equals(s.getType())) {
|
} else if(("供应商").equals(s.getType())) {
|
||||||
objs[6] = s.getBeginNeedPay() == null? "" : s.getBeginNeedPay().toString();
|
objs[6] = s.getBeginNeedPay() == null? "" : s.getBeginNeedPay().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[7] = s.getAllNeedPay() == null? "" : s.getAllNeedPay().toString();
|
objs[7] = s.getAllNeedPay() == null? "" : s.getAllNeedPay().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
}
|
}
|
||||||
objs[8] = s.getTaxNum();
|
objs[8] = s.getTaxNum();
|
||||||
objs[9] = s.getTaxRate() == null? "" : s.getTaxRate().toString();
|
objs[9] = s.getTaxRate() == null? "" : s.getTaxRate().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
||||||
objs[10] = s.getBankName();
|
objs[10] = s.getBankName();
|
||||||
objs[11] = s.getAccountNumber();
|
objs[11] = s.getAccountNumber();
|
||||||
objs[12] = s.getAddress();
|
objs[12] = s.getAddress();
|
||||||
|
|||||||
Reference in New Issue
Block a user