ccjgmwz há 3 anos atrás
pai
commit
4f2a7423db

+ 1 - 2
unimall-app-api/src/main/java/com/iotechn/unimall/app/api/tran/TranAppService.java

@@ -89,8 +89,7 @@ public interface TranAppService {
             @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId) throws ServiceException;
     @HttpMethod(description = "获取车辆信息详情")
     CarDTO getCarDetailInfo(
-            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "id") Long id,
-            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId) throws ServiceException;
+            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "id") Long id) throws ServiceException;
     @HttpMethod(description = "匹配")
     Boolean pipei(
             @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "车辆信息Id") Long id,

+ 12 - 14
unimall-app-api/src/main/java/com/iotechn/unimall/app/api/tran/TranAppServiceImpl.java

@@ -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;
     }
 

+ 3 - 0
unimall-launcher/src/main/resources/application.properties

@@ -26,6 +26,9 @@ spring.druid.minIdle=5
 spring.druid.maxWait=10000
 spring.druid.validationQuery="SELECT X"
 
+spring.servlet.multipart.max-file-size= 10MB
+spring.servlet.multipart.max-request-size=10MB
+
 ###\u7CAE\u4FE1\u6570\u636E\u5E93
 spring.liangxin.driverClassName=com.mysql.jdbc.Driver
 spring.liangxin.url=jdbc:mysql://47.100.3.209:3306/talk-portal?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true