Compare commits
No commits in common. "261ba3d295e297311b30730e4aab41990452ff16" and "17b5476c031fc2d8619a7a94c9cbf38d8317ac77" have entirely different histories.
261ba3d295
...
17b5476c03
|
|
@ -79,11 +79,6 @@ public class MoneyChangeDetailEntity {
|
||||||
*/
|
*/
|
||||||
private MoneyChangeCategory moneyChangeCategory;
|
private MoneyChangeCategory moneyChangeCategory;
|
||||||
|
|
||||||
/**
|
|
||||||
* 附件地址
|
|
||||||
*/
|
|
||||||
private String fileUrl;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 扩展信息
|
* 扩展信息
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资金账户表
|
* 资金账户表
|
||||||
* @author ljw
|
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
|
|
@ -55,10 +54,8 @@ public class MoneyAccountService extends ServiceImpl<MoneyAccountMapper, MoneyAc
|
||||||
MoneyChangeDetailEntity changeDetail = new MoneyChangeDetailEntity()
|
MoneyChangeDetailEntity changeDetail = new MoneyChangeDetailEntity()
|
||||||
.setMoneyAccountId(moneyAccountEntity.getId())
|
.setMoneyAccountId(moneyAccountEntity.getId())
|
||||||
.setOldMoney(result.getMoney())
|
.setOldMoney(result.getMoney())
|
||||||
// 充值
|
.setDelta(moneyAccountEntity.getRechargeMoney()) // 充值
|
||||||
.setDelta(moneyAccountEntity.getRechargeMoney())
|
|
||||||
.setMoneyChangeCategory(MoneyChangeCategory.ChongZhi)
|
.setMoneyChangeCategory(MoneyChangeCategory.ChongZhi)
|
||||||
.setFileUrl(moneyAccountEntity.getFileUrl())
|
|
||||||
.setMemo("账户充值");
|
.setMemo("账户充值");
|
||||||
|
|
||||||
moneyAccountEntity.setMoney(result.getMoney().add(moneyAccountEntity.getRechargeMoney()));
|
moneyAccountEntity.setMoney(result.getMoney().add(moneyAccountEntity.getRechargeMoney()));
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ public class WeChatPayServiceImpl implements WeChatPayService {
|
||||||
* @return 订单查询结果
|
* @return 订单查询结果
|
||||||
* @throws WxPayException 微信支付异常
|
* @throws WxPayException 微信支付异常
|
||||||
*/
|
*/
|
||||||
@Override
|
|
||||||
public WxPayOrderQueryResult queryOrder(String outTradeNo) throws WxPayException {
|
public WxPayOrderQueryResult queryOrder(String outTradeNo) throws WxPayException {
|
||||||
try {
|
try {
|
||||||
log.info("开始查询微信支付订单,商户订单号:{}", outTradeNo);
|
log.info("开始查询微信支付订单,商户订单号:{}", outTradeNo);
|
||||||
|
|
@ -59,7 +58,6 @@ public class WeChatPayServiceImpl implements WeChatPayService {
|
||||||
* @param outTradeNo 商户订单号
|
* @param outTradeNo 商户订单号
|
||||||
* @throws WxPayException 微信支付异常
|
* @throws WxPayException 微信支付异常
|
||||||
*/
|
*/
|
||||||
@Override
|
|
||||||
public void closeOrder(String outTradeNo) throws WxPayException {
|
public void closeOrder(String outTradeNo) throws WxPayException {
|
||||||
try {
|
try {
|
||||||
log.info("开始关闭微信支付订单,商户订单号:{}", outTradeNo);
|
log.info("开始关闭微信支付订单,商户订单号:{}", outTradeNo);
|
||||||
|
|
@ -82,7 +80,6 @@ public class WeChatPayServiceImpl implements WeChatPayService {
|
||||||
* @return 退款结果
|
* @return 退款结果
|
||||||
* @throws WxPayException 微信支付异常
|
* @throws WxPayException 微信支付异常
|
||||||
*/
|
*/
|
||||||
@Override
|
|
||||||
public String refund(String outTradeNo, String outRefundNo, int totalFee, int refundFee, String notifyUrl) throws WxPayException {
|
public String refund(String outTradeNo, String outRefundNo, int totalFee, int refundFee, String notifyUrl) throws WxPayException {
|
||||||
try {
|
try {
|
||||||
log.info("开始申请微信支付退款,商户订单号:{},退款单号:{},退款金额:{},退款回调地址:{}", outTradeNo,
|
log.info("开始申请微信支付退款,商户订单号:{},退款单号:{},退款金额:{},退款回调地址:{}", outTradeNo,
|
||||||
|
|
@ -104,4 +101,4 @@ public class WeChatPayServiceImpl implements WeChatPayService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +30,6 @@ spring:
|
||||||
- /order_info/gps_test
|
- /order_info/gps_test
|
||||||
- /wechatTemplateMessage/key
|
- /wechatTemplateMessage/key
|
||||||
- /hsoa/push_order
|
- /hsoa/push_order
|
||||||
- /operationManual/appShow
|
|
||||||
app:
|
app:
|
||||||
default-place:
|
default-place:
|
||||||
province: 340000
|
province: 340000
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ spring:
|
||||||
- /biz_audit_config/copy
|
- /biz_audit_config/copy
|
||||||
- /wechatTemplateMessage/key
|
- /wechatTemplateMessage/key
|
||||||
- /hsoa/push_order
|
- /hsoa/push_order
|
||||||
- /operationManual/appShow
|
|
||||||
|
|
||||||
app:
|
app:
|
||||||
in-out-gap: 180
|
in-out-gap: 180
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
mcd.delta,
|
mcd.delta,
|
||||||
mcd.new_money,
|
mcd.new_money,
|
||||||
mcd.money_change_category,
|
mcd.money_change_category,
|
||||||
mcd.file_url,
|
|
||||||
mcd.extend_info,
|
mcd.extend_info,
|
||||||
mcd.memo,
|
mcd.memo,
|
||||||
mcd.company_id,
|
mcd.company_id,
|
||||||
|
|
|
||||||
|
|
@ -325,25 +325,26 @@
|
||||||
WHERE user_id = #{userId}
|
WHERE user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
<select id="paymentContext" resultType="com.njzscloud.supervisory.order.pojo.result.PaymentContextResult">
|
<select id="paymentContext" resultType="com.njzscloud.supervisory.order.pojo.result.PaymentContextResult">
|
||||||
SELECT a.id AS orderId,
|
SELECT
|
||||||
a.trans_company_id AS transCompanyId,
|
a.id AS orderId,
|
||||||
a.sn,
|
a.trans_company_id AS transCompanyId,
|
||||||
a.settlement_way AS oi_pay_way,
|
a.sn,
|
||||||
a.out_trade_no,
|
a.settlement_way as oi_pay_way,
|
||||||
bc.user_id AS companyUserId,
|
a.out_trade_no,
|
||||||
ma1.id AS companyAccountId,
|
bc.user_id AS companyUserId,
|
||||||
ma1.money AS companyBalance,
|
ma1.id AS companyAccountId,
|
||||||
ma1.revenue,
|
ma1.money AS companyBalance,
|
||||||
bc.settlement_way,
|
ma1.revenue,
|
||||||
sua.wechat_openid,
|
bc.settlement_way,
|
||||||
a.refund_money,
|
sua.wechat_openid,
|
||||||
a.settle_money,
|
a.refund_money,
|
||||||
bd.user_id AS driver_user_id
|
a.settle_money,
|
||||||
|
bd.user_id AS driver_user_id
|
||||||
FROM order_info a
|
FROM order_info a
|
||||||
LEFT JOIN biz_company bc ON bc.id = a.trans_company_id
|
LEFT JOIN biz_company bc ON bc.id = a.trans_company_id
|
||||||
LEFT JOIN money_account ma1 ON ma1.station_id = a.trans_company_id
|
LEFT JOIN money_account ma1 ON ma1.station_id = a.trans_company_id
|
||||||
LEFT JOIN biz_driver bd ON a.driver_id = bd.id
|
LEFT JOIN biz_driver bd ON a.driver_id = bd.id
|
||||||
LEFT JOIN sys_user_account sua ON bd.user_id = sua.user_id
|
LEFT JOIN sys_user_account sua ON bd.user_id = sua.user_id
|
||||||
WHERE a.id = #{orderId}
|
WHERE a.id = #{orderId}
|
||||||
</select>
|
</select>
|
||||||
<select id="getTruckInfo" resultType="com.njzscloud.supervisory.biz.pojo.entity.BizTruckEntity">
|
<select id="getTruckInfo" resultType="com.njzscloud.supervisory.biz.pojo.entity.BizTruckEntity">
|
||||||
|
|
@ -358,19 +359,18 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="gpsLastOnlineTime"
|
<select id="gpsLastOnlineTime"
|
||||||
resultType="com.njzscloud.supervisory.device.pojo.entity.DeviceLocalizerEntity">
|
resultType="com.njzscloud.supervisory.device.pojo.entity.DeviceLocalizerEntity">
|
||||||
SELECT *
|
select *
|
||||||
FROM device_localizer
|
from device_localizer
|
||||||
WHERE terminal_id = #{gpsId}
|
where terminal_id = #{gpsId}
|
||||||
AND deleted = 0
|
and deleted = 0
|
||||||
</select>
|
</select>
|
||||||
<select id="getRoute" resultType="java.lang.String">
|
<select id="getRoute" resultType="java.lang.String">
|
||||||
SELECT b.name route_name
|
SELECT b.name route_name
|
||||||
FROM order_route a
|
FROM order_route a
|
||||||
INNER JOIN order_route_detail b ON a.id = b.order_route_id AND b.deleted = 0
|
INNER JOIN order_route_detail b ON a.id = b.order_route_id
|
||||||
WHERE a.order_id = #{id}
|
WHERE a.order_id = #{id}
|
||||||
AND b.name IS NOT NULL
|
AND b.name IS NOT NULL
|
||||||
AND TRIM(b.name) != ''
|
AND TRIM(b.name) != ''
|
||||||
AND a.deleted = 0
|
|
||||||
ORDER BY b.sort, b.create_time, b.id
|
ORDER BY b.sort, b.create_time, b.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue