mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-29 07:25:05 +08:00
update 会员钱包
This commit is contained in:
@@ -153,8 +153,21 @@ public class MemberBasicInfoController extends BaseController {
|
||||
@PutMapping("/updateMemberBalance")
|
||||
public AjaxResult updateMemberBalance(@RequestBody UpdateMemberBalanceDTO dto) {
|
||||
logger.info("后管充值/扣款余额 param:{}", dto.toString());
|
||||
AjaxResult ajaxResult;
|
||||
// 判断入参
|
||||
return toAjax(memberBasicInfoService.updateMemberBalance(dto));
|
||||
try {
|
||||
int i = memberBasicInfoService.updateMemberBalance(dto);
|
||||
if (i > 0) {
|
||||
ajaxResult = AjaxResult.success(ReturnCodeEnum.CODE_SUCCESS.getLabel());
|
||||
} else {
|
||||
ajaxResult = AjaxResult.error();
|
||||
}
|
||||
} catch (BusinessException e) {
|
||||
ajaxResult = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
ajaxResult = AjaxResult.error();
|
||||
}
|
||||
return ajaxResult;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -62,6 +62,7 @@ import com.jsowell.pile.service.orderlogic.OrderLogicFactory;
|
||||
import com.jsowell.pile.transaction.dto.OrderTransactionDTO;
|
||||
import com.jsowell.pile.transaction.service.TransactionService;
|
||||
import com.jsowell.pile.util.SnUtils;
|
||||
import com.jsowell.pile.vo.base.MemberWalletVO;
|
||||
import com.jsowell.pile.vo.base.PileInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
|
||||
@@ -239,6 +240,16 @@ public class SpringBootTestController {
|
||||
@Autowired
|
||||
private TempService tempService;
|
||||
|
||||
@Autowired
|
||||
private MemberWalletInfoService memberWalletInfoService;
|
||||
|
||||
@Test
|
||||
public void selectByMemberWalletListTest() {
|
||||
String memberId = "12345678";
|
||||
List<MemberWalletVO> memberWalletVOS = memberWalletInfoService.selectByMemberWalletList(memberId);
|
||||
System.out.println(JSON.toJSONString(memberWalletVOS));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void queryPaymentByOrderNoTest() {
|
||||
String orderNo = "C44903356969";
|
||||
|
||||
Reference in New Issue
Block a user