Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
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 69480b53
authored
Mar 30, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.3.0' of
https://gitee.com/foutouren/aus
into v1.3.0
2 parents
6a4175ca
fb2e5dd9
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
101 additions
and
31 deletions
aus-admin/src/main/java/com/glsx/usedcar/export/InspectionWorkOrderExportBean.java
aus-core/src/main/java/com/glsx/usedcar/consts/inspect/JpaQueryConstants.java
aus-core/src/main/java/com/glsx/usedcar/enums/inspect/InspectionWorkOrderStatusEnum.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionNodeService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionRecordService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionReportService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/vo/InspectionRootNodeVO.java
aus-core/src/main/java/com/glsx/usedcar/util/SmsCodeUtil.java
aus-core/src/main/resources/messages.properties
aus-inspector/src/main/java/com/glsx/usedcar/controller/AuthController.java
aus-inspector/src/main/java/com/glsx/usedcar/controller/InspectionReportController.java
aus-inspector/src/main/java/com/glsx/usedcar/controller/InspectionWorkOrderController.java
aus-inspector/src/main/java/com/glsx/usedcar/req/InspectionReportReq.java
aus-admin/src/main/java/com/glsx/usedcar/export/InspectionWorkOrderExportBean.java
View file @
69480b5
...
@@ -114,7 +114,7 @@ public class InspectionWorkOrderExportBean implements Serializable {
...
@@ -114,7 +114,7 @@ public class InspectionWorkOrderExportBean implements Serializable {
/**
/**
* 检测状态
* 检测状态
*/
*/
@ExcelProperty
(
"检测状态"
)
@ExcelProperty
(
"检测
单
状态"
)
@ColumnWidth
(
15
)
@ColumnWidth
(
15
)
private
String
status
;
private
String
status
;
...
...
aus-core/src/main/java/com/glsx/usedcar/consts/inspect/JpaQueryConstants.java
View file @
69480b5
...
@@ -86,6 +86,11 @@ public interface JpaQueryConstants {
...
@@ -86,6 +86,11 @@ public interface JpaQueryConstants {
* 关键字,检测师名称或手机号,模糊查询
* 关键字,检测师名称或手机号,模糊查询
*/
*/
String
KEYWORD
=
"keyword"
;
String
KEYWORD
=
"keyword"
;
/**
* 关键字,车牌号/VIN码/车型 模糊查询
*/
String
CARTYPE
=
"carTypeName"
;
/**
/**
* 精确匹配
* 精确匹配
*/
*/
...
...
aus-core/src/main/java/com/glsx/usedcar/enums/inspect/InspectionWorkOrderStatusEnum.java
View file @
69480b5
...
@@ -3,7 +3,6 @@ package com.glsx.usedcar.enums.inspect;
...
@@ -3,7 +3,6 @@ package com.glsx.usedcar.enums.inspect;
import
lombok.Getter
;
import
lombok.Getter
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Objects
;
/**
/**
...
@@ -89,4 +88,10 @@ public enum InspectionWorkOrderStatusEnum {
...
@@ -89,4 +88,10 @@ public enum InspectionWorkOrderStatusEnum {
public
static
Boolean
beableInspection
(
Integer
status
)
{
public
static
Boolean
beableInspection
(
Integer
status
)
{
return
Arrays
.
asList
(
DISPATCHED
.
getCode
(),
IN_PROGRESS
.
getCode
()).
contains
(
status
);
return
Arrays
.
asList
(
DISPATCHED
.
getCode
(),
IN_PROGRESS
.
getCode
()).
contains
(
status
);
}
}
// 根据工单状态获取工单状态描述
public
static
String
getDescByStatus
(
Integer
status
)
{
InspectionWorkOrderStatusEnum
statusEnum
=
InspectionWorkOrderStatusEnum
.
getByCode
(
status
);
return
statusEnum
!=
null
?
statusEnum
.
getDesc
()
:
""
;
}
}
}
\ No newline at end of file
\ No newline at end of file
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionNodeService.java
View file @
69480b5
...
@@ -3,15 +3,13 @@ package com.glsx.usedcar.module.inspect.service;
...
@@ -3,15 +3,13 @@ package com.glsx.usedcar.module.inspect.service;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.glsx.usedcar.consts.common.CommonConsts
;
import
com.glsx.usedcar.converts.InspectorConverter
;
import
com.glsx.usedcar.converts.InspectorConverter
;
import
com.glsx.usedcar.enums.common.DeleteFlag
;
import
com.glsx.usedcar.enums.common.DeleteFlag
;
import
com.glsx.usedcar.module.inspect.dao.*
;
import
com.glsx.usedcar.module.inspect.dao.*
;
import
com.glsx.usedcar.module.inspect.dto.InspectionNodeSummaryDTO
;
import
com.glsx.usedcar.module.inspect.dto.InspectionNodeSummaryDTO
;
import
com.glsx.usedcar.module.inspect.entity.*
;
import
com.glsx.usedcar.module.inspect.entity.*
;
import
com.glsx.usedcar.module.inspect.vo.InspectionNodeVO
;
import
com.glsx.usedcar.module.inspect.vo.*
;
import
com.glsx.usedcar.module.inspect.vo.InspectionResultVO
;
import
com.glsx.usedcar.module.inspect.vo.InspectionRootNodeVO
;
import
com.glsx.usedcar.module.inspect.vo.InspectionScoreVO
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -21,12 +19,14 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -21,12 +19,14 @@ import org.springframework.transaction.annotation.Transactional;
import
org.summerframework.core.enums.ErrorCodeEnum
;
import
org.summerframework.core.enums.ErrorCodeEnum
;
import
org.summerframework.core.exception.BusinessCodeException
;
import
org.summerframework.core.exception.BusinessCodeException
;
import
java.math.BigDecimal
;
import
java.util.Comparator
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.Optional
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
/**
* 检测节点服务
* 检测节点服务
...
@@ -61,8 +61,39 @@ public class InspectionNodeService {
...
@@ -61,8 +61,39 @@ public class InspectionNodeService {
.
orElseGet
(
Lists:
:
newArrayList
).
stream
()
.
orElseGet
(
Lists:
:
newArrayList
).
stream
()
.
filter
(
node
->
node
.
getParentId
()
==
0
)
.
filter
(
node
->
node
.
getParentId
()
==
0
)
.
toList
();
.
toList
();
List
<
InspectionRootNodeVO
>
inspectionRootNodeVOList
=
inspectorConverter
.
inspectionNodeVoMapRespVO
(
rootNodes
);
// 查询根节点的检测结果
InspectionRootNodeVO
scoreRootNodeVo
=
InspectionRootNodeVO
.
builder
().
id
(-
1L
).
sortOrder
(
10086
).
parentId
(
0L
).
build
();
inspectionRecordRepository
.
findByTaskIdAndDeletedFlag
(
taskId
,
DeleteFlag
.
NOT_DELETED
.
getCode
())
.
ifPresent
(
record
->
{
List
<
Long
>
rootNodeIds
=
inspectionRootNodeVOList
.
stream
().
map
(
InspectionRootNodeVO:
:
getId
).
toList
();
List
<
InspectionResult
>
rootResults
=
inspectionResultRepository
.
findByRecordIdAndNodeIdIn
(
record
.
getId
(),
rootNodeIds
);
Map
<
Long
,
InspectionResult
>
resultMap
=
rootResults
.
stream
()
.
collect
(
Collectors
.
toMap
(
InspectionResult:
:
getNodeId
,
r
->
r
,
(
a
,
b
)
->
a
));
inspectionRootNodeVOList
.
forEach
(
node
->
node
.
setCompletedFlag
(
Optional
.
ofNullable
(
resultMap
.
get
(
node
.
getId
()))
.
map
(
InspectionResult:
:
getCompletedFlag
)
.
orElse
(
CommonConsts
.
ZERO
)
));
return
inspectorConverter
.
inspectionNodeVoMapRespVO
(
rootNodes
);
boolean
completed
=
Stream
.
of
(
record
.
getExteriorScore
(),
record
.
getExteriorComment
(),
record
.
getSkeletonLevel
(),
record
.
getSkeletonComment
(),
record
.
getInteriorLevel
(),
record
.
getInteriorComment
(),
record
.
getOverallScore
(),
record
.
getOverallComment
()
).
allMatch
(
item
->
{
if
(
item
==
null
)
{
return
false
;
}
if
(
item
instanceof
String
str
)
{
return
!
str
.
isBlank
();
}
return
true
;
});
scoreRootNodeVo
.
setCompletedFlag
(
completed
?
CommonConsts
.
ONE
:
CommonConsts
.
ZERO
);
});
inspectionRootNodeVOList
.
add
(
scoreRootNodeVo
);
return
inspectionRootNodeVOList
;
}
}
/**
/**
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionRecordService.java
View file @
69480b5
...
@@ -737,7 +737,6 @@ public class InspectionRecordService {
...
@@ -737,7 +737,6 @@ public class InspectionRecordService {
// 8. 事故
// 8. 事故
AccidentBurnWadeDTO
accidentBurnWadeDTO
=
getAccidentBurnWadeDTO
(
recordId
);
AccidentBurnWadeDTO
accidentBurnWadeDTO
=
getAccidentBurnWadeDTO
(
recordId
);
return
InspectionDetailRespVO
.
builder
()
return
InspectionDetailRespVO
.
builder
()
.
id
(
recordId
)
.
id
(
recordId
)
.
taskId
(
taskId
)
.
taskId
(
taskId
)
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionReportService.java
View file @
69480b5
...
@@ -457,6 +457,19 @@ public class InspectionReportService {
...
@@ -457,6 +457,19 @@ public class InspectionReportService {
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
vin
),
likePattern
)
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
vin
),
likePattern
)
));
));
}
}
Object
carType
=
pagination
.
getFilterValueOrElseNull
(
JpaQueryConstants
.
InspectionReport
.
CARTYPE
);
if
(
carType
instanceof
String
ct
&&
StrUtil
.
isNotBlank
(
ct
))
{
pagination
.
removeFilter
(
JpaQueryConstants
.
InspectionReport
.
CARTYPE
);
String
likePattern
=
SymbolConsts
.
PERCENT
+
ct
+
SymbolConsts
.
PERCENT
;
pagination
.
addCondition
((
root
,
query
,
builder
)
->
builder
.
or
(
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
licensePlate
),
likePattern
),
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
vin
),
likePattern
),
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
carTypeName
),
likePattern
),
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
carChildsBrandName
),
likePattern
),
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
carSeriesName
),
likePattern
),
builder
.
like
(
root
.
get
(
InspectionReport_
.
vehicle
).
get
(
Vehicle_
.
baseInfo
).
get
(
BaseInfo_
.
carBrand
),
likePattern
)
));
}
Object
status
=
pagination
.
getFilterValueOrElseNull
(
JpaQueryConstants
.
InspectionReport
.
VEHICLE_STATE
);
Object
status
=
pagination
.
getFilterValueOrElseNull
(
JpaQueryConstants
.
InspectionReport
.
VEHICLE_STATE
);
if
(
status
instanceof
String
s
&&
StrUtil
.
isNotBlank
(
s
))
{
if
(
status
instanceof
String
s
&&
StrUtil
.
isNotBlank
(
s
))
{
pagination
.
removeFilter
(
JpaQueryConstants
.
InspectionReport
.
VEHICLE_STATE
);
pagination
.
removeFilter
(
JpaQueryConstants
.
InspectionReport
.
VEHICLE_STATE
);
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
View file @
69480b5
...
@@ -140,14 +140,15 @@ public class InspectionWorkOrderService {
...
@@ -140,14 +140,15 @@ public class InspectionWorkOrderService {
wo
.
setUpdateBy
(
opName
);
wo
.
setUpdateBy
(
opName
);
wo
.
setUpdateTime
(
now
);
wo
.
setUpdateTime
(
now
);
inspectionWorkOrderRepository
.
save
(
wo
);
inspectionWorkOrderRepository
.
save
(
wo
);
String
seriesName
=
vehicle
.
getBaseInfo
().
getCarSeriesName
()
==
null
?
""
:
vehicle
.
getBaseInfo
().
getCarSeriesName
();
Object
[]
args
=
{
vehicle
.
getBaseInfo
().
getCarTypeName
()};
String
carName
=
seriesName
+
vehicle
.
getBaseInfo
().
getCarTypeName
();
Object
[]
args
=
{
carName
};
String
message
=
messageSource
.
getMessage
(
"SMS.INSPECTION.WO.ADD"
,
args
,
Locale
.
CHINESE
);
String
message
=
messageSource
.
getMessage
(
"SMS.INSPECTION.WO.ADD"
,
args
,
Locale
.
CHINESE
);
log
.
info
(
"发送工单新增短信: 手机号={}, 内容={}"
,
wo
.
getInspector
().
getPhone
(),
message
);
log
.
info
(
"发送工单新增短信: 手机号={}, 内容={}"
,
wo
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
wo
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
wo
.
getInspector
().
getPhone
(),
message
);
String
operationContent
=
String
.
format
(
"新增检测工单,车辆ID:%s,检测师ID:%s,检测地址:%s"
,
vehicleId
,
inspector
Id
,
addVO
.
getInspectionAddress
());
String
operationContent
=
String
.
format
(
"新增检测工单,车辆ID:%s,检测师ID:%s,检测地址:%s"
,
vehicleId
,
inspector
.
getName
()
,
addVO
.
getInspectionAddress
());
saveWorkOrderOpLog
(
wo
,
InspectionWorkOrderOperationTypeEnum
.
CREATE_ORDER
.
getCode
(),
0
,
wo
.
getStatus
(),
operationContent
,
"用户新增检测工单"
+
operationContent
,
Long
.
valueOf
(
opId
),
opName
,
platTypeEnum
.
getCode
());
saveWorkOrderOpLog
(
wo
,
InspectionWorkOrderOperationTypeEnum
.
CREATE_ORDER
.
getCode
(),
0
,
wo
.
getStatus
(),
operationContent
,
operationContent
,
Long
.
valueOf
(
opId
),
opName
,
platTypeEnum
.
getCode
());
log
.
info
(
"检测工单新增成功: ID={}, 唯一ID={}, 操作人={}, 平台={}"
,
wo
.
getId
(),
wo
.
getWoId
(),
opName
,
platTypeEnum
.
getDesc
());
log
.
info
(
"检测工单新增成功: ID={}, 唯一ID={}, 操作人={}, 平台={}"
,
wo
.
getId
(),
wo
.
getWoId
(),
opName
,
platTypeEnum
.
getDesc
());
}
}
...
@@ -172,6 +173,7 @@ public class InspectionWorkOrderService {
...
@@ -172,6 +173,7 @@ public class InspectionWorkOrderService {
Integer
originalStatus
=
workOrder
.
getStatus
();
Integer
originalStatus
=
workOrder
.
getStatus
();
Long
originalInspectorId
=
workOrder
.
getInspector
()
!=
null
?
workOrder
.
getInspector
().
getId
()
:
null
;
Long
originalInspectorId
=
workOrder
.
getInspector
()
!=
null
?
workOrder
.
getInspector
().
getId
()
:
null
;
String
originalInspectorName
=
workOrder
.
getInspector
()
!=
null
?
workOrder
.
getInspector
().
getName
()
:
null
;
Inspector
originalInspector
=
workOrder
.
getInspector
();
Inspector
originalInspector
=
workOrder
.
getInspector
();
String
originalRemark
=
workOrder
.
getRemark
();
String
originalRemark
=
workOrder
.
getRemark
();
String
originalInspectionAddress
=
workOrder
.
getInspectionAddress
();
String
originalInspectionAddress
=
workOrder
.
getInspectionAddress
();
...
@@ -183,7 +185,7 @@ public class InspectionWorkOrderService {
...
@@ -183,7 +185,7 @@ public class InspectionWorkOrderService {
Inspector
inspector
=
inspectorRepository
.
findByIdAndDeleteFlag
(
updateVO
.
getInspectorId
(),
DeleteFlag
.
NOT_DELETED
.
getCode
()).
orElseThrow
(()
->
new
BusinessCodeException
(
ErrorCodeEnum
.
PARAM_ERROR
,
"检测师不存在,检测师ID:"
+
updateVO
.
getInspectorId
()));
Inspector
inspector
=
inspectorRepository
.
findByIdAndDeleteFlag
(
updateVO
.
getInspectorId
(),
DeleteFlag
.
NOT_DELETED
.
getCode
()).
orElseThrow
(()
->
new
BusinessCodeException
(
ErrorCodeEnum
.
PARAM_ERROR
,
"检测师不存在,检测师ID:"
+
updateVO
.
getInspectorId
()));
if
(!
updateVO
.
getInspectorId
().
equals
(
originalInspectorId
))
{
if
(!
updateVO
.
getInspectorId
().
equals
(
originalInspectorId
))
{
workOrder
.
setInspector
(
inspector
);
workOrder
.
setInspector
(
inspector
);
modifyContent
.
append
(
String
.
format
(
"检测师从ID:%s改为ID:%s;"
,
originalInspector
Id
,
updateVO
.
getInspectorId
()));
modifyContent
.
append
(
String
.
format
(
"检测师从ID:%s改为ID:%s;"
,
originalInspector
Name
,
inspector
.
getName
()));
isModified
=
true
;
isModified
=
true
;
Object
[]
args
=
{
workOrder
.
getWoId
()};
Object
[]
args
=
{
workOrder
.
getWoId
()};
...
@@ -413,7 +415,7 @@ public class InspectionWorkOrderService {
...
@@ -413,7 +415,7 @@ public class InspectionWorkOrderService {
log
.
info
(
"发送取消短信: 手机号={}, 内容={}"
,
wo
.
getInspector
().
getPhone
(),
message
);
log
.
info
(
"发送取消短信: 手机号={}, 内容={}"
,
wo
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
wo
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
wo
.
getInspector
().
getPhone
(),
message
);
String
operationContent
=
String
.
format
(
"取消检测工单,取消原因:%s,原状态:%s"
,
vo
.
getCancelReason
(),
originalStatus
);
String
operationContent
=
String
.
format
(
"取消检测工单,取消原因:%s,原状态:%s"
,
vo
.
getCancelReason
(),
originalStatus
);
String
description
=
"取消检测工单,状态从"
+
originalStatus
+
"改为"
+
InspectionWorkOrderStatusEnum
.
CANCELED
.
getCode
()
+
", 取消类型:"
+
vo
.
getCancelType
()
+
", 取消原因:"
+
vo
.
getCancelReason
();
String
description
=
"取消检测工单,状态从"
+
InspectionWorkOrderStatusEnum
.
getDescByStatus
(
originalStatus
)
+
"改为"
+
InspectionWorkOrderStatusEnum
.
CANCELED
.
getDesc
()
+
", 取消类型:"
+
vo
.
getCancelType
()
+
", 取消原因:"
+
vo
.
getCancelReason
();
saveWorkOrderOpLog
(
wo
,
InspectionWorkOrderOperationTypeEnum
.
CANCEL_ORDER
.
getCode
(),
originalStatus
,
InspectionWorkOrderStatusEnum
.
CANCELED
.
getCode
(),
operationContent
,
description
,
Long
.
valueOf
(
opId
),
opName
,
platTypeEnum
.
getCode
());
saveWorkOrderOpLog
(
wo
,
InspectionWorkOrderOperationTypeEnum
.
CANCEL_ORDER
.
getCode
(),
originalStatus
,
InspectionWorkOrderStatusEnum
.
CANCELED
.
getCode
(),
operationContent
,
description
,
Long
.
valueOf
(
opId
),
opName
,
platTypeEnum
.
getCode
());
log
.
info
(
"检测工单取消成功: ID={}, 唯一ID={}, 取消原因={}"
,
wo
.
getId
(),
wo
.
getWoId
(),
vo
.
getCancelReason
());
log
.
info
(
"检测工单取消成功: ID={}, 唯一ID={}, 取消原因={}"
,
wo
.
getId
(),
wo
.
getWoId
(),
vo
.
getCancelReason
());
...
@@ -530,7 +532,7 @@ public class InspectionWorkOrderService {
...
@@ -530,7 +532,7 @@ public class InspectionWorkOrderService {
operationContent
=
String
.
format
(
"同意审批工单,工单ID:%s,审批意见:%s,已生成检测报告"
,
auditVO
.
getId
(),
auditVO
.
getAuditOpinion
());
operationContent
=
String
.
format
(
"同意审批工单,工单ID:%s,审批意见:%s,已生成检测报告"
,
auditVO
.
getId
(),
auditVO
.
getAuditOpinion
());
description
=
String
.
format
(
"审批工单[%s]通过,状态从[%s]改为[%s],生成检测报告"
,
description
=
String
.
format
(
"审批工单[%s]通过,状态从[%s]改为[%s],生成检测报告"
,
workOrder
.
getWoId
(),
originalAuditStatus
,
targetAuditStatus
);
workOrder
.
getWoId
(),
InspectionWorkOrderAuditStatusEnum
.
WAIT_AUDIT
.
getDesc
(),
InspectionWorkOrderAuditStatusEnum
.
PASS
.
getDesc
()
);
auditOperationType
=
InspectionWorkOrderOperationTypeEnum
.
APPROVE_PASS
;
auditOperationType
=
InspectionWorkOrderOperationTypeEnum
.
APPROVE_PASS
;
}
else
{
}
else
{
// 4.2 不同意审批:更新审批状态为拒绝, 更新工单状态为检测中,不生成报告
// 4.2 不同意审批:更新审批状态为拒绝, 更新工单状态为检测中,不生成报告
...
@@ -543,14 +545,19 @@ public class InspectionWorkOrderService {
...
@@ -543,14 +545,19 @@ public class InspectionWorkOrderService {
workOrder
.
setUpdateTime
(
now
);
workOrder
.
setUpdateTime
(
now
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
inspectionWorkOrderRepository
.
save
(
workOrder
);
Object
[]
args
=
{
workOrder
.
getWoId
()
,
auditVO
.
getAuditOpinion
()
};
Object
[]
args
=
{
workOrder
.
getWoId
()};
String
message
=
messageSource
.
getMessage
(
"SMS.INSPECTION.WO.REJECT"
,
args
,
Locale
.
CHINESE
);
String
message
=
messageSource
.
getMessage
(
"SMS.INSPECTION.WO.REJECT"
,
args
,
Locale
.
CHINESE
);
log
.
info
(
"发送工单驳回短信: 手机号={}, 内容={}"
,
workOrder
.
getInspector
().
getPhone
(),
message
);
log
.
info
(
"发送工单驳回短信: 手机号={}, 内容={}"
,
workOrder
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
workOrder
.
getInspector
().
getPhone
(),
message
);
gscApiInvoker
.
sendMsg
(
workOrder
.
getInspector
().
getPhone
(),
message
);
operationContent
=
String
.
format
(
"驳回审批工单,工单ID:%s,审批意见:%s"
,
auditVO
.
getId
(),
auditVO
.
getAuditOpinion
());
operationContent
=
String
.
format
(
"驳回审批工单,工单ID:%s,审批意见:%s"
,
auditVO
.
getId
(),
auditVO
.
getAuditOpinion
());
description
=
String
.
format
(
"审批工单[%s]驳回,审批状态从[%s]改为[%s], 工单状态从[%s]改为[%s],未生成检测报告"
,
description
=
String
.
format
(
"审批工单[%s]驳回,审批状态从[%s]改为[%s], 工单状态从[%s]改为[%s],未生成检测报告"
,
workOrder
.
getWoId
(),
originalAuditStatus
,
targetAuditStatus
,
originalStatus
,
InspectionWorkOrderStatusEnum
.
IN_PROGRESS
.
getCode
());
workOrder
.
getWoId
(),
InspectionWorkOrderAuditStatusEnum
.
WAIT_AUDIT
.
getDesc
(),
InspectionWorkOrderAuditStatusEnum
.
REJECT
.
getDesc
(),
InspectionWorkOrderStatusEnum
.
getDescByStatus
(
originalStatus
),
InspectionWorkOrderStatusEnum
.
getDescByStatus
(
InspectionWorkOrderStatusEnum
.
IN_PROGRESS
.
getCode
())
);
auditOperationType
=
InspectionWorkOrderOperationTypeEnum
.
APPROVE_REJECT
;
auditOperationType
=
InspectionWorkOrderOperationTypeEnum
.
APPROVE_REJECT
;
}
}
...
@@ -613,7 +620,7 @@ public class InspectionWorkOrderService {
...
@@ -613,7 +620,7 @@ public class InspectionWorkOrderService {
// 5. 保存操作日志
// 5. 保存操作日志
String
operationContent
=
String
.
format
(
"开始检测,工单ID:%s,原状态:已派单,新状态:检测中"
,
id
);
String
operationContent
=
String
.
format
(
"开始检测,工单ID:%s,原状态:已派单,新状态:检测中"
,
id
);
String
description
=
String
.
format
(
"
操作人[%s]启动工单检测,开始时间:%s"
,
opName
,
now
);
String
description
=
String
.
format
(
"
开始检测 操作人[%s]启动工单检测,开始时间:%s"
,
opName
,
now
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))
);
saveWorkOrderOpLog
(
workOrder
,
saveWorkOrderOpLog
(
workOrder
,
InspectionWorkOrderOperationTypeEnum
.
START_INSPECTION
.
getCode
(),
InspectionWorkOrderOperationTypeEnum
.
START_INSPECTION
.
getCode
(),
originalStatus
,
originalStatus
,
...
@@ -670,7 +677,7 @@ public class InspectionWorkOrderService {
...
@@ -670,7 +677,7 @@ public class InspectionWorkOrderService {
// 5. 保存操作日志
// 5. 保存操作日志
String
operationContent
=
String
.
format
(
"完成检测,工单ID:%s,原状态:检测中,新状态:已完成"
,
id
);
String
operationContent
=
String
.
format
(
"完成检测,工单ID:%s,原状态:检测中,新状态:已完成"
,
id
);
String
description
=
String
.
format
(
"操作人[%s]完成工单检测,结束时间:%s"
,
opName
,
now
);
String
description
=
String
.
format
(
"操作人[%s]完成工单检测,结束时间:%s"
,
opName
,
now
.
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
))
);
saveWorkOrderOpLog
(
workOrder
,
saveWorkOrderOpLog
(
workOrder
,
InspectionWorkOrderOperationTypeEnum
.
COMPLETE_ORDER
.
getCode
(),
InspectionWorkOrderOperationTypeEnum
.
COMPLETE_ORDER
.
getCode
(),
originalStatus
,
originalStatus
,
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/vo/InspectionRootNodeVO.java
View file @
69480b5
package
com
.
glsx
.
usedcar
.
module
.
inspect
.
vo
;
package
com
.
glsx
.
usedcar
.
module
.
inspect
.
vo
;
import
com.glsx.usedcar.consts.common.CommonConsts
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Builder
;
...
@@ -100,5 +101,7 @@ public class InspectionRootNodeVO implements Serializable {
...
@@ -100,5 +101,7 @@ public class InspectionRootNodeVO implements Serializable {
@Schema
(
description
=
"备注"
)
@Schema
(
description
=
"备注"
)
private
String
remark
;
private
String
remark
;
@Schema
(
description
=
"完成标志 0 未完成, 1,已完成"
)
@Builder
.
Default
private
String
completedFlag
=
CommonConsts
.
ZERO
;
}
}
aus-core/src/main/java/com/glsx/usedcar/util/SmsCodeUtil.java
View file @
69480b5
...
@@ -86,7 +86,7 @@ public class SmsCodeUtil {
...
@@ -86,7 +86,7 @@ public class SmsCodeUtil {
String
code
=
RandomUtil
.
randomNumbers
(
codeLength
);
String
code
=
RandomUtil
.
randomNumbers
(
codeLength
);
redisCacheUtil
.
setCacheWithExpire
(
"SMS:CODE:"
+
phone
,
code
,
codeExpire
,
TimeUnit
.
SECONDS
);
redisCacheUtil
.
setCacheWithExpire
(
"SMS:CODE:"
+
phone
,
code
,
codeExpire
,
TimeUnit
.
SECONDS
);
String
message
=
messageSource
.
getMessage
(
"Inspector.Login.SMSCODE"
,
new
Object
[]{
code
,
codeExpire
/
60
},
Locale
.
CHINESE
);
String
message
=
messageSource
.
getMessage
(
"Inspector.Login.SMSCODE"
,
new
Object
[]{
code
},
Locale
.
CHINESE
);
boolean
sendResult
=
gscApiInvoker
.
sendMsg
(
phone
,
message
);
boolean
sendResult
=
gscApiInvoker
.
sendMsg
(
phone
,
message
);
if
(!
sendResult
)
{
if
(!
sendResult
)
{
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
COMMON_ERROR
,
"发送短信失败"
);
throw
new
BusinessCodeException
(
ErrorCodeEnum
.
COMMON_ERROR
,
"发送短信失败"
);
...
...
aus-core/src/main/resources/messages.properties
View file @
69480b5
...
@@ -61,10 +61,10 @@ Account.AccountType.COMPANY=\u8F66\u5546\u7528\u6237
...
@@ -61,10 +61,10 @@ Account.AccountType.COMPANY=\u8F66\u5546\u7528\u6237
Deposit.RefundState.UNREFUND
=
\u
672A
\u9000\u
6B3E
Deposit.RefundState.UNREFUND
=
\u
672A
\u9000\u
6B3E
Deposit.RefundState.REFUNDING
=
\u9000\u
6B3E
\u
4E2D
Deposit.RefundState.REFUNDING
=
\u9000\u
6B3E
\u
4E2D
Deposit.RefundState.REFUNDED
=
\u
5DF2
\u9000\u
6B3E
Deposit.RefundState.REFUNDED
=
\u
5DF2
\u9000\u
6B3E
Inspector.Login.SMSCODE
=
\u
60a8
\u
6b63
\u5728\u
767b
\u
5f55
\u
68c0
\u
6d4b
\u
7cfb
\u
7edf
\u
8d26
\u
53f7
\u
ff0c
\u
9a8c
\u
8bc1
\u7801\u
ff1a{0}
\u
ff0c
{1}
\u5206\u
949f
\u5185\u6709\u6548\u3002\u5982\u
975e
\u
672c
\u
4eba
\u
64cd
\u
4f5c
\u
ff0c
\u
8bf7
\u
5ffd
\u7565\u
6b64
\u
77ed
\u
4fe1
\u3002
Inspector.Login.SMSCODE
=
\u
60a8
\u
6b63
\u5728\u
767b
\u
5f55
\u
68c0
\u
6d4b
\u
7cfb
\u
7edf
\u
8d26
\u
53f7
\u
ff0c
\u
9a8c
\u
8bc1
\u7801\u
ff1a{0}
\u
ff0c
5
\u5206\u
949f
\u5185\u6709\u6548\u3002\u5982\u
975e
\u
672c
\u
4eba
\u
64cd
\u
4f5c
\u
ff0c
\u
8bf7
\u
5ffd
\u7565\u
6b64
\u
77ed
\u
4fe1
\u3002
SMS.INSPECTION.WO.CANCEL
=
\u
60a8
\u
597d
\u3002\u
60a8
\u6240\u
8d1f
\u
8d23
\u7684\u
68c0
\u
6d4b
\u
5de5
\u5355
{0}
\u
5df2
\u
88ab
\u
53d6
\u
6d88
\u
ff0c
\u
4efb
\u
52a1
\u
72b6
\u6001\u
5df2
\u
66f4
\u
65b0
\u
4e3a
\u
201c
\u
5df2
\u
53d6
\u
6d88
\u
201d
\u
ff0c
\u
8bf7
\u
52ff
\u
518d
\u
524d
\u
5f80
\u
68c0
\u
6d4b
\u3002
SMS.INSPECTION.WO.CANCEL
=
\u
60a8
\u
597d
\u3002\u
60a8
\u6240\u
8d1f
\u
8d23
\u7684\u
68c0
\u
6d4b
\u
5de5
\u5355
{0}
\u
5df2
\u
88ab
\u
53d6
\u
6d88
\u
ff0c
\u
4efb
\u
52a1
\u
72b6
\u6001\u
5df2
\u
66f4
\u
65b0
\u
4e3a
\u
201c
\u
5df2
\u
53d6
\u
6d88
\u
201d
\u
ff0c
\u
8bf7
\u
52ff
\u
518d
\u
524d
\u
5f80
\u
68c0
\u
6d4b
\u3002
SMS.INSPECTION.WO.ADD
=
\u
60a8
\u6709\u
65b0
\u7684\u
8f66
\u
8f86
\u
68c0
\u
6d4b
\u
4efb
\u
52a1
\u
5f85
\u
68c0
\u
6d4b
\u
ff0c
\u
8bf7
\u
53ca
\u
65f6
\u5904\u7406\u3002\u
4efb
\u
52a1
\u
8f66
\u
8f86
\u
ff1a{0}
SMS.INSPECTION.WO.ADD
=
\u
60a8
\u6709\u
65b0
\u7684\u
8f66
\u
8f86
\u
68c0
\u
6d4b
\u
4efb
\u
52a1
\u
5f85
\u
68c0
\u
6d4b
\u
ff0c
\u
8bf7
\u
53ca
\u
65f6
\u5904\u7406\u3002\u
4efb
\u
52a1
\u
8f66
\u
8f86
\u
ff1a{0}
SMS.INSPECTION.WO.UPDATE
=
\u
68c0
\u
6d4b
\u
5de5
\u5355
{0}
\u
4efb
\u
52a1
\u
5df2
\u
66f4
\u
65b0
\u
ff0c
\u
8bf7
\u
53ca
\u
65f6
\u
67e5
\u
770b
\u3002
SMS.INSPECTION.WO.UPDATE
=
\u
68c0
\u
6d4b
\u
5de5
\u5355
{0}
\u
4efb
\u
52a1
\u
5df2
\u
66f4
\u
65b0
\u
ff0c
\u
8bf7
\u
53ca
\u
65f6
\u
67e5
\u
770b
\u3002
SMS.INSPECTION.WO.UPDATE.INSPECTOR_NEW
=
\u
60a8
\u
597d
\u
ff0c
\u
60a8
\u
5df2
\u
88ab
\u
66f4
\u
65b0
\u
4e3a
\u
68c0
\u
6d4b
\u
4eba
\u5458\u
4fe1
\u
606f
\u
ff0c
\u
5de5
\u5355\u
53f7
\u3010
{0}
\u3011
\u3002\u
540e
\u
7eed
\u
8bf7
\u6309\u8981\u
6c42
\u
53ca
\u
65f6
\u
5f00
\u
5c55
\u
68c0
\u
6d4b
\u
5de5
\u
4f5c
\u
ff0c
\u
4fdd
\u6301\u
901a
\u
8baf
\u7545\u
901a
\u3002
SMS.INSPECTION.WO.UPDATE.INSPECTOR_NEW
=
\u
60a8
\u
597d
\u
ff0c
\u
60a8
\u
5df2
\u
88ab
\u
66f4
\u
65b0
\u
4e3a
\u
68c0
\u
6d4b
\u
4eba
\u5458\u
4fe1
\u
606f
\u
ff0c
\u
5de5
\u5355\u
53f7
{0}
\u3002\u
540e
\u
7eed
\u
8bf7
\u6309\u8981\u
6c42
\u
53ca
\u
65f6
\u
5f00
\u
5c55
\u
68c0
\u
6d4b
\u
5de5
\u
4f5c
\u
ff0c
\u
4fdd
\u6301\u
901a
\u
8baf
\u7545\u
901a
\u3002
SMS.INSPECTION.WO.UPDATE.INSPECTOR_ORIGIN
=
\u
60a8
\u
597d
\u
ff0c
\u
7cfb
\u
7edf
\u
5df2
\u
66f4
\u
65b0
\u
68c0
\u
6d4b
\u
4eba
\u5458\u
540d
\u5355\u
ff0c
\u
60a8
\u
4ecd
\u
4fdd
\u7559\u
68c0
\u
6d4b
\u
4eba
\u5458\u
8d44
\u
683c
\u
ff0c
\u
8bf7
\u
7ee7
\u
7eed
\u6309\u
89c4
\u8303\u
5f00
\u
5c55
\u
68c0
\u
6d4b
\u
5de5
\u
4f5c
\u
ff0c
\u
4fdd
\u6301\u
901a
\u
8baf
\u7545\u
901a
\u
ff0c
\u5982\u6709\u
53d8
\u
52a8
\u
5c06
\u
53e6
\u
884c
\u
901a
\u
77e5
\u3002
SMS.INSPECTION.WO.UPDATE.INSPECTOR_ORIGIN
=
\u
60a8
\u
597d
\u
ff0c
\u
7cfb
\u
7edf
\u
5df2
\u
66f4
\u
65b0
\u
68c0
\u
6d4b
\u
4eba
\u5458\u
540d
\u5355\u
ff0c
\u
60a8
\u
4ecd
\u
4fdd
\u7559\u
68c0
\u
6d4b
\u
4eba
\u5458\u
8d44
\u
683c
\u
ff0c
\u
8bf7
\u
7ee7
\u
7eed
\u6309\u
89c4
\u8303\u
5f00
\u
5c55
\u
68c0
\u
6d4b
\u
5de5
\u
4f5c
\u
ff0c
\u
4fdd
\u6301\u
901a
\u
8baf
\u7545\u
901a
\u
ff0c
\u5982\u6709\u
53d8
\u
52a8
\u
5c06
\u
53e6
\u
884c
\u
901a
\u
77e5
\u3002
SMS.INSPECTION.WO.REJECT
=
\u
3010\u
68c0
\u
6d4b
\u
5de5
\u5355\u
9a73
\u
56de
\u
901a
\u
77e5
\u3011\u
60a8
\u
63d0
\u
4ea4
\u7684\u
68c0
\u
6d4b
\u
5de5
\u5355\u
ff08
\u
7f16
\u
53f7
\u
ff1a{0}
\u
ff09
\u
5df2
\u
9a73
\u
56de
\u
ff0c
\u
9a73
\u
56de
\u
539f
\u
56e0
\u
ff1a{1}
\u3002
SMS.INSPECTION.WO.REJECT
=
\u
60a8
\u
63d0
\u
4ea4
\u7684\u
68c0
\u
6d4b
\u
5de5
\u5355\u
7f16
\u
53f7
\u
ff1a{0}
\u
5df2
\u
9a73
\u
56de
\u
ff0c
\u
8bf7
\u
67e5
\u
770b
aus-inspector/src/main/java/com/glsx/usedcar/controller/AuthController.java
View file @
69480b5
...
@@ -19,7 +19,6 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -19,7 +19,6 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
/**
/**
...
@@ -94,7 +93,7 @@ public class AuthController {
...
@@ -94,7 +93,7 @@ public class AuthController {
return
BaseResp
.
fail
(
"用户不存在"
);
return
BaseResp
.
fail
(
"用户不存在"
);
}
}
String
code
=
loginRequest
.
getVerifyCode
();
String
code
=
loginRequest
.
getVerifyCode
();
if
(!
smsCodeUtil
.
validateCode
(
phone
,
code
)
&&
!
envProfileUtils
.
isDevEnvironment
()
&&
!
envProfileUtils
.
isTestEnvironment
()
)
{
if
(!
smsCodeUtil
.
validateCode
(
phone
,
code
)
&&
!
envProfileUtils
.
isDevEnvironment
())
{
log
.
warn
(
"用户手机号{}验证码错误"
,
phone
);
log
.
warn
(
"用户手机号{}验证码错误"
,
phone
);
return
BaseResp
.
fail
(
"验证码错误或已过期"
);
return
BaseResp
.
fail
(
"验证码错误或已过期"
);
}
}
...
@@ -111,7 +110,6 @@ public class AuthController {
...
@@ -111,7 +110,6 @@ public class AuthController {
* 退出登录接口(需携带有效登录Token)
* 退出登录接口(需携带有效登录Token)
* 注:当前仅返回退出成功,实际生产环境可补充Token黑名单/失效逻辑
* 注:当前仅返回退出成功,实际生产环境可补充Token黑名单/失效逻辑
*
*
* @param request HttpServletRequest:用于获取登录态中的检测员手机号
* @return 退出结果:success=true表示退出成功
* @return 退出结果:success=true表示退出成功
*/
*/
@Operation
(
@Operation
(
...
@@ -120,9 +118,7 @@ public class AuthController {
...
@@ -120,9 +118,7 @@ public class AuthController {
)
)
@PostMapping
(
"/logout"
)
@PostMapping
(
"/logout"
)
@RequireLogin
@RequireLogin
public
BaseResp
<
Boolean
>
logout
(
public
BaseResp
<
Boolean
>
logout
()
{
@Parameter
(
hidden
=
true
)
HttpServletRequest
request
)
{
String
phone
=
InspectorContext
.
getPhone
();
String
phone
=
InspectorContext
.
getPhone
();
log
.
info
(
"检测员{}执行退出登录操作"
,
phone
);
log
.
info
(
"检测员{}执行退出登录操作"
,
phone
);
return
BaseResp
.
success
(
true
);
return
BaseResp
.
success
(
true
);
...
...
aus-inspector/src/main/java/com/glsx/usedcar/controller/InspectionReportController.java
View file @
69480b5
...
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
...
@@ -13,6 +13,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import
jakarta.validation.Valid
;
import
jakarta.validation.Valid
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.summerframework.orm.paging.Operator
;
import
org.summerframework.orm.paging.Operator
;
...
@@ -47,7 +48,12 @@ public class InspectionReportController {
...
@@ -47,7 +48,12 @@ public class InspectionReportController {
try
{
try
{
// 2. 构建分页对象(offset = (页码-1)*每页条数)
// 2. 构建分页对象(offset = (页码-1)*每页条数)
Pagination
<
InspectionReport
>
pagination
=
new
Pagination
<>((
page
-
1
)
*
size
,
size
);
Pagination
<
InspectionReport
>
pagination
=
new
Pagination
<>((
page
-
1
)
*
size
,
size
);
if
(
StringUtils
.
isNotBlank
(
req
.
getKeyword
()))
{
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionReport
.
CARTYPE
,
req
.
getKeyword
(),
Operator
.
eq
);
}
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionReport
.
INSPECTOR_ID
,
InspectorContext
.
getInspectorId
(),
Operator
.
eq
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionReport
.
INSPECTOR_ID
,
InspectorContext
.
getInspectorId
(),
Operator
.
eq
);
pagination
.
setSort
(
"createTime"
);
pagination
.
setOrder
(
"desc"
);
// 3. 调用Service查询(若有关键词过滤,可在此添加pagination.addFilter逻辑)
// 3. 调用Service查询(若有关键词过滤,可在此添加pagination.addFilter逻辑)
Page
<
InspectionReportRespVO
>
result
=
inspectionReportService
.
pageList
(
pagination
);
Page
<
InspectionReportRespVO
>
result
=
inspectionReportService
.
pageList
(
pagination
);
return
BaseResp
.
success
(
result
);
return
BaseResp
.
success
(
result
);
...
...
aus-inspector/src/main/java/com/glsx/usedcar/controller/InspectionWorkOrderController.java
View file @
69480b5
...
@@ -50,6 +50,8 @@ public class InspectionWorkOrderController {
...
@@ -50,6 +50,8 @@ public class InspectionWorkOrderController {
Pagination
<
InspectionWorkOrder
>
pagination
=
new
Pagination
<>((
page
-
1
)
*
size
,
size
);
Pagination
<
InspectionWorkOrder
>
pagination
=
new
Pagination
<>((
page
-
1
)
*
size
,
size
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
STATUS
,
req
.
getStatus
(),
Operator
.
eq
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
STATUS
,
req
.
getStatus
(),
Operator
.
eq
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
INSPECTOR_ID
,
InspectorContext
.
getInspectorId
(),
Operator
.
eq
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
INSPECTOR_ID
,
InspectorContext
.
getInspectorId
(),
Operator
.
eq
);
pagination
.
setSort
(
"createTime"
);
pagination
.
setOrder
(
"desc"
);
if
(
StringUtils
.
isNotBlank
(
req
.
getKeyword
()))
{
if
(
StringUtils
.
isNotBlank
(
req
.
getKeyword
()))
{
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
CARTYPE
,
req
.
getKeyword
(),
Operator
.
eq
);
pagination
.
addFilter
(
JpaQueryConstants
.
InspectionWorkOrder
.
CARTYPE
,
req
.
getKeyword
(),
Operator
.
eq
);
}
}
...
...
aus-inspector/src/main/java/com/glsx/usedcar/req/InspectionReportReq.java
View file @
69480b5
...
@@ -18,4 +18,7 @@ public class InspectionReportReq {
...
@@ -18,4 +18,7 @@ public class InspectionReportReq {
@Schema
(
description
=
"页码,默认1(从1开始)"
,
example
=
"1"
)
@Schema
(
description
=
"页码,默认1(从1开始)"
,
example
=
"1"
)
private
Integer
page
;
private
Integer
page
;
@Schema
(
description
=
"模糊查询参数"
,
example
=
"1"
)
private
String
keyword
;
}
}
\ No newline at end of file
\ No newline at end of file
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