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{
logger.info("-------device----------"+deviceList.size());
if (!CollectionUtils.isEmpty(deviceList)){
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){
DscInstallOrderBackDeviceDto deviceDTO = new DscInstallOrderBackDeviceDto();
deviceDTO.setDevNo(d.getDeviceNo());
......@@ -81,6 +86,8 @@ public class DscInstallOrderFeedBackTask implements Runnable{
deviceDTO.setDevType(1);
}else if ("sys_order_service_item_wireless_dasouche".equals(dev_type)){
deviceDTO.setDevType(2);
}else if ("sys_order_service_item_tiny_dasouche".equals(dev_type)){
deviceDTO.setDevType(4);
}else {
continue;
}
......@@ -89,12 +96,7 @@ public class DscInstallOrderFeedBackTask implements Runnable{
deviceDTO.setDevSupplier(supplier.getChooseSupplier());
deviceDTO.setDevModel(""); //设备型号
deviceDTO.setDevPosition(d.getInstallLocation());
if(!CollectionUtils.isEmpty(imgList)){
String imgs = JSON.toJSONString(imgPaths);
deviceDTO.setImgUrl(imgs);
}else{
deviceDTO.setImgUrl("null");
}
deviceDTO.setImgUrl(devImg);
deviceDTO.setDevOwner(1);
deviceDtoList.add(deviceDTO);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!