fix:缴费信息
This commit is contained in:
@@ -2,7 +2,9 @@ package com.cool.store.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.cool.store.entity.FranchiseFeeDO;
|
||||
import com.cool.store.entity.LinePayDO;
|
||||
import com.cool.store.mapper.FranchiseFeeMapper;
|
||||
import com.cool.store.mapper.LinePayMapper;
|
||||
import com.cool.store.request.FranchiseFeeRequest;
|
||||
import com.cool.store.response.FranchiseFeeResponse;
|
||||
import com.cool.store.service.FranchiseFeeService;
|
||||
@@ -18,6 +20,9 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
||||
@Resource
|
||||
FranchiseFeeMapper franchiseFeeMapper;
|
||||
|
||||
@Resource
|
||||
LinePayMapper linePayMapper;
|
||||
|
||||
@Override
|
||||
public Boolean submitLicense(FranchiseFeeRequest request) {
|
||||
log.info("submitLicense request:{}", JSONObject.toJSONString(request));
|
||||
@@ -31,7 +36,9 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
|
||||
FranchiseFeeDO franchiseFeeDO = new FranchiseFeeDO();
|
||||
franchiseFeeDO.setShopId(shopId);
|
||||
FranchiseFeeDO result = franchiseFeeMapper.selectOneByExample(franchiseFeeDO);
|
||||
LinePayDO linePayDO = linePayMapper.selectByPrimaryKey(result.getPayId());
|
||||
FranchiseFeeResponse resp = FranchiseFeeResponse.from(result);
|
||||
resp.setLinePayDO(linePayDO);
|
||||
return resp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user