[关闭]
@1234567890 2016-08-22T02:10:15.000000Z 字数 18802 阅读 5421

商户版二期

未分类



版本 日期 作者 变更内容 审核
V1.0 2016/8/5 王浩艇 商户版二期
V1.1 2016/8/8 王浩艇 将车辆详情接口(getVehicleDetail)细分成 已售车辆详情(getSoldVehicleDetail) 和 在售车辆详情(getSellingVehicleDetail)

首页


实现思路

获取四个数据   已售总数(经销商)   在售总数(经销商)  收藏数 (登入用户)   钱包余额

所属Service

IntegrationAdminService

url/方法

getBusinessAppIndex

是否需要登入

参数说明

参数名 类型 说明 可否为空
userId Long 登入用户id

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": {
  6. "collected": 2,
  7. "hasSold": 2,
  8. "onSelling": 2,
  9. "walletMoney": 3145.5
  10. },
  11. "success": true
  12. }

经销商模块


该经销商下的已售列表


实现思路

已售的定义
    vehicleSale中的inventoryStatus为已售
1. 根据登入人的id 找到dealerId
2. 根据dealerId和inventoryStatus 查询

所属方法

VehicleAdminService

url/方法

getDealerSoldVehicleSaleList

是否需要登入

输入参数

参数名 类型 说明 可否为空
pagination Integer 页码
userId Long 登入用户Id
appId Integer appId

输出内容

  1. [
  2. {
  3. "attributesMap": {},
  4. "bihuDisplay": 2,
  5. "brandId": 1,
  6. "cityCode": 330100,
  7. "cityName": "杭州",
  8. "dataStatus": 1,
  9. "dealerId": 170,
  10. "dealerPrice": 0.5,
  11. "descriptions": "王浩艇真帅!!!",
  12. "gmtCreated": 1470297087000,
  13. "gmtCreatedStr": "2016-08-04 15:51:27",
  14. "gmtManufacture": 1470295690000,
  15. "gmtManufactureStr": "2016-08-04 15:28:10",
  16. "gmtModified": 1470298944000,
  17. "gmtModifiedStr": "2016-08-04 16:22:24",
  18. "gmtTrade": 1470223921000,
  19. "gmtTradeStr": "2016-08-03 19:32:01",
  20. "inventoryStatus": 5,
  21. "modelId": 3,
  22. "offset": 0,
  23. "pagination": 1,
  24. "rows": 20,
  25. "runKm": "2351",
  26. "runWkm": ".24",
  27. "salesId": 145353900477839,
  28. "seriesId": 2,
  29. "uid": 1123608425382230,
  30. "vehicleId": 1122221827566840,
  31. "vinNumber": "99999999999999999",
  32. "wholePrice": 0.5
  33. }
  34. ]

在售车辆详情


思路

根据车辆详情页面所需数据 查询
五张表:vehicle  vehicleSale vehicleDetection userStaff user 

所属Service

VehicleService

url/方法

getSellingVehicleDetail

是否需要登入

输入参数

参数名 类型 说明 可否为空
vehicleSaleId Long 想要查看的车辆销售Id
userId Long 登入用户Id
appId Integer appId

输出内容

  1. {
  2. "attributesMap": {},
  3. "dealerDisplayInfo": {
  4. "dealerTitle": "杭州安达旧机动车有限公司",
  5. "mobile": "18158112780",
  6. "realName": "孔小志"
  7. },
  8. "gmtCreatedStr": "",
  9. "gmtModifiedStr": "",
  10. "offset": 0,
  11. "pagination": 1,
  12. "rows": 20,
  13. "vehicle": {
  14. "appId": 20151101,
  15. "attributesMap": {},
  16. "brandId": 36,
  17. "dataStatus": 1,
  18. "detectionTimeStr": "08.04",
  19. "displacement": "2",
  20. "gmtAnnualInspectionEnd": 1470298943000,
  21. "gmtAnnualInspectionEndStr": "2016-08-04",
  22. "gmtCompulsoryEnd": 1470298943000,
  23. "gmtCompulsoryEndStr": "2016-08-04",
  24. "gmtCreated": 1470298944000,
  25. "gmtCreatedStr": "2016-08-04 16:22:24",
  26. "gmtLicensed": 1470295690000,
  27. "gmtLicensedStr": "2016-08-04",
  28. "gmtLicensedYMDStr": "2016.08.04",
  29. "gmtManufacture": 1470295690000,
  30. "gmtManufactureStr": "2016-08-04",
  31. "gmtManufactureYMDStr": "2016.08.04",
  32. "gmtModified": 1470298944000,
  33. "gmtModifiedStr": "2016-08-04 16:22:24",
  34. "happenTimeStr": "",
  35. "modelId": 3010630,
  36. "mortgage": 1,
  37. "mortgageStr": "能",
  38. "offset": 0,
  39. "pagination": 1,
  40. "picUrlList": [],
  41. "rows": 20,
  42. "runKm": 2351,
  43. "runWkm": ".24",
  44. "seriesId": 1000072,
  45. "shareUrl": "http://127.0.0.1:8080/bihu/app/vehicle/vehicle_detail.html?vehicleId=1122221827566840",
  46. "surfaceColor": "红12121色",
  47. "transfer": 1,
  48. "transferStr": "能",
  49. "uid": 1122221827566840,
  50. "vinNumber": "99999999999999999",
  51. "vinNumberShort": "999999"
  52. },
  53. "vehicleDetection": {
  54. "appId": 20151101,
  55. "attributesMap": {},
  56. "authorizeDesc": "流量监控",
  57. "authorizeOverview": "本车经过壁虎车保专业严格检测,结果如下:当前车辆发动机系统、变速箱系统、传动系统均无明显异常,所有部件均未发现火烧、泡水痕迹,检测项中所包含内容均可正常使用,检测合格。",
  58. "authorizeRealName": "杨志华",
  59. "authorizeStatus": 1,
  60. "authorizeStatusName": "合格",
  61. "authorizeUserId": 145369222804045,
  62. "brandId": 33,
  63. "dataStatus": 1,
  64. "dealerId": 170,
  65. "dealerPrice": 55555,
  66. "dealerPriceStr": "5.56",
  67. "detectorId": 145369222804045,
  68. "detectorRealName": "杨志华",
  69. "gmtAuthorized": 1461658901000,
  70. "gmtCreated": 1461650573000,
  71. "gmtCreatedStr": "2016-04-26 14:02:53",
  72. "gmtDetectValidYmd": "2016-05-26",
  73. "gmtDetected": 1461650573000,
  74. "gmtDetectedStr": "2016-04-26 14:02:53",
  75. "gmtDetectedYmd": "2016-04-26",
  76. "gmtModified": 1461658901000,
  77. "gmtModifiedStr": "2016-04-26 16:21:41",
  78. "huaxiaSyncStatusName": "未同步",
  79. "modelId": 2101085,
  80. "number": "2016-04-26-41368811",
  81. "offset": 0,
  82. "pagination": 1,
  83. "picUrlList": [
  84. "http://img.bihu.com.cn/7fe26e87bd314c74a00635a72b5dafcb.jpg",
  85. "http://img.bihu.com.cn/558dfbf984a6d1b1a2f6800f027cfc07.jpg",
  86. "http://img.bihu.com.cn/3cb6ea2f620371b1bedd98a4d2c09e6f.jpg",
  87. "http://img.bihu.com.cn/7bea25c8fe560b5df3252d2aa1598884.jpg",
  88. "http://img.bihu.com.cn/7b9a095837d1a37d746049bc03a8438d.jpg"
  89. ],
  90. "picsUrl": "http://img.bihu.com.cn/7fe26e87bd314c74a00635a72b5dafcb.jpg;http://img.bihu.com.cn/558dfbf984a6d1b1a2f6800f027cfc07.jpg;http://img.bihu.com.cn/3cb6ea2f620371b1bedd98a4d2c09e6f.jpg;http://img.bihu.com.cn/7bea25c8fe560b5df3252d2aa1598884.jpg;http://img.bihu.com.cn/7b9a095837d1a37d746049bc03a8438d.jpg",
  91. "qrCode": "",
  92. "repairerId": 145354106425492,
  93. "rows": 20,
  94. "runKm": 51,
  95. "runWkm": ".01",
  96. "seriesId": 1100014,
  97. "showReportEntry": false,
  98. "subType": 1,
  99. "type": 1,
  100. "uid": 70941764155782,
  101. "vehicleId": 1122221827566840,
  102. "vinNumber": "99999999999999999",
  103. "vinNumberShort": "555556"
  104. },
  105. "vehicleSale": {
  106. "attributesMap": {},
  107. "bihuDisplay": 2,
  108. "brandId": 1,
  109. "cityCode": 330100,
  110. "cityName": "杭州",
  111. "dataStatus": 1,
  112. "dealerId": 170,
  113. "dealerPrice": 0.5,
  114. "descriptions": "王浩艇真帅!!!",
  115. "gmtCreated": 1470297087000,
  116. "gmtCreatedStr": "2016-08-04 15:51:27",
  117. "gmtManufacture": 1470295690000,
  118. "gmtManufactureStr": "2016-08-04 15:28:10",
  119. "gmtModified": 1470298944000,
  120. "gmtModifiedStr": "2016-08-04 16:22:24",
  121. "gmtTrade": 1470223921000,
  122. "gmtTradeStr": "2016-08-03 19:32:01",
  123. "inventoryStatus": 5,
  124. "modelId": 3,
  125. "offset": 0,
  126. "pagination": 1,
  127. "rows": 20,
  128. "runKm": "2351",
  129. "runWkm": ".24",
  130. "salesId": 5073832950801570,
  131. "seriesId": 2,
  132. "uid": 1123608425382230,
  133. "vehicleId": 1122221827566840,
  134. "vinNumber": "99999999999999999",
  135. "wholePrice": 0.5
  136. }
  137. }

已销售车辆详情


思路

根据车辆详情页面所需数据 查询
四张表:vehicle  vehicleSale userStaff user

所属Service

VehicleService

url/方法

getSoldVehicleDetail

是否需要登入

输入参数

参数名 类型 说明 可否为空
vehicleSaleId Long 想要查看的车辆销售Id
userId Long 登入用户Id
appId Integer appId

输出内容

  1. {
  2. "attributesMap": {},
  3. "dealerDisplayInfo": {
  4. "dealerTitle": "杭州安达旧机动车有限公司",
  5. "dutyName": "经销商",
  6. "mobile": "18158112780",
  7. "realName": "孔小志"
  8. },
  9. "gmtCreatedStr": "",
  10. "gmtModifiedStr": "",
  11. "offset": 0,
  12. "pagination": 1,
  13. "rows": 20,
  14. "vehicle": {
  15. "appId": 20151101,
  16. "attributesMap": {},
  17. "brandId": 36,
  18. "dataStatus": 1,
  19. "detectionTimeStr": "08.04",
  20. "displacement": "2",
  21. "gmtAnnualInspectionEnd": 1470298943000,
  22. "gmtAnnualInspectionEndStr": "2016-08-04",
  23. "gmtCompulsoryEnd": 1470298943000,
  24. "gmtCompulsoryEndStr": "2016-08-04",
  25. "gmtCreated": 1470298944000,
  26. "gmtCreatedStr": "2016-08-04 16:22:24",
  27. "gmtLicensed": 1470295690000,
  28. "gmtLicensedStr": "2016-08-04",
  29. "gmtLicensedYMDStr": "2016.08.04",
  30. "gmtManufacture": 1470295690000,
  31. "gmtManufactureStr": "2016-08-04",
  32. "gmtManufactureYMDStr": "2016.08.04",
  33. "gmtModified": 1470298944000,
  34. "gmtModifiedStr": "2016-08-04 16:22:24",
  35. "happenTimeStr": "",
  36. "modelId": 3010630,
  37. "mortgage": 1,
  38. "mortgageStr": "能",
  39. "offset": 0,
  40. "pagination": 1,
  41. "picUrlList": [],
  42. "rows": 20,
  43. "runKm": 2351,
  44. "runWkm": ".24",
  45. "seriesId": 1000072,
  46. "shareUrl": "http://127.0.0.1:8080/bihu/app/vehicle/vehicle_detail.html?vehicleId=1122221827566840",
  47. "surfaceColor": "红12121色",
  48. "transfer": 1,
  49. "transferStr": "能",
  50. "uid": 1122221827566840,
  51. "vinNumber": "99999999999999999",
  52. "vinNumberShort": "999999"
  53. },
  54. "vehicleDetection": {
  55. "appId": 20151101,
  56. "attributesMap": {},
  57. "authorizeDesc": "流量监控",
  58. "authorizeOverview": "本车经过壁虎车保专业严格检测,结果如下:当前车辆发动机系统、变速箱系统、传动系统均无明显异常,所有部件均未发现火烧、泡水痕迹,检测项中所包含内容均可正常使用,检测合格。",
  59. "authorizeRealName": "杨志华",
  60. "authorizeStatus": 1,
  61. "authorizeStatusName": "合格",
  62. "authorizeUserId": 145369222804045,
  63. "brandId": 33,
  64. "dataStatus": 1,
  65. "dealerId": 170,
  66. "dealerPrice": 55555,
  67. "dealerPriceStr": "5.56",
  68. "detectorId": 145369222804045,
  69. "detectorRealName": "杨志华",
  70. "gmtAuthorized": 1461658901000,
  71. "gmtCreated": 1461650573000,
  72. "gmtCreatedStr": "2016-04-26 14:02:53",
  73. "gmtDetectValidYmd": "2016-05-26",
  74. "gmtDetected": 1461650573000,
  75. "gmtDetectedStr": "2016-04-26 14:02:53",
  76. "gmtDetectedYmd": "2016-04-26",
  77. "gmtModified": 1461658901000,
  78. "gmtModifiedStr": "2016-04-26 16:21:41",
  79. "huaxiaSyncStatusName": "未同步",
  80. "modelId": 2101085,
  81. "number": "2016-04-26-41368811",
  82. "offset": 0,
  83. "pagination": 1,
  84. "picUrlList": [
  85. "http://img.bihu.com.cn/7fe26e87bd314c74a00635a72b5dafcb.jpg",
  86. "http://img.bihu.com.cn/558dfbf984a6d1b1a2f6800f027cfc07.jpg",
  87. "http://img.bihu.com.cn/3cb6ea2f620371b1bedd98a4d2c09e6f.jpg",
  88. "http://img.bihu.com.cn/7bea25c8fe560b5df3252d2aa1598884.jpg",
  89. "http://img.bihu.com.cn/7b9a095837d1a37d746049bc03a8438d.jpg"
  90. ],
  91. "picsUrl": "http://img.bihu.com.cn/7fe26e87bd314c74a00635a72b5dafcb.jpg;http://img.bihu.com.cn/558dfbf984a6d1b1a2f6800f027cfc07.jpg;http://img.bihu.com.cn/3cb6ea2f620371b1bedd98a4d2c09e6f.jpg;http://img.bihu.com.cn/7bea25c8fe560b5df3252d2aa1598884.jpg;http://img.bihu.com.cn/7b9a095837d1a37d746049bc03a8438d.jpg",
  92. "qrCode": "",
  93. "repairerId": 145354106425492,
  94. "rows": 20,
  95. "runKm": 51,
  96. "runWkm": ".01",
  97. "seriesId": 1100014,
  98. "showReportEntry": false,
  99. "subType": 1,
  100. "type": 1,
  101. "uid": 70941764155782,
  102. "vehicleId": 1122221827566840,
  103. "vinNumber": "99999999999999999",
  104. "vinNumberShort": "555556"
  105. },
  106. "vehicleSale": {
  107. "attributesMap": {},
  108. "authorizeStatus": 2,
  109. "bihuDisplay": 1,
  110. "cityCode": 123,
  111. "cityName": "宁波",
  112. "dataStatus": 1,
  113. "dealerId": 170,
  114. "dealerPrice": 1351,
  115. "descriptions": "王浩艇真帅",
  116. "gmtAuthorized": 1470131031000,
  117. "gmtCreated": 1470217339000,
  118. "gmtCreatedStr": "2016-08-03 17:42:19",
  119. "gmtManufactureStr": "",
  120. "gmtModified": 1470217343000,
  121. "gmtModifiedStr": "2016-08-03 17:42:23",
  122. "gmtTradeStr": "",
  123. "happenTime": 1470130996000,
  124. "inventoryStatus": 2,
  125. "offset": 0,
  126. "pagination": 1,
  127. "rows": 20,
  128. "runWkm": "",
  129. "uid": 241234,
  130. "userRealName": "王浩艇",
  131. "vehicleId": 1122221827566840,
  132. "vinNumber": "99999999999999999",
  133. "wholePrice": 435123
  134. }
  135. }

同店好车


思路

根据dealerId 获取该经销商下前10辆  检测通过,在售  的vehicleSale

所属Service

VehicleService

url/方法

getVehicleSaleListWithDealerId

是否需要登入

输入参数

参数名 类型 说明 可否为空
dealerId Long 经销商id
userId Long 登入用户Id
appId Integer appId

输出内容

  1. [
  2. {
  3. "attributesMap": {},
  4. "authorizeStatus": 1,
  5. "bihuDisplay": 1,
  6. "cityCode": 123,
  7. "cityName": "宁波",
  8. "dataStatus": 1,
  9. "dealerId": 170,
  10. "dealerPrice": 1351,
  11. "descriptions": "王浩艇真帅",
  12. "gmtAuthorized": 1470131031000,
  13. "gmtCreated": 1470217339000,
  14. "gmtCreatedStr": "2016-08-03 17:42:19",
  15. "gmtManufactureStr": "",
  16. "gmtModified": 1470217343000,
  17. "gmtModifiedStr": "2016-08-03 17:42:23",
  18. "gmtTradeStr": "",
  19. "happenTime": 1470130996000,
  20. "inventoryStatus": 2,
  21. "offset": 0,
  22. "pagination": 1,
  23. "rows": 20,
  24. "runWkm": "",
  25. "uid": 241234,
  26. "userRealName": "王浩艇",
  27. "vehicleId": 1122221827566840,
  28. "vinNumber": "99999999999999999",
  29. "wholePrice": 435123
  30. }
  31. ]

4S保养记录查询


核对车辆状态-----是否可查

实现思路

首先判断 brand 是包含纳智捷与铃木(原因:车鉴定查询 vinNumber + engine),然后调用车鉴定api查询是否可查

所属Service

MaintainRecordService

url/方法

checkBrand

是否需要登入

输入参数

参数名 类型 说明 可否为空
vin String 17位车架号
brand String 品牌名称
userId Long 登入用户Id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": {
  6. "brandStatus": 2,
  7. "message": "品牌可查询",
  8. "status": 1
  9. },
  10. "success": true
  11. }

购买4s查询报告


实现思路

1. checke品牌是否可查  步骤根据 核对车辆状态-----是否可查
2. check账号是否还能购买
3. order cjdOrder 下订单
4. 走支付流程

所属Service

OrderServiceImpl

url/方法

payingOrderCJD

是否需要登入

输入参数

参数名 类型 说明 可否为空
mobile String 手机号码
vin String 车架号
brandId String 车品牌Id
payType Integer 支付类型(参考PayType)
userId Long 登入用户id
appId Integer appId

输出参数

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": {
  6. "adjustableMaxFee": 20,
  7. "adjustableMinFee": 20,
  8. "alipay": {
  9. "attributesMap": {},
  10. "gmtCreatedStr": "",
  11. "gmtModifiedStr": "",
  12. "offset": 0,
  13. "pagination": 1,
  14. "rows": 20,
  15. "rsaPrivateKey": "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALQLIeJyRFGh0tgw9m78RaNT5fTtWXefDkHVHfr7axnovxvFQOu75j/f6maA7c0WBduThTUOv/oyJNPPBft4XlCThgwVfKdAFXjEfN9FhDK9pnl6iSZXXnvOScCKGmWgRxb6ek3JgXoEmkOg4mjfqBTX6ch9uQIC0pdigDtE0lhxAgMBAAECgYB0L0rqirqzwy4A/XfKH1oBED8xU4mMvEPDD/iM4no2+g95qE1A0ry/M4xcIY9T7YZSMFyh5KbWmk1RsiM2KHMTj0VuT5ygHdm0OHUt3IVWrFzzLLlEcVFhKLD9rEdIC1PoekAe7WwS4I5TU7d2It0bTPOAyR55yRrfxXSiSA1lkQJBANj4fG85rI2NGK1Dj5JvJ3Ec1zqUcDuwxLFMnhcP4GkuYbkfDvM6uJbkYVr0UNoORIiBpSrSJsH4qEwMH4537DsCQQDUbiXVgcOlqjAWlfuyGCXyX0O2sSB7kt9qKmXZgMwLqMxp6LA9VNJApL33UatLDBWLukfnw/LQksq+GWjNFz9DAkEAwSkPVtIIrYhExNPV+K7edVQQxMUr2eg4ZAPq5msrBVjWhUGCRMYtWaB+j8PcSxTSrJiG28V13dAqvHE6ktJuywJAQKVkjhz3VSr9h2INPp1qrt+e07IDmJeRtdVBOXegoMu1qWVOfNubQGDiDqmj3yrGQ8dkqntPIXoKiN9irUct0QJBAM8JnudVQheTiNnNpmbdoULWKZAZRQuI5Fl0urAUIpQ3XiFeQRpLWkfE2jLxr9xJfP7bc71CbpjKtukVSnnOkds="
  16. },
  17. "appId": 20151101,
  18. "attributesMap": {},
  19. "detail": false,
  20. "gmtCreated": 1470194531270,
  21. "gmtCreatedStr": "2016-08-03 11:22:11",
  22. "gmtModified": 1470194531270,
  23. "gmtModifiedStr": "2016-08-03 11:22:11",
  24. "gmtPaidStr": "",
  25. "gmtServiceEndStr": "",
  26. "gmtServiceStartStr": "",
  27. "gmtServiceStr": "",
  28. "gmtUsedStr": "",
  29. "goodsDescPicList": [],
  30. "goodsFullTitle": "4S保养记录查询",
  31. "goodsId": 136907770833290,
  32. "goodsPicList": [],
  33. "goodsTitle": "4S保养记录查询",
  34. "main": false,
  35. "mainAndDetail": false,
  36. "offset": 0,
  37. "pagination": 1,
  38. "payAmount": 20,
  39. "payStatus": 1,
  40. "payStatusName": "未支付",
  41. "preferentialPrice": 20,
  42. "primePrice": 20,
  43. "quantity": 1,
  44. "rows": 20,
  45. "title": "4S保养记录查询",
  46. "uid": 1021046201304558,
  47. "useAble": false,
  48. "useCouponDesc": "",
  49. "userId": 6308485799426221,
  50. "userName": "15757856511",
  51. "vinNumber": "LBVPS7107BSE57119"
  52. },
  53. "success": true
  54. }

4s查询报告结果查询


实现思路

查询 t_cjd_order 根据userId查询

所属Service

OrderAdminServiceImpl

url/方法

getCjdOrders

是否需要登入

输入参数

参数名 类型 说明 可否为空
pagination Integer 页码
userId Long 登入用户id
appId Integer appId

输出参数

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": [
  6. {
  7. "appId": 20151101,
  8. "attributesMap": {},
  9. "brand": "宝马",
  10. "dataStatus": 1,
  11. "gmtCreated": 1470737677000,
  12. "gmtCreatedStr": "2016-08-09 18:14:37",
  13. "gmtModified": 1469678894000,
  14. "gmtModifiedStr": "2016-07-28 12:08:14",
  15. "mobile": "15757856511",
  16. "offset": 0,
  17. "orderId": "9f0fc5eb03704f5c9a54d1e39fcce5e7",
  18. "orderNo": 138344697817164,
  19. "pagination": 1,
  20. "payStatus": 3,
  21. "reportUrl": "http://img.bihu.com.cn/fd4cf887fda815ebc44cf9e4d482c3d5.html",
  22. "rows": 20,
  23. "uid": 138344751347106,
  24. "userId": 145370510800765,
  25. "vin": "LBVPS7107BSE57119"
  26. },
  27. {
  28. "appId": 20151101,
  29. "attributesMap": {},
  30. "brand": "宝马",
  31. "dataStatus": 1,
  32. "gmtCreated": 1470737678000,
  33. "gmtCreatedStr": "2016-08-09 18:14:38",
  34. "gmtModified": 1468467983000,
  35. "gmtModifiedStr": "2016-07-14 11:46:23",
  36. "mobile": "13083968018",
  37. "offset": 0,
  38. "orderId": "9f0fc5eb03704f5c9a54d1e39fcce5e7",
  39. "orderNo": 138427444704913,
  40. "pagination": 1,
  41. "payStatus": 1,
  42. "reportUrl": "htttp://test",
  43. "rows": 20,
  44. "uid": 138427499308434,
  45. "userId": 145370510800765,
  46. "vin": "LBVPS7107BSE57119"
  47. },
  48. {
  49. "appId": 20151101,
  50. "attributesMap": {},
  51. "brand": "宝马",
  52. "dataStatus": 1,
  53. "gmtCreated": 1470737679000,
  54. "gmtCreatedStr": "2016-08-09 18:14:39",
  55. "gmtModified": 1470194531000,
  56. "gmtModifiedStr": "2016-08-03 11:22:11",
  57. "mobile": "15757856511",
  58. "offset": 0,
  59. "orderNo": 1021046201304558,
  60. "pagination": 1,
  61. "payStatus": 1,
  62. "rows": 20,
  63. "uid": 1021046259596669,
  64. "userId": 145370510800765,
  65. "vin": "LBVPS7107BSE57119"
  66. }
  67. ],
  68. "success": true
  69. }

收藏


收藏列表

实现思路

根据userId查询v_vehicle_collected,获VehicleCollected;然后根据vehicleIds 批量查询最新的v_vehicle_sale,获得Vehicle。将Vehicle填充到VehicelCollection

所属Service

VehicleAdminService

url/方法

getCollects

是否需要登入

输入参数

参数名 类型 说明 可否为空
pagination Integer 页码(默认 1)
userId Long 登入用户id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": [
  6. {
  7. "appId": 20151101,
  8. "attributesMap": {},
  9. "dataStatus": 1,
  10. "gmtCreated": 1470215873000,
  11. "gmtCreatedStr": "2016-08-03 17:17:53",
  12. "gmtModified": 1470215873000,
  13. "gmtModifiedStr": "2016-08-03 17:17:53",
  14. "offset": 0,
  15. "pagination": 1,
  16. "rows": 20,
  17. "uid": 1042388706317558,
  18. "userId": 123,
  19. "vehicleId": 23142351,
  20. "vehicleSale": {
  21. "attributesMap": {},
  22. "authorizeStatus": 2,
  23. "bihuDisplay": 1,
  24. "cityCode": 123,
  25. "cityName": "宁波",
  26. "dataStatus": 1,
  27. "dealerId": 12314,
  28. "dealerPrice": 1351,
  29. "descriptions": "王浩艇真帅",
  30. "gmtAuthorized": 1470131031000,
  31. "gmtCreated": 1470217339000,
  32. "gmtCreatedStr": "2016-08-03 17:42:19",
  33. "gmtModified": 1470217343000,
  34. "gmtModifiedStr": "2016-08-03 17:42:23",
  35. "happenTime": 1470130996000,
  36. "inventoryStatus": 2,
  37. "offset": 0,
  38. "pagination": 1,
  39. "rows": 20,
  40. "uid": 241234,
  41. "userRealName": "王浩艇",
  42. "vehicleId": 23142351,
  43. "vinNumber": "12512",
  44. "wholePrice": 435123
  45. }
  46. }
  47. ],
  48. "success": true
  49. }

收藏删除


实现思路

根据传入的vehicleIds批量删除

所属Service

VehicleAdminService

url/方法

deleteCollects

是否需要登入

输入参数

参数名 类型 说明 可否为空
uids Long[] 需要删除的收藏Ids
userId Long 登入用户id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "success": true
  6. }

收藏增加


实现思路

根据传入的vehicleId插入

所属Service

VehicleAdminService

url/方法

addCollect

是否需要登入

输入参数

参数名 类型 说明 可否为空
vehicleId Long vehicleId
userId Long 登入用户id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": {
  6. "appId": 20151101,
  7. "attributesMap": {},
  8. "gmtCreated": 1470217748044,
  9. "gmtCreatedStr": "2016-08-03 17:49:08",
  10. "gmtModified": 1470217748044,
  11. "gmtModifiedStr": "2016-08-03 17:49:08",
  12. "offset": 0,
  13. "pagination": 1,
  14. "rows": 20,
  15. "uid": 1044263031498497,
  16. "userId": 123,
  17. "vehicleId": 23142351
  18. },
  19. "success": true
  20. }

经销商车辆管理(新增,修改)


图片上传

所属Service

CdnService

url/方法

uploadWithSuffix

是否需要登入

输入参数

参数名 类型 说明 可否为空
data byte[] 图片二进制
suffix String 格式(jpg)
userId Long 登入用户id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": "http://img.bihu.com.cn/99a193b6317bc79e90c7621baf773177.jpg",
  6. "success": true
  7. }

图片更新


思路

ALTER TABLE `v_vehicle` ADD COLUMN `pic_url_attr` VARCHAR(45) NULL DEFAULT NULL COMMENT '图片' AFTER `pics_url`;

所属Service

VehicleAdminService

url/方法

updateVehiclePic

是否需要登入

输入参数

参数名 类型 说明 可否为空
vinNumber String 车架号
vehiclePic VehicelPic 车辆图片"集合"
userId Long 登入用户id
appId Integer appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "success": true
  6. }

新增车辆销售信息


思路

vehicle vehicleSale 2张表字段冗余
vehicle插入字段
brandId seriesId modelId vinnNumber gmtManufacture runKm displacement gmtLicensed surfaceColor gmtCompulsoryEndStr gmtAnnualInspectionEndStr transfer mortgage descriptions
vehicleSale插入字段
vinNumber runKm gmtManufacture brandId seriesId modelId  dealerPrice wholePrice cityCode cityName dealerId des

1. 判读参数合法性
2. 根据vinNumber查询车辆
    如果不存在,插入vehicle vehicleSale
    如果存在,根据vinNumber,dealerId查询vehicleSale
        如果不存在 插入vehicleSale
        如果存在 返回 Result.valueOfError("该车辆已经添加");

所属Service

VehicleAdminService

url/方法

addVehicleForDealer

是否需要登入

输入参数

参数名 类型 说明 能否为空
vehicle Vehicle 一个对象:vehicle传入字段:brandId seriesId modelId vinnNumber gmtManufacture runKm displacement gmtLicensed surfaceColor gmtCompulsoryEnd gmtAnnualInspectionEnd transfer mortgage
vehicleSale VehicleSale 一个对象:VehicleSale传入字段:dealerPrice wholePrice descriptions
userId
appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "success": true
  6. }

获取车辆销售信息


思路

根据vehicleSaleId获取销售信息

所属Service

VehicleAdminService

url/方法

getVehicleSale

是否需要登入

输入参数

参数名 类型 说明 能否为空
vehicleSaleId VehicleSaleId 需要查询的销售信息
userId
appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "model": {
  6. "attributesMap": {},
  7. "bihuDisplay": 2,
  8. "brandId": 1,
  9. "cityCode": 330100,
  10. "cityName": "杭州",
  11. "dataStatus": 1,
  12. "dealerId": 170,
  13. "dealerPrice": 35243.5,
  14. "descriptions": "王浩艇真帅",
  15. "gmtCreated": 1470795416000,
  16. "gmtCreatedStr": "2016-08-10 10:16:56",
  17. "gmtManufacture": 1470795415000,
  18. "gmtManufactureStr": "2016-08-10 10:16:55",
  19. "gmtModified": 1470795416000,
  20. "gmtModifiedStr": "2016-08-10 10:16:56",
  21. "gmtTradeStr": "",
  22. "inventoryStatus": 1,
  23. "modelId": 3,
  24. "offset": 0,
  25. "pagination": 1,
  26. "rows": 20,
  27. "runKm": "2351",
  28. "runWkm": ".24",
  29. "seriesId": 2,
  30. "uid": 394860954352572,
  31. "uploaderId": 5073832950801570,
  32. "uploaderType": 2,
  33. "vehicleId": 394860638362773,
  34. "vinNumber": "99999999999999999",
  35. "wholePrice": 3423.5
  36. },
  37. "success": true
  38. }

更新车辆销售信息


思路

更新vehicle 和 vehicleSale 只能更新部分字段
vehicle字段:surfaceColor gmtCompulsoryEndStr gmtAnnualInspectionEndStr transfer mortgage descriptions
vehicleSale字段:dealerPrice wholePrice

所属Service

VehicleAdminService

url/方法

updateVehicleForDealer

是否需要登入

输入参数

参数名 类型 说明 能否为空
vehicle Vehicle 一个对象:vehicle传入字段:vehicleId vinsurfaceColor gmtCompulsoryEndStr gmtAnnualInspectionEndStr transfer mortgage
vehicleSale VehicleSale 一个对象:VehicleSale传入字段:dealerPrice wholePrice descriptions
userId
appId

输出内容

  1. {
  2. "code": 1,
  3. "fail": false,
  4. "message": "默认的成功返回值",
  5. "success": true
  6. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注