fix:缴费信息
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import com.cool.store.entity.FirstOrderDO;
|
||||
import com.cool.store.entity.FranchiseFeeDO;
|
||||
import tk.mybatis.mapper.common.Mapper;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.response;
|
||||
|
||||
import com.cool.store.entity.FranchiseFeeDO;
|
||||
import com.cool.store.entity.LinePayDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -41,6 +42,9 @@ public class FranchiseFeeResponse {
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
|
||||
private LinePayDO linePayDO;
|
||||
|
||||
|
||||
|
||||
public static FranchiseFeeResponse from(FranchiseFeeDO franchiseFeeDO) {
|
||||
if (franchiseFeeDO == null) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pc/franchiseFee")
|
||||
@Api(tags = "PC加盟费/保证金")
|
||||
@@ -17,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
public class PCFranchiseFeeController {
|
||||
|
||||
|
||||
@Resource
|
||||
FranchiseFeeService franchiseFeeService;
|
||||
|
||||
@ApiOperation("基本信息提交")
|
||||
|
||||
@@ -38,7 +38,7 @@ public class LinePayController {
|
||||
return ResponseResult.success(linePayService.getLinePayInfo(lineId));
|
||||
}
|
||||
|
||||
@ApiOperation("缴纳意向金")
|
||||
@ApiOperation("缴纳意向金/加盟费")
|
||||
@PostMapping("/submitPayInfo")
|
||||
public ResponseResult<Long> submitPayInfo(@RequestBody LinePaySubmitRequest request){
|
||||
PartnerUserInfoVO partnerUser = PartnerUserHolder.getUser();
|
||||
|
||||
Reference in New Issue
Block a user