创建商品
This commit is contained in:
@ -9,14 +9,11 @@ import java.util.List;
|
||||
/**
|
||||
* 实物租赁商品创建请求实体类
|
||||
*/
|
||||
@ApiModel(value = "com.sczx.pay.alipay.dto.RentItemCreateRequest", description = "实物租赁商品创建请求参数")
|
||||
public class RentItemCreateRequest implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// 基本商品信息
|
||||
|
||||
@ApiModelProperty(value = "商家侧商品ID,要求APPID下全局唯一", required = true, example = "test20230021")
|
||||
private String outItemId;
|
||||
|
||||
@ApiModelProperty(value = "商品名称,最少不低于3个字,最长不超过60个字", required = true, example = "实物租赁商品创建示例")
|
||||
|
||||
@ -147,6 +147,7 @@ public class ItemServiceImpl implements ItemService {
|
||||
|
||||
@Override
|
||||
public String getData(AlipayOpenAppItemCreateResponse response) {
|
||||
rentRuleItemMapper.updateItemIdByOutItemId(response.getOutItemId(), response.getItemId());
|
||||
return response.getItemId();
|
||||
}
|
||||
|
||||
|
||||
@ -43,6 +43,8 @@ public interface RentRuleItemMapper {
|
||||
*/
|
||||
int update(RentRuleItem zcRentRuleItem);
|
||||
|
||||
int updateItemIdByOutItemId(@Param("outItemId") String outItemId, @Param("itemId") String itemId);
|
||||
|
||||
/**
|
||||
* 根据ID删除车型租赁规则项
|
||||
* @param id 车型ID
|
||||
|
||||
Reference in New Issue
Block a user