This commit is contained in:
2025-10-15 12:30:06 +08:00
parent c4b788ab9d
commit 23560b05e0
37 changed files with 3728 additions and 0 deletions

View File

@@ -0,0 +1,182 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springblade.common.constant.CommonConstant;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
import org.springblade.modules.aiaudio.service.IAiSysareaService;
import org.springblade.modules.aiaudio.vo.AiSysareaVO;
import org.springblade.modules.aiaudio.wrapper.AiSysareaWrapper;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
import java.util.List;
/**
* ai语音解说地域表 控制器
*
* @author jinghan
* @since 2024-04-10
*/
@RestController
@AllArgsConstructor
@RequestMapping("/aiSysarea")
@Api(value = "ai语音解说地域表", tags = "ai语音解说地域表接口")
public class AiSysareaController extends BladeController {
private final IAiSysareaService aiSysareaService;
/**
* ai语音解说地域表 详情
*/
@GetMapping("/detail")
@ApiOperationSupport(order = 1)
@ApiOperation(value = "详情", notes = "传入aiSysarea")
public R<AiSysareaVO> detail(AiSysareaEntity aiSysarea) {
AiSysareaEntity detail = aiSysareaService.getOne(Condition.getQueryWrapper(aiSysarea));
return R.data(AiSysareaWrapper.build().entityVO(detail));
}
/**
* ai语音解说地域表 分页
*/
@GetMapping("/list")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "分页", notes = "传入aiSysarea")
public R<IPage<AiSysareaVO>> list(AiSysareaEntity aiSysarea, Query query) {
LambdaQueryWrapper<AiSysareaEntity> queryWrapper = Wrappers.lambdaQuery();
queryWrapper.like(aiSysarea.getAreaName() != null, AiSysareaEntity::getAreaName, aiSysarea.getAreaName());
queryWrapper.eq(aiSysarea.getAreaLevel() != null, AiSysareaEntity::getAreaLevel, aiSysarea.getAreaLevel());
queryWrapper.eq(aiSysarea.getAreaType() != null, AiSysareaEntity::getAreaType, aiSysarea.getAreaType());
queryWrapper.eq(aiSysarea.getId() != null, AiSysareaEntity::getId, aiSysarea.getId());
queryWrapper.eq(aiSysarea.getIsShow() != null, AiSysareaEntity::getIsShow, aiSysarea.getIsShow());
IPage<AiSysareaEntity> pages = aiSysareaService.page(Condition.getPage(query), queryWrapper);
return R.data(AiSysareaWrapper.build().pageVO(pages));
}
/**
* ai语音解说地域表 自定义分页
*/
@GetMapping("/page")
@ApiOperationSupport(order = 3)
@ApiOperation(value = "分页", notes = "传入aiSysarea")
public R<IPage<AiSysareaVO>> page(AiSysareaVO aiSysarea, Query query) {
IPage<AiSysareaVO> pages = aiSysareaService.selectAiSysareaPage(Condition.getPage(query), aiSysarea);
return R.data(pages);
}
/**
* ai语音解说地域表 新增
*/
@PostMapping("/save")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入aiSysarea")
public R save(@Valid @RequestBody AiSysareaEntity aiSysarea) {
return R.status(aiSysareaService.save(aiSysarea));
}
/**
* ai语音解说地域表 修改
*/
@PostMapping("/update")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "修改", notes = "传入aiSysarea")
public R update(@Valid @RequestBody AiSysareaEntity aiSysarea) {
return R.status(aiSysareaService.updateById(aiSysarea));
}
/**
* ai语音解说地域表 新增或修改
*/
@PostMapping("/submit")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "新增或修改", notes = "传入aiSysarea")
public R submit(@Valid @RequestBody AiSysareaEntity aiSysarea) {
return R.status(aiSysareaService.saveOrUpdate(aiSysarea));
}
/**
* ai语音解说地域表 删除
*/
@PostMapping("/remove")
@ApiOperationSupport(order = 7)
@ApiOperation(value = "逻辑删除", notes = "传入ids")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return R.status(aiSysareaService.deleteLogic(Func.toLongList(ids)));
}
/**
* ai语音解说地域表 依据pid 获取 地区
*/
@GetMapping("/queryByPid")
@ApiOperationSupport(order = 8)
@ApiOperation(value = "依据pid获取地区", notes = "pid")
public R<List<AiSysareaVO>> queryByPid(String pid) {
if (pid == null) {
pid = CommonConstant.AI_AREA_ROOT;
}
List<AiSysareaVO> areaListByPid = aiSysareaService.getAreaListByPid(pid);
return R.data(areaListByPid);
}
/**
* 获取地区树形结构
*/
@GetMapping("/tree")
@ApiOperationSupport(order = 9)
@ApiOperation(value = "树形结构", notes = "树形结构")
public R<List<AiSysareaVO>> tree(Long parentId) {
List<AiSysareaVO> tree = aiSysareaService.tree(parentId);
return R.data(tree);
}
/**
* 懒加载列表
*/
@GetMapping("/lazy-list")
@ApiOperationSupport(order = 10)
@ApiOperation(value = "懒加载列表", notes = "传入aiSysarea")
public R<List<AiSysareaVO>> lazyList(@ApiIgnore AiSysareaEntity aiSysarea, Long parentId) {
List<AiSysareaVO> list = aiSysareaService.lazyList(parentId, aiSysarea);
return R.data(list);
}
@GetMapping("/lazy-tree")
@ApiOperationSupport(order = 6)
@ApiOperation(value = "懒加载树形结构", notes = "树形结构")
public R<List<AiSysareaVO>> lazyTree(Long parentId) {
List<AiSysareaVO> tree = aiSysareaService.lazyTree(parentId);
return R.data(tree);
}
}

View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
/**
* ai语音解说地域表 数据传输对象实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AiSysareaDTO extends AiSysareaEntity {
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,239 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
import java.util.Date;
/**
* ai语音解说景区景点表 实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@TableName("ai_scenic")
@ApiModel(value = "AiScenic对象", description = "ai语音解说景区景点表")
@EqualsAndHashCode(callSuper = true)
public class AiScenicEntity extends BaseEntity {
/**
* 景区名称
*/
@ApiModelProperty(value = "景区名称")
private String sName;
/**
* 1景区2景点3展品(...........)
*/
@ApiModelProperty(value = "1景区2景点3展品(...........)")
private Integer sType;
/**
* 景区等级 如:1 :A 2:AA 3:AAA 4:AAAA 5:AAAAAA
*/
@ApiModelProperty(value = "景区等级 如:1 :A 2:AA 3:AAA 4:AAAA 5:AAAAAA")
private String grade;
/**
* 坐标 采集时间
*/
@ApiModelProperty(value = "坐标 采集时间")
private String createName;
/**
*
*/
@ApiModelProperty(value = "")
private Date operationTime;
/**
*
*/
@ApiModelProperty(value = "")
private String operationName;
/**
* 景区介绍
*/
@ApiModelProperty(value = "景区介绍")
private String introduce;
/**
* 地址
*/
@ApiModelProperty(value = "地址")
private String address;
/**
* 开放时间
*/
@ApiModelProperty(value = "开放时间")
private String openTime;
/**
* 票价详情
*/
@ApiModelProperty(value = "票价详情")
private String priceDesc;
/**
* 小贴士
*/
@ApiModelProperty(value = "小贴士")
private String tips;
/**
* 景区电话
*/
@ApiModelProperty(value = "景区电话")
private String telephone;
/**
* 温馨提示
*/
@ApiModelProperty(value = "温馨提示 ")
private String suitable;
/**
* 交通信息
*/
@ApiModelProperty(value = "交通信息")
private String traffic;
/**
* 一句话概括景区
*/
@ApiModelProperty(value = "一句话概括景区")
private String sign;
/**
* 数据来源
1:后台添加
2:启航景区添加
3:采集器添加
4:app主播自己加的景点
5:导入数据
*/
@ApiModelProperty(value = "数据来源 1:后台添加 2:启航景区添加 3:采集器添加 4:app主播自己加的景点 5:导入数据 ")
private Integer dataSource;
/**
* 二维码
*/
@ApiModelProperty(value = "二维码")
private Integer qrCode;
/**
* 二维码地址
*/
@ApiModelProperty(value = "二维码地址")
private String qrCodeUrl;
/**
* 编码(排序)
*/
@ApiModelProperty(value = "编码(排序)")
private String codeSort;
/**
* 是否托管:1启航管理(托管) 0巡洋舰自己管理 2启航自己应用在小程序里,APP中不显示此类景点
*/
@ApiModelProperty(value = "是否托管:1启航管理(托管) 0巡洋舰自己管理 2启航自己应用在小程序里,APP中不显示此类景点")
private Integer isSetSail;
/**
* 父子级
*/
@ApiModelProperty(value = "父子级")
private Long pid;
/**
* 所属地区(国内代表市ID,国外代表省[市]ID)
*/
@ApiModelProperty(value = "所属地区(国内代表市ID,国外代表省[市]ID)")
private Integer cnAreaId;
/**
* 是否显示 0:不显示(默认) 1:显示
*/
@ApiModelProperty(value = "是否显示 0:不显示(默认) 1:显示")
private Integer isShow;
/**
* 是否必听 0:不 1:必听
*/
@ApiModelProperty(value = "是否必听 0:不 1:必听")
private Integer isListen;
/**
*
*/
@ApiModelProperty(value = "")
private Object gaoDeLon;
/**
*
*/
@ApiModelProperty(value = "")
private Object gaoDeLat;
/**
* 海拔
*/
@ApiModelProperty(value = "海拔")
private String aiTitude;
/**
* 最佳播放距离
*/
@ApiModelProperty(value = "最佳播放距离")
private Object distance;
/**
* 空间标识
*/
@ApiModelProperty(value = "空间标识")
private String spaceCode;
/**
* 方图URL
*/
@ApiModelProperty(value = "方图URL")
private String squarePicUrl;
/**
* 评分
*/
@ApiModelProperty(value = "评分")
private Double score;
/**
* 所属地区(国内代表省ID,国外代表国ID)
*/
@ApiModelProperty(value = "所属地区(国内代表省ID,国外代表国ID)")
private Integer countryCnAreaId;
/**
* 非中文名
*/
@ApiModelProperty(value = "非中文名")
private String alias;
/**
*
*/
@ApiModelProperty(value = "")
private Long testId;
/**
* 手绘地图URL
*/
@ApiModelProperty(value = "手绘地图URL")
private String drawingMapUrl;
/**
* 手绘地图层级(11-18的正整数) 默认:15
*/
@ApiModelProperty(value = "手绘地图层级(11-18的正整数) 默认:15")
private Integer drawingMapHierarchy;
/**
* 是否落地 1:否 2:是 默认1
*/
@ApiModelProperty(value = "是否落地 1:否 2:是 默认1")
private Integer isGround;
/**
* 落地时间
*/
@ApiModelProperty(value = "落地时间")
private Date landingTime;
}

View File

@@ -0,0 +1,141 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;
/**
* ai语音解说地域表 实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@TableName("ai_sysarea")
@ApiModel(value = "AiSysarea对象", description = "ai语音解说地域表")
@EqualsAndHashCode(callSuper = true)
public class AiSysareaEntity extends BaseEntity {
/**
* 名称
*/
@ApiModelProperty(value = "名称")
private String areaName;
/**
* 地区图片
*/
@ApiModelProperty(value = "地区图片")
private String areaImgUrl;
/**
* 长图
*/
@ApiModelProperty(value = "长图")
private String areaLongImgUrl;
/**
* 首字母
*/
@ApiModelProperty(value = "首字母")
private String areaFirstLetter;
/**
* 1:国内 2:国际
*/
@ApiModelProperty(value = "1:国内 2:国际")
private Integer areaType;
/**
* 父级Id
*/
@ApiModelProperty(value = "父级Id")
private Long pid;
/**
* 全拼
*/
@ApiModelProperty(value = "全拼")
private String fullPinYin;
/**
* 1省份、2特别行政区、5台湾省下的市、14直辖市(省级)、15直辖市(市级)
*/
@ApiModelProperty(value = "1省份、2特别行政区、5台湾省下的市、14直辖市(省级)、15直辖市(市级)")
private Integer versionNo;
/**
* 暂时不需要。默认0
*/
@ApiModelProperty(value = "暂时不需要。默认0")
private Integer isHot;
/**
* 地区级别(1.州 2.国家 3.省 4.市 5.区【县】)
*/
@ApiModelProperty(value = "地区级别(1.州 2.国家 3.省 4.市 5.区【县】)")
private Integer areaLevel;
/**
* 缩略图
*/
@ApiModelProperty(value = "缩略图")
private String areaThumbnail;
/**
* 英文名称
*/
@ApiModelProperty(value = "英文名称")
private String english;
/**
* 景区个数
*/
@ApiModelProperty(value = "景区个数")
private Integer areaScinceNumber;
/**
* 攻略个数
*/
@ApiModelProperty(value = "攻略个数")
private Integer raidersNum;
/**
* 地区故事图片个数
*/
@ApiModelProperty(value = "地区故事图片个数")
private Integer areaImgNum;
/**
*
*/
@ApiModelProperty(value = "")
private Double gaoDeLat;
/**
*
*/
@ApiModelProperty(value = "")
private Double gaoDeLon;
/**
* 是否显示 0:不显示 1:显示(默认)
*/
@ApiModelProperty(value = "是否显示 0:不显示 1:显示(默认) ")
private Integer isShow;
/**
* 城市简介
*/
@ApiModelProperty(value = "城市简介")
private String areaIntroduction;
/**
* 二维码图片URL
*/
@ApiModelProperty(value = "二维码图片URL")
private String qrCodeUrl;
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.aiaudio.entity.AiScenicEntity;
import org.springblade.modules.aiaudio.vo.AiScenicVO;
import java.util.List;
/**
* ai语音解说景区景点表 Mapper 接口
*
* @author jinghan
* @since 2024-04-10
*/
public interface AiScenicMapper extends BaseMapper<AiScenicEntity> {
/**
* 自定义分页
*
* @param page
* @param aiScenic
* @return
*/
List<AiScenicVO> selectAiScenicPage(IPage page, AiScenicVO aiScenic);
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.aiaudio.mapper.AiScenicMapper">
<!-- 通用查询映射结果 -->
<resultMap id="aiScenicResultMap" type="org.springblade.modules.aiaudio.entity.AiScenicEntity">
</resultMap>
<select id="selectAiScenicPage" resultMap="aiScenicResultMap">
select * from ai_scenic where is_deleted = 0
</select>
</mapper>

View File

@@ -0,0 +1,56 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
import org.springblade.modules.aiaudio.vo.AiSysareaVO;
import java.util.List;
/**
* ai语音解说地域表 Mapper 接口
*
* @author jinghan
* @since 2024-04-10
*/
public interface AiSysareaMapper extends BaseMapper<AiSysareaEntity> {
/**
* 自定义分页
*
* @param page
* @param aiSysarea
* @return
*/
List<AiSysareaVO> selectAiSysareaPage(IPage page, AiSysareaVO aiSysarea);
List<AiSysareaVO> lazyList(@Param("parentId")Long parentId, @Param("aiSysarea")AiSysareaEntity aiSysarea);
List<AiSysareaVO> tree(@Param("parentId") Long parentId);
/**
* 懒加载获取树形节点
*
* @param parentId
* @return
*/
List<AiSysareaVO> lazyTree(@Param("parentId") Long parentId);
}

View File

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.aiaudio.mapper.AiSysareaMapper">
<!-- 通用查询映射结果 -->
<resultMap id="aiSysareaResultMap" type="org.springblade.modules.aiaudio.entity.AiSysareaEntity">
</resultMap>
<resultMap id="treeNodeResultMap" type="org.springblade.core.tool.node.TreeNode">
<id column="id" property="id"/>
<result column="parent_id" property="parentId"/>
<result column="title" property="title"/>
<result column="value" property="value"/>
<result column="key" property="key"/>
<result column="has_children" property="hasChildren"/>
</resultMap>
<select id="selectAiSysareaPage" resultMap="aiSysareaResultMap">
select * from ai_sysarea where is_deleted = 0
</select>
<select id="lazyList" resultType="org.springblade.modules.aiaudio.vo.AiSysareaVO">
SELECT
* ,
area.pid parentId,
(
SELECT
CASE WHEN count(1) > 0 THEN 1 ELSE 0 END
FROM
ai_sysarea
WHERE
pid = area.id and is_deleted = 0
) AS hasChildren
FROM
ai_sysarea area
WHERE area.is_deleted = 0
<if test="parentId !=null">
and area.pid = #{parentId}
</if>
<if test="aiSysarea.areaName!=null and aiSysarea.areaName!=''">
and area.area_name like concat(concat('%', #{aiSysarea.areaName}),'%')
</if>
</select>
<select id="tree" resultMap="treeNodeResultMap" >
select
id, pid parent_id, area_name as title, id as "value", id as "key"
from
ai_sysarea
where
is_deleted = 0
<if test="parentId!=null">
and pid = #{parentId}
</if>
ORDER BY id
</select>
<select id="lazyTree" resultMap="treeNodeResultMap">
SELECT
area.id,
area.pid parent_id,
area.area_name AS title,
area.id AS "value",
area.id AS "key",
(
SELECT
CASE WHEN count(1) > 0 THEN 1 ELSE 0 END
FROM
ai_sysarea
WHERE
pid = area.id and is_deleted = 0
) AS "has_children"
FROM
ai_sysarea area
WHERE
area.is_deleted = 0
<if test="parentId !=null">
and area.pid = #{parentId}
</if>
ORDER BY area.id
</select>
</mapper>

View File

@@ -0,0 +1,42 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.modules.aiaudio.entity.AiScenicEntity;
import org.springblade.modules.aiaudio.mapper.AiScenicMapper;
import org.springblade.modules.aiaudio.service.IAiScenicService;
import org.springblade.modules.aiaudio.vo.AiScenicVO;
import org.springframework.stereotype.Service;
/**
* ai语音解说景区景点表 服务实现类
*
* @author jinghan
* @since 2024-04-10
*/
@Service
public class AiScenicServiceImpl extends BaseServiceImpl<AiScenicMapper, AiScenicEntity> implements IAiScenicService {
@Override
public IPage<AiScenicVO> selectAiScenicPage(IPage<AiScenicVO> page, AiScenicVO aiScenic) {
return page.setRecords(baseMapper.selectAiScenicPage(page, aiScenic));
}
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.tool.node.ForestNodeMerger;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
import org.springblade.modules.aiaudio.mapper.AiSysareaMapper;
import org.springblade.modules.aiaudio.service.IAiSysareaService;
import org.springblade.modules.aiaudio.vo.AiSysareaVO;
import org.springblade.modules.aiaudio.wrapper.AiSysareaWrapper;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.stream.Collectors;
/**
* ai语音解说地域表 服务实现类
*
* @author jinghan
* @since 2024-04-10
*/
@Service
public class AiSysareaServiceImpl extends BaseServiceImpl<AiSysareaMapper, AiSysareaEntity> implements IAiSysareaService {
@Override
public IPage<AiSysareaVO> selectAiSysareaPage(IPage<AiSysareaVO> page, AiSysareaVO aiSysarea) {
return page.setRecords(baseMapper.selectAiSysareaPage(page, aiSysarea));
}
@Override
public List<AiSysareaVO> getAreaListByPid(String pid) {
LambdaQueryChainWrapper<AiSysareaEntity> wrapper = lambdaQuery()
.eq(AiSysareaEntity::getPid, pid)
.eq(AiSysareaEntity::getIsDeleted, 0);
List<AiSysareaEntity> entities = baseMapper.selectList(wrapper);
return entities.stream().map(v -> AiSysareaWrapper.build().entityVO(v)).collect(Collectors.toList());
}
@Override
public List<AiSysareaVO> lazyList(Long parentId, AiSysareaEntity aiSysarea) {
if (parentId == null && aiSysarea.getPid() != null) {
parentId = aiSysarea.getPid();
}
if (parentId == null) {
parentId = 0L;
}
return baseMapper.lazyList(parentId, aiSysarea);
}
@Override
public List<AiSysareaVO> tree(Long parentId) {
return ForestNodeMerger.merge(baseMapper.tree(parentId));
}
@Override
public List<AiSysareaVO> lazyTree(Long parentId) {
if (parentId == null) {
parentId = 0L;
}
return ForestNodeMerger.merge(baseMapper.lazyTree(parentId));
}
}

View File

@@ -0,0 +1,47 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.aiaudio.entity.AiScenicEntity;
/**
* ai语音解说景区景点表 视图实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AiScenicReqVO extends AiScenicEntity {
private static final long serialVersionUID = 1L;
/**
* 景区名称
*/
@ApiModelProperty(value = "景区名称")
private String sname;
/**
* 1景区2景点3展品(...........)
*/
@ApiModelProperty(value = "1景区2景点3展品(...........)")
private Integer stype;
}

View File

@@ -0,0 +1,34 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.modules.aiaudio.entity.AiScenicEntity;
/**
* ai语音解说景区景点表 视图实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AiScenicVO extends AiScenicEntity {
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tool.node.INode;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
import java.util.ArrayList;
import java.util.List;
/**
* ai语音解说地域表 视图实体类
*
* @author jinghan
* @since 2024-04-10
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class AiSysareaVO extends AiSysareaEntity implements INode<AiSysareaVO> {
private static final long serialVersionUID = 1L;
/**
* 父节点ID
*/
@JsonSerialize(using = ToStringSerializer.class)
private Long parentId;
/**
* 是否有子孙节点
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private Boolean hasChildren;
/**
* 子孙节点
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<AiSysareaVO> children;
@Override
public List<AiSysareaVO> getChildren() {
if (this.children == null) {
this.children = new ArrayList<>();
}
return this.children;
}
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.modules.aiaudio.convert.AiConverter;
import org.springblade.modules.aiaudio.entity.AiScenicEntity;
import org.springblade.modules.aiaudio.vo.AiScenicVO;
/**
* ai语音解说景区景点表 包装类,返回视图层所需的字段
*
* @author jinghan
* @since 2024-04-10
*/
public class AiScenicWrapper extends BaseEntityWrapper<AiScenicEntity, AiScenicVO> {
public static AiScenicWrapper build() {
return new AiScenicWrapper();
}
@Override
public AiScenicVO entityVO(AiScenicEntity aiScenic) {
AiScenicVO aiScenicVO = AiConverter.INSTANCE.convertToVO(aiScenic);
//User createUser = UserCache.getUser(aiScenic.getCreateUser());
//User updateUser = UserCache.getUser(aiScenic.getUpdateUser());
//aiScenicVO.setCreateUserName(createUser.getName());
//aiScenicVO.setUpdateUserName(updateUser.getName());
return aiScenicVO;
}
}

View File

@@ -0,0 +1,49 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.modules.aiaudio.wrapper;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.modules.aiaudio.convert.AiConverter;
import org.springblade.modules.aiaudio.entity.AiSysareaEntity;
import org.springblade.modules.aiaudio.vo.AiSysareaVO;
/**
* ai语音解说地域表 包装类,返回视图层所需的字段
*
* @author jinghan
* @since 2024-04-10
*/
public class AiSysareaWrapper extends BaseEntityWrapper<AiSysareaEntity, AiSysareaVO> {
public static AiSysareaWrapper build() {
return new AiSysareaWrapper();
}
@Override
public AiSysareaVO entityVO(AiSysareaEntity aiSysarea) {
AiSysareaVO aiSysareaVO = AiConverter.INSTANCE.convertToVO(aiSysarea);
//User createUser = UserCache.getUser(aiSysarea.getCreateUser());
//User updateUser = UserCache.getUser(aiSysarea.getUpdateUser());
//aiSysareaVO.setCreateUserName(createUser.getName());
//aiSysareaVO.setUpdateUserName(updateUser.getName());
return aiSysareaVO;
}
}

View File

@@ -0,0 +1,14 @@
package org.springblade.modules.alibaba.account.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaAccountBasicParam extends AbstractAPIRequest<AlibabaAccountBasicResult> {
public AlibabaAccountBasicParam() {
super();
oceanApiId = new APIId("com.alibaba.account", "alibaba.account.basic", 1);
}
}

View File

@@ -0,0 +1,55 @@
package org.springblade.modules.alibaba.account.param;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class AlibabaAccountBasicResult {
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置会员信息 *
* 此参数必填
@return 会员信息
*/
private AlibabaAccountSimpleAccountInfo result;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置错误码 *
* 此参数必填
@return 错误码
*/
private String errorCode;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置错误信息 *
* 此参数必填
@return 错误信息
*/
private String errorMessage;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否成功 *
* 此参数必填
@return 是否成功
*/
private Boolean success;
}

View File

@@ -0,0 +1,563 @@
package org.springblade.modules.alibaba.account.param;
import lombok.Getter;
import lombok.Setter;
import java.util.*;
@Setter
@Getter
public class AlibabaAccountSimpleAccountInfo {
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置登录名 *
* 参数示例:<pre></pre>
* 此参数必填
@return 登录名
*/
private String loginId;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置卖家等级 *
* 参数示例:<pre></pre>
* 此参数必填
@return 卖家等级
*/
private Long saleRate;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置会员成熟度 *
* 参数示例:<pre></pre>
* 此参数必填
@return 会员成熟度
*/
private Integer maturity;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置备注 *
* 参数示例:<pre></pre>
* 此参数必填
@return 备注
*/
private String memo;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置修改日期 *
* 参数示例:<pre></pre>
* 此参数必填
@return 修改日期
*/
private Date modifyDate;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置主营行业的类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
@return 主营行业的类目名称
*/
private String categoryName;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置诚信通指数 *
* 参数示例:<pre></pre>
* 此参数必填
@return 诚信通指数
*/
private Integer trustScore;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置用户ID *
* 参数示例:<pre></pre>
* 此参数必填
@return 用户ID
*/
private Long userId;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否是公司会员 *
* 参数示例:<pre></pre>
* 此参数必填
@return 是否是公司会员
*/
private Boolean enterpriseAccount;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置创建时间 *
* 参数示例:<pre></pre>
* 此参数必填
@return 创建时间
*/
private Date createDate;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置贸易通用户标识 *
* 参数示例:<pre></pre>
* 此参数必填
@return 贸易通用户标识
*/
private String communityLevel;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置注册来源 *
* 参数示例:<pre></pre>
* 此参数必填
@return 注册来源
*/
private String joinFrom;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置买家的信用分值(淘宝) *
* 参数示例:<pre></pre>
* 此参数必填
@return 买家的信用分值(淘宝)
*/
private Long rateNum;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置诚信通加入时间 *
* 参数示例:<pre></pre>
* 此参数必填
@return 诚信通加入时间
*/
private Date gmtPaidJoin;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置买家等级 *
* 参数示例:<pre></pre>
* 此参数必填
@return 买家等级
*/
private Long buyRate;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置主营行业的类目id *
* 参数示例:<pre></pre>
* 此参数必填
@return 主营行业的类目id
*/
private Integer categoryId;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置公司名 *
* 参数示例:<pre></pre>
* 此参数必填
@return 公司名
*/
private String companyName;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否是个人账号 *
* 参数示例:<pre></pre>
* 此参数必填
@return 是否是个人账号
*/
private Boolean personAccount;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置公司主页 *
* 参数示例:<pre></pre>
* 此参数必填
@return 公司主页
*/
private String homepageUrl;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置出售关键字 *
* 参数示例:<pre></pre>
* 此参数必填
@return 出售关键字
*/
private String saleKeywords;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置诚信通年限 *
* 参数示例:<pre></pre>
* 此参数必填
@return 诚信通年限
*/
private Integer tpYear;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置求购关键字 *
* 参数示例:<pre></pre>
* 此参数必填
@return 求购关键字
*/
private String buyKeywords;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置业务类型
* 企业单位 ENTERPRISE("5"),
* 个体经营 SELF_EMPLOYED("6"),
* 事业单位或社会团体 ORGANIZATION("7"),
* 个人 PERSONAL("8"); *
* 参数示例:<pre></pre>
* 此参数必填
@return 业务类型
企业单位 ENTERPRISE("5"),
个体经营 SELF_EMPLOYED("6"),
事业单位或社会团体 ORGANIZATION("7"),
个人 PERSONAL("8");
*/
private String memberBizType;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置卖家的信用分值(淘宝) *
* 参数示例:<pre></pre>
* 此参数必填
@return 卖家的信用分值(淘宝)
*/
private Long rateSum;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置1688上店铺地址 *
* 参数示例:<pre></pre>
* 此参数必填
@return 1688上店铺地址
*/
private String[] domainInPlatforms;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置memberId *
* 参数示例:<pre></pre>
* 此参数必填
@return memberId
*/
private String memberId;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置旺铺首页地址 *
* 参数示例:<pre></pre>
* 此参数必填
@return 旺铺首页地址
*/
private String shopUrl;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置供应商名称 *
* 参数示例:<pre></pre>
* 此参数必填
@return 供应商名称
*/
private String supplierName;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置用户头像 *
* 参数示例:<pre></pre>
* 此参数必填
@return 用户头像
*/
private String icon;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置固定电话 *
* 参数示例:<pre></pre>
* 此参数必填
@return 固定电话
*/
private String phoneNo;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置主营行业 *
* 参数示例:<pre></pre>
* 此参数必填
@return 主营行业
*/
private String industry;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置主营产品 *
* 参数示例:<pre></pre>
* 此参数必填
@return 主营产品
*/
private String product;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置部门 *
* 参数示例:<pre></pre>
* 此参数必填
@return 部门
*/
private String department;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置业务联系手机(会员基本信息中编辑)
* 业务联系手机 *
* 参数示例:<pre></pre>
* 此参数必填
@return 业务联系手机(会员基本信息中编辑)
业务联系手机
*/
private String mobileNo;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置联系地址 *
* 参数示例:<pre></pre>
* 此参数必填
@return 联系地址
*/
private String addressLocation;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置业务联系邮箱 *
* 参数示例:<pre></pre>
* 此参数必填
@return 业务联系邮箱
*/
private String email;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置卖家名称 *
* 参数示例:<pre></pre>
* 此参数必填
@return 卖家名称
*/
private String sellerName;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否跨境宝 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否跨境宝
*/
private Boolean kuaJingBao;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否跨境宝 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否跨境宝
*/
private Boolean crossBorder;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否实商 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否实商
*/
private Boolean isPm;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否实商 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否实商
*/
private Boolean pm;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否找工厂商家 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否找工厂商家
*/
private Boolean fm;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否支持官方物流 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否支持官方物流
*/
private Boolean isOfficalLogistics;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置子账号状态 *
* 参数示例:<pre>enabled</pre>
* 此参数必填
@return 子账号状态
*/
private String status;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置开放平台加密用户Id *
* 参数示例:<pre>sE542234KSls4KSfsthjST</pre>
* 此参数必填
@return 开放平台加密用户Id
*/
private String openUid;
}

View File

@@ -0,0 +1,81 @@
package org.springblade.modules.alibaba.fenxiao.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaCbuDistributeModelDkeyResultModel {
private String errorMsg;
/**
* @return 错误信息
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* 设置错误信息 *
* 参数示例:<pre>null</pre>
* 此参数必填
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
private String resultCode;
/**
* @return 返回结果码
*/
public String getResultCode() {
return resultCode;
}
/**
* 设置返回结果码 *
* 参数示例:<pre>0</pre>
* 此参数必填
*/
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
private Boolean isSuccess;
/**
* @return 是否成功
*/
public Boolean getIsSuccess() {
return isSuccess;
}
/**
* 设置是否成功 *
* 参数示例:<pre>true</pre>
* 此参数必填
*/
public void setIsSuccess(Boolean isSuccess) {
this.isSuccess = isSuccess;
}
private String data;
/**
* @return 生成的dkey用于isv工具中传递分销offerId
*/
public String getData() {
return data;
}
/**
* 设置生成的dkey用于isv工具中传递分销offerId *
* 参数示例:<pre>ff47f9bc-5a7f-4f3a-97cf-99be8c9c359c</pre>
* 此参数必填
*/
public void setData(String data) {
this.data = data;
}
}

View File

@@ -0,0 +1,356 @@
package org.springblade.modules.alibaba.fenxiao.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaFeedbackOutProductAddParam extends AbstractAPIRequest<AlibabaFeedbackOutProductAddResult> {
public AlibabaFeedbackOutProductAddParam() {
super();
oceanApiId = new APIId("com.alibaba.fenxiao", "alibaba.feedback.out.product.add", 1);
}
private String outUserId;
/**
* @return 下游平台匿名化用户id
*/
public String getOutUserId() {
return outUserId;
}
/**
* 设置下游平台匿名化用户id *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setOutUserId(String outUserId) {
this.outUserId = outUserId;
}
private String channel;
/**
* @return 货源销售平台
*/
public String getChannel() {
return channel;
}
/**
* 设置货源销售平台 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setChannel(String channel) {
this.channel = channel;
}
private String outShopId;
/**
* @return 下游平台匿名化店铺id
*/
public String getOutShopId() {
return outShopId;
}
/**
* 设置下游平台匿名化店铺id *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setOutShopId(String outShopId) {
this.outShopId = outShopId;
}
private Long outItemId;
/**
* @return 货源商品id
*/
public Long getOutItemId() {
return outItemId;
}
/**
* 设置货源商品id *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setOutItemId(Long outItemId) {
this.outItemId = outItemId;
}
private String title;
/**
* @return 货源商品标题
*/
public String getTitle() {
return title;
}
/**
* 设置货源商品标题 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setTitle(String title) {
this.title = title;
}
private String url;
/**
* @return 货源商品url
*/
public String getUrl() {
return url;
}
/**
* 设置货源商品url *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setUrl(String url) {
this.url = url;
}
private String imgUrl;
/**
* @return 货源商品主图url
*/
public String getImgUrl() {
return imgUrl;
}
/**
* 设置货源商品主图url *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
private String skuName;
/**
* @return 货源sku名称
*/
public String getSkuName() {
return skuName;
}
/**
* 设置货源sku名称 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSkuName(String skuName) {
this.skuName = skuName;
}
private String skuImgUrl;
/**
* @return 货源sku图片url
*/
public String getSkuImgUrl() {
return skuImgUrl;
}
/**
* 设置货源sku图片url *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSkuImgUrl(String skuImgUrl) {
this.skuImgUrl = skuImgUrl;
}
private String brand;
/**
* @return 货源商品品牌
*/
public String getBrand() {
return brand;
}
/**
* 设置货源商品品牌 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setBrand(String brand) {
this.brand = brand;
}
private String skuDesc;
/**
* @return 货源商品sku文本
*/
public String getSkuDesc() {
return skuDesc;
}
/**
* 设置货源商品sku文本 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSkuDesc(String skuDesc) {
this.skuDesc = skuDesc;
}
private String categoryLv1Name;
/**
* @return 货源商品一级类目名称
*/
public String getCategoryLv1Name() {
return categoryLv1Name;
}
/**
* 设置货源商品一级类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setCategoryLv1Name(String categoryLv1Name) {
this.categoryLv1Name = categoryLv1Name;
}
private String categoryLv2Name;
/**
* @return 货源商品二级类目名称
*/
public String getCategoryLv2Name() {
return categoryLv2Name;
}
/**
* 设置货源商品二级类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setCategoryLv2Name(String categoryLv2Name) {
this.categoryLv2Name = categoryLv2Name;
}
private String categoryLv3Name;
/**
* @return 货源商品三级类目名称
*/
public String getCategoryLv3Name() {
return categoryLv3Name;
}
/**
* 设置货源商品三级类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setCategoryLv3Name(String categoryLv3Name) {
this.categoryLv3Name = categoryLv3Name;
}
private String features;
/**
* @return 货源商品属性
*/
public String getFeatures() {
return features;
}
/**
* 设置货源商品属性 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setFeatures(String features) {
this.features = features;
}
private Long avgSalePrice30d;
/**
* @return 货源商品sku近30天平均成交价格
*/
public Long getAvgSalePrice30d() {
return avgSalePrice30d;
}
/**
* 设置货源商品sku近30天平均成交价格 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setAvgSalePrice30d(Long avgSalePrice30d) {
this.avgSalePrice30d = avgSalePrice30d;
}
private Long lowestSalePrice30d;
/**
* @return 货源商品sku近30天最低成交价格
*/
public Long getLowestSalePrice30d() {
return lowestSalePrice30d;
}
/**
* 设置货源商品sku近30天最低成交价格 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setLowestSalePrice30d(Long lowestSalePrice30d) {
this.lowestSalePrice30d = lowestSalePrice30d;
}
private Long saleQuantity1d;
/**
* @return 货源商品当日销量
*/
public Long getSaleQuantity1d() {
return saleQuantity1d;
}
/**
* 设置货源商品当日销量 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSaleQuantity1d(Long saleQuantity1d) {
this.saleQuantity1d = saleQuantity1d;
}
private Long saleAmount1d;
/**
* @return 货源商品当日gmv
*/
public Long getSaleAmount1d() {
return saleAmount1d;
}
/**
* 设置货源商品当日gmv *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSaleAmount1d(Long saleAmount1d) {
this.saleAmount1d = saleAmount1d;
}
}

View File

@@ -0,0 +1,27 @@
package org.springblade.modules.alibaba.fenxiao.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaFeedbackOutProductAddResult {
private AlibabaFeedbackOutProductAddResult result;
/**
* @return
*/
public AlibabaFeedbackOutProductAddResult getResult() {
return result;
}
/**
* 设置 *
* 此参数必填
*/
public void setResult(AlibabaFeedbackOutProductAddResult result) {
this.result = result;
}
}

View File

@@ -0,0 +1,32 @@
package org.springblade.modules.alibaba.fenxiao.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaFenxiaoChosenOfferlistGetParam extends AbstractAPIRequest<AlibabaFenxiaoChosenOfferlistGetResult> {
public AlibabaFenxiaoChosenOfferlistGetParam() {
super();
oceanApiId = new APIId("com.alibaba.fenxiao", "alibaba.fenxiao.chosen.offerlist.get", 1);
}
private String uniqueKey;
/**
* @return 唯一key值
*/
public String getUniqueKey() {
return uniqueKey;
}
/**
* 设置唯一key值 *
* 参数示例:<pre>45SKT9J68AD098DFKsiS</pre>
* 此参数必填
*/
public void setUniqueKey(String uniqueKey) {
this.uniqueKey = uniqueKey;
}
}

View File

@@ -0,0 +1,27 @@
package org.springblade.modules.alibaba.fenxiao.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaFenxiaoChosenOfferlistGetResult {
private AlibabaFenxiaoChosenOfferlistGetResult result;
/**
* @return 结果值
*/
public AlibabaFenxiaoChosenOfferlistGetResult getResult() {
return result;
}
/**
* 设置结果值 *
* 此参数必填
*/
public void setResult(AlibabaFenxiaoChosenOfferlistGetResult result) {
this.result = result;
}
}

View File

@@ -0,0 +1,32 @@
package org.springblade.modules.alibaba.fenxiao.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaFenxiaoChosenOfferlistRemoveallParam extends AbstractAPIRequest<AlibabaFenxiaoChosenOfferlistRemoveallResult> {
public AlibabaFenxiaoChosenOfferlistRemoveallParam() {
super();
oceanApiId = new APIId("com.alibaba.fenxiao", "alibaba.fenxiao.chosen.offerlist.removeall", 1);
}
private String uniqueKey;
/**
* @return 唯一Key
*/
public String getUniqueKey() {
return uniqueKey;
}
/**
* 设置唯一Key *
* 参数示例:<pre>UJL56SFHB23584</pre>
* 此参数必填
*/
public void setUniqueKey(String uniqueKey) {
this.uniqueKey = uniqueKey;
}
}

View File

@@ -0,0 +1,60 @@
package org.springblade.modules.alibaba.ocean.rawsdk.client;
import org.springblade.modules.alibaba.ocean.rawsdk.client.entity.AuthorizationTokenStore;
import org.springblade.modules.alibaba.ocean.rawsdk.client.http.mapi.SyncMapiClient;
import org.springblade.modules.alibaba.ocean.rawsdk.client.imp.serialize.*;
import org.springblade.modules.alibaba.ocean.rawsdk.client.policy.ClientPolicy;
import org.springblade.modules.alibaba.ocean.rawsdk.client.serialize.SerializerProvider;
/**
* @author hongbang.hb
*
*/
public class AlibabaClientFactory {
protected SerializerProvider initSerializerProvider() {
SerializerProvider serializerProvider = new SerializerProvider();
serializerProvider.register(new Xml2Deserializer());
serializerProvider.register(new JsonDeserializer());
serializerProvider.register(new Json2Deserializer());
serializerProvider.register(new ParamDeserializer());
serializerProvider.register(new Param2Deserializer());
serializerProvider.register(new HttpRequestSerializer());
serializerProvider.register(new ParamRequestSerializer());
serializerProvider.register(new Param2RequestSerializer());
return serializerProvider;
}
public SyncAPIClient createAPIClient(ClientPolicy policy, AuthorizationTokenStore authorizationTokenStore) {
SerializerProvider serializerProvider = initSerializerProvider();
final SyncAPIClient syncAPIClient = new SyncAPIClient(policy, serializerProvider, authorizationTokenStore);
syncAPIClient.start();
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
if (syncAPIClient != null) {
syncAPIClient.shutdown();
}
}
});
return syncAPIClient;
}
public SyncMapiClient createMAPIClient(ClientPolicy policy, AuthorizationTokenStore authorizationTokenStore) {
SerializerProvider serializerProvider = initSerializerProvider();
final SyncMapiClient syncMAPIClient = new SyncMapiClient(policy, serializerProvider, authorizationTokenStore);
syncMAPIClient.start();
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
if (syncMAPIClient != null) {
syncMAPIClient.shutdown();
}
}
});
return syncMAPIClient;
}
}

View File

@@ -0,0 +1,145 @@
package org.springblade.modules.alibaba.product.param;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class AlibabaCategoryCategoryInfo {
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目ID *
* 参数示例:<pre>123456</pre>
* 此参数必填
@return 类目ID
*/
private Long categoryID;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
@return 类目名称
*/
private String name;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目层级,1688无此内容 *
* 参数示例:<pre></pre>
* 此参数必填
@return 类目层级,1688无此内容
*/
private Integer level;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否叶子类目(只有叶子类目才能发布商品) *
* 参数示例:<pre></pre>
* 此参数必填
@return 是否叶子类目(只有叶子类目才能发布商品)
*/
private Boolean isLeaf;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置父类目ID数组,1688只返回一个父id *
* 参数示例:<pre></pre>
* 此参数必填
@return 父类目ID数组,1688只返回一个父id
*/
private long[] parentIDs;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置子类目ID数组,1688无此内容 *
* 参数示例:<pre></pre>
* 此参数必填
@return 子类目ID数组,1688无此内容
*/
private long[] childIDs;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置子类目信息 *
* 参数示例:<pre></pre>
* 此参数必填
@return 子类目信息
*/
private AlibabaChildCategoryInfo[] childCategorys;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置最小起订量 *
* 参数示例:<pre>1</pre>
* 此参数必填
@return 最小起订量
*/
private Long minOrderQuantity;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目特征信息 *
* 参数示例:<pre>[
* {
* }
* ]</pre>
* 此参数必填
@return 类目特征信息
*/
private AlibabaCategoryCategoryInfoFeatureInfo[] featureInfos;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目的类型:1表示cbu类目,2表示gallop类目 *
* 参数示例:<pre>1</pre>
* 此参数必填
@return 类目的类型:1表示cbu类目,2表示gallop类目
*/
private String categoryType;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目是否支持加工定制 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 类目是否支持加工定制
*/
private Boolean isSupportProcessing;
}

View File

@@ -0,0 +1,59 @@
package org.springblade.modules.alibaba.product.param;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class AlibabaCategoryCategoryInfoFeatureInfo {
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置名称 *
* 参数示例:<pre>name</pre>
* 此参数必填
@return 名称
*/
private String key;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置值 *
* 参数示例:<pre>jiagong</pre>
* 此参数必填
@return 值
*/
private String value;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置状态 *
* 参数示例:<pre>0</pre>
* 此参数必填
@return 状态
*/
private Integer status;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置是否继承到子元素上 *
* 参数示例:<pre>true</pre>
* 此参数必填
@return 是否继承到子元素上
*/
private Boolean hierarchy;
}

View File

@@ -0,0 +1,20 @@
package org.springblade.modules.alibaba.product.param;
import lombok.Getter;
import lombok.Setter;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
@Getter
@Setter
public class AlibabaCategoryGetParam extends AbstractAPIRequest<AlibabaCategoryGetResult> {
public AlibabaCategoryGetParam() {
super();
oceanApiId = new APIId("com.alibaba.product", "alibaba.category.get", 1);
}
private Long categoryID;
}

View File

@@ -0,0 +1,20 @@
package org.springblade.modules.alibaba.product.param;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@Accessors(chain = true)
public class AlibabaCategoryGetResult implements Serializable {
private String succes;
private AlibabaCategoryCategoryInfo[] categoryInfo;
private String errorMsg;
private String errorCode;
}

View File

@@ -0,0 +1,46 @@
package org.springblade.modules.alibaba.product.param;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class AlibabaChildCategoryInfo {
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置子类目ID *
* 参数示例:<pre></pre>
* 此参数必填
@return 子类目ID
*/
private Long id;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置子类目名称 *
* 参数示例:<pre></pre>
* 此参数必填
@return 子类目名称
*/
private String name;
/**
* -- GETTER --
*
*
* -- SETTER --
* 设置类目的类型:1表示cbu类目,2表示gallop类目 *
* 参数示例:<pre>1</pre>
* 此参数必填
@return 类目的类型:1表示cbu类目,2表示gallop类目
*/
private String categoryType;
}

View File

@@ -0,0 +1,50 @@
package org.springblade.modules.alibaba.trade.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaAccountPeriodListBuyerViewParam extends AbstractAPIRequest<AlibabaAccountPeriodListBuyerViewResult> {
public AlibabaAccountPeriodListBuyerViewParam() {
super();
oceanApiId = new APIId("com.alibaba.trade", "alibaba.accountPeriod.list.buyerView", 1);
}
private Long pageIndex;
/**
* @return 页码
*/
public Long getPageIndex() {
return pageIndex;
}
/**
* 设置页码 *
* 参数示例:<pre>1</pre>
* 此参数必填
*/
public void setPageIndex(Long pageIndex) {
this.pageIndex = pageIndex;
}
private String sellerLoginId;
/**
* @return 卖家ID,不填则查询全部
*/
public String getSellerLoginId() {
return sellerLoginId;
}
/**
* 设置卖家ID,不填则查询全部 *
* 参数示例:<pre>alitestforisv01</pre>
* 此参数必填
*/
public void setSellerLoginId(String sellerLoginId) {
this.sellerLoginId = sellerLoginId;
}
}

View File

@@ -0,0 +1,81 @@
package org.springblade.modules.alibaba.trade.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaAccountPeriodListBuyerViewResult {
private Boolean success;
/**
* @return 是否成功
*/
public Boolean getSuccess() {
return success;
}
/**
* 设置是否成功 *
* 此参数必填
*/
public void setSuccess(Boolean success) {
this.success = success;
}
private String errorCode;
/**
* @return 错误码
*/
public String getErrorCode() {
return errorCode;
}
/**
* 设置错误码 *
* 此参数必填
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
private String errorMsg;
/**
* @return 错误信息
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* 设置错误信息 *
* 此参数必填
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
private AccountPeriodListBuyerViewResult resultList;
/**
* @return 返回数据结果
*/
public AccountPeriodListBuyerViewResult getResultList() {
return resultList;
}
/**
* 设置返回数据结果 *
* 此参数必填
*/
public void setResultList(AccountPeriodListBuyerViewResult resultList) {
this.resultList = resultList;
}
}

View File

@@ -0,0 +1,193 @@
package org.springblade.modules.alibaba.trade.param;
import org.springblade.modules.alibaba.ocean.rawsdk.client.APIId;
import org.springblade.modules.alibaba.ocean.rawsdk.common.AbstractAPIRequest;
public class AlibabaCreateOrderPreviewParam extends AbstractAPIRequest<AlibabaCreateOrderPreviewResult> {
public AlibabaCreateOrderPreviewParam() {
super();
oceanApiId = new APIId("com.alibaba.trade", "alibaba.createOrder.preview", 1);
}
private AlibabaTradeFastAddress addressParam;
/**
* @return 收货地址信息
*/
public AlibabaTradeFastAddress getAddressParam() {
return addressParam;
}
/**
* 设置收货地址信息 *
* 参数示例:<pre>{"address":"网商路699号","phone": "0517-88990077","mobile": "15251667788","fullName": "张三","postCode": "000000","areaText": "滨江区","townText": "","cityText": "杭州市","provinceText": "浙江省"}</pre>
* 此参数必填
*/
public void setAddressParam(AlibabaTradeFastAddress addressParam) {
this.addressParam = addressParam;
}
private AlibabaTradeFastCargo[] cargoParamList;
/**
* @return 商品信息
*/
public AlibabaTradeFastCargo[] getCargoParamList() {
return cargoParamList;
}
/**
* 设置商品信息 *
* 参数示例:<pre>[{"specId": "b266e0726506185beaf205cbae88530d","quantity": 5,"offerId": 554456348334},{"specId": "2ba3d63866a71fbae83909d9b4814f01","quantity": 6,"offerId": 554456348334}]</pre>
* 此参数必填
*/
public void setCargoParamList(AlibabaTradeFastCargo[] cargoParamList) {
this.cargoParamList = cargoParamList;
}
private AlibabaTradeFastInvoice invoiceParam;
/**
* @return 发票信息
*/
public AlibabaTradeFastInvoice getInvoiceParam() {
return invoiceParam;
}
/**
* 设置发票信息 *
* 参数示例:<pre>{"invoiceType":0,"cityText": "杭州市","provinceText": "浙江省","address": "网商路699号","phone": "0517-88990077","mobile": "15251667788","fullName": "张五","postCode": "000000","areaText": "滨江区","companyName": "测试公司","taxpayerIdentifier": "123455"}</pre>
* 此参数必填
*/
public void setInvoiceParam(AlibabaTradeFastInvoice invoiceParam) {
this.invoiceParam = invoiceParam;
}
private String flow;
/**
* @return general(创建大市场订单),fenxiao(创建分销订单),saleproxy流程将校验分销关系,paired(火拼下单),boutiquefenxiao(精选货源分销价下单,采购量1个使用包邮), boutiquepifa(精选货源批发价下单,采购量大于2使用). flow如果为空的情况,会比价择优预览,并返回最优下单方式flow
*/
public String getFlow() {
return flow;
}
/**
* 设置general(创建大市场订单),fenxiao(创建分销订单),saleproxy流程将校验分销关系,paired(火拼下单),boutiquefenxiao(精选货源分销价下单,采购量1个使用包邮), boutiquepifa(精选货源批发价下单,采购量大于2使用). flow如果为空的情况,会比价择优预览,并返回最优下单方式flow *
* 参数示例:<pre>general</pre>
* 此参数必填
*/
public void setFlow(String flow) {
this.flow = flow;
}
private String instanceId;
/**
* @return 批发团instanceId,从alibaba.pifatuan.product.list获取
*/
public String getInstanceId() {
return instanceId;
}
/**
* 设置批发团instanceId,从alibaba.pifatuan.product.list获取 *
* 参数示例:<pre>4063139_1662080400000</pre>
* 此参数必填
*/
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
private AlibabaTradeFastCreateOrderEncryptOutOrderInfo encryptOutOrderInfo;
/**
* @return 下游加密订单信息,用于下游打单使用
*/
public AlibabaTradeFastCreateOrderEncryptOutOrderInfo getEncryptOutOrderInfo() {
return encryptOutOrderInfo;
}
/**
* 设置下游加密订单信息,用于下游打单使用 *
* 参数示例:<pre>{}</pre>
* 此参数必填
*/
public void setEncryptOutOrderInfo(AlibabaTradeFastCreateOrderEncryptOutOrderInfo encryptOutOrderInfo) {
this.encryptOutOrderInfo = encryptOutOrderInfo;
}
private String proxySettleRecordId;
/**
* @return 分账普通下单采购单id,交易flow为“proxy”
*/
public String getProxySettleRecordId() {
return proxySettleRecordId;
}
/**
* 设置分账普通下单采购单id,交易flow为“proxy” *
* 参数示例:<pre>4051300002</pre>
* 此参数必填
*/
public void setProxySettleRecordId(String proxySettleRecordId) {
this.proxySettleRecordId = proxySettleRecordId;
}
private String inventoryMode;
/**
* @return 库存模式,jit(jit模式)或 cang(仓发模式),目前只提供给AE使用
*/
public String getInventoryMode() {
return inventoryMode;
}
/**
* 设置库存模式,jit(jit模式)或 cang(仓发模式),目前只提供给AE使用 *
* 参数示例:<pre>jit</pre>
* 此参数必填
*/
public void setInventoryMode(String inventoryMode) {
this.inventoryMode = inventoryMode;
}
private String outOrderId;
/**
* @return 外部订单号
*/
public String getOutOrderId() {
return outOrderId;
}
/**
* 设置外部订单号 *
* 参数示例:<pre>988129883123</pre>
* 此参数必填
*/
public void setOutOrderId(String outOrderId) {
this.outOrderId = outOrderId;
}
private String pickupService;
/**
* @return 上门揽收,目前AE供货可用,其他场景暂不开通
*/
public String getPickupService() {
return pickupService;
}
/**
* 设置上门揽收,目前AE供货可用,其他场景暂不开通 *
* 参数示例:<pre>y或n,默认为n</pre>
* 此参数必填
*/
public void setPickupService(String pickupService) {
this.pickupService = pickupService;
}
}

View File

@@ -0,0 +1,135 @@
package org.springblade.modules.alibaba.trade.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaCreateOrderPreviewResult {
private AlibabaCreateOrderPreviewResultModel[] orderPreviewResuslt;
/**
* @return 订单预览结果,过自动拆单会返回多个记录
*/
public AlibabaCreateOrderPreviewResultModel[] getOrderPreviewResuslt() {
return orderPreviewResuslt;
}
/**
* 设置订单预览结果,过自动拆单会返回多个记录 *
* 此参数必填
*/
public void setOrderPreviewResuslt(AlibabaCreateOrderPreviewResultModel[] orderPreviewResuslt) {
this.orderPreviewResuslt = orderPreviewResuslt;
}
private Boolean success;
/**
* @return 是否成功
*/
public Boolean getSuccess() {
return success;
}
/**
* 设置是否成功 *
* 此参数必填
*/
public void setSuccess(Boolean success) {
this.success = success;
}
private String errorCode;
/**
* @return 错误码
*/
public String getErrorCode() {
return errorCode;
}
/**
* 设置错误码 *
* 此参数必填
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
private String errorMsg;
/**
* @return 错误信息
*/
public String getErrorMsg() {
return errorMsg;
}
/**
* 设置错误信息 *
* 此参数必填
*/
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
private long[] postFeeByDescOfferList;
/**
* @return 运费说明的商品列表
*/
public long[] getPostFeeByDescOfferList() {
return postFeeByDescOfferList;
}
/**
* 设置运费说明的商品列表 *
* 此参数必填
*/
public void setPostFeeByDescOfferList(long[] postFeeByDescOfferList) {
this.postFeeByDescOfferList = postFeeByDescOfferList;
}
private long[] consignOfferList;
/**
* @return 代销商品列表
*/
public long[] getConsignOfferList() {
return consignOfferList;
}
/**
* 设置代销商品列表 *
* 此参数必填
*/
public void setConsignOfferList(long[] consignOfferList) {
this.consignOfferList = consignOfferList;
}
private long[] unsupportedCrossBorderPayOfferList;
/**
* @return 不支持跨境宝支付的商品列表
*/
public long[] getUnsupportedCrossBorderPayOfferList() {
return unsupportedCrossBorderPayOfferList;
}
/**
* 设置不支持跨境宝支付的商品列表 *
* 此参数必填
*/
public void setUnsupportedCrossBorderPayOfferList(long[] unsupportedCrossBorderPayOfferList) {
this.unsupportedCrossBorderPayOfferList = unsupportedCrossBorderPayOfferList;
}
}

View File

@@ -0,0 +1,153 @@
package org.springblade.modules.alibaba.trade.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaCreateOrderPreviewResultCargoModel {
private Double amount;
/**
* @return 产品总金额
*/
public Double getAmount() {
return amount;
}
/**
* 设置产品总金额 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setAmount(Double amount) {
this.amount = amount;
}
private String message;
/**
* @return 返回信息
*/
public String getMessage() {
return message;
}
/**
* 设置返回信息 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setMessage(String message) {
this.message = message;
}
private Double finalUnitPrice;
/**
* @return 最终单价
*/
public Double getFinalUnitPrice() {
return finalUnitPrice;
}
/**
* 设置最终单价 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setFinalUnitPrice(Double finalUnitPrice) {
this.finalUnitPrice = finalUnitPrice;
}
private String specId;
/**
* @return 规格ID,offer内唯一
*/
public String getSpecId() {
return specId;
}
/**
* 设置规格ID,offer内唯一 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSpecId(String specId) {
this.specId = specId;
}
private Long skuId;
/**
* @return 规格ID,全局唯一
*/
public Long getSkuId() {
return skuId;
}
/**
* 设置规格ID,全局唯一 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSkuId(Long skuId) {
this.skuId = skuId;
}
private String resultCode;
/**
* @return 返回码
*/
public String getResultCode() {
return resultCode;
}
/**
* 设置返回码 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
private Long offerId;
/**
* @return 商品ID
*/
public Long getOfferId() {
return offerId;
}
/**
* 设置商品ID *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setOfferId(Long offerId) {
this.offerId = offerId;
}
private AlibabaTradePromotionModel[] cargoPromotionList;
/**
* @return 商品优惠列表
*/
public AlibabaTradePromotionModel[] getCargoPromotionList() {
return cargoPromotionList;
}
/**
* 设置商品优惠列表 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setCargoPromotionList(AlibabaTradePromotionModel[] cargoPromotionList) {
this.cargoPromotionList = cargoPromotionList;
}
}

View File

@@ -0,0 +1,297 @@
package org.springblade.modules.alibaba.trade.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaCreateOrderPreviewResultModel {
private Long discountFee;
/**
* @return 计算完货品金额后再次进行的减免金额. 单位: 分
*/
public Long getDiscountFee() {
return discountFee;
}
/**
* 设置计算完货品金额后再次进行的减免金额. 单位: 分 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setDiscountFee(Long discountFee) {
this.discountFee = discountFee;
}
private String[] tradeModeNameList;
/**
* @return 当前交易可以支持的交易方式列表。某些场景的创建订单接口需要使用。
*/
public String[] getTradeModeNameList() {
return tradeModeNameList;
}
/**
* 设置当前交易可以支持的交易方式列表。某些场景的创建订单接口需要使用。 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setTradeModeNameList(String[] tradeModeNameList) {
this.tradeModeNameList = tradeModeNameList;
}
private Boolean status;
/**
* @return 状态
*/
public Boolean getStatus() {
return status;
}
/**
* 设置状态 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setStatus(Boolean status) {
this.status = status;
}
private Boolean taoSampleSinglePromotion;
/**
* @return 是否有淘货源单品优惠 false:有单品优惠 true:没有单品优惠
*/
public Boolean getTaoSampleSinglePromotion() {
return taoSampleSinglePromotion;
}
/**
* 设置是否有淘货源单品优惠 false:有单品优惠 true:没有单品优惠 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setTaoSampleSinglePromotion(Boolean taoSampleSinglePromotion) {
this.taoSampleSinglePromotion = taoSampleSinglePromotion;
}
private Long sumPayment;
/**
* @return 订单总费用, 单位为分.
*/
public Long getSumPayment() {
return sumPayment;
}
/**
* 设置订单总费用, 单位为分. *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSumPayment(Long sumPayment) {
this.sumPayment = sumPayment;
}
private String message;
/**
* @return 返回信息
*/
public String getMessage() {
return message;
}
/**
* 设置返回信息 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setMessage(String message) {
this.message = message;
}
private Long sumCarriage;
/**
* @return 总运费信息, 单位为分.
*/
public Long getSumCarriage() {
return sumCarriage;
}
/**
* 设置总运费信息, 单位为分. *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSumCarriage(Long sumCarriage) {
this.sumCarriage = sumCarriage;
}
private String resultCode;
/**
* @return 返回码
*/
public String getResultCode() {
return resultCode;
}
/**
* 设置返回码 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setResultCode(String resultCode) {
this.resultCode = resultCode;
}
private Long sumPaymentNoCarriage;
/**
* @return 不包含运费的货品总费用, 单位为分.
*/
public Long getSumPaymentNoCarriage() {
return sumPaymentNoCarriage;
}
/**
* 设置不包含运费的货品总费用, 单位为分. *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setSumPaymentNoCarriage(Long sumPaymentNoCarriage) {
this.sumPaymentNoCarriage = sumPaymentNoCarriage;
}
private Long additionalFee;
/**
* @return 附加费,单位,分
*/
public Long getAdditionalFee() {
return additionalFee;
}
/**
* 设置附加费,单位,分 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setAdditionalFee(Long additionalFee) {
this.additionalFee = additionalFee;
}
private String flowFlag;
/**
* @return 订单下单流程
*/
public String getFlowFlag() {
return flowFlag;
}
/**
* 设置订单下单流程 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setFlowFlag(String flowFlag) {
this.flowFlag = flowFlag;
}
private AlibabaCreateOrderPreviewResultCargoModel[] cargoList;
/**
* @return 规格信息
*/
public AlibabaCreateOrderPreviewResultCargoModel[] getCargoList() {
return cargoList;
}
/**
* 设置规格信息 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setCargoList(AlibabaCreateOrderPreviewResultCargoModel[] cargoList) {
this.cargoList = cargoList;
}
private AlibabaTradePromotionModel[] shopPromotionList;
/**
* @return 可用店铺级别优惠列表
*/
public AlibabaTradePromotionModel[] getShopPromotionList() {
return shopPromotionList;
}
/**
* 设置可用店铺级别优惠列表 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setShopPromotionList(AlibabaTradePromotionModel[] shopPromotionList) {
this.shopPromotionList = shopPromotionList;
}
private TradeModelExtensionList[] tradeModelList;
/**
* @return 当前交易可以支持的交易方式列表。结果可以参照1688下单预览页面的交易方式。
*/
public TradeModelExtensionList[] getTradeModelList() {
return tradeModelList;
}
/**
* 设置当前交易可以支持的交易方式列表。结果可以参照1688下单预览页面的交易方式。 *
* 参数示例:<pre></pre>
* 此参数必填
*/
public void setTradeModelList(TradeModelExtensionList[] tradeModelList) {
this.tradeModelList = tradeModelList;
}
private ComAlibabaOceanOpenplatformBizTradeResultPayChannel[] payChannelList;
/**
* @return 当前交易支持的支付渠道,name:渠道名字,amountLimit:可用额度金额,单位为分 ,null表示没有额度概念
*/
public ComAlibabaOceanOpenplatformBizTradeResultPayChannel[] getPayChannelList() {
return payChannelList;
}
/**
* 设置当前交易支持的支付渠道,name:渠道名字,amountLimit:可用额度金额,单位为分 ,null表示没有额度概念 *
* 参数示例:<pre>[{"name":"alipay"}]</pre>
* 此参数必填
*/
public void setPayChannelList(ComAlibabaOceanOpenplatformBizTradeResultPayChannel[] payChannelList) {
this.payChannelList = payChannelList;
}
private PayChaneelList[] payChannelInfos;
/**
* @return 当前交易支持的支付渠道信息
*/
public PayChaneelList[] getPayChannelInfos() {
return payChannelInfos;
}
/**
* 设置当前交易支持的支付渠道信息 *
* 参数示例:<pre>[]</pre>
* 此参数必填
*/
public void setPayChannelInfos(PayChaneelList[] payChannelInfos) {
this.payChannelInfos = payChannelInfos;
}
}

View File

@@ -0,0 +1,117 @@
package org.springblade.modules.alibaba.trade.param;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
public class AlibabaCreditOrderForDetail {
private Long payAmount;
/**
* @return 订单金额
*/
public Long getPayAmount() {
return payAmount;
}
/**
* 设置订单金额 *
* 参数示例:<pre>10</pre>
* 此参数必填
*/
public void setPayAmount(Long payAmount) {
this.payAmount = payAmount;
}
private String createTime;
/**
* @return 支付时间
*/
public String getCreateTime() {
return createTime;
}
/**
* 设置支付时间 *
* 参数示例:<pre>2018-01-01 00:00:00</pre>
* 此参数必填
*/
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
private String status;
/**
* @return 状态
*/
public String getStatus() {
return status;
}
/**
* 设置状态 *
* 参数示例:<pre>END</pre>
* 此参数必填
*/
public void setStatus(String status) {
this.status = status;
}
private String gracePeriodEndTime;
/**
* @return 最晚还款时间
*/
public String getGracePeriodEndTime() {
return gracePeriodEndTime;
}
/**
* 设置最晚还款时间 *
* 参数示例:<pre>2018-01-01 00:00:00</pre>
* 此参数必填
*/
public void setGracePeriodEndTime(String gracePeriodEndTime) {
this.gracePeriodEndTime = gracePeriodEndTime;
}
private String statusStr;
/**
* @return 状态描述
*/
public String getStatusStr() {
return statusStr;
}
/**
* 设置状态描述 *
* 参数示例:<pre>已完结</pre>
* 此参数必填
*/
public void setStatusStr(String statusStr) {
this.statusStr = statusStr;
}
private Long restRepayAmount;
/**
* @return 应还金额
*/
public Long getRestRepayAmount() {
return restRepayAmount;
}
/**
* 设置应还金额 *
* 参数示例:<pre>11</pre>
* 此参数必填
*/
public void setRestRepayAmount(Long restRepayAmount) {
this.restRepayAmount = restRepayAmount;
}
}