Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
parking_local_general
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李东升
parking_local_general
Commits
1793e098
Commit
1793e098
authored
May 19, 2020
by
李东升
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改调用计算费用实现方式
parent
5968d48e
Hide whitespace changes
Inline
Side-by-side
Showing
58 changed files
with
241 additions
and
85 deletions
+241
-85
RequestChargeCommand.java
...l/parking_local_general/command/RequestChargeCommand.java
+49
-0
ExceptionControllerAdvice.java
...local_general/config/local/ExceptionControllerAdvice.java
+0
-1
WebMvcConfig.java
...ocal/parking_local_general/config/local/WebMvcConfig.java
+0
-1
DZConfig.java
...ing/local/parking_local_general/config/zhaf/DZConfig.java
+0
-1
ChannelController.java
...ing_local_general/controller/local/ChannelController.java
+0
-1
ParkMessageController.java
...local_general/controller/local/ParkMessageController.java
+0
-1
PaymentChargesController.java
...al_general/controller/local/PaymentChargesController.java
+0
-1
ReceiveReportController.java
...cal_general/controller/local/ReceiveReportController.java
+0
-1
ReportController.java
...rking_local_general/controller/zhaf/ReportController.java
+0
-6
RequestController.java
...king_local_general/controller/zhaf/RequestController.java
+0
-1
ThsIntervalPayableMoney.java
...ocal_general/domain/local/bo/ThsIntervalPayableMoney.java
+10
-4
ThsOneTimePayableMoney.java
...local_general/domain/local/bo/ThsOneTimePayableMoney.java
+41
-0
ThsRequestChargeAbstract.java
...cal_general/domain/local/bo/ThsRequestChargeAbstract.java
+2
-1
ThsRequestChargeBO.java
...ing_local_general/domain/local/bo/ThsRequestChargeBO.java
+11
-21
ThsTimeFramePayableMoney.java
...cal_general/domain/local/bo/ThsTimeFramePayableMoney.java
+8
-3
BaseDTO.java
...local/parking_local_general/domain/local/dto/BaseDTO.java
+0
-1
ManualCarOutDTO.java
...cal_general/domain/local/dto/request/ManualCarOutDTO.java
+0
-1
ThsCarInDTO.java
...g_local_general/domain/local/dto/request/ThsCarInDTO.java
+0
-1
ThsCarOutDTO.java
..._local_general/domain/local/dto/request/ThsCarOutDTO.java
+0
-1
ThsPaySyncDTO.java
...local_general/domain/local/dto/request/ThsPaySyncDTO.java
+0
-1
ThsChannelMeeageDTO.java
...eneral/domain/local/dto/response/ThsChannelMeeageDTO.java
+0
-1
ThsRequestChargeDTO.java
...eneral/domain/local/dto/response/ThsRequestChargeDTO.java
+0
-1
ResponseResultZHAF.java
...parking_local_general/domain/zhaf/ResponseResultZHAF.java
+0
-1
BarriergateReportDTO.java
...g_local_general/domain/zhaf/dto/BarriergateReportDTO.java
+0
-1
BindDeviceDTO.java
.../parking_local_general/domain/zhaf/dto/BindDeviceDTO.java
+0
-1
DeleteDeviceDTO.java
...arking_local_general/domain/zhaf/dto/DeleteDeviceDTO.java
+0
-1
RegisterDeviceDTO.java
...king_local_general/domain/zhaf/dto/RegisterDeviceDTO.java
+0
-1
SubscriptionDTO.java
...arking_local_general/domain/zhaf/dto/SubscriptionDTO.java
+0
-1
RequestChargeTypeEnums.java
...ing_local_general/enums/local/RequestChargeTypeEnums.java
+120
-0
GeneralPrintLogAOP.java
...ing_local_general/intercept/local/GeneralPrintLogAOP.java
+0
-1
GeneralPrintLogAspect.java
...general/intercept/local/aspect/GeneralPrintLogAspect.java
+0
-1
ControlBarrierGateService.java
...ocal_general/service/local/ControlBarrierGateService.java
+0
-1
ControlBarrierGateServiceImpl.java
..._general/service/local/ControlBarrierGateServiceImpl.java
+0
-1
LocalCarInAndOutService.java
..._local_general/service/local/LocalCarInAndOutService.java
+0
-1
LocalCarInAndOutServiceImpl.java
...al_general/service/local/LocalCarInAndOutServiceImpl.java
+0
-1
MemberCarHelperService.java
...g_local_general/service/local/MemberCarHelperService.java
+0
-1
MemberCarHelperServiceImpl.java
...cal_general/service/local/MemberCarHelperServiceImpl.java
+0
-1
PaymentChargesService.java
...ng_local_general/service/local/PaymentChargesService.java
+0
-1
PaymentChargesServiceImpl.java
...ocal_general/service/local/PaymentChargesServiceImpl.java
+0
-1
CarAdvanceInOutRecordsService.java
...ral/service/local/base/CarAdvanceInOutRecordsService.java
+0
-1
ChannelMessageService.java
...cal_general/service/local/base/ChannelMessageService.java
+0
-1
ChargingRulesService.java
...ocal_general/service/local/base/ChargingRulesService.java
+0
-1
MemeberCarService.java
...g_local_general/service/local/base/MemeberCarService.java
+0
-1
ParkMessageService.java
..._local_general/service/local/base/ParkMessageService.java
+0
-1
ParkingRecordsService.java
...cal_general/service/local/base/ParkingRecordsService.java
+0
-1
PayOrderRecordsService.java
...al_general/service/local/base/PayOrderRecordsService.java
+0
-1
CarAdvanceInOutRecordsImpl.java
...l/service/local/base/impl/CarAdvanceInOutRecordsImpl.java
+0
-1
ChannelMessageServiceImpl.java
...al/service/local/base/impl/ChannelMessageServiceImpl.java
+0
-1
ChargingRulesServiceImpl.java
...ral/service/local/base/impl/ChargingRulesServiceImpl.java
+0
-1
MemeberCarServiceImpl.java
...eneral/service/local/base/impl/MemeberCarServiceImpl.java
+0
-1
ParkMessageServiceImpl.java
...neral/service/local/base/impl/ParkMessageServiceImpl.java
+0
-1
ParkingRecordsServiceImpl.java
...al/service/local/base/impl/ParkingRecordsServiceImpl.java
+0
-1
PayOrderRecordsServiceImpl.java
...l/service/local/base/impl/PayOrderRecordsServiceImpl.java
+0
-1
RemoteRequestService.java
...king_local_general/service/zhaf/RemoteRequestService.java
+0
-1
ReportService.java
...cal/parking_local_general/service/zhaf/ReportService.java
+0
-1
RemoteRequestServiceImpl.java
...l_general/service/zhaf/impl/RemoteRequestServiceImpl.java
+0
-1
ReportServiceImpl.java
...ng_local_general/service/zhaf/impl/ReportServiceImpl.java
+0
-1
Base64Utils.java
...ng/local/parking_local_general/util/zhaf/Base64Utils.java
+0
-1
No files found.
src/main/java/com/huaching/parking/local/parking_local_general/command/RequestChargeCommand.java
0 → 100644
View file @
1793e098
package
com
.
huaching
.
parking
.
local
.
parking_local_general
.
command
;
import
com.huaching.parking.local.parking_local_general.domain.local.bo.ThsRequestChargeAbstract
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.PostConstruct
;
import
java.lang.reflect.ParameterizedType
;
import
java.lang.reflect.Type
;
import
java.util.List
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentMap
;
/**
* @program: parking_local_general
* @description: 请求费用command
* @author: lidongsheng
* @createData: 2020-05-19 16:44
* @updateAuthor: lidongsheng
* @updateData: 2020-05-19 16:44
* @updateContent: 请求费用command
* @Version: 1.0.0
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
*/
@Service
public
class
RequestChargeCommand
{
@Autowired
private
List
<
ThsRequestChargeAbstract
>
processors
;
private
final
ConcurrentMap
<
Integer
,
ThsRequestChargeAbstract
>
processMap
=
new
ConcurrentHashMap
<>();
@PostConstruct
public
void
start
()
{
if
(
processors
==
null
||
processors
.
size
()
==
0
)
{
return
;
}
for
(
ThsRequestChargeAbstract
processor
:
processors
)
{
processMap
.
put
(
processor
.
getType
(),
processor
);
}
}
public
ThsRequestChargeAbstract
getProcessor
(
Integer
type
)
{
return
processMap
.
get
(
type
);
}
}
src/main/java/com/huaching/parking/local/parking_local_general/config/local/ExceptionControllerAdvice.java
View file @
1793e098
...
...
@@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
* @updateContent: 全局异常处理类
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/config/local/WebMvcConfig.java
View file @
1793e098
...
...
@@ -14,7 +14,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2019. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/config/zhaf/DZConfig.java
View file @
1793e098
...
...
@@ -14,7 +14,6 @@ import org.springframework.stereotype.Component;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/controller/local/ChannelController.java
View file @
1793e098
...
...
@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.RestController;
* @updateContent: 通道相关的controller
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/controller/local/ParkMessageController.java
View file @
1793e098
...
...
@@ -26,7 +26,6 @@ import org.springframework.web.bind.annotation.RestController;
* @updateContent: 请求controller
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/controller/local/PaymentChargesController.java
View file @
1793e098
...
...
@@ -28,7 +28,6 @@ import javax.validation.Valid;
* @updateContent: 费用支付相关接口(下行)
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/controller/local/ReceiveReportController.java
View file @
1793e098
...
...
@@ -28,7 +28,6 @@ import javax.validation.Valid;
* @updateContent: 上报controller
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/controller/zhaf/ReportController.java
View file @
1793e098
...
...
@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.RestController;
* @updateContent: 智慧安防小区上报controller
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
@@ -47,9 +46,4 @@ public class ReportController {
public
ResponseResult
barriergateReport
(
@RequestBody
BarriergateReportDTO
barriergateReportDTO
){
return
reportService
.
barriergateReport
(
barriergateReportDTO
);
}
public
static
void
main
(
String
[]
args
)
{
logger
.
info
(
"ssssssssssss"
);
}
}
src/main/java/com/huaching/parking/local/parking_local_general/controller/zhaf/RequestController.java
View file @
1793e098
...
...
@@ -34,7 +34,6 @@ import java.util.Date;
* @updateContent: 请求controller
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/bo/ThsIntervalPayableMoney.java
View file @
1793e098
...
...
@@ -2,9 +2,11 @@ package com.huaching.parking.local.parking_local_general.domain.local.bo;
import
com.alibaba.fastjson.JSON
;
import
com.huaching.parking.local.parking_local_general.domain.local.po.ThsChargingRulesPO
;
import
com.huaching.parking.local.parking_local_general.enums.local.RequestChargeTypeEnums
;
import
com.huaching.parking.local.parking_local_general.util.local.DateUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
java.util.Comparator
;
import
java.util.Date
;
...
...
@@ -19,14 +21,12 @@ import java.util.List;
* @updateData: 2020-04-26 10:31
* @updateContent: 按照时间间隔计算费用
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
*/
public
class
ThsIntervalPayableMoney
implements
ThsRequestChargeAbstract
{
@Component
public
class
ThsIntervalPayableMoney
implements
ThsRequestChargeAbstract
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ThsIntervalPayableMoney
.
class
);
...
...
@@ -37,6 +37,11 @@ public class ThsIntervalPayableMoney implements ThsRequestChargeAbstract{
,
thsChargingRulesPO
.
getMaxOneTimeMoney
());
}
@Override
public
Integer
getType
()
{
return
RequestChargeTypeEnums
.
INTERVAL
.
getCode
();
}
/**
* 按照间隔收费
*
...
...
@@ -67,6 +72,7 @@ public class ThsIntervalPayableMoney implements ThsRequestChargeAbstract{
return
(
int
)
sumMoney
;
}
/**
* 按照间隔收费
* "frameType": 0 按分钟收费
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/bo/ThsOneTimePayableMoney.java
0 → 100644
View file @
1793e098
package
com
.
huaching
.
parking
.
local
.
parking_local_general
.
domain
.
local
.
bo
;
import
com.alibaba.fastjson.JSON
;
import
com.huaching.parking.local.parking_local_general.domain.local.po.ThsChargingRulesPO
;
import
com.huaching.parking.local.parking_local_general.enums.local.RequestChargeTypeEnums
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
java.util.Date
;
/**
* @program: parking_local_general
* @description: 按次收费
* @author: lidongsheng
* @createData: 2020-05-19 17:11
* @updateAuthor: lidongsheng
* @updateData: 2020-05-19 17:11
* @updateContent: 按次收费
* @Version: 1.0.0
* @email: lidongshenglife@163.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
*/
@Component
public
class
ThsOneTimePayableMoney
implements
ThsRequestChargeAbstract
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ThsOneTimePayableMoney
.
class
);
@Override
public
Integer
getPayableMoney
(
ThsChargingRulesPO
thsChargingRulesPO
,
Date
inTime
)
{
String
chargeDetails
=
thsChargingRulesPO
.
getChargeDetails
();
return
(
Integer
)
JSON
.
parseObject
(
chargeDetails
).
get
(
"oneTimeMoney"
);
}
@Override
public
Integer
getType
()
{
return
RequestChargeTypeEnums
.
ONE_TIME
.
getCode
();
}
}
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/bo/ThsRequestChargeAbstract.java
View file @
1793e098
...
...
@@ -14,7 +14,6 @@ import java.util.Date;
* @updateContent: 请求费用
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
@@ -23,4 +22,6 @@ import java.util.Date;
public
interface
ThsRequestChargeAbstract
{
Integer
getPayableMoney
(
ThsChargingRulesPO
thsChargingRulesPO
,
Date
inTime
);
Integer
getType
();
}
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/bo/ThsRequestChargeBO.java
View file @
1793e098
package
com
.
huaching
.
parking
.
local
.
parking_local_general
.
domain
.
local
.
bo
;
import
com.alibaba.fastjson.JSON
;
import
com.huaching.parking.local.parking_local_general.command.RequestChargeCommand
;
import
com.huaching.parking.local.parking_local_general.domain.local.po.ThsChargingRulesPO
;
import
com.huaching.parking.local.parking_local_general.intercept.local.GeneralPrintLogAOP
;
import
com.huaching.parking.local.parking_local_general.service.local.MemberCarHelperService
;
import
com.huaching.parking.local.parking_local_general.util.local.DateUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.stereotype.Component
;
import
java.util.Comparator
;
...
...
@@ -23,8 +26,6 @@ import java.util.UUID;
* @updateData: 2020-04-22 13:41
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
@@ -37,6 +38,12 @@ public class ThsRequestChargeBO {
@Autowired
private
MemberCarHelperService
memberCarHelperService
;
@Autowired
private
ApplicationContext
applicationContext
;
@Autowired
private
RequestChargeCommand
requestChargeCommand
;
/**
* 计算费用
*
...
...
@@ -44,30 +51,13 @@ public class ThsRequestChargeBO {
* @param inTime
* @return
*/
@GeneralPrintLogAOP
(
value
=
"请求费用BO"
)
public
Integer
getPayableMoney
(
ThsChargingRulesPO
thsChargingRulesPO
,
String
carNo
,
Date
inTime
)
{
String
chargeDetails
=
thsChargingRulesPO
.
getChargeDetails
();
logger
.
info
(
"计算费用 parkCode -> {} , inTime -> {},chargeDetails -> {}"
,
thsChargingRulesPO
.
getParkCode
(),
inTime
,
chargeDetails
);
if
(
memberCarHelperService
.
vaildMember
(
thsChargingRulesPO
.
getParkCode
(),
carNo
)
!=
null
)
{
return
0
;
}
ThsRequestChargeAbstract
requestChargeAbstract
=
null
;
switch
(
thsChargingRulesPO
.
getChargeType
())
{
//按次收费
case
0
:
logger
.
info
(
"计算费用,按次收费 parkCode -> {} , inTime -> {}"
,
thsChargingRulesPO
.
getParkCode
(),
inTime
);
return
(
Integer
)
JSON
.
parseObject
(
chargeDetails
).
get
(
"oneTimeMoney"
);
//按时段收费
case
1
:
logger
.
info
(
"计算费用,按时段收费 parkCode -> {} , inTime -> {}"
,
thsChargingRulesPO
.
getParkCode
(),
inTime
);
requestChargeAbstract
=
new
ThsTimeFramePayableMoney
();
break
;
//按间隔收费
case
2
:
logger
.
info
(
"计算费用,按间隔收费 parkCode -> {} , inTime -> {}"
,
thsChargingRulesPO
.
getParkCode
(),
inTime
);
requestChargeAbstract
=
new
ThsIntervalPayableMoney
();
break
;
}
return
requestChargeAbstract
.
getPayableMoney
(
thsChargingRulesPO
,
inTime
);
return
requestChargeCommand
.
getProcessor
(
thsChargingRulesPO
.
getChargeType
()).
getPayableMoney
(
thsChargingRulesPO
,
inTime
);
}
}
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/bo/ThsTimeFramePayableMoney.java
View file @
1793e098
...
...
@@ -2,9 +2,11 @@ package com.huaching.parking.local.parking_local_general.domain.local.bo;
import
com.alibaba.fastjson.JSON
;
import
com.huaching.parking.local.parking_local_general.domain.local.po.ThsChargingRulesPO
;
import
com.huaching.parking.local.parking_local_general.enums.local.RequestChargeTypeEnums
;
import
com.huaching.parking.local.parking_local_general.util.local.DateUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
java.util.Comparator
;
import
java.util.Date
;
...
...
@@ -19,13 +21,11 @@ import java.util.List;
* @updateData: 2020-04-26 10:38
* @updateContent: 按照时段收费
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
*/
@Component
public
class
ThsTimeFramePayableMoney
implements
ThsRequestChargeAbstract
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ThsTimeFramePayableMoney
.
class
);
...
...
@@ -38,6 +38,11 @@ public class ThsTimeFramePayableMoney implements ThsRequestChargeAbstract {
,
thsChargingRulesPO
.
getMaxOneTimeMoney
(),
thsChargingRulesPO
.
getMaxOneDayMoney
());
}
@Override
public
Integer
getType
()
{
return
RequestChargeTypeEnums
.
TIME_FRAME
.
getCode
();
}
/**
* 按时段收费
*
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/BaseDTO.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import net.bytebuddy.implementation.bind.annotation.Super;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/request/ManualCarOutDTO.java
View file @
1793e098
...
...
@@ -10,7 +10,6 @@ package com.huaching.parking.local.parking_local_general.domain.local.dto.reques
* @updateContent: 人工开闸DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/request/ThsCarInDTO.java
View file @
1793e098
...
...
@@ -16,7 +16,6 @@ import java.util.Date;
* @updateContent: 入场上报DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/request/ThsCarOutDTO.java
View file @
1793e098
...
...
@@ -16,7 +16,6 @@ import java.util.Date;
* @updateContent: 入场上报DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/request/ThsPaySyncDTO.java
View file @
1793e098
...
...
@@ -17,7 +17,6 @@ import java.util.Date;
* @updateContent: 支付同步DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/response/ThsChannelMeeageDTO.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsChann
* @updateContent: 通道信息DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/local/dto/response/ThsRequestChargeDTO.java
View file @
1793e098
...
...
@@ -22,7 +22,6 @@ import java.util.UUID;
* @updateContent: 请求费用信息DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/ResponseResultZHAF.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import java.util.List;
* @updateContent: 智慧安防设备接口调用统一返回参数
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/dto/BarriergateReportDTO.java
View file @
1793e098
...
...
@@ -27,7 +27,6 @@ import java.util.Date;
* @updateContent: 道闸过车上报DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/dto/BindDeviceDTO.java
View file @
1793e098
...
...
@@ -10,7 +10,6 @@ package com.huaching.parking.local.parking_local_general.domain.zhaf.dto;
* @updateContent: 设备关联新增与修改入参dto
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/dto/DeleteDeviceDTO.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import java.util.List;
* @updateContent: 删除设备入参dto
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/dto/RegisterDeviceDTO.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import java.util.List;
* @updateContent: 注册设备入参DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/domain/zhaf/dto/SubscriptionDTO.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import java.util.List;
* @updateContent: 订阅数据DTO
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/enums/local/RequestChargeTypeEnums.java
0 → 100644
View file @
1793e098
package
com
.
huaching
.
parking
.
local
.
parking_local_general
.
enums
.
local
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @program: parking_local_general
* @description: 收费规则enum
* @author: lidongsheng
* @createData: 2020-05-19 17:16
* @updateAuthor: lidongsheng
* @updateData: 2020-05-19 17:16
* @updateContent: 收费规则类型enum
* @Version: 1.0.0
* @email: lidongshenglife@163.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
*/
public
enum
RequestChargeTypeEnums
{
/**
* 调用接口参数错误
*/
ONE_TIME
(
0
,
"按次收费"
),
/**
* 处理逻辑错误
*/
TIME_FRAME
(
1
,
"按照时段收费"
),
/**
* 没有在场记录
*/
INTERVAL
(
2
,
"按照时间间隔计算费用"
);
/**
* 类型code
*/
private
final
Integer
code
;
/**
* 类型说明
*/
private
final
String
message
;
/**
* 构建一个 SchedulerTypeEnums
*
* @param code 类型code
* @param message 类型说明
*/
private
RequestChargeTypeEnums
(
Integer
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
/**
* 得到类型code
*
* @return 类型code
*/
public
Integer
getCode
()
{
return
code
;
}
/**
* 得到类型说明。
*
* @return 类型说明。
*/
public
String
getMessage
()
{
return
message
;
}
/**
* 通过枚举值码查找枚举值。
*
* @param code 查找枚举值的枚举值码。
* @return 枚举值码对应的枚举值。
*/
public
static
RequestChargeTypeEnums
findPushType
(
Integer
code
)
{
for
(
RequestChargeTypeEnums
pushType
:
values
())
{
if
(
pushType
.
getCode
().
equals
(
code
))
{
return
pushType
;
}
}
// 如果找不到枚举值,那就返回null
return
null
;
}
/**
* 获取全部枚举值。
*
* @return 全部枚举值。
*/
public
static
List
<
RequestChargeTypeEnums
>
getAllPushType
()
{
List
<
RequestChargeTypeEnums
>
list
=
new
ArrayList
<>();
for
(
RequestChargeTypeEnums
RequestChargeType
:
values
())
{
list
.
add
(
RequestChargeType
);
}
return
list
;
}
/**
* 获取全部枚举值码。
*
* @return 全部枚举值码。
*/
public
static
List
<
Integer
>
getAllCode
()
{
List
<
Integer
>
list
=
new
ArrayList
<>();
for
(
RequestChargeTypeEnums
RequestChargeType
:
values
())
{
list
.
add
(
RequestChargeType
.
getCode
());
}
return
list
;
}
}
src/main/java/com/huaching/parking/local/parking_local_general/intercept/local/GeneralPrintLogAOP.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import java.lang.annotation.*;
* @updateContent: 使用AOP注解拦截
* @Version: 1.0
* @blog: www.b0c0.com
*/
/**
...
...
src/main/java/com/huaching/parking/local/parking_local_general/intercept/local/aspect/GeneralPrintLogAspect.java
View file @
1793e098
...
...
@@ -27,7 +27,6 @@ import java.util.Map;
* @updateContent: AOP拦截切面类
* @Version: 1.0
* @blog: www.b0c0.com
*/
@Aspect
@Component
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/ControlBarrierGateService.java
View file @
1793e098
...
...
@@ -10,7 +10,6 @@ package com.huaching.parking.local.parking_local_general.service.local;
* @updateContent: 控制道闸
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/ControlBarrierGateServiceImpl.java
View file @
1793e098
...
...
@@ -16,7 +16,6 @@ import org.springframework.stereotype.Service;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/LocalCarInAndOutService.java
View file @
1793e098
...
...
@@ -17,7 +17,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsParki
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/LocalCarInAndOutServiceImpl.java
View file @
1793e098
...
...
@@ -31,7 +31,6 @@ import java.util.*;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/MemberCarHelperService.java
View file @
1793e098
...
...
@@ -13,7 +13,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsMembe
* @updateContent: 会员车操作帮助类
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/MemberCarHelperServiceImpl.java
View file @
1793e098
...
...
@@ -23,7 +23,6 @@ import java.util.Date;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/PaymentChargesService.java
View file @
1793e098
...
...
@@ -16,7 +16,6 @@ import java.util.Date;
* @updateContent: 支付费用相关Service
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/PaymentChargesServiceImpl.java
View file @
1793e098
...
...
@@ -30,7 +30,6 @@ import java.util.*;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/CarAdvanceInOutRecordsService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsCarAd
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/ChannelMessageService.java
View file @
1793e098
...
...
@@ -14,7 +14,6 @@ import java.util.List;
* @updateContent: 通道信息查询
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/ChargingRulesService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsCharg
* @updateContent: 收费规则相关Service
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/MemeberCarService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsMembe
* @updateContent: 会员车辆
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/ParkMessageService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsParkM
* @updateContent: 车场信息Service
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/ParkingRecordsService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsParki
* @updateContent: 停车记录相关service
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/PayOrderRecordsService.java
View file @
1793e098
...
...
@@ -12,7 +12,6 @@ import com.huaching.parking.local.parking_local_general.domain.local.po.ThsPayOr
* @updateContent: 支付订单记录
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/CarAdvanceInOutRecordsImpl.java
View file @
1793e098
...
...
@@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/ChannelMessageServiceImpl.java
View file @
1793e098
...
...
@@ -21,7 +21,6 @@ import java.util.List;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/ChargingRulesServiceImpl.java
View file @
1793e098
...
...
@@ -22,7 +22,6 @@ import java.util.List;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/MemeberCarServiceImpl.java
View file @
1793e098
...
...
@@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/ParkMessageServiceImpl.java
View file @
1793e098
...
...
@@ -20,7 +20,6 @@ import java.util.List;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/ParkingRecordsServiceImpl.java
View file @
1793e098
...
...
@@ -29,7 +29,6 @@ import org.springframework.stereotype.Service;
* @updateContent: 停车记录
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/local/base/impl/PayOrderRecordsServiceImpl.java
View file @
1793e098
...
...
@@ -19,7 +19,6 @@ import org.springframework.stereotype.Service;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/zhaf/RemoteRequestService.java
View file @
1793e098
...
...
@@ -17,7 +17,6 @@ import com.huaching.parking.local.parking_local_general.domain.zhaf.dto.Subscrip
* @updateContent: 下行接口请求
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/zhaf/ReportService.java
View file @
1793e098
...
...
@@ -13,7 +13,6 @@ import com.huaching.parking.local.parking_local_general.domain.zhaf.dto.Barrierg
* @updateContent: 上报处理service
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/zhaf/impl/RemoteRequestServiceImpl.java
View file @
1793e098
...
...
@@ -41,7 +41,6 @@ import java.util.Map;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/service/zhaf/impl/ReportServiceImpl.java
View file @
1793e098
...
...
@@ -26,7 +26,6 @@ import org.springframework.stereotype.Service;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
src/main/java/com/huaching/parking/local/parking_local_general/util/zhaf/Base64Utils.java
View file @
1793e098
...
...
@@ -18,7 +18,6 @@ import java.util.Date;
* @updateContent:
* @Version: 1.0.0
* @blog: www.b0c0.com
* ************************************************
* Copyright @ 李东升 2020. All rights reserved
* ************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment