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