Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gsc
/
gsc-vcp-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7562f445
authored
Nov 14, 2025
by
张富康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
定时任务调整
保存车辆管理信息,推送拍卖端挪动
1 parent
eab44bad
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
27 deletions
pom.xml
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/car/CarManageInfo.java
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/contract/ElectronicContractOaAudit.java
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/evalorder/EvalElectronicContract.java
src/main/java/com/gsc4cloud/gsc/vpc/api/util/EvalNoGenerator.java
src/main/java/com/gsc4cloud/gsc/vpc/api/util/RestfulAuthUtils.java
pom.xml
View file @
7562f44
...
@@ -56,6 +56,11 @@
...
@@ -56,6 +56,11 @@
<artifactId>
guava
</artifactId>
<artifactId>
guava
</artifactId>
<version>
33.5.0-jre
</version>
<version>
33.5.0-jre
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.gsc4cloud
</groupId>
<artifactId>
gsc-common-snowflake
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!--feign 注解依赖-->
<!--feign 注解依赖-->
<dependency>
<dependency>
<groupId>
com.gsc4cloud
</groupId>
<groupId>
com.gsc4cloud
</groupId>
...
...
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/car/CarManageInfo.java
View file @
7562f44
...
@@ -63,7 +63,6 @@ public class CarManageInfo implements Serializable {
...
@@ -63,7 +63,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车辆创建人
* 车辆创建人
*/
*/
@TableField
(
value
=
"car_creator"
)
@TableField
(
value
=
"car_creator"
)
@Schema
(
description
=
"车辆创建人"
)
@Schema
(
description
=
"车辆创建人"
)
private
String
carCreator
;
private
String
carCreator
;
...
@@ -71,7 +70,6 @@ public class CarManageInfo implements Serializable {
...
@@ -71,7 +70,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 保管地
* 保管地
*/
*/
@TableField
(
value
=
"storage_location"
)
@TableField
(
value
=
"storage_location"
)
@Schema
(
description
=
"保管地"
)
@Schema
(
description
=
"保管地"
)
private
String
storageLocation
;
private
String
storageLocation
;
...
@@ -79,7 +77,6 @@ public class CarManageInfo implements Serializable {
...
@@ -79,7 +77,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 保管人
* 保管人
*/
*/
@TableField
(
value
=
"custodian"
)
@TableField
(
value
=
"custodian"
)
@Schema
(
description
=
"保管人"
)
@Schema
(
description
=
"保管人"
)
private
String
custodian
;
private
String
custodian
;
...
@@ -87,7 +84,6 @@ public class CarManageInfo implements Serializable {
...
@@ -87,7 +84,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 收车价
* 收车价
*/
*/
@TableField
(
value
=
"purchase_price"
)
@TableField
(
value
=
"purchase_price"
)
@Schema
(
description
=
"收车价"
)
@Schema
(
description
=
"收车价"
)
private
BigDecimal
purchasePrice
;
private
BigDecimal
purchasePrice
;
...
@@ -95,7 +91,6 @@ public class CarManageInfo implements Serializable {
...
@@ -95,7 +91,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 收车时间
* 收车时间
*/
*/
@TableField
(
value
=
"purchase_time"
)
@TableField
(
value
=
"purchase_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@Schema
(
description
=
"收车时间"
)
@Schema
(
description
=
"收车时间"
)
...
@@ -104,7 +99,6 @@ public class CarManageInfo implements Serializable {
...
@@ -104,7 +99,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 卖出价
* 卖出价
*/
*/
@TableField
(
value
=
"selling_price"
)
@TableField
(
value
=
"selling_price"
)
@Schema
(
description
=
"卖出价"
)
@Schema
(
description
=
"卖出价"
)
private
BigDecimal
sellingPrice
;
private
BigDecimal
sellingPrice
;
...
@@ -112,7 +106,6 @@ public class CarManageInfo implements Serializable {
...
@@ -112,7 +106,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 卖出时间
* 卖出时间
*/
*/
@TableField
(
value
=
"selling_time"
)
@TableField
(
value
=
"selling_time"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@Schema
(
description
=
"卖出时间"
)
@Schema
(
description
=
"卖出时间"
)
...
@@ -121,7 +114,6 @@ public class CarManageInfo implements Serializable {
...
@@ -121,7 +114,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 卖出方
* 卖出方
*/
*/
@TableField
(
value
=
"seller"
)
@TableField
(
value
=
"seller"
)
@Schema
(
description
=
"卖出方"
)
@Schema
(
description
=
"卖出方"
)
private
String
seller
;
private
String
seller
;
...
@@ -129,7 +121,6 @@ public class CarManageInfo implements Serializable {
...
@@ -129,7 +121,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车辆卖出备注
* 车辆卖出备注
*/
*/
@TableField
(
value
=
"selling_notes"
)
@TableField
(
value
=
"selling_notes"
)
@Schema
(
description
=
"车辆卖出备注"
)
@Schema
(
description
=
"车辆卖出备注"
)
private
String
sellingNotes
;
private
String
sellingNotes
;
...
@@ -137,7 +128,6 @@ public class CarManageInfo implements Serializable {
...
@@ -137,7 +128,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车牌号
* 车牌号
*/
*/
@TableField
(
value
=
"license_plate"
)
@TableField
(
value
=
"license_plate"
)
@Schema
(
description
=
"车牌号"
)
@Schema
(
description
=
"车牌号"
)
private
String
licensePlate
;
private
String
licensePlate
;
...
@@ -145,7 +135,6 @@ public class CarManageInfo implements Serializable {
...
@@ -145,7 +135,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车架号
* 车架号
*/
*/
@TableField
(
value
=
"vin"
)
@TableField
(
value
=
"vin"
)
@Schema
(
description
=
"车架号"
)
@Schema
(
description
=
"车架号"
)
private
String
vin
;
private
String
vin
;
...
@@ -153,7 +142,6 @@ public class CarManageInfo implements Serializable {
...
@@ -153,7 +142,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 发动机号
* 发动机号
*/
*/
@TableField
(
value
=
"engine_number"
)
@TableField
(
value
=
"engine_number"
)
@Schema
(
description
=
"发动机号"
)
@Schema
(
description
=
"发动机号"
)
private
String
engineNumber
;
private
String
engineNumber
;
...
@@ -161,7 +149,6 @@ public class CarManageInfo implements Serializable {
...
@@ -161,7 +149,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车系id
* 车系id
*/
*/
@TableField
(
value
=
"car_series_id"
)
@TableField
(
value
=
"car_series_id"
)
@Schema
(
description
=
"车系id"
)
@Schema
(
description
=
"车系id"
)
private
Integer
carSeriesId
;
private
Integer
carSeriesId
;
...
@@ -169,7 +156,6 @@ public class CarManageInfo implements Serializable {
...
@@ -169,7 +156,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车系名字
* 车系名字
*/
*/
@TableField
(
value
=
"car_series_name"
)
@TableField
(
value
=
"car_series_name"
)
@Schema
(
description
=
"车系名字"
)
@Schema
(
description
=
"车系名字"
)
private
String
carSeriesName
;
private
String
carSeriesName
;
...
@@ -177,7 +163,6 @@ public class CarManageInfo implements Serializable {
...
@@ -177,7 +163,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车型id
* 车型id
*/
*/
@TableField
(
value
=
"car_type_id"
)
@TableField
(
value
=
"car_type_id"
)
@Schema
(
description
=
"车型id"
)
@Schema
(
description
=
"车型id"
)
private
Integer
carTypeId
;
private
Integer
carTypeId
;
...
@@ -185,7 +170,6 @@ public class CarManageInfo implements Serializable {
...
@@ -185,7 +170,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车型名称
* 车型名称
*/
*/
@TableField
(
value
=
"car_type_name"
)
@TableField
(
value
=
"car_type_name"
)
@Schema
(
description
=
"车型名称"
)
@Schema
(
description
=
"车型名称"
)
private
String
carTypeName
;
private
String
carTypeName
;
...
@@ -193,7 +177,6 @@ public class CarManageInfo implements Serializable {
...
@@ -193,7 +177,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 上牌时间
* 上牌时间
*/
*/
@TableField
(
value
=
"listing_date"
)
@TableField
(
value
=
"listing_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@Schema
(
description
=
"上牌时间"
)
@Schema
(
description
=
"上牌时间"
)
...
@@ -202,7 +185,6 @@ public class CarManageInfo implements Serializable {
...
@@ -202,7 +185,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 上牌城市
* 上牌城市
*/
*/
@TableField
(
value
=
"listing_city"
)
@TableField
(
value
=
"listing_city"
)
@Schema
(
description
=
"上牌城市"
)
@Schema
(
description
=
"上牌城市"
)
private
String
listingCity
;
private
String
listingCity
;
...
@@ -210,7 +192,6 @@ public class CarManageInfo implements Serializable {
...
@@ -210,7 +192,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 表显里程
* 表显里程
*/
*/
@TableField
(
value
=
"mileage"
)
@TableField
(
value
=
"mileage"
)
@Schema
(
description
=
"表显里程"
)
@Schema
(
description
=
"表显里程"
)
private
Integer
mileage
;
private
Integer
mileage
;
...
@@ -321,7 +302,6 @@ public class CarManageInfo implements Serializable {
...
@@ -321,7 +302,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 新车指导价
* 新车指导价
*/
*/
@TableField
(
value
=
"msrp"
)
@TableField
(
value
=
"msrp"
)
@Schema
(
description
=
"新车指导价"
)
@Schema
(
description
=
"新车指导价"
)
private
BigDecimal
msrp
;
private
BigDecimal
msrp
;
...
@@ -329,7 +309,6 @@ public class CarManageInfo implements Serializable {
...
@@ -329,7 +309,6 @@ public class CarManageInfo implements Serializable {
/**
/**
* 车辆生产日期
* 车辆生产日期
*/
*/
@TableField
(
value
=
"production_date"
)
@TableField
(
value
=
"production_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@Schema
(
description
=
"车辆生产日期"
)
@Schema
(
description
=
"车辆生产日期"
)
...
...
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/contract/ElectronicContractOaAudit.java
View file @
7562f44
...
@@ -95,12 +95,6 @@ public class ElectronicContractOaAudit implements Serializable {
...
@@ -95,12 +95,6 @@ public class ElectronicContractOaAudit implements Serializable {
@Schema
(
description
=
"金额(单位:元)"
)
@Schema
(
description
=
"金额(单位:元)"
)
private
BigDecimal
paymentAmount
;
private
BigDecimal
paymentAmount
;
/**
* 是否可编辑 0-不可编辑 1-可编辑合同 2-可发起oa审批
*/
@TableField
(
value
=
"editable"
)
@Schema
(
description
=
"是否可编辑 0-不可编辑 1-可编辑合同 2-可发起oa审批"
)
private
Integer
editable
;
/**
/**
* 支付时间
* 支付时间
...
@@ -117,6 +111,13 @@ public class ElectronicContractOaAudit implements Serializable {
...
@@ -117,6 +111,13 @@ public class ElectronicContractOaAudit implements Serializable {
private
Integer
splitPay
;
private
Integer
splitPay
;
/**
/**
* 驳回原因 reject_reason
*/
@TableField
(
value
=
"reject_reason"
)
@Schema
(
description
=
"驳回原因"
)
private
String
rejectReason
;
/**
* 创建人
* 创建人
*/
*/
@TableField
(
value
=
"created_by"
)
@TableField
(
value
=
"created_by"
)
...
...
src/main/java/com/gsc4cloud/gsc/vpc/api/entity/evalorder/EvalElectronicContract.java
View file @
7562f44
...
@@ -117,6 +117,13 @@ public class EvalElectronicContract implements Serializable {
...
@@ -117,6 +117,13 @@ public class EvalElectronicContract implements Serializable {
@TableField
(
value
=
"electronic_contract_field"
)
@TableField
(
value
=
"electronic_contract_field"
)
private
String
electronicContractField
;
private
String
electronicContractField
;
/**
* 是否可编辑 0-不可编辑 1-可编辑合同 2-可发起oa审批
*/
@TableField
(
value
=
"editable"
)
@Schema
(
description
=
"是否可编辑 0-不可编辑 1-可编辑合同 2-可发起oa审批"
)
private
Integer
editable
;
/**
/**
* 创建人
* 创建人
...
...
src/main/java/com/gsc4cloud/gsc/vpc/api/util/EvalNoGenerator.java
0 → 100644
View file @
7562f44
package
com
.
gsc4cloud
.
gsc
.
vpc
.
api
.
util
;
import
com.gsc4cloud.gsc.common.snowflake.core.SnowflakeWorker
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
java.util.UUID
;
/**
* 评估单号生成工具类
* 生成规则:er + 雪花算法
*
* @author zhangfk
*/
@Component
public
class
EvalNoGenerator
{
/**
* 评估单号前缀
*/
private
static
final
String
EVAL_ORDER_PREFIX
=
"er"
;
private
static
final
String
EVAL_CONTRACT_NO_PREFIX
=
"ec"
;
/**
* 雪花算法实例
*/
private
final
SnowflakeWorker
snowflake
;
@Autowired
private
ShortLinkComponent
shortLinkComponent
;
public
EvalNoGenerator
()
{
// 使用 Hutool 的雪花算法,workerId 和 datacenterId 可以根据实际情况配置
this
.
snowflake
=
new
SnowflakeWorker
(
1
,
1
);
}
/**
* 生成评估单号
* 格式:er + 雪花算法生成的ID
*
* @return 评估单号
*/
public
String
generateEvalOrderNo
()
{
long
id
=
snowflake
.
nextId
();
return
EVAL_ORDER_PREFIX
+
id
;
}
/**
* 生成合同编号
*
* @return 合同编号
*/
public
String
generateContractNo
()
{
long
id
=
snowflake
.
nextId
();
return
EVAL_CONTRACT_NO_PREFIX
+
id
;
}
/**
* 生成车源号
* @return 车源号
*/
public
String
generateSourceNo
()
{
String
prefix
=
java
.
time
.
format
.
DateTimeFormatter
.
ofPattern
(
"yyMM"
).
format
(
java
.
time
.
LocalDate
.
now
());
String
code
=
shortLinkComponent
.
createShortLinkCode
(
UUID
.
randomUUID
().
toString
());
return
prefix
+
code
;
}
}
\ No newline at end of file
\ No newline at end of file
src/main/java/com/gsc4cloud/gsc/vpc/api/util/RestfulAuthUtils.java
0 → 100644
View file @
7562f44
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment