Commit 19be7e4f by chaizheng

大搜车工单需求

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26721 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 757c2ced
...@@ -72,7 +72,12 @@ public class DscInstallOrderFeedBackTask implements Runnable{ ...@@ -72,7 +72,12 @@ public class DscInstallOrderFeedBackTask implements Runnable{
logger.info("-------device----------"+deviceList.size()); logger.info("-------device----------"+deviceList.size());
if (!CollectionUtils.isEmpty(deviceList)){ if (!CollectionUtils.isEmpty(deviceList)){
List<SysOrderFile> imgList = sysOrderFileMapper.selectByOrderId(order.getId()); List<SysOrderFile> imgList = sysOrderFileMapper.selectByOrderId(order.getId());
List<String> imgPaths = imgList.stream().map(e -> e.getFilePath()).collect(Collectors.toList()); // List<String> imgPaths = imgList.stream().map(e -> e.getFilePath()).collect(Collectors.toList());
String devImg ="";
String devPositionImg = "";
// for(int j=0;j< imgList.size() ; j++){
devImg = imgList.get(0).getFilePath();
// }
for (SysOrderDevice d :deviceList){ for (SysOrderDevice d :deviceList){
DscInstallOrderBackDeviceDto deviceDTO = new DscInstallOrderBackDeviceDto(); DscInstallOrderBackDeviceDto deviceDTO = new DscInstallOrderBackDeviceDto();
deviceDTO.setDevNo(d.getDeviceNo()); deviceDTO.setDevNo(d.getDeviceNo());
...@@ -81,6 +86,8 @@ public class DscInstallOrderFeedBackTask implements Runnable{ ...@@ -81,6 +86,8 @@ public class DscInstallOrderFeedBackTask implements Runnable{
deviceDTO.setDevType(1); deviceDTO.setDevType(1);
}else if ("sys_order_service_item_wireless_dasouche".equals(dev_type)){ }else if ("sys_order_service_item_wireless_dasouche".equals(dev_type)){
deviceDTO.setDevType(2); deviceDTO.setDevType(2);
}else if ("sys_order_service_item_tiny_dasouche".equals(dev_type)){
deviceDTO.setDevType(4);
}else { }else {
continue; continue;
} }
...@@ -89,12 +96,7 @@ public class DscInstallOrderFeedBackTask implements Runnable{ ...@@ -89,12 +96,7 @@ public class DscInstallOrderFeedBackTask implements Runnable{
deviceDTO.setDevSupplier(supplier.getChooseSupplier()); deviceDTO.setDevSupplier(supplier.getChooseSupplier());
deviceDTO.setDevModel(""); //设备型号 deviceDTO.setDevModel(""); //设备型号
deviceDTO.setDevPosition(d.getInstallLocation()); deviceDTO.setDevPosition(d.getInstallLocation());
if(!CollectionUtils.isEmpty(imgList)){ deviceDTO.setImgUrl(devImg);
String imgs = JSON.toJSONString(imgPaths);
deviceDTO.setImgUrl(imgs);
}else{
deviceDTO.setImgUrl("null");
}
deviceDTO.setDevOwner(1); deviceDTO.setDevOwner(1);
deviceDtoList.add(deviceDTO); deviceDtoList.add(deviceDTO);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!