From 2286ad0d0642006db5ba80711ed3ed127645a3ed Mon Sep 17 00:00:00 2001 From: Administrator <zhubaomin> Date: 星期三, 27 十二月 2023 10:41:53 +0800 Subject: [PATCH] 2023-12-27 朱宝民 增加了交易记录查询 使分页具有兼容性 --- pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/unlock/UnlockCtrl.java | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/unlock/UnlockCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/unlock/UnlockCtrl.java index 5af9f24..1a8b80a 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/unlock/UnlockCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/unlock/UnlockCtrl.java @@ -54,9 +54,9 @@ schema = @Schema(implementation = VoUnlock.class))} ) }) - @GetMapping(path = "/getUnlocks", consumes = MediaType.APPLICATION_JSON_VALUE) - @SsoAop("-1") - public BaseResponse<QueryResultVo<List<VoUnlock>>> getUnlocks(@RequestBody @Parameter(description = "鏌ヨform琛ㄥ崟json鏁版嵁", required = true) QueryVo vo){ + @GetMapping(path = "/getUnlocks") + @SsoAop() + public BaseResponse<QueryResultVo<List<VoUnlock>>> getUnlocks(QueryVo vo){ try { QueryResultVo<List<VoUnlock>> res = unlockSv.getUnlocks(vo); return BaseResponseUtils.buildSuccess(res); @@ -77,7 +77,7 @@ }) @PostMapping(path = "add", consumes = MediaType.APPLICATION_JSON_VALUE) @Transactional(rollbackFor = Exception.class) - @SsoAop("-1")//@SsoAop(power = "-1") + @SsoAop() public BaseResponse<Boolean> add(@RequestBody @Parameter(description = "form琛ㄥ崟json鏁版嵁", required = true) @Valid DtoUnlock po, @Parameter(hidden = true) BindingResult bindingResult){ DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); if(bindingResult != null && bindingResult.hasErrors()){ @@ -86,8 +86,8 @@ /** * cardId 姘村崱缂栧彿锛堥潪浼犲叆鍙傛暟锛岀敱cardAddr鍙嶆煡锛屼慨鏀瑰啘鎴峰崱浣跨敤锛� + * clientId 鍐滄埛缂栧彿锛堥潪浼犲叆鍙傛暟锛岀敱cardNum鍙嶆煡锛� * cardNum 姘村崱鍦板潃 - * clientNum 鍐滄埛缂栧彿锛堥潪浼犲叆鍙傛暟锛岀敱cardNum鍙嶆煡锛屾坊鍔犺В閿佷娇鐢級 * money 浣欓 * remarks 澶囨敞 * operator 鎿嶄綔浜虹紪鍙� @@ -95,7 +95,7 @@ */ Long cardId = 0L; String cardNum = po.getCardNum(); - String clientNum = ""; + Long clientId = 0L; Float money = po.getMoney(); String remarks = po.getRemarks(); Long operator = po.getOperator(); @@ -109,7 +109,7 @@ return BaseResponseUtils.buildFail(SellResultCode.CARD_NUMBER_MISTAKE.getMessage()); } cardId = Long.parseLong(map.get("cardId").toString()); - clientNum = map.get("clientNum").toString(); + clientId = Long.parseLong(map.get("clientId").toString()); /** * 淇敼鍐滄埛鍗′俊鎭細 @@ -129,8 +129,10 @@ * 娣诲姞瑙i攣璁板綍 */ SeUnlock seUnlock = new SeUnlock(); - seUnlock.setCardnum(cardNum); - seUnlock.setClientnum(clientNum); + //seUnlock.setCardnum(cardNum); + //seUnlock.setClientnum(clientNum); + seUnlock.setCardid(cardId); + seUnlock.setClientid(clientId); seUnlock.setMoney(money); seUnlock.setRemarks(remarks); seUnlock.setOperator(operator); -- Gitblit v1.8.0