|
@@ -275,23 +275,21 @@ public class TranAppServiceImpl implements TranAppService{
|
|
|
return integralIndexDataDTO;
|
|
|
}
|
|
|
@Override
|
|
|
- public CarDTO getCarDetailInfo(Long id, Long userId) throws ServiceException {
|
|
|
+ public CarDTO getCarDetailInfo(Long id) throws ServiceException {
|
|
|
CarDTO carDTO = new CarDTO();
|
|
|
CarDO carDO = carMapper.selectById(id);
|
|
|
BeanUtils.copyProperties(carDO,carDTO);
|
|
|
- UserDO userDO = userMapper.selectById(userId);
|
|
|
- carDTO.setSignImg(userDO.getSignImg());
|
|
|
- Wrapper wrapper = new EntityWrapper();
|
|
|
- wrapper.eq("contract_no",carDO.getTranContractNo());
|
|
|
- TranContractDO tranContractDO = new TranContractDO();
|
|
|
- List<TranContractDO> list = tranContractMapper.selectList(wrapper);
|
|
|
- if(list.size() >0){
|
|
|
- tranContractDO = list.get(0);
|
|
|
- }
|
|
|
- carDTO.setTranContractPdf(tranContractDO.getContractImg());
|
|
|
- if(carDO.getTranNo() != null && !carDO.getTranNo().isEmpty()){
|
|
|
- carDTO.setTranInfo(tranMapper.getTranByTranNo(carDO.getTranNo()));
|
|
|
- }
|
|
|
+// Wrapper wrapper = new EntityWrapper();
|
|
|
+// wrapper.eq("contract_no",carDO.getTranContractNo());
|
|
|
+// TranContractDO tranContractDO = new TranContractDO();
|
|
|
+// List<TranContractDO> list = tranContractMapper.selectList(wrapper);
|
|
|
+// if(list.size() >0){
|
|
|
+// tranContractDO = list.get(0);
|
|
|
+// }
|
|
|
+// carDTO.setTranContractPdf(tranContractDO.getContractImg());
|
|
|
+// if(carDO.getTranNo() != null && !carDO.getTranNo().isEmpty()){
|
|
|
+// carDTO.setTranInfo(tranMapper.getTranByTranNo(carDO.getTranNo()));
|
|
|
+// }
|
|
|
return carDTO;
|
|
|
}
|
|
|
|