This commit is contained in:
suzhuhong
2026-04-12 17:46:02 +08:00
parent 1a77d8fc37
commit f466fa78d9

View File

@@ -3,6 +3,7 @@ package com.cool.store.controller.webb;
import com.alibaba.fastjson.JSONObject;
import com.cool.store.constants.CommonConstants;
import com.cool.store.dao.*;
import com.cool.store.dao.fees.WalletPayInfoDAO;
import com.cool.store.dto.*;
import com.cool.store.dto.contract.ContractCallbackDTO;
import com.cool.store.dto.*;
@@ -12,6 +13,7 @@ import com.cool.store.dto.xgj.XgjPartnerPageDTO;
import com.cool.store.dto.wallet.*;
import com.cool.store.dto.xgj.XgjPayResultDTO;
import com.cool.store.entity.*;
import com.cool.store.entity.fees.WalletPayInfoDO;
import com.cool.store.enums.DownSystemTypeEnum;
import com.cool.store.enums.FranchiseBrandEnum;
import com.cool.store.enums.MessageEnum;
@@ -881,6 +883,26 @@ public class PCTestController {
return ResponseResult.success(Boolean.TRUE);
}
@Resource
private WalletPayInfoDAO walletPayInfoDAO;
@Resource
FranchiseFeeDAO franchiseFeeDAO;
@GetMapping("/pushReceiptToXGJ1")
public ResponseResult<Boolean> pushReceiptToXGJ(@RequestParam(value = "shopId", required = false) Long shopId,
@RequestParam(value = "payId", required = false) Long payId) {
ShopInfoDO shopInfoDO = shopInfoDAO.getShopInfo(shopId);
if (shopInfoDO==null){
return ResponseResult.success(Boolean.FALSE);
}
FranchiseFeeDO franchiseFeeDO = franchiseFeeDAO.selectByShopId(shopInfoDO.getId());
WalletPayInfoDO payInfo = walletPayInfoDAO.getById(payId);
if (franchiseFeeDO==null||payInfo==null){
return ResponseResult.success(Boolean.FALSE);
}
ReceiptRequest receiptRequest = new ReceiptRequest(shopInfoDO.getId(), franchiseFeeDO.getId().intValue(), payInfo, Integer.valueOf(shopInfoDO.getFranchiseBrand()));
pushService.pushReceiptToXGJ(receiptRequest);
return ResponseResult.success(Boolean.TRUE);
}
}