|
@@ -1828,9 +1828,10 @@ public class AdminCustomerController {
|
|
"问题类别", "小类名称", "客诉问题", "处理过程", "购买日期",
|
|
"问题类别", "小类名称", "客诉问题", "处理过程", "购买日期",
|
|
"处理方式","处理结果", "销售公司", "销售渠道", "产品型号", "产品颜色","产品类型",
|
|
"处理方式","处理结果", "销售公司", "销售渠道", "产品型号", "产品颜色","产品类型",
|
|
"产品数量", "寄回快递", "寄回单号", "签收日期",
|
|
"产品数量", "寄回快递", "寄回单号", "签收日期",
|
|
- "状态", "寄出快递", "寄出快递", "开箱损", "二次客诉", "跟进客服", "工厂报价", "客户报价", "邮费信息"
|
|
+ "状态", "寄出快递", "寄出单号", "开箱损", "二次客诉", "跟进客服", "工厂报价", "客户报价", "邮费信息"
|
|
};
|
|
};
|
|
List<CustomerStatisticalInfo> customerStatisticalInfoList = new ArrayList<>();
|
|
List<CustomerStatisticalInfo> customerStatisticalInfoList = new ArrayList<>();
|
|
|
|
+ SimpleDateFormat sdf4=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
for (CustomerStatisticalInfo customerInfo : customerList) {
|
|
for (CustomerStatisticalInfo customerInfo : customerList) {
|
|
long startTime=System.currentTimeMillis();
|
|
long startTime=System.currentTimeMillis();
|
|
s++;
|
|
s++;
|
|
@@ -1848,49 +1849,58 @@ public class AdminCustomerController {
|
|
for (SalesOrder salesOrder : common.getSalesOrderList()) {
|
|
for (SalesOrder salesOrder : common.getSalesOrderList()) {
|
|
if (salesOrder.getSalesOrderItemList().size() > 0) {
|
|
if (salesOrder.getSalesOrderItemList().size() > 0) {
|
|
for (SalesOrderItem salesOrderItem : salesOrder.getSalesOrderItemList()) {
|
|
for (SalesOrderItem salesOrderItem : salesOrder.getSalesOrderItemList()) {
|
|
-
|
|
+ if(common.getSignclosedInfos().size() > 0){
|
|
- CustomerStatisticalInfo customers = new CustomerStatisticalInfo();
|
|
+ for(ComplaintSignclosedInfo signclosedInfo : common.getSignclosedInfos()){
|
|
- BeanUtils.copyProperties(customer, customers);
|
|
+ for (SignclosedProductInfo signclosedProductInfo : signclosedInfo.getSignclosedProductInfoList()) {
|
|
- customers.setRelationBackLogisticsCompany(customerInfo.getRelationBackLogisticsCompany());
|
|
+
|
|
- customers.setRelationBackLogisticsNo(customerInfo.getRelationBackLogisticsNo());
|
|
+ CustomerStatisticalInfo customers = new CustomerStatisticalInfo();
|
|
- customers.setRelationSendLogisticsCompany(customerInfo.getRelationSendLogisticsCompany());
|
|
+ BeanUtils.copyProperties(customer, customers);
|
|
- customers.setRelationSendLogisticsNo(customerInfo.getRelationSendLogisticsNo());
|
|
+ customers.setRelationBackLogisticsCompany(signclosedInfo.getSignclosedLogistics());
|
|
- customers.setRelationBackStatus(String.valueOf(customerInfo.getRelationBackStatus()));
|
|
+ customers.setRelationBackLogisticsNo(signclosedInfo.getSignclosedLogisticsNumber());
|
|
- if(customerInfo.getRelationBackReceiptDate() == null){
|
|
+ customers.setRelationBackStatus(String.valueOf(signclosedInfo.getSignclosedIsReceiving()));
|
|
- customers.setRelationBackReceiptDate(null);
|
|
+ if(signclosedInfo.getSignclosedDate() == null){
|
|
- }else{
|
|
+ customers.setRelationBackReceiptDate(null);
|
|
- customers.setRelationBackReceiptDate(customerInfo.getRelationBackReceiptDate());
|
|
+ }else{
|
|
|
|
+ customers.setRelationBackReceiptDate(sdf4.format(signclosedInfo.getSignclosedDate()));
|
|
|
|
+ }
|
|
|
|
+ customers.setSignclosedProductInfo(signclosedProductInfo.getProductName()+"("+signclosedProductInfo.getColorName()+")"+"*"+signclosedProductInfo.getProductNum());
|
|
|
|
+ customers.setItemProductColor(signclosedProductInfo.getColorName());
|
|
|
|
+ customers.setRelationSendLogisticsCompany(salesOrder.getSalesPostNum());
|
|
|
|
+ customers.setRelationSendLogisticsNo(salesOrder.getSalesPostFirm());
|
|
|
|
+
|
|
|
|
+ customers.setSalesPayTime(salesOrder.getSalesPayTime());
|
|
|
|
+ customers.setItemProductName(salesOrderItem.getItemProductName());
|
|
|
|
+
|
|
|
|
+ customers.setItemNum(String.valueOf(salesOrderItem.getItemNum()));
|
|
|
|
+ if(salesOrderItem.getTypeName() != null || !salesOrderItem.getTypeName().equals("")){
|
|
|
|
+ customers.setTypeName(String.valueOf(salesOrderItem.getTypeName()));
|
|
|
|
+ }
|
|
|
|
+ customers.setRelationFactoryCosts(customerInfo.getRelationFactoryCosts());
|
|
|
|
+ customers.setRelationCustomerCosts(customerInfo.getRelationCustomerCosts());
|
|
|
|
+ customers.setSignclosedProductInfos(common.getSignclosedProductInfos());
|
|
|
|
+ String postageString = "";
|
|
|
|
+
|
|
|
|
+ List<PostageInfo> listPostageInfo = customerService.listPostageInfo(customers.getRelationId());
|
|
|
|
+ if(listPostageInfo.size() > 0){
|
|
|
|
+ for(PostageInfo postageInfo : listPostageInfo){
|
|
|
|
+ String state = "";
|
|
|
|
+ if(postageInfo.getPostageStatus() == 1){
|
|
|
|
+ state = "未申请";
|
|
|
|
+ }
|
|
|
|
+ if(postageInfo.getPostageStatus() == 2){
|
|
|
|
+ state = "已申请(待转账)";
|
|
|
|
+ }
|
|
|
|
+ if(postageInfo.getPostageStatus() == 3){
|
|
|
|
+ state = "已转账";
|
|
|
|
+ }
|
|
|
|
+ postageString = postageString+"状态:"+state+" ,金额:"+postageInfo.getPostageAmount()/100+" ,支付宝账号:"+postageInfo.getPostageAlipay()+";";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ customers.setPostageString(postageString);
|
|
|
|
+ customerStatisticalInfoList.add(customers);
|
|
}
|
|
}
|
|
- customers.setSalesPayTime(salesOrder.getSalesPayTime());
|
|
|
|
- customers.setItemProductName(salesOrderItem.getItemProductName());
|
|
|
|
- customers.setItemProductColor(salesOrderItem.getItemProductColor());
|
|
|
|
- customers.setItemNum(String.valueOf(salesOrderItem.getItemNum()));
|
|
|
|
- if(salesOrderItem.getTypeName() != null || !salesOrderItem.getTypeName().equals("")){
|
|
|
|
- customers.setTypeName(String.valueOf(salesOrderItem.getTypeName()));
|
|
|
|
- }
|
|
|
|
- customers.setRelationFactoryCosts(customerInfo.getRelationFactoryCosts());
|
|
|
|
- customers.setRelationCustomerCosts(customerInfo.getRelationCustomerCosts());
|
|
|
|
- customers.setSignclosedProductInfos(common.getSignclosedProductInfos());
|
|
|
|
- String postageString = "";
|
|
|
|
-
|
|
|
|
- List<PostageInfo> listPostageInfo = customerService.listPostageInfo(customers.getRelationId());
|
|
|
|
- if(listPostageInfo.size() > 0){
|
|
|
|
- for(PostageInfo postageInfo : listPostageInfo){
|
|
|
|
- String state = "";
|
|
|
|
- if(postageInfo.getPostageStatus() == 1){
|
|
|
|
- state = "未申请";
|
|
|
|
- }
|
|
|
|
- if(postageInfo.getPostageStatus() == 2){
|
|
|
|
- state = "已申请(待转账)";
|
|
|
|
- }
|
|
|
|
- if(postageInfo.getPostageStatus() == 3){
|
|
|
|
- state = "已转账";
|
|
|
|
- }
|
|
|
|
- postageString = postageString+"状态:"+state+" ,金额:"+postageInfo.getPostageAmount()/100+" ,支付宝账号:"+postageInfo.getPostageAlipay()+";";
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- customers.setPostageString(postageString);
|
|
|
|
- customerStatisticalInfoList.add(customers);
|
|
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
customerStatisticalInfoList.add(customer);
|
|
customerStatisticalInfoList.add(customer);
|
|
@@ -2015,13 +2025,18 @@ public class AdminCustomerController {
|
|
row.createCell(11).setCellValue(customerStatisticalInfo.getCustomerIsSolve() == null ? null : customerStatisticalInfo.getCustomerIsSolve());
|
|
row.createCell(11).setCellValue(customerStatisticalInfo.getCustomerIsSolve() == null ? null : customerStatisticalInfo.getCustomerIsSolve());
|
|
row.createCell(12).setCellValue(customerStatisticalInfo.getCompanyName() == null ? null : customerStatisticalInfo.getCompanyName());
|
|
row.createCell(12).setCellValue(customerStatisticalInfo.getCompanyName() == null ? null : customerStatisticalInfo.getCompanyName());
|
|
row.createCell(13).setCellValue(customerStatisticalInfo.getStoreName() == null ? null : customerStatisticalInfo.getStoreName());
|
|
row.createCell(13).setCellValue(customerStatisticalInfo.getStoreName() == null ? null : customerStatisticalInfo.getStoreName());
|
|
- StringBuffer sb = new StringBuffer("");
|
|
+
|
|
if(customerStatisticalInfo.getSignclosedProductInfos().size() > 0){
|
|
if(customerStatisticalInfo.getSignclosedProductInfos().size() > 0){
|
|
for(SignclosedProductInfo sign : customerStatisticalInfo.getSignclosedProductInfos()){
|
|
for(SignclosedProductInfo sign : customerStatisticalInfo.getSignclosedProductInfos()){
|
|
sb.append(sign.getProductName()+"("+sign.getColorName()+")"+"*"+sign.getProductNum()+";");
|
|
sb.append(sign.getProductName()+"("+sign.getColorName()+")"+"*"+sign.getProductNum()+";");
|
|
}
|
|
}
|
|
|
|
+ }*/
|
|
|
|
+ if(customerStatisticalInfo.getSignclosedProductInfo() == null){
|
|
|
|
+ row.createCell(14).setCellValue("");
|
|
|
|
+ }else{
|
|
|
|
+ row.createCell(14).setCellValue(customerStatisticalInfo.getSignclosedProductInfo().toString());
|
|
}
|
|
}
|
|
- row.createCell(14).setCellValue(sb.toString());
|
|
+
|
|
|
|
|
|
row.createCell(15).setCellValue(customerStatisticalInfo.getItemProductColor() == null ? null : customerStatisticalInfo.getItemProductColor());
|
|
row.createCell(15).setCellValue(customerStatisticalInfo.getItemProductColor() == null ? null : customerStatisticalInfo.getItemProductColor());
|
|
row.createCell(16).setCellValue(customerStatisticalInfo.getTypeName() == null ? null : customerStatisticalInfo.getTypeName());
|
|
row.createCell(16).setCellValue(customerStatisticalInfo.getTypeName() == null ? null : customerStatisticalInfo.getTypeName());
|