🎨 fix(pay):处理格式
This commit is contained in:
@@ -55,7 +55,7 @@ public class AppPayOrderController {
|
||||
@RequestParam(value = "no", required = false) String no,
|
||||
@RequestParam(value = "sync", required = false) Boolean sync) {
|
||||
PayOrderDO order = null;
|
||||
if (CharSequenceUtil.isNotEmpty(no)){
|
||||
if (CharSequenceUtil.isNotEmpty(no)) {
|
||||
order = payOrderService.getOrder(no);
|
||||
}
|
||||
if (ObjUtil.isNull(order) && ObjUtil.isNotNull(id)) {
|
||||
|
||||
@@ -78,10 +78,12 @@ public class PayOrderServiceImpl implements PayOrderService {
|
||||
public PayOrderDO getOrder(Long id) {
|
||||
return orderMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PayOrderDO getOrder(String no) {
|
||||
return orderMapper.selectByNo(no);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PayOrderDO getOrder(Long appId, String merchantOrderId) {
|
||||
return orderMapper.selectByAppIdAndMerchantOrderId(appId, merchantOrderId);
|
||||
|
||||
Reference in New Issue
Block a user