|
@@ -10,11 +10,7 @@ import com.qs.mp.channel.domain.Channel;
|
|
|
import com.qs.mp.channel.domain.ChannelCommission;
|
|
|
import com.qs.mp.channel.domain.ChannelOrderDetail;
|
|
|
import com.qs.mp.channel.domain.ChannelUserRel;
|
|
|
-import com.qs.mp.channel.domain.param.ChannelParam;
|
|
|
-import com.qs.mp.channel.domain.param.PromoterCreateParam;
|
|
|
-import com.qs.mp.channel.domain.param.PromoterQueryParam;
|
|
|
-import com.qs.mp.channel.domain.param.SiteQueryParam;
|
|
|
-import com.qs.mp.channel.domain.param.VerifyParam;
|
|
|
+import com.qs.mp.channel.domain.param.*;
|
|
|
import com.qs.mp.channel.domain.vo.ChannelOperDataVO;
|
|
|
import com.qs.mp.channel.domain.vo.ChannelVO;
|
|
|
import com.qs.mp.channel.service.IChannelCommissionService;
|
|
@@ -642,6 +638,37 @@ public class ChannelController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "更新门店二维码信息", notes = "更新门店二维码信息")
|
|
|
+ @PostMapping("site/update/qrCode")
|
|
|
+ public AjaxResult siteUpdateQrCode(@Validated @RequestBody ChannelQrCodeParam qrCodeParam){
|
|
|
+ if (null == qrCodeParam || null == qrCodeParam.getChannelId()) {
|
|
|
+ return error(ErrorCodeEnum.ERROR_CODE_1001);
|
|
|
+ }
|
|
|
+ Channel channel = channelService.getById(qrCodeParam.getChannelId());
|
|
|
+ channel.setQrCodePic(qrCodeParam.getQrCode());
|
|
|
+ try {
|
|
|
+ channelService.updateById(channel);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return AjaxResult.error("门店'" + channel.getName() + "'二维码更新失败");
|
|
|
+ }
|
|
|
+ return AjaxResult.success("门店'" + channel.getName() + "'二维码更新成功");
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "查询门店二维码信息", notes = "查询门店二维码信息")
|
|
|
+ @PostMapping("query/qrCode")
|
|
|
+ public AjaxResult queryQrCode(@Validated @RequestBody UserChannelQrCodeParam qrCodeParam){
|
|
|
+ if (null == qrCodeParam || null == qrCodeParam.getChannelId()) {
|
|
|
+ return error(ErrorCodeEnum.ERROR_CODE_1001);
|
|
|
+ }
|
|
|
+ Channel channel = null;
|
|
|
+ try {
|
|
|
+ channel = channelService.getById(qrCodeParam.getChannelId());
|
|
|
+ } catch (Exception e) {
|
|
|
+ return AjaxResult.error("门店'" + channel.getName() + "'二维码更新失败");
|
|
|
+ }
|
|
|
+ return AjaxResult.success("",channel.getQrCodePic());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 经销商认证审核
|
|
|
*
|