fix
This commit is contained in:
@@ -37,4 +37,6 @@ public interface LinePayService {
|
||||
List<FranchiseFeePayInfoResponse> getFranchiseFeePayInfoList(Long shopId);
|
||||
|
||||
Boolean deleteFranchiseFeePayInfo(Long id,String userId);
|
||||
|
||||
FranchiseFeePayInfoResponse getById(Long id);
|
||||
}
|
||||
|
||||
@@ -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())) {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user