Commit a6a1e040 by 章家宝

feat:发拍小程序新增发拍用户隐私协议

1 parent f3125fdb
...@@ -31,7 +31,7 @@ public class VrAuditController { ...@@ -31,7 +31,7 @@ public class VrAuditController {
* <p>根据vehicleId查询对应的发拍单保留价,查询不到则抛出业务异常</p> * <p>根据vehicleId查询对应的发拍单保留价,查询不到则抛出业务异常</p>
*/ */
@GetMapping("/reservePrice/{vehicleId}") @GetMapping("/reservePrice/{vehicleId}")
@Operation(summary = "查询发拍单保留价", description = "根据车辆ID查询发拍单配置的保留价,查询不到则抛出业务异常") @Operation(summary = "查询发拍单保留价(万元)", description = "根据车辆ID查询发拍单配置的保留价")
public BaseResp<BigDecimal> getReservePrice(@PathVariable Integer vehicleId) { public BaseResp<BigDecimal> getReservePrice(@PathVariable Integer vehicleId) {
log.info("查询发拍单保留价请求: vehicleId={}", vehicleId); log.info("查询发拍单保留价请求: vehicleId={}", vehicleId);
try { try {
......
...@@ -13,4 +13,6 @@ public interface DatePatternConsts { ...@@ -13,4 +13,6 @@ public interface DatePatternConsts {
/** "yyyy-MM-dd HH:mm:ss" */ /** "yyyy-MM-dd HH:mm:ss" */
String PATTERN_YMDHMSS = "yyyy-MM-dd HH:mm:ss"; String PATTERN_YMDHMSS = "yyyy-MM-dd HH:mm:ss";
String PATTERN_YMDHM = "yyyy-MM-dd HH:mm";
} }
...@@ -117,7 +117,13 @@ public class Agreement extends AuditingEntity implements Serializable { ...@@ -117,7 +117,13 @@ public class Agreement extends AuditingEntity implements Serializable {
/** /**
* 关于我们 * 关于我们
*/ */
ABOUT_US; ABOUT_US,
FAPAI_ACCOUNT,
FAPAI_PRIVACY,
;
} }
public enum AgreementState { public enum AgreementState {
......
...@@ -112,7 +112,7 @@ public interface NoticeField { ...@@ -112,7 +112,7 @@ public interface NoticeField {
/** 车型名称 */ /** 车型名称 */
String VR_CAR_TYPE_NAME = "{{车型名称}}"; String VR_CAR_TYPE_NAME = "{{车型名称}}";
/** VIN码全文 */ /** VIN码全文 */
String VR_VIN = "{{VIN码全文}}"; String VR_VIN = "{{VIN}}";
/** 发拍时间 */ /** 发拍时间 */
String VR_PUBLISH_TIME = "{{发拍时间}}"; String VR_PUBLISH_TIME = "{{发拍时间}}";
......
...@@ -328,7 +328,7 @@ public class VrAuditService { ...@@ -328,7 +328,7 @@ public class VrAuditService {
NoticeField.VR_CAR_SERIES_NAME, StrUtil.blankToDefault(entity.getCarSeriesName(), StrUtil.EMPTY), NoticeField.VR_CAR_SERIES_NAME, StrUtil.blankToDefault(entity.getCarSeriesName(), StrUtil.EMPTY),
NoticeField.VR_CAR_TYPE_NAME, StrUtil.blankToDefault(entity.getCarTypeName(), StrUtil.EMPTY), NoticeField.VR_CAR_TYPE_NAME, StrUtil.blankToDefault(entity.getCarTypeName(), StrUtil.EMPTY),
NoticeField.VR_VIN, StrUtil.blankToDefault(entity.getVin(), StrUtil.EMPTY), NoticeField.VR_VIN, StrUtil.blankToDefault(entity.getVin(), StrUtil.EMPTY),
NoticeField.VR_PUBLISH_TIME, DateUtil.format(submitTime, DatePatternConsts.PATTERN_YMDHMSS) NoticeField.VR_PUBLISH_TIME, DateUtil.format(submitTime, DatePatternConsts.PATTERN_YMDHM)
) )
); );
log.info("发拍提交企微通知发送成功,id={},publishNo={}", entity.getId(), entity.getPublishNo()); log.info("发拍提交企微通知发送成功,id={},publishNo={}", entity.getId(), entity.getPublishNo());
...@@ -812,9 +812,9 @@ public class VrAuditService { ...@@ -812,9 +812,9 @@ public class VrAuditService {
if (vrAudit.getVehicleNature() != null) ownership.setUsageType(vrAudit.getVehicleNature()); if (vrAudit.getVehicleNature() != null) ownership.setUsageType(vrAudit.getVehicleNature());
// 更新保留价(万元转元) // 更新保留价(万元转元)
if (vrAudit.getReservePrice() != null) { // if (vrAudit.getReservePrice() != null) {
vehicle.setReservePrice(vrAudit.getReservePrice().multiply(BigDecimal.valueOf(10000)).doubleValue()); // vehicle.setReservePrice(vrAudit.getReservePrice().multiply(BigDecimal.valueOf(10000)).doubleValue());
} // }
// 更新车辆图片 // 更新车辆图片
List<CarImage> carImages = buildCarImages(vrAudit); List<CarImage> carImages = buildCarImages(vrAudit);
......
...@@ -220,6 +220,7 @@ public class VrLoginService { ...@@ -220,6 +220,7 @@ public class VrLoginService {
.userName(userDTO.getUserName()) .userName(userDTO.getUserName())
.roleId(userDTO.getRoleId()) .roleId(userDTO.getRoleId())
.orgId(userDTO.getOrgId()) .orgId(userDTO.getOrgId())
.roleCode(userDTO.getRoleCode())
.orgName(orgName) .orgName(orgName)
.build(); .build();
......
package com.glsx.usedcar.controller;
import com.glsx.usedcar.module.business.entity.Agreement;
import com.glsx.usedcar.module.business.service.AgreementService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* 协议管理(Agreement) PI接口
*
* @since 2025-10-13 12:18:11
*/
@Slf4j
@RestController
@RequestMapping("/api/agreement")
public class AgreementController {
/**
* Agreement服务对象
*/
@Resource
private AgreementService agreementService;
/**
* 根据id查询协议管理
*
* @param agreementKey
* @return
*/
@GetMapping("getAgreementByKey")
public Agreement getAgreementByKey(@RequestParam Agreement.AgreementKey agreementKey) {
return agreementService.getAgreementByKey(agreementKey);
}
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!