mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 分成功能
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.web.controller.pile;
|
||||
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.pile.dto.SplitConfigDTO;
|
||||
import com.jsowell.pile.service.StationSplitConfigService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -22,7 +23,15 @@ public class StationSplitConfigController extends BaseController {
|
||||
|
||||
@RequestMapping("/insertSplitConfig")
|
||||
public AjaxResult insertSplitConfig(HttpServletRequest request, @RequestBody SplitConfigDTO splitDetailDTO) {
|
||||
int result = stationSplitConfigService.insertSplitConfig(splitDetailDTO);
|
||||
return result > 0 ? success() : error();
|
||||
AjaxResult ajaxResult;
|
||||
try {
|
||||
int result = stationSplitConfigService.insertSplitConfig(splitDetailDTO);
|
||||
ajaxResult = result > 0 ? success() : error();
|
||||
} catch (BusinessException e) {
|
||||
ajaxResult = error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
ajaxResult = error("系统异常");
|
||||
}
|
||||
return ajaxResult;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1103,10 +1103,10 @@ public class SpringBootTestController {
|
||||
*/
|
||||
@Test
|
||||
public void createPaymentReverseRequestTest() {
|
||||
String paymentId = "002212024080610282310666722484828160000";
|
||||
BigDecimal refundAmount = new BigDecimal("20.28");
|
||||
String memberId = "25994783";
|
||||
String orderCode = "C61883385858";
|
||||
String paymentId = "002212024092220492810683911016616513536";
|
||||
BigDecimal refundAmount = new BigDecimal("33.58");
|
||||
String memberId = "84630475";
|
||||
String orderCode = "C40138347581";
|
||||
|
||||
// 延迟分账未确认调撤销调撤销接口退款
|
||||
PaymentReverseOperation operation = new PaymentReverseOperation();
|
||||
|
||||
Reference in New Issue
Block a user