|
|
|
@@ -15,6 +15,7 @@ import com.iformall.domain.po.WxCouponChannel; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import com.iformall.domain.vo.WxCouponChannelVo; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
|
import com.iformall.service.WxCampaignService; |
|
|
|
import com.iformall.service.WxCouponChannelService; |
|
|
|
import com.iformall.service.WxCouponService; |
|
|
|
@@ -83,7 +84,11 @@ public class WxCampaignController extends BaseController { |
|
|
|
if(wxCampaign.getPlat() == null){ |
|
|
|
wxCampaign.setPlat(EnumAppPlat.WX.getCode()); |
|
|
|
} |
|
|
|
return wxCampaignService.saveOrUpdate(wxCampaign); |
|
|
|
try{ |
|
|
|
return wxCampaignService.saveOrUpdate(wxCampaign); |
|
|
|
}catch(MallinkException e){ |
|
|
|
return new ResultData(e.getErrorCode(),e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "新增接口-小程序路径", notes = "produceType,produceId,pagePath,pageScene必填") |
|
|
|
@@ -127,7 +132,11 @@ public class WxCampaignController extends BaseController { |
|
|
|
if(wxCampaign.getPlat() == null){ |
|
|
|
wxCampaign.setPlat(EnumAppPlat.WX.getCode()); |
|
|
|
} |
|
|
|
return wxCampaignService.saveOrUpdate(wxCampaign); |
|
|
|
try{ |
|
|
|
return wxCampaignService.saveOrUpdate(wxCampaign); |
|
|
|
}catch(MallinkException e){ |
|
|
|
return new ResultData(e.getErrorCode(),e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("根据id更新接口") |
|
|
|
|