|
@ -148,6 +148,9 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
//一次交接
|
|
|
//一次交接
|
|
|
BusVehicleInformation newInformation = new BusVehicleInformation(); |
|
|
BusVehicleInformation newInformation = new BusVehicleInformation(); |
|
|
BeanUtil.copyProperties(informationDto, newInformation, "id", "sid"); |
|
|
BeanUtil.copyProperties(informationDto, newInformation, "id", "sid"); |
|
|
|
|
|
if (null == informationDto.getGasCertificate()) { |
|
|
|
|
|
newInformation.setGasCertificate(0); |
|
|
|
|
|
} |
|
|
//移交状态改为移交中
|
|
|
//移交状态改为移交中
|
|
|
entity.setTransferStateKey("003"); |
|
|
entity.setTransferStateKey("003"); |
|
|
entity.setTransferStateValue("移交中"); |
|
|
entity.setTransferStateValue("移交中"); |
|
@ -679,7 +682,9 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
list.add(new AppManiFestBean(0, "保修手册、说明书", "manual", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "保修手册、说明书", "manual", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "环保清单", "environmentalList", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "环保清单", "environmentalList", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "驾驶员卡", "dirverCard", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "驾驶员卡", "dirverCard", "", new ArrayList<>())); |
|
|
list.add(new AppManiFestBean(0, "气瓶产品质量证明书(燃气车)", "gasCertificate", "", new ArrayList<>())); |
|
|
if (vo.getIsFuelVehicle() == 0) { |
|
|
|
|
|
list.add(new AppManiFestBean(0, "气瓶产品质量证明书(燃气车)", "gasCertificate", "", new ArrayList<>())); |
|
|
|
|
|
} |
|
|
vo.setManiFestBeanList(list); |
|
|
vo.setManiFestBeanList(list); |
|
|
return rb.success().setData(vo); |
|
|
return rb.success().setData(vo); |
|
|
} |
|
|
} |
|
@ -696,7 +701,7 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
BusVehicleInformationHandover entity = fetchBySid(sid); |
|
|
BusVehicleInformationHandover entity = fetchBySid(sid); |
|
|
String receiverSid = entity.getReceiverSid(); |
|
|
String receiverSid = entity.getReceiverSid(); |
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(dto.getUserSid()).getData(); |
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(dto.getUserSid()).getData(); |
|
|
String orgPath = sysUserVo.getOrgSidPath(); |
|
|
String orgPath = dto.getOrgPath(); |
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(orgPath).getData(); |
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(orgPath).getData(); |
|
|
List<AppManiFestBean> maniFestBeanList = dto.getManiFestBeanList(); |
|
|
List<AppManiFestBean> maniFestBeanList = dto.getManiFestBeanList(); |
|
|
for (AppManiFestBean appManiFestBean : maniFestBeanList) { |
|
|
for (AppManiFestBean appManiFestBean : maniFestBeanList) { |
|
@ -725,6 +730,9 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
if (StringUtils.isNotBlank(dto.getRemarks())) { |
|
|
if (StringUtils.isNotBlank(dto.getRemarks())) { |
|
|
dto.setTransferRemarks(dto.getRemarks()); |
|
|
dto.setTransferRemarks(dto.getRemarks()); |
|
|
} |
|
|
} |
|
|
|
|
|
if (null == dto.getGasCertificate()) { |
|
|
|
|
|
dto.setGasCertificate(0); |
|
|
|
|
|
} |
|
|
StringBuffer str = new StringBuffer(); |
|
|
StringBuffer str = new StringBuffer(); |
|
|
//车钥匙
|
|
|
//车钥匙
|
|
|
if (dto.getVehicleKeyNum() > 0) { |
|
|
if (dto.getVehicleKeyNum() > 0) { |
|
@ -797,8 +805,6 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
} else { |
|
|
} else { |
|
|
entity.setCompleteState(1); |
|
|
entity.setCompleteState(1); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
entity.setCompleteState(1); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -902,7 +908,7 @@ public class BusVehicleInformationHandoverService extends MybatisBaseService<Bus |
|
|
BusVehicleInformationHandover handover = fetchBySid(sid); |
|
|
BusVehicleInformationHandover handover = fetchBySid(sid); |
|
|
String receiverSid = handover.getReceiverSid(); |
|
|
String receiverSid = handover.getReceiverSid(); |
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(dto.getUserSid()).getData(); |
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(dto.getUserSid()).getData(); |
|
|
String orgPath = sysUserVo.getOrgSidPath(); |
|
|
String orgPath = dto.getOrgPath(); |
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(orgPath).getData(); |
|
|
SysOrganizationVo sysOrganizationVo = sysOrganizationFeign.selectByOrgSidPath(orgPath).getData(); |
|
|
List<BusVehicleInformation> informations = busVehicleInformationService.getByHandoverSid(sid); |
|
|
List<BusVehicleInformation> informations = busVehicleInformationService.getByHandoverSid(sid); |
|
|
if (informations.size() == 1) { |
|
|
if (informations.size() == 1) { |
|
|