|
|
@ -217,13 +217,13 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
inboundVehicle.setOrgSidPath(orgPath); |
|
|
|
inboundVehicle.setNewUpdateDate(DateUtil.formatDate(new Date())); |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(dto.getLogo())) { |
|
|
|
/*if (StringUtils.isNotBlank(dto.getLogo())) { |
|
|
|
if (dto.getLogo().equals("1")) { |
|
|
|
inboundVehicle.setOrgPriceDate(""); |
|
|
|
} |
|
|
|
} else { |
|
|
|
inboundVehicle.setOrgPriceDate(DateUtil.formatDate(new Date())); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
save(inboundVehicle); |
|
|
|
String num = dto.getNum(); |
|
|
|
if (StringUtils.isNotBlank(num) && StringUtils.isNumeric(num)) { |
|
|
@ -1026,7 +1026,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
return new ResultBean().fail().setMsg("车型与配置贷款或全款销售指导价未维护,不可确认"); |
|
|
|
} |
|
|
|
List<ScmApplyInboundVehicleDto> vehicleList = dto.getVehicleList(); |
|
|
|
int vinCount = 0; |
|
|
|
/*int vinCount = 0; |
|
|
|
if (!vehicleList.isEmpty()) { |
|
|
|
for (ScmApplyInboundVehicleDto scmApplyInboundVehicleDto : vehicleList) { |
|
|
|
if (StringUtils.isNotBlank(scmApplyInboundVehicleDto.getVinNo()) && StringUtils.isNotBlank(scmApplyInboundVehicleDto.getEngineNo())) { |
|
|
@ -1037,7 +1037,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
if (vinCount < Integer.parseInt(num)) { |
|
|
|
dto.setOrgPriceDate(""); |
|
|
|
dto.setLogo("1"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if (StringUtils.isBlank(busSid)) { |
|
|
|
ResultBean<String> resultBean = saveOrUpdateApplyInBound(dto); |
|
|
|
if (!resultBean.getSuccess()) { |
|
|
@ -1051,7 +1051,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
String vinNo = scmApplyInboundVehicleDto.getVinNo(); |
|
|
|
if (StringUtils.isBlank(vinNo)) { |
|
|
|
scmApplyInboundVehicleService.deleteBySid(scmApplyInboundVehicleDto.getSid()); |
|
|
|
BeanUtil.copyProperties(scmApplyInbound, scmApplyInboundDto); |
|
|
|
BeanUtil.copyProperties(scmApplyInbound, scmApplyInboundDto, "orgPriceDate"); |
|
|
|
scmApplyInboundDto.setSid(null); |
|
|
|
scmApplyInboundVehicleDtos1.add(scmApplyInboundVehicleDto); |
|
|
|
} |
|
|
|