Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
436702b8
Commit
436702b8
authored
Nov 11, 2019
by
hanfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
cd35fd25
b14a8da4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
105 additions
and
29 deletions
+105
-29
AppUserManageDTO.java
...m/github/wxiaoqi/security/admin/dto/AppUserManageDTO.java
+4
-6
UserFeign.java
...va/com/github/wxiaoqi/security/admin/feign/UserFeign.java
+9
-8
AppUserDetailMapper.xml
...e-admin/src/main/resources/mapper/AppUserDetailMapper.xml
+3
-3
OrderVehicleCrosstownDto.java
...c/platform/order/pojo/order/OrderVehicleCrosstownDto.java
+2
-0
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+2
-4
BaseOrderController.java
...ava/com/xxfc/platform/order/rest/BaseOrderController.java
+83
-7
OrderPayBiz.java
...ain/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
+2
-1
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/AppUserManageDTO.java
View file @
436702b8
...
...
@@ -65,12 +65,10 @@ public class AppUserManageDTO {
*/
private
Integer
userId
;
/**
* 真实姓名
*/
private
String
realName
;
/**
* 真实姓名
*/
private
String
realName
;
// /**
// * 接收前台时间范围
// */
...
...
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/feign/UserFeign.java
View file @
436702b8
...
...
@@ -131,14 +131,6 @@ public interface UserFeign {
@GetMapping
(
"/app/user/finduserIdsByphones"
)
Map
<
String
,
Integer
>
findAppusersByUserNames
(
@RequestParam
(
value
=
"phones"
)
List
<
String
>
phones
);
@GetMapping
(
value
=
"/app/user/users"
)
List
<
Integer
>
findAppUserIds
(
@RequestParam
(
value
=
"phone"
,
required
=
false
)
String
phone
,
@RequestParam
(
value
=
"leaderPhone"
,
required
=
false
)
String
leaderPhone
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
);
@PostMapping
(
value
=
"/app/user/users/info"
)
List
<
UserBo
>
findUserDetailByUserBo
(
@RequestBody
(
required
=
false
)
List
<
UserBo
>
userBos
);
/**
* 批量获取用户基本信息
* @param ids
...
...
@@ -146,4 +138,13 @@ public interface UserFeign {
*/
@GetMapping
(
"/public/getUsersByUserIds"
)
ObjectRestResponse
<
List
<
AppUserVo
>>
getUsersByUserIds
(
@RequestParam
(
"ids"
)
List
<
Integer
>
ids
);
@GetMapping
(
value
=
"/app/user/users"
)
List
<
Integer
>
findAppUserIds
(
@RequestParam
(
value
=
"phone"
,
required
=
false
)
String
phone
,
@RequestParam
(
value
=
"leaderPhone"
,
required
=
false
)
String
leaderPhone
,
@RequestParam
(
value
=
"name"
,
required
=
false
)
String
name
);
@PostMapping
(
value
=
"/app/user/users/info"
)
List
<
UserBo
>
findUserDetailByUserBo
(
@RequestBody
(
required
=
false
)
List
<
UserBo
>
userBos
);
}
ace-modules/ace-admin/src/main/resources/mapper/AppUserDetailMapper.xml
View file @
436702b8
...
...
@@ -189,12 +189,12 @@
<if
test=
"source !=null "
>
and d.source = #{source}
</if>
<if
test=
"userId!=null"
>
and l.id=#{userId}
</if>
<if
test=
"realName !=null and realName != ''"
>
and d.realname like CONCAT('%',#{realName},'%')
</if>
<if
test=
"userId!=null"
>
and l.id=#{userId}
</if>
<if
test=
"citySet != null "
>
and d.city_code in
<foreach
collection=
"citySet"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/order/OrderVehicleCrosstownDto.java
View file @
436702b8
package
com
.
xxfc
.
platform
.
order
.
pojo
.
order
;
import
com.xxfc.platform.activity.entity.Coupon
;
import
com.xxfc.platform.order.entity.DepositRefundRecord
;
import
com.xxfc.platform.order.entity.OrderVehicleCrosstown
;
import
com.xxfc.platform.order.pojo.DedDetailDTO
;
import
lombok.Data
;
import
java.util.List
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
436702b8
...
...
@@ -564,7 +564,7 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
* @param tradeNo
*/
@Transactional
public
void
payNotifyHandle
(
String
orderNo
,
String
tradeNo
,
Integer
type
)
{
public
void
payNotifyHandle
(
String
orderNo
,
String
tradeNo
,
Integer
type
,
Integer
payWay
)
{
OrderRentVehicleDetail
orvd
=
new
OrderRentVehicleDetail
();
OrderTourDetail
otd
=
new
OrderTourDetail
();
OrderMemberDetail
omd
=
new
OrderMemberDetail
();
...
...
@@ -579,6 +579,7 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
setHasPay
(
SYS_TRUE
);
setPayTime
(
System
.
currentTimeMillis
());
setPayOrigin
(
type
);
setPayWay
(
payWay
);
setVersion
(
baseOrder
.
getVersion
());
}};
...
...
@@ -781,9 +782,6 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
return
userFeign
;
}
/**
* 订单查询类
*/
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BaseOrderController.java
View file @
436702b8
...
...
@@ -16,15 +16,14 @@ import com.github.wxiaoqi.security.common.util.ClientUtil;
import
com.github.wxiaoqi.security.common.util.Query
;
import
com.github.wxiaoqi.security.common.util.process.ResultCode
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.order.biz.BaseOrderBiz
;
import
com.xxfc.platform.order.biz.OrderItemBiz
;
import
com.xxfc.platform.order.biz.OrderMemberDetailBiz
;
import
com.xxfc.platform.order.biz.OrderUserLicenseBiz
;
import
com.xxfc.platform.order.biz.*
;
import
com.xxfc.platform.order.biz.inner.OrderCancelBiz
;
import
com.xxfc.platform.order.
contant.enumerate.OrderStatusEnum
;
import
com.xxfc.platform.order.
entity.BaseOrder
;
import
com.xxfc.platform.order.entity.
OrderItem
;
import
com.xxfc.platform.order.
biz.inner.OrderMsgBiz
;
import
com.xxfc.platform.order.
contant.enumerate.*
;
import
com.xxfc.platform.order.entity.
*
;
import
com.xxfc.platform.order.mqhandler.RabbitProduct
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDeduction
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDetail
;
import
com.xxfc.platform.order.pojo.order.CancelOrderDTO
;
import
com.xxfc.platform.order.pojo.order.OrderAboutParamDTO
;
import
com.xxfc.platform.order.pojo.order.OrderPageVO
;
...
...
@@ -57,6 +56,8 @@ import java.util.List;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_FALSE
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_TRUE
;
import
static
com
.
xxfc
.
platform
.
universal
.
constant
.
DictionaryKey
.
APP_ORDER
;
@Controller
...
...
@@ -90,6 +91,24 @@ public class BaseOrderController extends CommonBaseController implements UserRes
@Autowired
OrderItemBiz
orderItemBiz
;
@Autowired
OrderRentVehicleBiz
orderRentVehicleBiz
;
@Autowired
OrderVehicleCrosstownBiz
crosstownBiz
;
@Autowired
OrderViolationBiz
orderViolationBiz
;
@Autowired
OrderAccountBiz
orderAccountBiz
;
@Autowired
OrderMsgBiz
orderMsgBiz
;
@Autowired
OrderDepositRefundRecordBiz
orderDepositRefundRecordBiz
;
@Override
public
UserFeign
getUserFeign
()
{
return
userFeign
;
...
...
@@ -382,4 +401,61 @@ public class BaseOrderController extends CommonBaseController implements UserRes
return
ObjectRestResponse
.
succ
(
result
);
}
@RequestMapping
(
value
=
"/app/unauth/refundDeposit/{no}"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ApiOperation
(
value
=
"退款违章保证金"
)
@IgnoreClientToken
@IgnoreUserToken
public
ObjectRestResponse
refundDepositAmount
(
@PathVariable
(
"no"
)
String
no
)
{
BaseOrder
baseOrder
=
baseOrderBiz
.
selectOne
(
new
BaseOrder
(){{
setNo
(
no
);
}});
OrderRentVehicleDetail
orvd
=
orderRentVehicleBiz
.
selectOne
(
new
OrderRentVehicleDetail
()
{{
setOrderId
(
baseOrder
.
getId
());
}});
Integer
crosstownTypeEnum
;
//判断是否定损过
if
(
SYS_TRUE
.
equals
(
orvd
.
getFixedLossStatus
()))
{
crosstownTypeEnum
=
CrosstownTypeEnum
.
FIXED_LOSS
.
getCode
();
}
else
{
crosstownTypeEnum
=
CrosstownTypeEnum
.
ARRIVE
.
getCode
();
}
OrderVehicleCrosstown
crosstown
=
crosstownBiz
.
selectOne
(
new
OrderVehicleCrosstown
(){{
setOrderId
(
baseOrder
.
getId
());
setType
(
crosstownTypeEnum
);
}});
OrderViolation
orderViolation
=
orderViolationBiz
.
selectOne
(
new
OrderViolation
(){{
setDetailId
(
orvd
.
getId
());
setIsDel
(
SYS_FALSE
);
}});
OrderAccountDetail
oad
=
new
OrderAccountDetail
();
String
refundDesc
=
"退还违章押金:"
;
BigDecimal
refundAmont
;
if
(
null
!=
orderViolation
)
{
//设置扣款项
oad
.
getDeductions
().
add
(
orderAccountBiz
.
initDeduction
(
orderViolation
.
getPrice
(),
DeductionTypeEnum
.
VIOLATE_TRAFFIC_DEDUCT
.
getDesc
(),
DeductionTypeEnum
.
VIOLATE_TRAFFIC_DEDUCT
,
OrderAccountDeduction
.
ORIGIN_DEPOSIT
)
);
//还车扣除款 剩余的 钱,再减去违章预备金
refundAmont
=
orvd
.
getReturnPayResidue
().
subtract
(
orderViolation
.
getPrice
());
refundDesc
+=
refundAmont
.
toString
();
}
else
{
refundAmont
=
orvd
.
getReturnPayResidue
();
refundDesc
+=
refundAmont
.
toString
();
}
oad
.
setOriginDepositAmount
(
orvd
.
getReturnPayResidue
());
oad
.
setDepositAmount
(
refundAmont
);
orderAccountBiz
.
refundTrigger
(
baseOrder
,
orvd
,
BigDecimal
.
ZERO
,
orvd
.
getReturnPayResidue
(),
refundAmont
,
refundDesc
,
RefundStatusEnum
.
REFUND_DEPOSIT
.
getCode
(),
AccountTypeEnum
.
OUT_RESIDUE_DEPOSIT
,
oad
);
orderDepositRefundRecordBiz
.
completeRecordStatus
(
crosstown
.
getId
(),
DepositRefundStatus
.
VIOLATIONARRIVAL
);
orderMsgBiz
.
handelMsgDeposit
(
orvd
,
baseOrder
,
userFeign
.
userDetailById
(
baseOrder
.
getUserId
()).
getData
());
return
ObjectRestResponse
.
succ
();
}
}
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/OrderPayBiz.java
View file @
436702b8
...
...
@@ -187,7 +187,8 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
if
(
StringUtils
.
isNotBlank
(
pay
.
getNotifyUrl
()))
{
String
url
=
pay
.
getNotifyUrl
();
Integer
type
=
pay
.
getType
()
==
null
?
1
:
pay
.
getType
();
url
+=
"&tradeNo="
+
orderNo
+
"&type="
+
type
;
Integer
payWay
=
pay
.
getPayWay
();
url
+=
"&tradeNo="
+
orderNo
+
"&type="
+
type
+
"&payWay="
+
payWay
;
log
.
error
(
"---支付回调处理---orderNo======="
+
orderNo
+
"----notifyUrl===="
+
url
);
String
result
=
""
;
if
(
url
.
contains
(
"https"
)
||
url
.
contains
(
"HTTPS"
))
{
...
...
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