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