支付二维码图片
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from xfsg_region_qrcode_config
|
||||
where region_id = #{regionId}
|
||||
where region_id = #{regionId} limit 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -79,4 +79,7 @@ public interface LineService {
|
||||
*/
|
||||
Boolean addLine(AddLineRequest addLineRequest) ;
|
||||
|
||||
String getPayPicByLineId(Long lineId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -75,6 +75,8 @@ public class LineServiceImpl implements LineService {
|
||||
LinePayDAO linePayDAO;
|
||||
@Resource
|
||||
TrainingExperienceService trainingExperienceService;
|
||||
@Resource
|
||||
private RegionQrcodeConfigDao regionQrcodeConfigDao;
|
||||
|
||||
|
||||
@Override
|
||||
@@ -420,6 +422,16 @@ public class LineServiceImpl implements LineService {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPayPicByLineId(Long lineId) {
|
||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
|
||||
if (lineInfo==null){
|
||||
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
|
||||
}
|
||||
Long bigRegionId = regionService.getBigRegionIdByAreaId(lineInfo.getWantShopAreaId());
|
||||
return regionQrcodeConfigDao.getPayPicByRegionId(bigRegionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算预期时间
|
||||
* @param startTime
|
||||
|
||||
@@ -57,7 +57,8 @@ public class SignValidateFilter implements Filter {
|
||||
"/**/swagger*/**",
|
||||
"/**/webjars/**",
|
||||
"/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery",
|
||||
"/xfsg/*/api/audit/result"
|
||||
"/xfsg/*/api/audit/result",
|
||||
"/xfsg/mini/line/getRegionPayPic"
|
||||
|
||||
);
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.LinePayService;
|
||||
import com.cool.store.service.LineService;
|
||||
import com.cool.store.vo.IntendProcessTotalVO;
|
||||
import com.cool.store.vo.LineInfoVO;
|
||||
@@ -34,6 +35,10 @@ public class LineController {
|
||||
@Resource
|
||||
LineService lineService;
|
||||
|
||||
@Resource
|
||||
LinePayService linePayService;
|
||||
|
||||
|
||||
@ApiOperation("查询线索详情")
|
||||
@GetMapping("/getLineDetail")
|
||||
@ApiImplicitParams({
|
||||
@@ -46,8 +51,7 @@ public class LineController {
|
||||
@ApiOperation("根据线索id查询大区的支付二维码图片")
|
||||
@GetMapping("/getRegionPayPic")
|
||||
public ResponseResult<String> getRegionPayPic(@RequestParam("lineId")Long lineId) {
|
||||
String pic = "https://coolstore-storage.oss-cn-hangzhou.aliyuncs.com/120207001943.png";
|
||||
return ResponseResult.success(pic);
|
||||
return ResponseResult.success(lineService.getPayPicByLineId(lineId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user