返回 API 文档索引

lwc-cloud-erp-discount-rule API 接口文档

product-discount-rule 版本 3.0.0 97 个接口 18 个分组 159 个模型 来源: https://api.leadwaycloud.com/lwc-cloud-erp-discount-rule/v3/api-docs

服务地址

地址说明
http://localhost:8080开发环境
https://api.leadwaycloud.com测试环境

接口详情

PUT

/api/discount-update/update/discount-TI/{id}

折扣修改接口 修改整单折扣(TI)接口 OperationId: updateDiscount

调用方法

PUT /api/discount-update/update/discount-TI/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListTIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-T/{id}

折扣修改接口 修改整单折扣(T)接口 OperationId: updateDiscount_1

调用方法

PUT /api/discount-update/update/discount-T/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateTDiscountCreateBO

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-I/{id}

折扣修改接口 修改单品折扣(I)接口 OperationId: updateDiscount_2

调用方法

PUT /api/discount-update/update/discount-I/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GSM/{id}

折扣修改接口 修改组合折扣(GSM)接口 OperationId: createDiscount

调用方法

PUT /api/discount-update/update/discount-GSM/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GSI/{id}

折扣修改接口 修改组合折扣(GSI)接口 OperationId: updateDiscount_3

调用方法

PUT /api/discount-update/update/discount-GSI/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GSIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GS/{id}

折扣修改接口 修改组合折扣(GS)接口 OperationId: updateDiscount_4

调用方法

PUT /api/discount-update/update/discount-GS/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GMM/{id}

折扣修改接口 修改组合折扣(GMM)接口 OperationId: updateDiscount_5

调用方法

PUT /api/discount-update/update/discount-GMM/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GMI/{id}

折扣修改接口 修改组合折扣(GMI)接口 OperationId: updateDiscount_6

调用方法

PUT /api/discount-update/update/discount-GMI/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GIM/{id}

折扣修改接口 修改组合折扣(GIM)接口 OperationId: updateDiscount_7

调用方法

PUT /api/discount-update/update/discount-GIM/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-GII/{id}

折扣修改接口 修改组合折扣(GII)接口 OperationId: updateDiscount_8

调用方法

PUT /api/discount-update/update/discount-GII/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-E/{id}

折扣修改接口 修改权益兑换(E)接口 OperationId: updateDiscount_9

调用方法

PUT /api/discount-update/update/discount-E/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListEDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-CSM/{id}

折扣修改接口 修改分类折扣(CSM)接口 OperationId: updateDiscount_10

调用方法

PUT /api/discount-update/update/discount-CSM/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCSMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-CMI/{id}

折扣修改接口 修改分类折扣(CMI)接口 OperationId: updateDiscount_11

调用方法

PUT /api/discount-update/update/discount-CMI/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-CMC/{id}

折扣修改接口 修改分类折扣(CMC)接口 OperationId: updateDiscount_12

调用方法

PUT /api/discount-update/update/discount-CMC/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CMCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-CCI/{id}

折扣修改接口 修改分类折扣(CCI)接口 OperationId: updateDiscount_13

调用方法

PUT /api/discount-update/update/discount-CCI/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CCIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-CCC/{id}

折扣修改接口 修改分类折扣(CCC)接口 OperationId: updateDiscount_14

调用方法

PUT /api/discount-update/update/discount-CCC/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CCCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-C/{id}

折扣修改接口 修改分类折扣(C)接口 OperationId: updateDiscount_15

调用方法

PUT /api/discount-update/update/discount-C/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: CDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/update/discount-B/{id}

折扣修改接口 修改品牌折扣(B)接口 OperationId: updateDiscount_16

调用方法

PUT /api/discount-update/update/discount-B/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: BDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.BDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListBDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
PUT

/api/discount-update/stop/{id}

折扣修改接口 停用折扣接口 OperationId: stopDiscount

调用方法

PUT /api/discount-update/stop/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/discount-update/sort/available-discount/{id}

折扣修改接口 对折扣进行排序接口 OperationId: sortAvailableDiscountByCreateCompany

调用方法

PUT /api/discount-update/sort/available-discount/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)修改折扣的公司ID1

请求体

Content-Type: application/json 必填:类型: SortDiscountDTO[] com.leadwaycloud.discount.rule.model.dto.discount.update.SortDiscountDTO

名称类型必填说明示例
(array)SortDiscountDTO[]

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/discount-update/online/{id}

折扣修改接口 上线折扣接口 OperationId: onlineDiscount

没有对接审核流程/审核失败,可通过该接口手工上线折扣

调用方法

PUT /api/discount-update/online/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/discount-check/check/discount-T

折扣检查接口 检查整单折扣(T)接口 OperationId: checkDiscount

调用方法

PUT /api/discount-check/check/discount-T

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateTDiscountCreateBO

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-TI

折扣检查接口 检查整单折扣(TI)接口 OperationId: checkDiscount_1

调用方法

PUT /api/discount-check/check/discount-TI

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListTIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-I

折扣检查接口 检查单品折扣(I)接口 OperationId: checkDiscount_2

调用方法

PUT /api/discount-check/check/discount-I

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GS

折扣检查接口 检查组合折扣(GS)接口 OperationId: checkDiscount_3

调用方法

PUT /api/discount-check/check/discount-GS

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GSM

折扣检查接口 检查组合折扣(GSM)接口 OperationId: checkDiscount_4

调用方法

PUT /api/discount-check/check/discount-GSM

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GMM

折扣检查接口 检查组合折扣(GMM)接口 OperationId: checkDiscount_5

调用方法

PUT /api/discount-check/check/discount-GMM

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GMI

折扣检查接口 检查组合折扣(GMI)接口 OperationId: checkDiscount_6

调用方法

PUT /api/discount-check/check/discount-GMI

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GIM

折扣检查接口 检查组合折扣(GIM)接口 OperationId: checkDiscount_7

调用方法

PUT /api/discount-check/check/discount-GIM

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-GII

折扣检查接口 检查组合折扣(GII)接口 OperationId: checkDiscount_8

调用方法

PUT /api/discount-check/check/discount-GII

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-check/check/discount-E

折扣检查接口 检查权益兑换(E)接口 OperationId: checkDiscount_9

调用方法

PUT /api/discount-check/check/discount-E

参数

名称位置必填类型说明示例
idqueryinteger(int64)折扣ID1

请求体

Content-Type: application/json 必填:类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListEDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/api/discount-cache/refresh/discount

折扣缓存 指定折扣缓存刷新接口 OperationId: noticeDiscountChange

调用方法

PUT /api/discount-cache/refresh/discount

参数

请求体

Content-Type: application/json 必填:类型: DiscountChangeNoticeBO com.leadwaycloud.discount.core.business.calculate.model.DiscountChangeNoticeBO

名称类型必填说明示例
discountUpdateTypestring折扣变更类型 【 ALL : 全部 MASTER : 主数据变更 】"ALL"
discountListinteger(int64)[]更新的折扣[1]

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/discount-cache/refresh/config/{merchantId}

折扣缓存 商户折扣配置缓存刷新接口 OperationId: noticeDiscountConfigChange

调用方法

PUT /api/discount-cache/refresh/config/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/coupon-active-update/update/order/{id}

优惠券活动修改接口 修改订单优惠券活动接口 OperationId: updateCouponActive

调用方法

PUT /api/coupon-active-update/update/order/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

Content-Type: application/json 必填:类型: OrderCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.OrderCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListOrderCouponActiveDetailCreateBO[]优惠券活动详情创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
PUT

/api/coupon-active-update/update/marketing/{id}

优惠券活动修改接口 修改营销优惠券活动接口 OperationId: updateCouponActive_1

调用方法

PUT /api/coupon-active-update/update/marketing/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

Content-Type: application/json 必填:类型: MarketingCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.MarketingCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListMarketingCouponActiveDetailCreateBO[]优惠券活动详情创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
PUT

/api/coupon-active-update/stop/{id}

优惠券活动修改接口 停用优惠券活动接口 OperationId: stopCouponActive

调用方法

PUT /api/coupon-active-update/stop/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
PUT

/api/coupon-active-update/online/{id}

优惠券活动修改接口 上线优惠券活动接口 OperationId: onlineCouponActive

没有对接审核流程/审核失败,可通过该接口手工上线折扣

调用方法

PUT /api/coupon-active-update/online/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-query/query/more

折扣查询接口 查询折扣(多个ID)接口 OperationId: queryDiscount

调用方法

POST /api/discount-query/query/more

参数

请求体

Content-Type: application/json 必填:类型: integer(int64)[]

名称类型必填说明示例
(array)integer(int64)[]

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster[]返回数据
POST

/api/discount-query/query/more/generate-data

折扣查询接口 查询折扣生成数据(多个ID)接口 OperationId: queryDiscountGenerateData

调用方法

POST /api/discount-query/query/more/generate-data

参数

请求体

Content-Type: application/json 必填:类型: integer(int64)[]

名称类型必填说明示例
(array)integer(int64)[]

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO[]返回数据
POST

/api/discount-query/query/disc-exclude-link

折扣查询接口 查询折扣互斥链路接口 OperationId: queryDiscountExcludeLink

调用方法

POST /api/discount-query/query/disc-exclude-link

参数

请求体

Content-Type: application/json 必填:类型: QueryDiscountExcludeLinkDTO com.leadwaycloud.discount.rule.model.dto.discount.query.QueryDiscountExcludeLinkDTO

名称类型必填说明示例
idinteger(int64)折扣ID1
codestring折扣编号"20221212-01"
namestring折扣名称"双12床上用品单品促销"
calcIndexinteger(int32)计算顺序(数值越小越先计算)999999
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
excludeDiscExcludeDiscFormatBO

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountSortBO com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountSortBO[]返回数据
POST

/api/discount-query/query/disc-exclude-link/all

折扣查询接口 查询全部未过期折扣互斥链路接口 OperationId: queryDiscountExcludeLink_1

调用方法

POST /api/discount-query/query/disc-exclude-link/all

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountSortBO com.leadwaycloud.core.model.RJava.util.MapJava.lang.IntegerJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
POST

/api/discount-merchant-data-init/goods/{merchantId}

商户数据初始化接口 初始化商品接口 OperationId: initGoods

csv文件【编号,名称,分类编号,价格,是否禁止销售(Y/N),是否禁止折扣(Y/N)】

调用方法

POST /api/discount-merchant-data-init/goods/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

Content-Type: application/json 必填:类型: object

名称类型必填说明示例
filestring(binary)

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-merchant-data-init/goods-category/{merchantId}

商户数据初始化接口 初始化商品分类接口 OperationId: initGoodsCategory

csv文件【编号,名称】

调用方法

POST /api/discount-merchant-data-init/goods-category/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

Content-Type: application/json 必填:类型: object

名称类型必填说明示例
filestring(binary)

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-merchant-config/setting/{merchantId}

商户折扣配置接口 设置商户折扣配置接口 OperationId: settingMerchantConfig

调用方法

POST /api/discount-merchant-config/setting/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

Content-Type: application/json 必填:类型: DiscountMerchantConfigBO com.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO

名称类型必填说明示例
openDiscModelstring[]开放的折扣模式(默认:["I","T"])["I","T"]
calcModelstring[][]折扣计算模式(默认:{{"I"}, {"T"}})[["I"],["T"]]
tradeRefundMaxDayinteger(int32)交易最大可退货天数(默认:7)7
maxDiscountRuleCountinteger(int32)最大有效折扣条数(默认:100)100
maxSingleDiscountRuleGroupCountinteger(int32)最大单个折扣组个数(默认:10)10
maxSingleDiscountRuleSingleGroupItemCountinteger(int32)最大单个折扣单个组商品/分类个数(默认:20)20
maxSglDiscRuleSglGrpTagCountinteger(int32)单个折扣组自定义标签最大条数(默认:20)20
useLwcCouponSystemboolean是否使用立威云优惠券系统(默认:false)false
useLwcCrmSystemboolean是否使用立威云CRM系统(默认:false)false
saveCalcResultboolean是否保留计算结果(默认:false)false
baseTypestring最优方式(默认:MERCHANT【商户最优】) 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"MERCHANT"
pricingTypestring商品参与折扣计价方式(默认:AVG_PC【均价】) 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVG_PC"
discountExcludeMethodstring折扣互斥方式(默认:DOWN【向下互斥】) 【 UP : 向上互斥 DOWN : 向下互斥 】"DOWN"
discountExcludeSolveMethodstring折扣互斥处理方式(默认:SEQUENCE【顺序计算】) 【 SEQUENCE : 顺序计算 EXCLUDE_REORDER : 互斥的折扣重新排序(不允许全场排除) 】"SEQUENCE"
openOverflowboolean是否允许折扣值溢出(默认:false)false
rightsRealTimeUsageboolean当笔交易赠送的权益允许在当笔交易使用(默认:false)false
saMethodstring一口价方式(不含GSM)(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式(不含GSM)为打包时是否需要条件商品数量全部满足(默认:true)true
groupShareModelstring组内参与商品分摊模式(默认:BY_ITEM【根据商品分摊】)"BY_ITEM"
itemShareRateOnlyTargetboolean商品分摊指定比例是否仅目标商品参与(默认:true)true
itemShareRateCompulsionboolean商品分摊指定比例是否强制满足(默认:true)true

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-merchant-config/data-partition/{merchantId}

商户折扣配置接口 商户数据分区接口 OperationId: merchantDataPartition

调用方法

POST /api/discount-merchant-config/data-partition/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
POST

/api/discount-merchant-channel/setting/{merchantId}

商户折扣渠道接口 设置商户渠道接口 OperationId: settingMerchantChannel

调用方法

POST /api/discount-merchant-channel/setting/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

Content-Type: application/json 必填:类型: DiscountMerchantChannelDTO com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantChannelDTO

名称类型必填说明示例
channelstring渠道编号"1"
namestring渠道名称

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-merchant-calc-index/setting/{merchantId}

商户折扣顺序接口 设置商户计算顺序接口 OperationId: settingMerchantCalcIndex

调用方法

POST /api/discount-merchant-calc-index/setting/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

Content-Type: application/json 必填:类型: DiscountMerchantCalcIndexDTO com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantCalcIndexDTO

名称类型必填说明示例
calcIndexinteger(int32)计算顺序1
namestring计算顺序名称

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/discount-create/create/discount-T

折扣创建接口 创建整单折扣(T)接口 OperationId: createDiscount_1

调用方法

POST /api/discount-create/create/discount-T

参数

请求体

Content-Type: application/json 必填:类型: TDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateTDiscountCreateBO

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-TI

折扣创建接口 创建整单折扣(TI)接口 OperationId: createDiscount_2

调用方法

POST /api/discount-create/create/discount-TI

参数

请求体

Content-Type: application/json 必填:类型: TIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListTIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-I

折扣创建接口 创建单品折扣(I)接口 OperationId: createDiscount_3

调用方法

POST /api/discount-create/create/discount-I

参数

请求体

Content-Type: application/json 必填:类型: IDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GS

折扣创建接口 创建组合折扣(GS)接口 OperationId: createDiscount_4

调用方法

POST /api/discount-create/create/discount-GS

参数

请求体

Content-Type: application/json 必填:类型: GSDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GSM

折扣创建接口 创建组合折扣(GSM)接口 OperationId: createDiscount_5

调用方法

POST /api/discount-create/create/discount-GSM

参数

请求体

Content-Type: application/json 必填:类型: GSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GSI

折扣创建接口 创建组合折扣(GSI)接口 OperationId: createDiscount_6

调用方法

POST /api/discount-create/create/discount-GSI

参数

请求体

Content-Type: application/json 必填:类型: GSIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GSIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GMM

折扣创建接口 创建组合折扣(GMM)接口 OperationId: createDiscount_7

调用方法

POST /api/discount-create/create/discount-GMM

参数

请求体

Content-Type: application/json 必填:类型: GMMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GMI

折扣创建接口 创建组合折扣(GMI)接口 OperationId: createDiscount_8

调用方法

POST /api/discount-create/create/discount-GMI

参数

请求体

Content-Type: application/json 必填:类型: GMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GIM

折扣创建接口 创建组合折扣(GIM)接口 OperationId: createDiscount_9

调用方法

POST /api/discount-create/create/discount-GIM

参数

请求体

Content-Type: application/json 必填:类型: GIMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-GII

折扣创建接口 创建组合折扣(GII)接口 OperationId: createDiscount_10

调用方法

POST /api/discount-create/create/discount-GII

参数

请求体

Content-Type: application/json 必填:类型: GIIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-E

折扣创建接口 创建权益兑换(E)接口 OperationId: createDiscount_11

调用方法

POST /api/discount-create/create/discount-E

参数

请求体

Content-Type: application/json 必填:类型: EDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListEDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-C

折扣创建接口 创建分类折扣(C)接口 OperationId: createDiscount_12

调用方法

POST /api/discount-create/create/discount-C

参数

请求体

Content-Type: application/json 必填:类型: CDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-CSM

折扣创建接口 创建分类折扣(CSM)接口 OperationId: createDiscount_13

调用方法

POST /api/discount-create/create/discount-CSM

参数

请求体

Content-Type: application/json 必填:类型: CSMDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCSMDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-CMI

折扣创建接口 创建分类折扣(CMI)接口 OperationId: createDiscount_14

调用方法

POST /api/discount-create/create/discount-CMI

参数

请求体

Content-Type: application/json 必填:类型: CMIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-CMC

折扣创建接口 创建分类折扣(CMC)接口 OperationId: createDiscount_15

调用方法

POST /api/discount-create/create/discount-CMC

参数

请求体

Content-Type: application/json 必填:类型: CMCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CMCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-CCI

折扣创建接口 创建分类折扣(CCI)接口 OperationId: createDiscount_16

调用方法

POST /api/discount-create/create/discount-CCI

参数

请求体

Content-Type: application/json 必填:类型: CCIDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCIDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-CCC

折扣创建接口 创建分类折扣(CCC)接口 OperationId: createDiscount_17

调用方法

POST /api/discount-create/create/discount-CCC

参数

请求体

Content-Type: application/json 必填:类型: CCCDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.CCCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCCDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-create/create/discount-B

折扣创建接口 创建分类折扣(B)接口 OperationId: createDiscount_18

调用方法

POST /api/discount-create/create/discount-B

参数

请求体

Content-Type: application/json 必填:类型: BDiscountGenerateDTO com.leadwaycloud.discount.rule.model.dto.discount.create.BDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListBDiscountCreateBO[]折扣创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
POST

/api/discount-calc-data/manual-generate/{id}

折扣计算数据接口 手工生成折扣计算数据接口 OperationId: manualGenerateDiscountCalcData

调用方法

POST /api/discount-calc-data/manual-generate/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
POST

/api/coupon-active-update/un-bind-to-discount-master-item/{merchantId}/{couponActiveGroupCode}

优惠券活动修改接口 绑定优惠券活动项到折扣规则项接口 OperationId: unbindCouponActiveItemToDiscountMasterItem

调用方法

POST /api/coupon-active-update/un-bind-to-discount-master-item/{merchantId}/{couponActiveGroupCode}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1
couponActiveGroupCodepathstring优惠券活动分组编号"xxx"

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
POST

/api/coupon-active-update/bind-to-discount-master-item

优惠券活动修改接口 绑定优惠券活动项到折扣规则项接口 OperationId: bindCouponActiveItemToDiscountMasterItem

调用方法

POST /api/coupon-active-update/bind-to-discount-master-item

参数

请求体

Content-Type: application/json 必填:类型: BindDiscountMasterItemDTO[] com.leadwaycloud.discount.rule.model.dto.coupon.bind.BindDiscountMasterItemDTO

名称类型必填说明示例
(array)BindDiscountMasterItemDTO[]

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
POST

/api/coupon-active-query/query/more

优惠券活动查询接口 查询优惠券活动(多个ID)接口 OperationId: queryCouponActive

调用方法

POST /api/coupon-active-query/query/more

参数

请求体

Content-Type: application/json 必填:类型: integer(int64)[]

名称类型必填说明示例
(array)integer(int64)[]

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive[]返回数据
POST

/api/coupon-active-create/create/order

优惠券活动创建接口 创建订单优惠券活动接口 OperationId: createDiscount_19

调用方法

POST /api/coupon-active-create/create/order

参数

请求体

Content-Type: application/json 必填:类型: OrderCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.OrderCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListOrderCouponActiveDetailCreateBO[]优惠券活动详情创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
POST

/api/coupon-active-create/create/marketing

优惠券活动创建接口 创建营销优惠券活动接口 OperationId: createDiscount_20

调用方法

POST /api/coupon-active-create/create/marketing

参数

请求体

Content-Type: application/json 必填:类型: MarketingCouponActiveCreateDTO com.leadwaycloud.discount.rule.model.dto.coupon.create.MarketingCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListMarketingCouponActiveDetailCreateBO[]优惠券活动详情创建数据

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
GET

/api/monitor/version

服务监控管理 获取服务版本信息 OperationId: version

调用方法

GET /api/monitor/version

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Object com.leadwaycloud.core.model.RJava.lang.Object

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
GET

/api/monitor/health

服务监控管理 心跳检查 OperationId: health

调用方法

GET /api/monitor/health

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Object com.leadwaycloud.core.model.RJava.lang.Object

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
GET

/api/discount-security/page-query

折扣操作记录接口 查询折扣操作记录(分页)接口 OperationId: pageQueryDiscount

调用方法

GET /api/discount-security/page-query

参数

名称位置必填类型说明示例
pagequeryinteger(int32)查询页码0
sizequeryinteger(int32)查询页行数10
typequerystring项类型"GOODS"
operatorquerystring操作人名称(ID/名称)"x"
discountquerystring折扣数据(编号/名称)"x"
operatorDatequerystring操作日期"2020-10-11"

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountSecurity com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.DiscountSecurity

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountSecurity
GET

/api/discount-query/query/{id}

折扣查询接口 查询折扣(ID)接口 OperationId: queryDiscount_1

调用方法

GET /api/discount-query/query/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster
GET

/api/discount-query/query/generate-data/{id}

折扣查询接口 查询折扣生成数据(ID)接口 OperationId: queryDiscountGenerateData_1

调用方法

GET /api/discount-query/query/generate-data/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO
GET

/api/discount-query/page-query

折扣查询接口 查询折扣(分页)接口 OperationId: pageQueryDiscount_1

调用方法

GET /api/discount-query/page-query

参数

名称位置必填类型说明示例
pagequeryinteger(int32)查询页码0
sizequeryinteger(int32)查询页行数10
merchantIdquerylong商户ID1
companyIdquerylong创建公司ID1
discountModelquerystring折扣模式"I"
codequerystring折扣编号20250512142858652
namequerystring折扣名称"双12床上用品单品促销"
statusListquerystring未生效的状态列表[]
strategyIdquerylong策略ID1
joinCompanyquerylong参与公司ID1
joinChannelquerystring参与渠道"x"
joinItemCodequerystring参与商品编号100001
joinCategoryIdquerylong参与商品分类ID1
joinBrandIdquerylong参与商品品牌ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: SimpleDiscountMaster com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.SimpleDiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataSimpleDiscountMaster
GET

/api/discount-query/page-query/generate-data

折扣查询接口 查询折扣生成数据(分页)接口 OperationId: pageQueryDiscountGenerateData

调用方法

GET /api/discount-query/page-query/generate-data

参数

名称位置必填类型说明示例
pagequeryinteger(int32)查询页码0
sizequeryinteger(int32)查询页行数10
merchantIdquerylong商户ID1
companyIdquerylong创建公司ID1
discountModelquerystring折扣模式"I"
codequerystring折扣编号20250512142858652
namequerystring折扣名称"双12床上用品单品促销"
statusListquerystring未生效的状态列表[]
strategyIdquerylong策略ID1
joinCompanyquerylong参与公司ID1
joinChannelquerystring参与渠道"x"
joinItemCodequerystring参与商品编号100001
joinCategoryIdquerylong参与商品分类ID1
joinBrandIdquerylong参与商品品牌ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO
GET

/api/discount-merchant-config/query/{merchantId}

商户折扣配置接口 查询商户折扣配置接口 OperationId: getMerchantConfig

调用方法

GET /api/discount-merchant-config/query/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantConfig com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantConfig

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantConfig
GET

/api/discount-merchant-config/query/dynamic/{merchantId}

商户折扣配置接口 查询商户动态折扣配置接口 OperationId: queryMerchantDynamicConfig

调用方法

GET /api/discount-merchant-config/query/dynamic/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantConfigBO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantConfigBO
GET

/api/discount-merchant-channel/query/{merchantId}

商户折扣渠道接口 查询商户渠道接口 OperationId: queryMerchantChannel

调用方法

GET /api/discount-merchant-channel/query/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantChannel com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantChannel

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantChannel[]返回数据
GET

/api/discount-merchant-calc-index/query/{merchantId}

商户折扣顺序接口 查询商户计算顺序接口 OperationId: queryMerchantCalcIndex

调用方法

GET /api/discount-merchant-calc-index/query/{merchantId}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountMerchantCalcIndex com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantCalcIndex

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantCalcIndex[]返回数据
GET

/api/coupon-active-update/query/bind-discount-master-generate-data/{merchantId}/{couponActiveGroupCode}

优惠券活动修改接口 查询优惠券活动项绑定的折扣规则接口 OperationId: queryCouponActiveItemBindDiscountMasterGenerateData

调用方法

GET /api/coupon-active-update/query/bind-discount-master-generate-data/{merchantId}/{couponActiveGroupCode}

参数

名称位置必填类型说明示例
merchantIdpathinteger(int64)商户ID1
couponActiveGroupCodepathstring优惠券活动分组编号"xxx"

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: DiscountGenerateDTO com.leadwaycloud.core.model.RCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO
GET

/api/coupon-active-query/query/{id}

优惠券活动查询接口 查询优惠券活动(ID)接口 OperationId: queryCouponActive_1

调用方法

GET /api/coupon-active-query/query/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
GET

/api/coupon-active-query/page-query

优惠券活动查询接口 查询公司创建的优惠券活动(分页)接口 OperationId: pageQueryCouponActive

调用方法

GET /api/coupon-active-query/page-query

参数

名称位置必填类型说明示例
pagequeryinteger(int32)查询页码0
sizequeryinteger(int32)查询页行数10
companyIdquerylong公司ID1
codequerystring活动编号
namequerystring活动名称"双12床上用品单品促销"
typequerystring活动类型"MARKETING"
statusListquerystring未生效的状态列表[]

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: CouponActive com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive
DELETE

/api/discount-merchant-channel/delete/{channelId}

商户折扣渠道接口 删除商户渠道接口 OperationId: deleteMerchantChannel

物理删除

调用方法

DELETE /api/discount-merchant-channel/delete/{channelId}

参数

名称位置必填类型说明示例
channelIdpathinteger(int64)商户渠道ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
DELETE

/api/discount-merchant-calc-index/delete/{calcIndexId}

商户折扣顺序接口 删除商户计算顺序接口 OperationId: deleteMerchantCalcIndex

物理删除

调用方法

DELETE /api/discount-merchant-calc-index/delete/{calcIndexId}

参数

名称位置必填类型说明示例
calcIndexIdpathinteger(int64)商户计算顺序ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Void com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
DELETE

/api/discount-delete/delete/{id}

折扣删除接口 删除折扣接口 OperationId: deleteDiscount

调用方法

DELETE /api/discount-delete/delete/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
DELETE

/api/discount-calc-data/remove/{id}

折扣计算数据接口 删除折扣计算数据接口 OperationId: removeDiscountCalcData

物理删除

调用方法

DELETE /api/discount-calc-data/remove/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)折扣ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
DELETE

/api/coupon-active-delete/delete/{id}

优惠券活动删除接口 删除优惠券活动接口 OperationId: deleteDiscount_1

调用方法

DELETE /api/coupon-active-delete/delete/{id}

参数

名称位置必填类型说明示例
idpathinteger(int64)优惠券活动ID1

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: Boolean com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据
GET

/error

main-site-error-handler - OperationId: handleError

调用方法

GET /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
POST

/error

main-site-error-handler - OperationId: handleError_1

调用方法

POST /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PUT

/error

main-site-error-handler - OperationId: handleError_2

调用方法

PUT /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
DELETE

/error

main-site-error-handler - OperationId: handleError_3

调用方法

DELETE /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
PATCH

/error

main-site-error-handler - OperationId: handleError_4

调用方法

PATCH /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
OPTIONS

/error

main-site-error-handler - OperationId: handleError_6

调用方法

OPTIONS /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据
HEAD

/error

main-site-error-handler - OperationId: handleError_5

调用方法

HEAD /error

参数

请求体

响应

状态码: 200 说明: OK Content-Type: */* 类型: R com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据

模型定义

com.leadwaycloud.discount.core.business.rule.model.ChannelScopeFormatBO

渠道范围

名称类型必填说明示例
excludestring[]排除的渠道
includestring[]包含的渠道(全部渠道可不设置)

com.leadwaycloud.discount.core.business.rule.model.DeductAccountBO

会员账户扣除权益信息

名称类型必填说明示例
accountTypestring会员账户类型"JF"
accountNamestring会员账户名称"积分"
deductValnumber(double)扣除值10

com.leadwaycloud.discount.core.business.rule.model.DiscBeforeConditionBO

前置条件

名称类型必填说明示例
tradeMinAmountnumber(double)交易最小金额(规则计算时交易总金额需要满足的值)1
mustDiscMustDiscFormatBO
mustItemMustItemFormatBO
mustCategoryMustCategoryFormatBO
mustBrandMustBrandFormatBO
mustAccountMustAccountFormatBO

com.leadwaycloud.discount.core.business.rule.model.ExcludeDiscConditionBO

互斥的折扣(与其他全部折扣互斥key使用0)

名称类型必填说明示例
typestring排除模式 【 NONE : 不做商品排除 DISC_GOODS : 发生折扣的商品 】

com.leadwaycloud.discount.core.business.rule.model.ExcludeDiscFormatBO

互斥的折扣

名称类型必填说明示例
excludeDiscConditionobject互斥的折扣(与其他全部折扣互斥key使用0)
includeDiscConditioninteger(int64)不互斥的折扣(与其他全部折扣互斥时才生效)

com.leadwaycloud.discount.core.business.rule.model.ExcludeItemFormatBO

互斥的商品

名称类型必填说明示例
calcExcludestring[]计算排除的商品(计算排除商品和商品参数二选一)
calcExcludeParamExcludeItemParamBO[]计算排除商品参数(计算排除商品和商品参数二选一)
targetExcludestring[]折扣排除的商品(折扣排除商品和商品参数二选一)
targetExcludeParamExcludeItemParamBO[]折扣排除的商品参数(折扣排除商品和商品参数二选一)
excludestring[]折扣互斥的商品(折扣互斥的商品和商品参数二选一)
excludeParamExcludeItemParamBO[]折扣互斥的商品参数(折扣互斥的商品和商品参数二选一)

com.leadwaycloud.discount.core.business.rule.model.ExcludeItemParamBO

折扣互斥的商品参数(折扣互斥的商品和商品参数二选一)

名称类型必填说明示例
typestring排除商品参数类型 【 ORIGINAL : 原价大于 AVERAGE : 均价大于 CATEGORY : 分类ID BRAND : 品牌ID 】
valnumber(double)满足值(价格类参数值)1
val2string满足值(非价格类参数值)"12345"
namestring名称(非价格类参数名称)"12345"

com.leadwaycloud.discount.core.business.rule.model.MemberCategoryBO

允许的分类(全部分类可不设置)

名称类型必填说明示例
idstring分类ID"1"
codestring分类编号"1"
namestring分类名称"xxx"

com.leadwaycloud.discount.core.business.rule.model.MemberCodeBO

允许的会员(全部会员可不设置)

名称类型必填说明示例
idinteger(int64)会员ID1
codestring会员编号"1"
namestring会员名称"xxx"

com.leadwaycloud.discount.core.business.rule.model.MemberScopeFormatBO

会员范围

名称类型必填说明示例
categoryMemberCategoryBO[]允许的分类(全部分类可不设置)
sexstring[]允许的性别(全部性别可不设置)
ageinteger(int32)[]允许的年龄(全部年龄可不设置)
tagstring[]允许的标签(全部标签可不设置)
memberMemberCodeBO[]允许的会员(全部会员可不设置)
birthdayTriggerboolean生日触发true

com.leadwaycloud.discount.core.business.rule.model.MustAccountConditionBO

必须的会员账户(各组之间为或者的关系)

名称类型必填说明示例
namestring名称"xxx"
typestring满足类型 【 VAL : 账户值 】"VAL"
valnumber(double)满足值1

com.leadwaycloud.discount.core.business.rule.model.MustAccountFormatBO

必须的会员账户

名称类型必填说明示例
mustAccountConditionobject[]必须的会员账户(各组之间为或者的关系)

com.leadwaycloud.discount.core.business.rule.model.MustBrandConditionBO

必须的品牌(各组之间为或者的关系)

名称类型必填说明示例
namestring名称"xxx"
typestring满足类型 【 GOODS_QTY : 品牌商品数量 ITEM_QTY : 品牌商品项数量 AMOUNT : 分类金额 】"AMOUNT"
valnumber(double)满足值1

com.leadwaycloud.discount.core.business.rule.model.MustBrandFormatBO

必须已经购买的品牌

名称类型必填说明示例
mustBrandConditionobject[]必须的品牌(各组之间为或者的关系)

com.leadwaycloud.discount.core.business.rule.model.MustCategoryConditionBO

必须的分类(各组之间为或者的关系)

名称类型必填说明示例
namestring名称"xxx"
typestring满足类型 【 GOODS_QTY : 分类商品数量 ITEM_QTY : 分类商品项数量 AMOUNT : 分类金额 】"AMOUNT"
valnumber(double)满足值1

com.leadwaycloud.discount.core.business.rule.model.MustCategoryFormatBO

必须已经购买的分类

名称类型必填说明示例
mustCategoryConditionobject[]必须的分类(各组之间为或者的关系)

com.leadwaycloud.discount.core.business.rule.model.MustDiscConditionBO

必须的折扣(各组之间为或者的关系)

名称类型必填说明示例
namestring名称"xxx"
typestring满足类型 【 COUNT : 折扣次数 VALUE : 折扣值 】"COUNT"
valnumber(double)满足值1

com.leadwaycloud.discount.core.business.rule.model.MustDiscFormatBO

必须已经触发的折扣

名称类型必填说明示例
mustDiscConditionobject[]必须的折扣(各组之间为或者的关系)

com.leadwaycloud.discount.core.business.rule.model.MustItemConditionBO

必须的商品(各组之间为或者的关系)

名称类型必填说明示例
namestring名称"xxx"
typestring满足类型 【 QTY : 商品数量 AMOUNT : 商品金额 】"QTY"
valnumber(double)满足值1

com.leadwaycloud.discount.core.business.rule.model.MustItemFormatBO

必须已经购买的商品

名称类型必填说明示例
mustItemConditionobject[]必须的商品(各组之间为或者的关系)

com.leadwaycloud.discount.core.business.rule.model.StoreBO

排除的门店

名称类型必填说明示例
idinteger(int64)门店ID1
namestring门店名称"xxx店"

com.leadwaycloud.discount.core.business.rule.model.StoreGroupBO

排除门店组中的门店

名称类型必填说明示例
idinteger(int64)分组ID1
codestring分组编号"xxx"
namestring分组名称"xxx"

com.leadwaycloud.discount.core.business.rule.model.StoreScopeFormatBO

门店范围

名称类型必填说明示例
includeStoreBO[]指定的门店(全部门店可不设置)
includeTagstring[]指定含标签的门店
includeGroupStoreGroupBO[]指定门店组中的门店
excludeStoreBO[]排除的门店
excludeTagstring[]排除含标签的门店
excludeGroupStoreGroupBO[]排除门店组中的门店

com.leadwaycloud.discount.core.business.rule.model.UnJoinShareItemBO

不加入分摊的商品

名称类型必填说明示例
itemTypestring项类型 【 GOODS : 商品 CATEGORY : 分类 BRAND : 品牌 】"GOODS"
codestring分类编号/品牌编号"100001"
itemCodestring商品编号/分类ID/品牌ID"100001"
itemNamestring商品/分类/品牌名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.TIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
itemCodestring商品编号"100001"
itemNamestring商品"矿泉水"
discountStepListTIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品

com.leadwaycloud.discount.rule.model.bo.discount.step.TIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcTIDiscountStepCalcBO
discountStepTargetTIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.TIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.TIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.TIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListTIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster

com.leadwaycloud.discount.core.model.po.entity.DiscountMaster

返回数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring折扣名称"双12床上用品单品促销"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
statusstring折扣状态 【 DRAFT : 草稿 UNDER_REVIEW : 审核中 AVAILABLE : 已上线 STOP : 停用 EXPIRED : 过期 DELETE : 已删除 】"DRAFT"
discountCalcDataStatusstring折扣计算数据状态 【 NULL : 未生成 IN_FORCE : 已生成 】"NULL"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
excludeDiscExcludeDiscFormatBO
tradeMinAmountnumber(double)交易最小金额(规则计算时交易总金额需要满足的值)1
mustDiscMustDiscFormatBO
mustItemMustItemFormatBO
mustCategoryMustCategoryFormatBO
mustBrandMustBrandFormatBO
mustAccountMustAccountFormatBO
discountDatastring折扣设置数据
templateCodestring折扣模版编号(前端用)
openDynamicboolean是否开启动态折扣
strategyIdinteger(int64)策略ID

com.leadwaycloud.discount.rule.model.bo.discount.TDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
discountStepListTDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品

com.leadwaycloud.discount.rule.model.bo.discount.step.TDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.TDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateTDiscountCreateBO

com.leadwaycloud.discount.rule.model.bo.discount.IDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
itemCodestring商品编号"100001"
itemNamestring商品"矿泉水"
discountStepListIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"

com.leadwaycloud.discount.rule.model.bo.discount.step.IDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值12
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.IDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GSMDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListGSMDiscountItemBO[]计算商品数据
discountStepListGSMDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品

com.leadwaycloud.discount.rule.model.bo.discount.item.GSMDiscountItemBO

计算商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GSMDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2
discountStepCalcListGSMDiscountStepCalcBO[]计算条件
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GSMDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
itemCodestring商品编号"100001"
joinTypestring参与类型(同组的使用相同的类型)"A"

com.leadwaycloud.discount.rule.model.dto.discount.create.GSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSMDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GSIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListGSIDiscountItemBO[]计算商品数据
targetDiscountItemGSIDiscountItemBO
discountStepListGSIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.GSIDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GSIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcGSIDiscountStepCalcBO
discountStepTargetGSIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GSIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.GSIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.GSIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GSDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
discountItemListGSDiscountItemBO[]商品数据
discountStepListGSDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品

com.leadwaycloud.discount.rule.model.bo.discount.item.GSDiscountItemBO

商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GSDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.dto.discount.create.GSDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGSDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GMMDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListGMMDiscountItemBO[]计算商品数据
targetDiscountItemListGMMDiscountItemBO[]折扣商品数据
discountStepListGMMDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.GMMDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GMMDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcListGMMDiscountStepCalcBO[]计算条件
discountStepTargetListGMMDiscountStepTargetBO[]折扣条件
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GMMDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
itemCodestring商品编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.target.GMMDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2
itemCodestring商品编号"100001"

com.leadwaycloud.discount.rule.model.dto.discount.create.GMMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMMDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GMIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListGMIDiscountItemBO[]计算商品数据
targetDiscountItemGMIDiscountItemBO
discountStepListGMIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.GMIDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GMIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcListGMIDiscountStepCalcBO[]计算条件
discountStepTargetGMIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GMIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
itemCodestring商品编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.target.GMIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.GMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGMIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GIMDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemGIMDiscountItemBO
targetDiscountItemListGIMDiscountItemBO[]折扣商品数据
discountStepListGIMDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.GIMDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GIMDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcGIMDiscountStepCalcBO
discountStepTargetListGIMDiscountStepTargetBO[]折扣条件
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GIMDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.GIMDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2
itemCodestring商品编号"100001"

com.leadwaycloud.discount.rule.model.dto.discount.create.GIMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIMDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.GIIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemGIIDiscountItemBO
targetDiscountItemGIIDiscountItemBO
discountStepListGIIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.GIIDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.GIIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcGIIDiscountStepCalcBO
discountStepTargetGIIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.GIIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.GIIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.GIIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListGIIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.EDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discValnumber(double)折扣值2
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
exchangeAccountTypestring权益兑换的会员账户类型(模式为E时需要设置)"JF"
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品

com.leadwaycloud.discount.rule.model.dto.discount.create.EDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
discountCreateListEDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CSMDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListCSMDiscountItemBO[]计算商品数据
discountStepListCSMDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品/分类

com.leadwaycloud.discount.rule.model.bo.discount.item.CSMDiscountItemBO

计算商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"
codestring分类编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.CSMDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discMethodstring折扣方式"DA"
discValnumber(double)折扣值2
discountStepCalcListCSMDiscountStepCalcBO[]计算条件
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.CSMDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
codestring分类编号"100001"
itemCodestring商品/分类ID"100001"
joinTypestring参与类型(同组的使用相同的类型)"A"

com.leadwaycloud.discount.rule.model.dto.discount.create.CSMDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCSMDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CMIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListCMIDiscountItemBO[]计算商品数据
targetDiscountItemDiscountItemBO
discountStepListCMIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.CMIDiscountItemBO

计算商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"
codestring分类编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.item.DiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"

com.leadwaycloud.discount.rule.model.bo.discount.step.CMIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcListCMIDiscountStepCalcBO[]计算条件
discountStepTargetCMIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.CMIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
codestring分类编号"100001"
itemCodestring分类ID"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.target.CMIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.CMIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CMCDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemListCMCDiscountItemBO[]计算商品数据
targetDiscountItemCMCDiscountItemBO
discountStepListCMCDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.CMCDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"
codestring分类编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.CMCDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcListCMCDiscountStepCalcBO[]计算条件
discountStepTargetCMCDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.CMCDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
codestring分类编号"100001"
itemCodestring分类ID"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.target.CMCDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.CMCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCMCDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CCIDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemCCIDiscountItemBO
targetDiscountItemDiscountItemBO
discountStepListCCIDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.CCIDiscountItemBO

计算商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"
codestring分类编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.CCIDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcCCIDiscountStepCalcBO
discountStepTargetCCIDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.CCIDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.CCIDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.CCIDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCIDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CCCDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
calcDiscountItemCCCDiscountItemBO
targetDiscountItemCCCDiscountItemBO
discountStepListCCCDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式为打包时是否需要条件商品数量全部满足(默认:true)true

com.leadwaycloud.discount.rule.model.bo.discount.item.CCCDiscountItemBO

折扣商品数据

名称类型必填说明示例
itemCodestring商品编码/分类ID"100001"
itemNamestring商品/分类名称"矿泉水"
codestring分类编号"100001"

com.leadwaycloud.discount.rule.model.bo.discount.step.CCCDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
discountStepCalcCCCDiscountStepCalcBO
discountStepTargetCCCDiscountStepTargetBO
itemShareRateobject商品分摊指定比例(例如:20%,请提供20不需要除100,支持2位小数)。必须开启分摊才可设置,且设置的商品必须在规则数据中存在,未设置表示按照默认方式分摊(金额占比){"123":20.22}

com.leadwaycloud.discount.rule.model.bo.discount.step.calc.CCCDiscountStepCalcBO

计算条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22

com.leadwaycloud.discount.rule.model.bo.discount.step.target.CCCDiscountStepTargetBO

折扣条件

名称类型必填说明示例
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值1100
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.CCCDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCCCDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.CDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
codestring分类编号"100001"
itemCodestring分类ID"100001"
itemNamestring分类名称"矿泉水"
discountStepListCDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品/分类
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"

com.leadwaycloud.discount.rule.model.bo.discount.step.CDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值12
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.CDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListCDiscountCreateBO[]折扣创建数据

com.leadwaycloud.discount.rule.model.bo.discount.BDiscountCreateBO

折扣创建数据

名称类型必填说明示例
sortIndexinteger(int32)规则内排序1
itemCalcDataKeystring活动分组编号
baseTypestring最优方式 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"NONE"
pricingTypestring计价方式 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVERAGE"
tagsstring[]自定义标签["3242312313"]
openOverflowboolean是否允许折扣值溢出false
maxDiscValnumber(double)最大折扣值(目前仅生效与折扣方式BP)1
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"
excludeItemExcludeItemFormatBO
deductAccountListDeductAccountBO[]会员账户扣除权益信息[]
codestring品牌编号"100001"
itemCodestring品牌ID"100001"
itemNamestring品牌名称"矿泉水"
discountStepListBDiscountStepBO[]阶梯数据
useCouponActiveGroupCodeSetstring[]用券优惠券活动分组编号["3242312313"]
giftCouponActiveGroupCodeSetstring[]发券优惠券活动分组编号["3242312313"]
giftAccountTypestring权益赠送的会员账户类型(折扣赠送权益时需要设置)"JF"
unJoinShareItemListUnJoinShareItemBO[]不加入分摊的商品
saMethodstring一口价方式(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"

com.leadwaycloud.discount.rule.model.bo.discount.step.BDiscountStepBO

阶梯数据

名称类型必填说明示例
stepSeqinteger(int32)阶梯序号(序号越小越先开始计算)1
loopCountinteger(int32)可每满次数(未设置表示不限制每满次数)1
calcMethodstring计算方式 【 Q : 数量 A : 金额 】"Q"
calcValnumber(double)计算值12
calcVal2number(double)计算值22
discMethodstring折扣方式 【 DA : SA : Q : P : SP : BP : SR : TR : RTA : C : 】"DA"
discValnumber(double)折扣值2

com.leadwaycloud.discount.rule.model.dto.discount.create.BDiscountGenerateDTO

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID
shareTypestring折扣分摊方式 【 NONE : 不分摊 GROUP : 组内参与商品分摊 ALL : 组合全部商品分摊 】"NONE"
discountCreateListBDiscountCreateBO[]折扣创建数据

com.leadwaycloud.core.model.RJava.lang.Boolean

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
databoolean返回数据

com.leadwaycloud.discount.rule.model.dto.discount.update.SortDiscountDTO

名称类型必填说明示例
discountIdinteger(int64)折扣ID1
calcIndexstring计算顺序(数值越小越先计算)"999999"

com.leadwaycloud.core.model.RJava.lang.Void

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据

com.leadwaycloud.discount.core.business.calculate.model.DiscountChangeNoticeBO

名称类型必填说明示例
discountUpdateTypestring折扣变更类型 【 ALL : 全部 MASTER : 主数据变更 】"ALL"
discountListinteger(int64)[]更新的折扣[1]

com.leadwaycloud.discount.rule.model.bo.coupon.OrderCouponActiveDetailCreateBO

优惠券活动详情创建数据

名称类型必填说明示例
itemGroupCodestring活动分组编号
designstring优惠券设计
namedboolean是否记名
triggeringCountinteger(int32)单次使用可触发折扣次数1
maxGrantQtystring最大发放张数
endUseTimestring优惠券有效截止时间"2024-10-11 08:00:00"

com.leadwaycloud.discount.rule.model.dto.coupon.create.OrderCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListOrderCouponActiveDetailCreateBO[]优惠券活动详情创建数据

com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive

com.leadwaycloud.discount.core.model.po.entity.CouponActive

返回数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"xxx"
namestring活动名称"xxx"
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
statusstring活动状态 【 DRAFT : 草稿 UNDER_REVIEW : 审核中 AVAILABLE : 已上线 STOP : 停用 EXPIRED : 过期 DELETE : 已删除 】"AVAILABLE"
descriptionstring活动描述
couponActiveDetailListCouponActiveDetail[]优惠券活动详情

com.leadwaycloud.discount.core.model.po.entity.CouponActiveDetail

优惠券活动详情

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
couponActiveIdinteger(int64)活动ID1
itemGroupCodestring活动分组编号
couponDesignIdinteger(int64)优惠券设计ID12345
namedboolean是否为记名券
triggeringCountinteger(int32)单次使用可触发折扣次数1
maxGrantQtyinteger(int64)最大发放张数1000
endUseTimestring优惠券有效截止时间"2020-10-11 13:09:11"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
startDatestring活动开始日期"2022-01-01"
endDatestring活动结束日期"2099-12-31"
monthDayinteger(int32)每月第几日
w1boolean周一
w2boolean周二
w3boolean周三
w4boolean周四
w5boolean周五
w6boolean周六
w7boolean周日
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣结束时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣结束时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣结束时间3"20:00:00"
designCouponDesign

com.leadwaycloud.discount.core.model.po.entity.CouponDesign

优惠券设计

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
couponActiveIdinteger(int64)优惠券活动ID1
configstring配置"xxx"

com.leadwaycloud.discount.rule.model.bo.coupon.MarketingCouponActiveDetailCreateBO

优惠券活动详情创建数据

名称类型必填说明示例
itemGroupCodestring活动分组编号
designstring优惠券设计
namedboolean是否记名
triggeringCountinteger(int32)单次使用可触发折扣次数1
maxGrantQtystring最大发放张数
endUseTimestring优惠券有效截止时间"2024-10-11 08:00:00"
startDatestring活动开始日期"2022-01-01"
endDatestring活动结束日期"2099-12-31"
monthDayinteger(int32)每月第几日1
weekstring周几"0000000"
startTime1string折扣开始时间1"08:00:00"
endTime1string折扣开始时间1"10:00:00"
startTime2string折扣开始时间2"11:00:00"
endTime2string折扣开始时间2"14:00:00"
startTime3string折扣开始时间3"18:00:00"
endTime3string折扣开始时间3"20:00:00"

com.leadwaycloud.discount.rule.model.dto.coupon.create.MarketingCouponActiveCreateDTO

名称类型必填说明示例
couponActiveIdinteger(int64)优惠券活动ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring活动编号"20221212-01"
namestring名称"xxx"
descriptionstring活动描述"..."
typestring活动类型 【 MARKETING : 营销 ORDER : 交易 】"MARKETING"
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
couponActiveDetailCreateListMarketingCouponActiveDetailCreateBO[]优惠券活动详情创建数据

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMaster[]返回数据

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO[]返回数据

com.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

返回数据

名称类型必填说明示例
discountMasterIdinteger(int64)折扣主数据ID1
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring名称"xxx"
descriptionstring折扣描述"..."
calcIndexstring计算顺序(数值越小越先计算)"999999"
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
storeScopeStoreScopeFormatBO
channelScopeChannelScopeFormatBO
memberScopeMemberScopeFormatBO
beforeConditionDiscBeforeConditionBO
excludeDiscExcludeDiscFormatBO
openDynamicboolean开启动态折扣
openBestboolean开启规则内最优false
templateCodestring折扣模版编号(前端用)
strategyIdinteger(int64)策略ID

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountSortBO[]返回数据

com.leadwaycloud.discount.core.business.rule.model.DiscountSortBO

返回数据

名称类型必填说明示例
discIdinteger(int64)折扣ID1
codestring编号"xxx"
namestring名称"xxx"
sortIndexinteger(int64)排列序号1
openBestboolean开启规则内最优false
discountModelEnumstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
excludeDiscstring互斥的折扣

com.leadwaycloud.core.model.RJava.util.MapJava.lang.IntegerJava.util.ListCom.leadwaycloud.discount.core.business.rule.model.DiscountSortBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据

com.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO

名称类型必填说明示例
openDiscModelstring[]开放的折扣模式(默认:["I","T"])["I","T"]
calcModelstring[][]折扣计算模式(默认:{{"I"}, {"T"}})[["I"],["T"]]
tradeRefundMaxDayinteger(int32)交易最大可退货天数(默认:7)7
maxDiscountRuleCountinteger(int32)最大有效折扣条数(默认:100)100
maxSingleDiscountRuleGroupCountinteger(int32)最大单个折扣组个数(默认:10)10
maxSingleDiscountRuleSingleGroupItemCountinteger(int32)最大单个折扣单个组商品/分类个数(默认:20)20
maxSglDiscRuleSglGrpTagCountinteger(int32)单个折扣组自定义标签最大条数(默认:20)20
useLwcCouponSystemboolean是否使用立威云优惠券系统(默认:false)false
useLwcCrmSystemboolean是否使用立威云CRM系统(默认:false)false
saveCalcResultboolean是否保留计算结果(默认:false)false
baseTypestring最优方式(默认:MERCHANT【商户最优】) 【 MERCHANT : 商户最优 MEMBER : 顾客最优 】"MERCHANT"
pricingTypestring商品参与折扣计价方式(默认:AVG_PC【均价】) 【 AVG_PC : 均价 FAC_PC : 票面价 】"AVG_PC"
discountExcludeMethodstring折扣互斥方式(默认:DOWN【向下互斥】) 【 UP : 向上互斥 DOWN : 向下互斥 】"DOWN"
discountExcludeSolveMethodstring折扣互斥处理方式(默认:SEQUENCE【顺序计算】) 【 SEQUENCE : 顺序计算 EXCLUDE_REORDER : 互斥的折扣重新排序(不允许全场排除) 】"SEQUENCE"
openOverflowboolean是否允许折扣值溢出(默认:false)false
rightsRealTimeUsageboolean当笔交易赠送的权益允许在当笔交易使用(默认:false)false
saMethodstring一口价方式(不含GSM)(默认:SINGLE【单个】) 【 SINGLE : 单个 PACK : 打包 】"SINGLE"
saPackFullFillboolean一口价方式(不含GSM)为打包时是否需要条件商品数量全部满足(默认:true)true
groupShareModelstring组内参与商品分摊模式(默认:BY_ITEM【根据商品分摊】)"BY_ITEM"
itemShareRateOnlyTargetboolean商品分摊指定比例是否仅目标商品参与(默认:true)true
itemShareRateCompulsionboolean商品分摊指定比例是否强制满足(默认:true)true

com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantChannelDTO

名称类型必填说明示例
channelstring渠道编号"1"
namestring渠道名称

com.leadwaycloud.discount.rule.model.dto.common.DiscountMerchantCalcIndexDTO

名称类型必填说明示例
calcIndexinteger(int32)计算顺序1
namestring计算顺序名称

com.leadwaycloud.discount.rule.model.dto.coupon.bind.BindDiscountMasterItemDTO

名称类型必填说明示例
couponActiveGroupCodestring优惠券活动分组编号
discMerchantIdstring折扣规则商户ID
discIdstring折扣规则
discItemCalcDataKeystring折扣规则项编号

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive[]返回数据

com.leadwaycloud.core.model.RJava.lang.Object

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据

com.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.DiscountSecurity

返回数据

名称类型必填说明示例
firstboolean是否是第一页true
lastboolean是否是最后一页true
totalPagesinteger(int32)总页数1
totalElementsinteger(int64)总数据条数1
sizeinteger(int32)每页条数10
numberinteger(int32)当前页码0
numberOfElementsinteger(int32)当前页数据条数0
dataListDiscountSecurity[]当前页数据

com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.DiscountSecurity

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountSecurity

com.leadwaycloud.discount.core.model.po.entity.DiscountSecurity

当前页数据

名称类型必填说明示例
idinteger(int64)
merchantIdinteger(int64)商户ID1
typestring项类型 【 DISC_CREATE : 折扣创建 DISC_UPDATE : 折扣修改 DISC_ONLINE : 折扣上线 DISC_STOP : 折扣停用 DISC_DELETE : 折扣删除 DISC_SORT : 折扣排序 DISC_CALC_DATA_DELETE : 折扣计算数据删除 DISC_CALC_DATA_GENERATE : 折扣计算数据生成 】"GOODS"
operatorIdinteger(int64)操作人ID1
operatorNamestring操作人名称"x"
createTimestring操作时间"2020-10-11 13:09:11"
refListDiscountSecurityRef[]折扣操作关联数据

com.leadwaycloud.discount.core.model.po.entity.DiscountSecurityRef

折扣操作关联数据

名称类型必填说明示例
idinteger(int64)
merchantIdinteger(int64)商户ID1
discSecurityIdstring"GOODS"
discIdinteger(int64)1
discountMasterSimpleDiscountMaster

com.leadwaycloud.discount.core.model.po.entity.SimpleDiscountMaster

折扣主数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
companyIdinteger(int64)公司ID1
codestring折扣编号"20221212-01"
namestring折扣名称"双12床上用品单品促销"
descriptionstring折扣描述"..."
calcIndexinteger(int32)计算顺序(数值越小越先计算)999999
discountModelstring折扣模式 【 I : 只有条件商品 GII : 条件&目标商品都是单品 GIM : 条件商品是单品,目标商品是单品组合 GMI : 条件商品是单品组合,目标商品是单品 GMM : 条件&目标商品都是分组 GSM : 多组组合商品,且只有条件商品 GS : 特殊组合,只有条件商品 GSI : 特殊组合,条件商品是单品组合,目标商品是单品 C : 只有条件分类 CSM : 分类组合,且只有条件分类 CCI : 条件商品是分类,目标商品是单品 CMI : 条件商品是分类组合,目标商品是单品 CCC : 条件商品是分类,目标商品是分类 CMC : 条件商品是分类组合,目标商品是分类 B : 只有条件品牌 T : TI : 条件商品是整笔交易,目标商品是单品 E : 兑换权益为金额 】"I"
statusstring折扣状态 【 DRAFT : 草稿 UNDER_REVIEW : 审核中 AVAILABLE : 已上线 STOP : 停用 EXPIRED : 过期 DELETE : 已删除 】"DRAFT"
discountCalcDataStatusstring折扣计算数据状态 【 NULL : 未生成 IN_FORCE : 已生成 】"NULL"
startDatestring折扣开始日期"2022-01-01"
endDatestring折扣结束日期"2022-01-01"
templateCodestring折扣模版编号(前端用)
openDynamicboolean是否开启动态折扣
strategyIdinteger(int64)策略ID

com.leadwaycloud.core.model.RCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO

com.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.SimpleDiscountMaster

返回数据

名称类型必填说明示例
firstboolean是否是第一页true
lastboolean是否是最后一页true
totalPagesinteger(int32)总页数1
totalElementsinteger(int64)总数据条数1
sizeinteger(int32)每页条数10
numberinteger(int32)当前页码0
numberOfElementsinteger(int32)当前页数据条数0
dataListSimpleDiscountMaster[]当前页数据

com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.SimpleDiscountMaster

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataSimpleDiscountMaster

com.leadwaycloud.core.model.PCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

返回数据

名称类型必填说明示例
firstboolean是否是第一页true
lastboolean是否是最后一页true
totalPagesinteger(int32)总页数1
totalElementsinteger(int64)总数据条数1
sizeinteger(int32)每页条数10
numberinteger(int32)当前页码0
numberOfElementsinteger(int32)当前页数据条数0
dataListDiscountGenerateDTO[]当前页数据

com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.rule.model.dto.discount.create.DiscountGenerateDTO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountGenerateDTO

com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantConfig

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantConfig

com.leadwaycloud.discount.core.model.po.entity.DiscountMerchantConfig

返回数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
dataPartitionboolean是否进行数据分区false
configstring商户折扣配置

com.leadwaycloud.core.model.RCom.leadwaycloud.discount.core.business.rule.model.DiscountMerchantConfigBO

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantConfigBO

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantChannel

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantChannel[]返回数据

com.leadwaycloud.discount.core.model.po.entity.DiscountMerchantChannel

返回数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
channelstring渠道编号"1"
namestring渠道名称

com.leadwaycloud.core.model.RJava.util.ListCom.leadwaycloud.discount.core.model.po.entity.DiscountMerchantCalcIndex

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataDiscountMerchantCalcIndex[]返回数据

com.leadwaycloud.discount.core.model.po.entity.DiscountMerchantCalcIndex

返回数据

名称类型必填说明示例
idinteger(int64)
createByinteger(int64)
createTimestring(date-time)
updateByinteger(int64)
updateTimestring(date-time)
merchantIdinteger(int64)商户ID1
calcIndexinteger(int32)计算顺序1
namestring计算顺序名称

com.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.CouponActive

返回数据

名称类型必填说明示例
firstboolean是否是第一页true
lastboolean是否是最后一页true
totalPagesinteger(int32)总页数1
totalElementsinteger(int64)总数据条数1
sizeinteger(int32)每页条数10
numberinteger(int32)当前页码0
numberOfElementsinteger(int32)当前页数据条数0
dataListCouponActive[]当前页数据

com.leadwaycloud.core.model.RCom.leadwaycloud.core.model.PCom.leadwaycloud.discount.core.model.po.entity.CouponActive

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataCouponActive

com.leadwaycloud.core.model.R

名称类型必填说明示例
statusinteger(int32)状态码200
codestring业务代码"000"
messagestring消息描述"成功"
dataobject返回数据