Commit 778486b6 by wubh

包活干V2.3.0-修复问题

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30402 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 43cc79cf
......@@ -215,16 +215,6 @@ public class MsFeedbackServiceImpl implements MsFeedbackService {
for (SysOrderDevice savedDevice : savedDeviceList) {
DscInstallOrderBackDeviceDto deviceDto = new DscInstallOrderBackDeviceDto();
deviceDto.setDevNo(savedDevice.getDeviceNo());
String devType = savedDevice.getDeviceType();
if (BizConstants.DSC_ORDER_SERVICE_ITEM_WIRED.equals(devType)) {
deviceDto.setDevType(1);
} else if (BizConstants.DSC_ORDER_SERVICE_ITEM_WIRELESS.equals(devType)) {
deviceDto.setDevType(2);
} else if (BizConstants.DSC_ORDER_SERVICE_ITEM_TINY.equals(devType)) {
deviceDto.setDevType(4);
} else {
continue;
}
List<SysOrderFile> imgList = orderFileMapper.selectOrderFile(
savedOrder.getId(), savedDevice.getSort());
//if (imgList.size() < 2) {
......@@ -251,10 +241,13 @@ public class MsFeedbackServiceImpl implements MsFeedbackService {
deviceDto.setDevPositionImgUrl(devPositionImg);
}
SysOrderDeviceSupplier supplier = orderDeviceSupplierMapper.getDeviceSupplier(
savedOrder.getId(), devType, savedDevice.getSort());
savedOrder.getId(), savedDevice.getDeviceType(),
savedDevice.getSort());
log.info("==== 安装单供应商 {}", JSON.toJSONString(supplier));
deviceDto.setDevSupplier(supplier.getChooseSupplier());
//设备型号
deviceDto.setDevType(MsSignUtil.mapDeviceTypeToMsyz(
savedDevice.getDeviceType()));
deviceDto.setDevModel("");
deviceDto.setDevPosition(savedDevice.getInstallLocation());
// 设备归属:2 服务商
......@@ -308,7 +301,8 @@ public class MsFeedbackServiceImpl implements MsFeedbackService {
for (SysOrderDevice savedDevice : savedDeviceList) {
DscInstallOrderBackDeviceDto deviceDto = new DscInstallOrderBackDeviceDto();
deviceDto.setDevNo(savedDevice.getDeviceNo());
deviceDto.setDevType(MsSignUtil.mapDeviceTypeToMs(savedDevice.getDeviceType()));
deviceDto.setDevType(MsSignUtil.mapDeviceTypeToMsyz(
savedDevice.getDeviceType()));
//是否拆除,1:拆除,2:未拆除
deviceDto.setRemoved(1);
deviceDtoList.add(deviceDto);
......@@ -432,9 +426,10 @@ public class MsFeedbackServiceImpl implements MsFeedbackService {
savedDevice.getSort());
deviceDto.setDevSupplier(supplier.getChooseSupplier());
// 设备型号
deviceDto.setDevType(MsSignUtil.mapDeviceTypeToMsyz(
savedDevice.getDeviceType()));
deviceDto.setDevModel(savedDevice.getDeviceType());
deviceDto.setDevPosition(savedDevice.getInstallLocation());
deviceDto.setDevType(MsSignUtil.mapDeviceTypeToMs(savedDevice.getDeviceType()));
deviceDtoList.add(deviceDto);
}
}
......
......@@ -79,13 +79,13 @@ public class MsSignUtil {
}
}
public static int mapDeviceTypeToMs(String deviceType) {
public static int mapDeviceTypeToMsyz(String deviceType) {
int devType;
if (BizConstants.DSC_ORDER_SERVICE_ITEM_WIRED.equals(deviceType)) {
if (BizConstants.MSYZ_ORDER_SERVICE_ITEM_WIRED.equals(deviceType)) {
devType = 1;
} else if (BizConstants.DSC_ORDER_SERVICE_ITEM_WIRELESS.equals(deviceType)) {
} else if (BizConstants.MSYZ_ORDER_SERVICE_ITEM_WIRELESS.equals(deviceType)) {
devType = 2;
} else if (BizConstants.DSC_ORDER_SERVICE_ITEM_TINY.equals(deviceType)) {
} else if (BizConstants.MSYZ_ORDER_SERVICE_ITEM_TINY.equals(deviceType)) {
devType = 4;
} else {
devType = 3;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!