Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
6fa7590b
提交
6fa7590b
authored
12月 01, 2023
作者:
liuhaiquan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v7.0_small_version_fix_20231120' into…
Merge remote-tracking branch 'origin/v7.0_small_version_fix_20231120' into v7.0_small_version_fix_20231120
上级
9f6f9c99
a94c72dc
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
58 行增加
和
40 行删除
+58
-40
ResetPasswordAnnotationAop.java
...om/clx/performance/aspect/ResetPasswordAnnotationAop.java
+3
-0
OrderCancelComponent.java
...a/com/clx/performance/component/OrderCancelComponent.java
+25
-13
AppGoodsOrderController.java
...x/performance/controller/app/AppGoodsOrderController.java
+5
-0
LargeScreenController.java
.../clx/performance/controller/pc/LargeScreenController.java
+0
-3
OrderGoodsServiceImpl.java
...m/clx/performance/service/impl/OrderGoodsServiceImpl.java
+19
-19
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+6
-5
没有找到文件。
performance-web/src/main/java/com/clx/performance/aspect/ResetPasswordAnnotationAop.java
浏览文件 @
6fa7590b
...
@@ -104,12 +104,15 @@ public class ResetPasswordAnnotationAop {
...
@@ -104,12 +104,15 @@ public class ResetPasswordAnnotationAop {
Object
returnVal
=
null
;
Object
returnVal
=
null
;
returnVal
=
jp
.
proceed
();
returnVal
=
jp
.
proceed
();
if
(!
StringUtils
.
equals
(
aspectAnnotation
.
name
(),
"resetPassword"
))
{
Result
result
=
JSONUtil
.
toBean
(
JSONUtil
.
parse
(
returnVal
).
toString
(),
Result
.
class
);
Result
result
=
JSONUtil
.
toBean
(
JSONUtil
.
parse
(
returnVal
).
toString
(),
Result
.
class
);
redisTemplate
.
opsForValue
().
set
(
RedisConstants
.
MESSAGE_RESET_PASSWORD_TOKEN
+
mobile
,
result
.
getData
().
toString
());
redisTemplate
.
opsForValue
().
set
(
RedisConstants
.
MESSAGE_RESET_PASSWORD_TOKEN
+
mobile
,
result
.
getData
().
toString
());
redisTemplate
.
expire
(
RedisConstants
.
MESSAGE_RESET_PASSWORD_TOKEN
+
mobile
,
60
,
TimeUnit
.
SECONDS
);
redisTemplate
.
expire
(
RedisConstants
.
MESSAGE_RESET_PASSWORD_TOKEN
+
mobile
,
60
,
TimeUnit
.
SECONDS
);
}
return
returnVal
;
return
returnVal
;
}
}
}
}
performance-web/src/main/java/com/clx/performance/component/OrderCancelComponent.java
浏览文件 @
6fa7590b
...
@@ -31,6 +31,7 @@ import com.msl.common.utils.DateUtils;
...
@@ -31,6 +31,7 @@ import com.msl.common.utils.DateUtils;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -40,34 +41,45 @@ import java.util.stream.Collectors;
...
@@ -40,34 +41,45 @@ import java.util.stream.Collectors;
@Component
@Component
@Slf4j
@Slf4j
@AllArgsConstructor
public
class
OrderCancelComponent
implements
InitializingBean
{
public
class
OrderCancelComponent
implements
InitializingBean
{
private
final
OrderChildDao
orderChildDao
;
@Autowired
private
OrderChildDao
orderChildDao
;
private
final
OrderGoodsDao
orderGoodsDao
;
@Autowired
private
OrderGoodsDao
orderGoodsDao
;
private
final
OrderGoodsTruckBindService
orderGoodsTruckBindService
;
@Autowired
private
OrderGoodsTruckBindService
orderGoodsTruckBindService
;
private
final
GoodsOrderTruckRecordComponent
goodsOrderTruckRecordComponent
;
@Autowired
private
GoodsOrderTruckRecordComponent
goodsOrderTruckRecordComponent
;
private
final
OrderFeign
orderFeign
;
@Autowired
private
OrderFeign
orderFeign
;
private
final
DriverService
driverService
;
@Autowired
private
DriverService
driverService
;
private
final
BreakContractSettlementOwnerService
breakContractSettlementOwnerService
;
@Autowired
private
BreakContractSettlementOwnerService
breakContractSettlementOwnerService
;
public
static
Map
<
Integer
,
String
>
statusCodeMap
=
new
HashMap
<>();
public
static
Map
<
Integer
,
String
>
statusCodeMap
=
new
HashMap
<>();
private
final
IntegralMqService
integralMqService
;
@Autowired
private
IntegralMqService
integralMqService
;
private
final
OrderChildLogService
orderChildLogService
;
@Autowired
private
OrderChildLogService
orderChildLogService
;
private
final
OrderChildPostService
orderChildPostService
;
@Autowired
private
OrderChildPostService
orderChildPostService
;
private
final
OrderService
orderService
;
@Autowired
private
OrderService
orderService
;
private
final
OrderGoodsService
orderGoodsService
;
@Autowired
private
OrderGoodsService
orderGoodsService
;
public
List
<
String
>
ownerProcess
(
OrderCancelParam
param
)
{
public
List
<
String
>
ownerProcess
(
OrderCancelParam
param
)
{
String
orderNo
=
param
.
getOrderNo
();
String
orderNo
=
param
.
getOrderNo
();
...
...
performance-web/src/main/java/com/clx/performance/controller/app/AppGoodsOrderController.java
浏览文件 @
6fa7590b
...
@@ -70,4 +70,9 @@ public class AppGoodsOrderController {
...
@@ -70,4 +70,9 @@ public class AppGoodsOrderController {
}
}
@ApiOperation
(
value
=
"司机端无接单位置上报"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/getCancelOrderGoods"
)
public
Result
<
List
<
OrderGoodsAPPVO
>>
getCancelOrderGoods
(
@RequestParam
(
value
=
"userNo"
)
Long
userNo
)
{
return
Result
.
ok
(
orderGoodsTruckBindService
.
getCancelOrderGoods
(
userNo
));
}
}
}
performance-web/src/main/java/com/clx/performance/controller/pc/LargeScreenController.java
浏览文件 @
6fa7590b
...
@@ -2,8 +2,6 @@ package com.clx.performance.controller.pc;
...
@@ -2,8 +2,6 @@ package com.clx.performance.controller.pc;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
import
com.clx.performance.service.LargeScreenService
;
import
com.clx.performance.service.LargeScreenService
;
import
com.clx.performance.service.OrderChildService
;
import
com.clx.user.feign.DriverFeign
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -15,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -15,7 +13,6 @@ import org.springframework.web.bind.annotation.RequestParam;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Slf4j
@Slf4j
@RestController
@RestController
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OrderGoodsServiceImpl.java
浏览文件 @
6fa7590b
...
@@ -48,6 +48,7 @@ import lombok.AllArgsConstructor;
...
@@ -48,6 +48,7 @@ import lombok.AllArgsConstructor;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -63,46 +64,45 @@ import java.util.stream.Collectors;
...
@@ -63,46 +64,45 @@ import java.util.stream.Collectors;
*/
*/
@Service
@Service
@Slf4j
@Slf4j
@AllArgsConstructor
public
class
OrderGoodsServiceImpl
implements
OrderGoodsService
{
public
class
OrderGoodsServiceImpl
implements
OrderGoodsService
{
@Autowired
private
OrderGoodsDao
orderGoodsDao
;
private
OrderGoodsDao
orderGoodsDao
;
@Autowired
private
OrderGoodsStruct
orderGoodsStruct
;
private
OrderGoodsStruct
orderGoodsStruct
;
@Autowired
private
OrderFeign
orderFeign
;
private
OrderFeign
orderFeign
;
@Autowired
private
OrderGoodsTruckBindDao
orderGoodsTruckBindDao
;
private
OrderGoodsTruckBindDao
orderGoodsTruckBindDao
;
@Autowired
private
OrderGoodsDriverTruckDao
orderGoodsDriverTruckDao
;
private
OrderGoodsDriverTruckDao
orderGoodsDriverTruckDao
;
@Autowired
private
OrderGoodsLogService
orderGoodsLogService
;
private
OrderGoodsLogService
orderGoodsLogService
;
@Autowired
private
UserClxFeign
userClxFeign
;
private
UserClxFeign
userClxFeign
;
@Autowired
private
OrderChildDao
orderChildDao
;
private
OrderChildDao
orderChildDao
;
@Autowired
private
GoodsOrderTruckRecordComponent
goodsOrderTruckRecordComponent
;
private
GoodsOrderTruckRecordComponent
goodsOrderTruckRecordComponent
;
@Autowired
private
OrderGoodsStatusLazyComponent
orderGoodsStatusLazyComponent
;
private
OrderGoodsStatusLazyComponent
orderGoodsStatusLazyComponent
;
@Autowired
private
DriverService
driverService
;
private
DriverService
driverService
;
@Autowired
private
OrderCancelComponent
orderCancelComponent
;
private
OrderCancelComponent
orderCancelComponent
;
@Autowired
private
final
IntegralMqService
integralMqService
;
private
IntegralMqService
integralMqService
;
@Autowired
private
final
OrderChildLogService
orderChildLogService
;
private
OrderChildLogService
orderChildLogService
;
@Autowired
private
final
OrderChildPostService
orderChildPostService
;
private
OrderChildPostService
orderChildPostService
;
@Override
@Override
public
OrderGoodsVO
getOrderGoodsInfoByOrderGoodsNoForPC
(
String
orderGoodsNo
)
{
public
OrderGoodsVO
getOrderGoodsInfoByOrderGoodsNoForPC
(
String
orderGoodsNo
)
{
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
6fa7590b
...
@@ -969,7 +969,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
...
@@ -969,7 +969,8 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
}
}
Object
code
=
JSONUtil
.
parse
(
content
).
getByPath
(
"code"
);
Object
code
=
JSONUtil
.
parse
(
content
).
getByPath
(
"code"
);
if
(!
ObjectUtil
.
equal
(
code
,
param
.
getCaptcha
()))
{
if
(!
StringUtils
.
equals
(
code
.
toString
(),
param
.
getCaptcha
()))
{
log
.
info
(
"redis验证码:{}, 用户提交验证码:{}"
,
code
,
param
.
getCaptcha
());
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
CAPTCHA_IS_FAIL
);
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
CAPTCHA_IS_FAIL
);
}
}
...
@@ -982,7 +983,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
...
@@ -982,7 +983,7 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
req
.
setTemplateCode
(
messageConfig
.
getCaptchaTemplateCode
());
req
.
setTemplateCode
(
messageConfig
.
getCaptchaTemplateCode
());
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
//随机生成4位数字
//随机生成4位数字
jsonObject
.
set
(
"code"
,
(
int
)
(
Math
.
random
()
*
9000
)
+
1
000
);
jsonObject
.
set
(
"code"
,
(
int
)
(
Math
.
random
()
*
9000
00
)
+
100
000
);
//默认3分钟
//默认3分钟
jsonObject
.
set
(
"time"
,
"3"
);
jsonObject
.
set
(
"time"
,
"3"
);
req
.
setChannelId
(
messageConfig
.
getChannelId
());
req
.
setChannelId
(
messageConfig
.
getChannelId
());
...
@@ -999,12 +1000,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
...
@@ -999,12 +1000,12 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
public
String
checkBusinessLicenseNumber
(
InformationParam
param
)
{
public
String
checkBusinessLicenseNumber
(
InformationParam
param
)
{
Long
userNo
=
TokenUtil
.
getLoginUserInfo
().
getUserNo
();
Long
userNo
=
TokenUtil
.
getLoginUserInfo
().
getUserNo
();
OwnerInfoFeignVO
ownerInfoFeignVO
=
Optional
.
ofNullable
(
ownerFeign
.
getUserCompany
(
userNo
)).
filter
(
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
);
OwnerInfoFeignVO
ownerInfoFeignVO
=
Optional
.
ofNullable
(
ownerFeign
.
getUserCompany
(
userNo
)).
filter
(
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
);
String
company
BusinessNo
=
ownerInfoFeignVO
.
getCompanyBusinessNo
();
String
company
TaxCode
=
ownerInfoFeignVO
.
getCompanyTaxCode
();
if
(
StringUtils
.
isBlank
(
company
BusinessNo
))
{
if
(
StringUtils
.
isBlank
(
company
TaxCode
))
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
}
if
(!
StringUtils
.
equals
(
company
BusinessNo
,
param
.
getBusinessLicenseNumber
()))
{
if
(!
StringUtils
.
equals
(
company
TaxCode
,
param
.
getBusinessLicenseNumber
()))
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
BUSINESS_NO_FAIL
);
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
BUSINESS_NO_FAIL
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论