This commit is contained in:
shuo.wang
2025-06-04 10:24:41 +08:00
parent 51a3da146c
commit 735e595631
4 changed files with 26 additions and 0 deletions

View File

@@ -37,4 +37,6 @@ public interface LinePayService {
List<FranchiseFeePayInfoResponse> getFranchiseFeePayInfoList(Long shopId);
Boolean deleteFranchiseFeePayInfo(Long id,String userId);
FranchiseFeePayInfoResponse getById(Long id);
}

View File

@@ -258,6 +258,20 @@ public class LinePayServiceImpl implements LinePayService {
return Boolean.TRUE;
}
@Override
public FranchiseFeePayInfoResponse getById(Long id) {
if (id == null){
return null;
}
LinePayDO linePay = linePayDAO.getById(id);
if (linePay == null){
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
}
FranchiseFeePayInfoResponse response = new FranchiseFeePayInfoResponse();
BeanUtil.copyProperties(linePay, response);
return response;
}
private Boolean checkSubmitFranchiseFeePayRequest(LinePaySubmitRequest request) {
if (StringUtils.isAnyBlank(request.getPayUserName(), request.getPayAccount(), request.getBankName(), request.getBranchBankName(),
request.getPayTime(), request.getPayPic())) {

View File

@@ -63,5 +63,10 @@ public class PCLinePayController {
public ResponseResult<Boolean> deleteFranchiseFeePayInfo(@RequestParam("id") Long id) {
return ResponseResult.success(linePayService.deleteFranchiseFeePayInfo(id, CurrentUserHolder.getUserId()));
}
@ApiOperation("查询缴费信息")
@GetMapping("/getById")
public ResponseResult<FranchiseFeePayInfoResponse> getById(@RequestParam("id") Long id) {
return ResponseResult.success(linePayService.getById(id));
}
}

View File

@@ -74,4 +74,9 @@ public class LinePayController {
return ResponseResult.success(linePayService.deleteFranchiseFeePayInfo(id, PartnerUserHolder.getUser().getPartnerId()));
}
@ApiOperation("查询缴费信息")
@GetMapping("/getById")
public ResponseResult<FranchiseFeePayInfoResponse> getById(@RequestParam("id") Long id) {
return ResponseResult.success(linePayService.getById(id));
}
}