Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
e8a13bd5
Commit
e8a13bd5
authored
Feb 07, 2021
by
ysongq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增平台-商品管理,需求管理,配置管理;买方-需求管理
parent
df27bbc5
Changes
108
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
108 changed files
with
5020 additions
and
1015 deletions
+5020
-1015
update.sql
database/qys/update.sql
+14
-1
wj-mkt-project.sql
database/qys/wj-mkt-project.sql
+62
-0
SendDataReq.java
...eway/src/main/java/com/jz/dm/models/resp/SendDataReq.java
+0
-1
ApiQueryService.java
.../main/java/com/jz/dm/service/request/ApiQueryService.java
+2
-2
ResultMsg.java
...ommon/src/main/java/com/jz/common/constant/ResultMsg.java
+2
-0
DataGoods.java
...-common/src/main/java/com/jz/common/entity/DataGoods.java
+41
-3
DataGoodsByRoleEnum.java
...rc/main/java/com/jz/common/enums/DataGoodsByRoleEnum.java
+48
-0
DataStatusEnum.java
...mon/src/main/java/com/jz/common/enums/DataStatusEnum.java
+50
-0
OrderStatusEnum.java
...on/src/main/java/com/jz/common/enums/OrderStatusEnum.java
+49
-0
YNEnum.java
jz-dm-common/src/main/java/com/jz/common/enums/YNEnum.java
+53
-0
CategoryByIfSceneEnum.java
.../java/com/jz/common/enums/auth/CategoryByIfSceneEnum.java
+48
-0
CommonUtils.java
...common/src/main/java/com/jz/common/utils/CommonUtils.java
+105
-0
CurrentUserUtil.java
...on/src/main/java/com/jz/common/utils/CurrentUserUtil.java
+33
-0
DateUtils.java
...m-common/src/main/java/com/jz/common/utils/DateUtils.java
+14
-2
ReflectAssistUtils.java
...src/main/java/com/jz/common/utils/ReflectAssistUtils.java
+55
-0
TestController.java
...java/com/jz/dm/mall/moduls/controller/TestController.java
+5
-2
DemandController.java
.../jz/dm/mall/moduls/controller/goods/DemandController.java
+66
-0
DemandAddReq.java
...ll/moduls/controller/goods/bean/request/DemandAddReq.java
+28
-0
DemandListReq.java
...l/moduls/controller/goods/bean/request/DemandListReq.java
+25
-0
Demand.java
...ll/src/main/java/com/jz/dm/mall/moduls/entity/Demand.java
+73
-0
DemandDao.java
...src/main/java/com/jz/dm/mall/moduls/mapper/DemandDao.java
+15
-0
DemandService.java
...ain/java/com/jz/dm/mall/moduls/service/DemandService.java
+37
-0
DemandServiceImpl.java
...com/jz/dm/mall/moduls/service/impl/DemandServiceImpl.java
+108
-0
OrderServiceImpl.java
.../com/jz/dm/mall/moduls/service/impl/OrderServiceImpl.java
+0
-2
DemandDao.xml
jz-dm-mall/src/main/resources/mapper/goods/DemandDao.xml
+175
-0
BannerController.java
.../jz/manage/moduls/controller/config/BannerController.java
+82
-0
MenuConfigController.java
...manage/moduls/controller/config/MenuConfigController.java
+77
-0
BannerAddAndEditReq.java
...oduls/controller/config/bean/req/BannerAddAndEditReq.java
+57
-0
BannerConfigListReq.java
...oduls/controller/config/bean/req/BannerConfigListReq.java
+38
-0
CategoryConfigEditReq.java
...uls/controller/config/bean/req/CategoryConfigEditReq.java
+31
-0
CategoryConfigReq.java
.../moduls/controller/config/bean/req/CategoryConfigReq.java
+22
-0
MenuConfigReq.java
...nage/moduls/controller/config/bean/req/MenuConfigReq.java
+26
-0
DepartmentAssetsDto.java
.../controller/finance/platForm/dto/DepartmentAssetsDto.java
+31
-0
DataGoodsApiController.java
...anage/moduls/controller/goods/DataGoodsApiController.java
+28
-5
DataGoodsCategoryController.java
.../moduls/controller/goods/DataGoodsCategoryController.java
+86
-11
DataGoodsController.java
...z/manage/moduls/controller/goods/DataGoodsController.java
+120
-21
DemandController.java
...m/jz/manage/moduls/controller/goods/DemandController.java
+38
-2
ApiInterfaceDto.java
...age/moduls/controller/goods/bean/dto/ApiInterfaceDto.java
+111
-0
CategoryAndSceneDto.java
...moduls/controller/goods/bean/dto/CategoryAndSceneDto.java
+30
-0
DataAndOrderDto.java
...age/moduls/controller/goods/bean/dto/DataAndOrderDto.java
+29
-0
DataGoodsListDto.java
...ge/moduls/controller/goods/bean/dto/DataGoodsListDto.java
+3
-1
DepartmentDataGoodsDto.java
...uls/controller/goods/bean/dto/DepartmentDataGoodsDto.java
+47
-0
AddCateGoryReq.java
.../moduls/controller/goods/bean/request/AddCateGoryReq.java
+32
-0
ApiInterfaceDetailReq.java
.../controller/goods/bean/request/ApiInterfaceDetailReq.java
+26
-0
AuthMallUserApiReq.java
...uls/controller/goods/bean/request/AuthMallUserApiReq.java
+57
-0
AuthRenewUpdateReq.java
...uls/controller/goods/bean/request/AuthRenewUpdateReq.java
+32
-0
CategoryAndSceneReq.java
...ls/controller/goods/bean/request/CategoryAndSceneReq.java
+26
-0
CategoryDetailReq.java
...duls/controller/goods/bean/request/CategoryDetailReq.java
+24
-0
DataApiUpReq.java
...ge/moduls/controller/goods/bean/request/DataApiUpReq.java
+48
-86
DataGoodsByCategoryReq.java
...controller/goods/bean/request/DataGoodsByCategoryReq.java
+21
-0
DataGoodsByRoleReq.java
...uls/controller/goods/bean/request/DataGoodsByRoleReq.java
+33
-0
DataGoodsListRequest.java
...s/controller/goods/bean/request/DataGoodsListRequest.java
+7
-0
DemandAuditReq.java
.../moduls/controller/goods/bean/request/DemandAuditReq.java
+30
-0
DemandListReq.java
...e/moduls/controller/goods/bean/request/DemandListReq.java
+28
-0
DepartmentByRenewReq.java
...s/controller/goods/bean/request/DepartmentByRenewReq.java
+56
-0
DepartmentDataGoodsReq.java
...controller/goods/bean/request/DepartmentDataGoodsReq.java
+24
-0
DepartmentGoodsReq.java
...uls/controller/goods/bean/request/DepartmentGoodsReq.java
+27
-0
GoodsByAuthorizationReq.java
...ontroller/goods/bean/request/GoodsByAuthorizationReq.java
+46
-0
SendDataReq.java
...age/moduls/controller/goods/bean/request/SendDataReq.java
+39
-0
OrderAndAuthorizedDto.java
...duls/controller/order/bean/dto/OrderAndAuthorizedDto.java
+24
-0
Banner.java
...age/src/main/java/com/jz/manage/moduls/entity/Banner.java
+77
-0
DataGoods.java
.../src/main/java/com/jz/manage/moduls/entity/DataGoods.java
+47
-211
DataGoodsCategory.java
...n/java/com/jz/manage/moduls/entity/DataGoodsCategory.java
+39
-1
Demand.java
...age/src/main/java/com/jz/manage/moduls/entity/Demand.java
+9
-147
FinanceTradeFlow.java
...in/java/com/jz/manage/moduls/entity/FinanceTradeFlow.java
+2
-95
MenuConfig.java
...src/main/java/com/jz/manage/moduls/entity/MenuConfig.java
+49
-0
Order.java
...nage/src/main/java/com/jz/manage/moduls/entity/Order.java
+5
-185
OrderPayment.java
...c/main/java/com/jz/manage/moduls/entity/OrderPayment.java
+4
-88
RoleGoods.java
.../src/main/java/com/jz/manage/moduls/entity/RoleGoods.java
+37
-0
SceneCategory.java
.../main/java/com/jz/manage/moduls/entity/SceneCategory.java
+78
-0
SceneGoodsCategory.java
.../java/com/jz/manage/moduls/entity/SceneGoodsCategory.java
+37
-0
BannerDao.java
.../src/main/java/com/jz/manage/moduls/mapper/BannerDao.java
+24
-0
DataGoodsApiDao.java
...ain/java/com/jz/manage/moduls/mapper/DataGoodsApiDao.java
+5
-0
DataGoodsCategoryDao.java
...ava/com/jz/manage/moduls/mapper/DataGoodsCategoryDao.java
+15
-2
DataGoodsDao.java
...c/main/java/com/jz/manage/moduls/mapper/DataGoodsDao.java
+9
-8
DemandDao.java
.../src/main/java/com/jz/manage/moduls/mapper/DemandDao.java
+2
-1
DepartmentDao.java
.../main/java/com/jz/manage/moduls/mapper/DepartmentDao.java
+3
-1
MenuConfigDao.java
.../main/java/com/jz/manage/moduls/mapper/MenuConfigDao.java
+16
-0
OrderDao.java
...e/src/main/java/com/jz/manage/moduls/mapper/OrderDao.java
+17
-0
RoleGoodsDao.java
...c/main/java/com/jz/manage/moduls/mapper/RoleGoodsDao.java
+22
-0
SceneCategoryDao.java
...in/java/com/jz/manage/moduls/mapper/SceneCategoryDao.java
+13
-0
SceneGoodsCategoryDao.java
...va/com/jz/manage/moduls/mapper/SceneGoodsCategoryDao.java
+13
-0
BannerServer.java
.../main/java/com/jz/manage/moduls/service/BannerServer.java
+50
-0
DataGoodsApiService.java
...ava/com/jz/manage/moduls/service/DataGoodsApiService.java
+12
-0
DataGoodsCategoryService.java
...om/jz/manage/moduls/service/DataGoodsCategoryService.java
+47
-1
DataGoodsService.java
...n/java/com/jz/manage/moduls/service/DataGoodsService.java
+65
-4
DemandService.java
...main/java/com/jz/manage/moduls/service/DemandService.java
+25
-0
MenuConfigServer.java
...n/java/com/jz/manage/moduls/service/MenuConfigServer.java
+44
-0
RoleGoodsService.java
...n/java/com/jz/manage/moduls/service/RoleGoodsService.java
+10
-0
SceneCategoryService.java
...va/com/jz/manage/moduls/service/SceneCategoryService.java
+10
-0
BannerServerImpl.java
...a/com/jz/manage/moduls/service/impl/BannerServerImpl.java
+156
-0
DataGoodsApiServiceImpl.java
...z/manage/moduls/service/impl/DataGoodsApiServiceImpl.java
+202
-3
DataGoodsCategoryServiceImpl.java
...age/moduls/service/impl/DataGoodsCategoryServiceImpl.java
+232
-4
DataGoodsServiceImpl.java
...m/jz/manage/moduls/service/impl/DataGoodsServiceImpl.java
+627
-74
DemandServiceImpl.java
.../com/jz/manage/moduls/service/impl/DemandServiceImpl.java
+106
-0
FinanceCustomerBalanceServiceImpl.java
...oduls/service/impl/FinanceCustomerBalanceServiceImpl.java
+2
-1
MenuConfigServerImpl.java
...m/jz/manage/moduls/service/impl/MenuConfigServerImpl.java
+128
-0
PictureServiceImpl.java
...com/jz/manage/moduls/service/impl/PictureServiceImpl.java
+2
-0
RoleGoodsServiceImpl.java
...m/jz/manage/moduls/service/impl/RoleGoodsServiceImpl.java
+18
-0
SceneCategoryServiceImpl.java
.../manage/moduls/service/impl/SceneCategoryServiceImpl.java
+14
-0
application-test.yml
jz-dm-manage/src/main/resources/application-test.yml
+4
-2
BannerDao.xml
jz-dm-manage/src/main/resources/mapper/config/BannerDao.xml
+27
-0
DepartmentDao.xml
...nage/src/main/resources/mapper/customer/DepartmentDao.xml
+24
-10
DataGoodsApiDao.xml
...anage/src/main/resources/mapper/goods/DataGoodsApiDao.xml
+20
-0
DataGoodsCategoryDao.xml
.../src/main/resources/mapper/goods/DataGoodsCategoryDao.xml
+69
-6
DataGoodsDao.xml
...m-manage/src/main/resources/mapper/goods/DataGoodsDao.xml
+8
-32
RoleGoodsDao.xml
...m-manage/src/main/resources/mapper/goods/RoleGoodsDao.xml
+17
-0
OrderDao.xml
jz-dm-manage/src/main/resources/mapper/order/OrderDao.xml
+34
-0
No files found.
database/qys/update.sql
View file @
e8a13bd5
...
...
@@ -6,3 +6,16 @@
alter
table
t_data_goods_api
add
target_url
varchar
(
128
)
DEFAULT
NULL
COMMENT
'目标地址'
;
alter
table
t_data_goods_api
add
api_desc
varchar
(
512
)
DEFAULT
NULL
COMMENT
'接口描述'
;
alter
table
t_platform_log
add
request_type
char
(
2
)
NOT
NULL
COMMENT
'请求状态:01成功,02失败'
;
alter
table
t_data_goods
add
goods_limited
datetime
DEFAULT
NULL
COMMENT
'商品有限期'
;
alter
table
t_data_goods
add
data_maximum
varchar
(
16
)
DEFAULT
NULL
COMMENT
'数据最大量'
;
alter
table
t_data_goods
add
max_pages
varchar
(
16
)
default
NULL
COMMENT
'最大页数'
;
alter
table
t_data_goods
add
data_size
varchar
(
16
)
default
NULL
COMMENT
'每页数据量'
;
alter
table
t_data_goods
add
scene_id
Bigint
(
20
)
default
NULL
COMMENT
'场景分类id'
;
alter
table
t_role_goods
add
del_flag
char
(
1
)
DEFAULT
'N'
COMMENT
'删除标识:Y是,N否'
;
alter
table
t_data_goods
add
`api_key`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'apikey'
;
alter
table
t_scene_goods_category
add
del_flag
char
(
1
)
DEFAULT
'N'
COMMENT
'删除标识:Y是,N否'
;
alter
table
t_data_goods_category
add
`category_picture`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'分类图片'
;
alter
table
t_data_goods_category
add
`category_location`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'图片位置'
;
alter
table
t_data_goods_category
add
category_desc
varchar
(
40
)
DEFAULT
NULL
COMMENT
'分类描述'
;
alter
table
t_banner
add
sort
Bigint
(
20
)
DEFAULT
NULL
COMMENT
'排序'
;
alter
table
t_banner
add
banner_url
varchar
(
128
)
DEFAULT
NULL
COMMENT
'广告链接'
;
\ No newline at end of file
database/qys/wj-mkt-project.sql
0 → 100644
View file @
e8a13bd5
#
商品角色表
DROP
TABLE
IF
EXISTS
`t_role_goods`
;
CREATE
TABLE
`t_role_goods`
(
`role_goods_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`role_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'角色id'
,
`goods_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'商品id'
,
PRIMARY
KEY
(
`role_goods_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
69
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
;
#
场景分类表
DROP
TABLE
IF
EXISTS
`t_scene_category`
;
CREATE
TABLE
`t_scene_category`
(
`scene_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`scene_name`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'场景分类名称'
,
`parent_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'父级id'
,
`if_child`
char
(
1
)
DEFAULT
'Y'
COMMENT
'是否为子节点:Y是,N否'
,
`cre_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`cre_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'创建人'
,
`upt_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`upt_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'更新人'
,
`del_flag`
char
(
1
)
DEFAULT
'N'
,
PRIMARY
KEY
(
`scene_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
69
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
;
#
场景商品分类表
DROP
TABLE
IF
EXISTS
`t_scene_goods_category`
;
CREATE
TABLE
`t_scene_goods_category`
(
`scene_category_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`scene_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'场景id'
,
`category_id`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'商品分类id'
,
PRIMARY
KEY
(
`scene_category_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
69
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
;
#
广告表
CREATE
TABLE
`t_banner`
(
`banner_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'广告id'
,
`banner_name`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'广告名称'
,
`banner_location`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'广告位置'
,
`banner_status`
char
(
2
)
DEFAULT
NULL
COMMENT
'广告状态 01已发布,02未发布'
,
`banner_desc`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'广告位描述'
,
`banner_start`
datetime
DEFAULT
NULL
COMMENT
'开始时间'
,
`banner_end`
datetime
DEFAULT
NULL
COMMENT
'结束时间'
,
`cre_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`cre_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'创建人'
,
`upt_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`upt_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'更新人'
,
`del_flag`
char
(
1
)
DEFAULT
'N'
COMMENT
'删除标识:Y是,N否'
,
PRIMARY
KEY
(
`banner_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'广告'
;
#
菜单配置
CREATE
TABLE
`t_menu_config`
(
`config_id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'菜单配置id'
,
`config_name`
varchar
(
64
)
DEFAULT
NULL
COMMENT
'菜单名称'
,
`config_url`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'菜单路径'
,
`cre_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`cre_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'创建人'
,
`upt_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`upt_person`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'更新人'
,
`del_flag`
char
(
1
)
DEFAULT
'N'
COMMENT
'删除标识:Y是,N否'
,
PRIMARY
KEY
(
`config_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'菜单配置'
;
jz-dm-apigateway/src/main/java/com/jz/dm/models/resp/SendDataReq.java
View file @
e8a13bd5
...
...
@@ -19,7 +19,6 @@ import java.io.Serializable;
**/
@Data
@ApiModel
@Builder
public
class
SendDataReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
value
=
"关键词"
)
...
...
jz-dm-apigateway/src/main/java/com/jz/dm/service/request/ApiQueryService.java
View file @
e8a13bd5
...
...
@@ -103,7 +103,7 @@ public class ApiQueryService extends ApiParamVerify implements OpenApiService {
apiAuth
=
authService
.
getAuthInfo
(
authCode
);
verifyAuth
(
apiAuth
);
//取出缓存数据
//
String redisReqParam = redisUtils.get(request.getApiKey());
//
String redisReqParam = redisUtils.get(request.getApiKey());
String
redisReqParam
=
null
;
if
(
StringUtils
.
isNotBlank
(
redisReqParam
))
{
//redis中存在
//解析出API制作成功时的参数配置
...
...
jz-dm-common/src/main/java/com/jz/common/constant/ResultMsg.java
View file @
e8a13bd5
...
...
@@ -23,6 +23,8 @@ public enum ResultMsg {
TRANS_FAIL
(
"转账失败"
),
RECHARGE_SUCCESS
(
"充值成功"
),
RECHARGE_FAIL
(
"充值失败"
),
AUDIT_SUCCESS
(
"审核成功"
),
AUDIT_FAIL
(
"审核失败"
),
/**
* 需审核
*/
...
...
jz-dm-common/src/main/java/com/jz/common/entity/DataGoods.java
View file @
e8a13bd5
package
com
.
jz
.
common
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
...
...
@@ -30,108 +32,144 @@ public class DataGoods implements Serializable {
/**
* 商品分类id(行业)
*/
@TableField
(
"category_id"
)
private
Long
categoryId
;
@TableField
(
"scene_id"
)
private
Long
sceneId
;
/**
* 数据商户id
*/
@TableField
(
"user_id"
)
private
Long
userId
;
@
ApiModelProperty
(
value
=
"唯一数据商品标识
"
)
@
TableField
(
"api_openid
"
)
private
String
apiOpenid
;
/**
* 数据商品名称
*/
@TableField
(
"data_name"
)
private
String
dataName
;
/**
* 数据类型:01api,02数据包
*/
@TableField
(
"data_type"
)
private
String
dataType
;
/**
* 数据商品标签
*/
@TableField
(
"data_label"
)
private
String
dataLabel
;
/**
* 数据商品图片
*/
@TableField
(
"data_picture"
)
private
String
dataPicture
;
/**
* 数据商品价格
*/
@TableField
(
"data_price"
)
private
BigDecimal
dataPrice
;
/**
* 优惠价格
*/
@TableField
(
"discount_price"
)
private
BigDecimal
discountPrice
;
/**
* 价格类型:01免费,02收费
*/
@TableField
(
"price_type"
)
private
String
priceType
;
/**
* 商品规格
*/
@TableField
(
"goods"
)
private
String
goodsStandards
;
/**
* 数据状态:01预售,02在售中,03下架,04上架
*/
@TableField
(
"data_status"
)
private
String
dataStatus
;
/**
* 审核状态:01待审核,02已审核,03未通过
*/
@TableField
(
"audit_status"
)
private
String
auditStatus
;
/**
* 清洗规则(脱敏校验)
*/
@TableField
(
"clean_rule"
)
private
String
cleanRule
;
/**
* 驳回原因
*/
@TableField
(
"reject_reason"
)
private
String
rejectReason
;
/**
* 审核人
*/
@TableField
(
"audit_person"
)
private
String
auditPerson
;
/**
* 审核时间
*/
@TableField
(
"audit_time"
)
private
Date
auditTime
;
/**
* 创建时间
*/
@TableField
(
"cre_time"
)
private
Date
creTime
;
/**
* 创建人
*/
@TableField
(
"cre_person"
)
private
String
crePerson
;
/**
* 更新时间
*/
@TableField
(
"upt_time"
)
private
Date
uptTime
;
/**
* 更新人
*/
@TableField
(
"upt_person"
)
private
String
uptPerson
;
/**
* 删除标识
*/
@TableField
(
"del_flag"
)
private
String
delFlag
;
/**
* 年(元)
*/
@TableField
(
"year_type"
)
private
BigDecimal
yearType
;
/**
* 季(元)
*/
@TableField
(
"season_type"
)
private
BigDecimal
seasonType
;
/**
* 月(元)
*/
@TableField
(
"month_type"
)
private
BigDecimal
monthType
;
/**
* 次(元)
*/
@TableField
(
"second_type"
)
private
BigDecimal
secondType
;
@TableField
(
"data_desc"
)
private
String
dataDesc
;
@TableField
(
"data_maximum"
)
private
Long
dataMaximum
;
@TableField
(
"max_pages"
)
private
Long
maxPages
;
@TableField
(
"data_size"
)
private
Long
dataSize
;
@TableField
(
"goods_limited"
)
private
Date
goodsLimited
;
}
\ No newline at end of file
jz-dm-common/src/main/java/com/jz/common/enums/DataGoodsByRoleEnum.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
enums
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/2
* @Version:
*/
public
enum
DataGoodsByRoleEnum
{
logOutUser
(
"logOutUser"
,
"1"
),
unverifiedUser
(
"unverifiedUser"
,
"2"
),
authenticatedUser
(
"authenticatedUser"
,
"3"
),
;
private
String
code
;
private
String
value
;
DataGoodsByRoleEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
DataGoodsByRoleEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
DataGoodsByRoleEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/enums/DataStatusEnum.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
enums
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/1
* @Version:
*/
public
enum
DataStatusEnum
{
YS
(
"YS"
,
"01"
),
ZS
(
"ZS"
,
"02"
),
XJ
(
"XJ"
,
"03"
),
SJ
(
"SJ"
,
"04"
),
;
private
String
code
;
private
String
value
;
DataStatusEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
DataStatusEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
DataStatusEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/enums/OrderStatusEnum.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
enums
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
public
enum
OrderStatusEnum
{
DZF
(
"DZF"
,
"01"
),
YZF
(
"YZF"
,
"02"
),
YQS
(
"YQS"
,
"03"
),
;
private
String
code
;
private
String
value
;
OrderStatusEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
OrderStatusEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
OrderStatusEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/enums/YNEnum.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
enums
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
public
enum
YNEnum
{
YES
(
"YES"
,
"Y"
),
NO
(
"NO"
,
"N"
),
;
private
String
code
;
private
String
value
;
private
YNEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
YNEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
YNEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/enums/auth/CategoryByIfSceneEnum.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
enums
.
auth
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
public
enum
CategoryByIfSceneEnum
{
YES
(
"场景分类"
,
"Y"
),
NO
(
"商品分类"
,
"N"
),
;
private
String
code
;
private
String
value
;
CategoryByIfSceneEnum
(
String
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
CategoryByIfSceneEnum
get
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
for
(
CategoryByIfSceneEnum
status
:
values
())
{
if
(
status
.
getCode
().
equalsIgnoreCase
(
code
))
{
return
status
;
}
}
return
null
;
}
}
jz-dm-common/src/main/java/com/jz/common/utils/CommonUtils.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
utils
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.CollectionUtils
;
public
class
CommonUtils
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
CommonUtils
.
class
);
/**
* UUID随机数
* @return
*/
public
static
String
generatePrimaryKeyId
()
{
String
id
=
UUID
.
randomUUID
().
toString
().
toUpperCase
().
replaceAll
(
"-"
,
""
);
return
id
;
}
/**
* @Title: generateTraceId
* @Description: TODO(生成traceId)
* @param @return 参数
* @return String 返回类型
* @throws
*/
public
static
String
generateTraceId
()
{
String
traceId
=
UUID
.
randomUUID
().
toString
().
toUpperCase
().
replaceAll
(
"-"
,
""
);
return
traceId
;
}
/**
* @Title: generateUuid
* @Description: TODO(生成uuid)
* @param @return 参数
* @return String 返回类型
* @throws
*/
public
static
String
generateUuid
()
{
String
uuid
=
UUID
.
randomUUID
().
toString
().
toUpperCase
().
replaceAll
(
"-"
,
""
);
return
uuid
;
}
/**
* @param <T>
* @Title: objArrangeTree
* @Description: TODO(将所有的资源整理成树形结构)
* @param @param dmpPermissions
* @param @return
* @param @throws Exception 参数
* @return List<DmpPermission> 返回类型
* @throws
*/
public
static
<
T
>
List
<
T
>
objArrangeTree
(
Object
parentCode
,
List
<
T
>
objs
,
String
parentCodeFiledName
,
String
codeFieldName
,
String
childrenFieldName
)
throws
Exception
{
Map
<
Object
,
List
<
T
>>
dictMap
=
objs
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->{
try
{
return
ReflectAssistUtils
.
getFieldValueByFieldName
(
parentCodeFiledName
,
x
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"树形结构封装异常【{}】"
,
e
);
}
return
""
;
}));
List
<
T
>
tList
=
dictMap
.
get
(
parentCode
);
// 获取顶层资源
if
(!
CollectionUtils
.
isEmpty
(
tList
))
{
for
(
T
t
:
tList
)
{
t
=
arrangeChildren
(
t
,
dictMap
,
codeFieldName
,
childrenFieldName
);
}
}
return
tList
;
}
/**
* @Title: arrangeChildren
* @Description: TODO(这里用一句话描述这个方法的作用)
* @param @param permission
* @param @param dictMap
* @param @return
* @param @throws Exception 参数
* @return DmpPermission 返回类型
* @throws
*/
private
static
<
T
>
T
arrangeChildren
(
T
t
,
Map
<
Object
,
List
<
T
>>
dictMap
,
String
codeFieldName
,
String
childrenFieldName
)
throws
Exception
{
Object
code
=
ReflectAssistUtils
.
getFieldValueByFieldName
(
codeFieldName
,
t
);
List
<
T
>
children
=
dictMap
.
get
(
code
);
if
(!
CollectionUtils
.
isEmpty
(
children
))
{
for
(
T
child
:
children
)
{
child
=
arrangeChildren
(
child
,
dictMap
,
codeFieldName
,
childrenFieldName
);
}
ReflectAssistUtils
.
setFieldValueByFieldName
(
childrenFieldName
,
t
,
children
);
}
return
t
;
}
}
jz-dm-common/src/main/java/com/jz/common/utils/CurrentUserUtil.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
utils
;
import
com.jz.common.bean.SysUserDto
;
import
com.jz.common.constant.RedisMessageConstant
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@Slf4j
@Component
public
class
CurrentUserUtil
{
@Resource
private
static
RedisTemplate
redisTemplate
;
public
static
SysUserDto
userDto
()
{
SysUserDto
userDto
=
(
SysUserDto
)
redisTemplate
.
opsForValue
().
get
(
"USER_"
+
RedisMessageConstant
.
SENDTYPE_LOGIN_SYS
);
return
userDto
;
}
}
jz-dm-common/src/main/java/com/jz/common/utils/DateUtils.java
View file @
e8a13bd5
...
...
@@ -405,7 +405,19 @@ public class DateUtils {
long
time
=
System
.
currentTimeMillis
();
return
(
int
)
(
time
/
1000
);
}
// public static void main(String[] args) {
// System.out.println(timestamp());
/**
* 计算有限期
* @param
* @return
*/
public
static
Date
getLimitedTime
(
int
time
)
{
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
DateUtils
.
getToday
());
cal
.
add
(
Calendar
.
YEAR
,
time
);
return
cal
.
getTime
();
}
// public static void main(String[] args) throws Exception {
// System.out.println(DateUtils.parseDate2String(getLimitedTime(999)));
// }
}
jz-dm-common/src/main/java/com/jz/common/utils/ReflectAssistUtils.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
common
.
utils
;
import
java.lang.reflect.Method
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @ClassName: ReflectAssistUtils
* @Description: TODO(反射辅助工具类)
* @author ybz
* @date 2021年1月26日
*
*/
public
class
ReflectAssistUtils
{
/**
* @Title: getFieldValueByFieldName
* @Description: TODO(根据属性名称获取属性值)
* @param @param fieldName
* @param @param cls
* @param @return
* @param @throws Exception 参数
* @return Field 返回类型
* @throws
*/
public
static
Object
getFieldValueByFieldName
(
String
fieldName
,
Object
obj
)
throws
Exception
{
Class
<?>
cls
=
obj
.
getClass
();
String
getMethodName
=
"get"
+
fieldName
.
substring
(
0
,
1
).
toUpperCase
()+
fieldName
.
substring
(
1
);
Method
getMethod
=
cls
.
getMethod
(
getMethodName
);
return
getMethod
.
invoke
(
obj
);
}
/**
* @param <T>
* @Title: setFieldValueByFieldName
* @Description: TODO(设置属性值)
* @param @param fieldName
* @param @param cls
* @param @param fieldVaule
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
public
static
<
T
>
void
setFieldValueByFieldName
(
String
fieldName
,
Object
obj
,
T
fieldVaule
)
throws
Exception
{
Class
<?>
cls
=
obj
.
getClass
();
String
setMethodName
=
"set"
+
fieldName
.
substring
(
0
,
1
).
toUpperCase
()+
fieldName
.
substring
(
1
);
Class
<?>
fieldValueClass
=
fieldVaule
.
getClass
();
if
(
fieldVaule
instanceof
ArrayList
)
{
fieldValueClass
=
List
.
class
;
}
Method
setMethod
=
cls
.
getMethod
(
setMethodName
,
fieldValueClass
);
setMethod
.
invoke
(
obj
,
fieldVaule
);
}
}
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/TestController.java
View file @
e8a13bd5
...
...
@@ -12,7 +12,10 @@ public class TestController {
@Autowired
private
TestService
testService
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"s"
);
}
// public static void main(String[] args) throws Exception {
// //
// String filename="C:\\Users\\fengyq\\Desktop\\万家\\表格\\新建 XLSX 工作表.xlsx";
// // 创建工作簿
...
...
@@ -46,7 +49,7 @@ public class TestController {
//
// // 关闭工作簿
// wk.close();
}
//
}
@RequestMapping
(
"/hello"
)
public
void
test
()
throws
Exception
{
...
...
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/goods/DemandController.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
goods
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.base.BaseController
;
import
com.jz.common.utils.Result
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandAddReq
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandListReq
;
import
com.jz.dm.mall.moduls.entity.Demand
;
import
com.jz.dm.mall.moduls.service.DemandService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* 用户需求定制申请(TDemand)表控制层
*
* @author Bellamy
* @since 2020-12-01 10:41:34
*/
@RestController
@RequestMapping
(
"demand"
)
@Api
(
tags
=
"买方--需求管理--controller"
)
public
class
DemandController
extends
BaseController
{
/**
* 服务对象
*/
@Autowired
private
DemandService
tDemandService
;
/**
* 条件查询需求列表
* @param req
* @return
*/
@PostMapping
(
"/findList"
)
@ApiOperation
(
value
=
"我的需求--条件查询需求"
)
public
Result
<
IPage
<
Demand
>>
findList
(
@RequestBody
DemandListReq
req
)
{
return
tDemandService
.
findList
(
req
);
}
/**
* 需求发布
* @param req
* @return
*/
@PostMapping
(
"/addDemand"
)
@ApiOperation
(
value
=
"我的需求--需求发布"
)
public
Result
addDemand
(
@RequestBody
@Valid
DemandAddReq
req
)
{
return
tDemandService
.
addDemand
(
req
);
}
/**
* 查询需求详情
* @param demandId
* @return
*/
@GetMapping
(
"/findByDemand"
)
@ApiOperation
(
value
=
"我的需求--查询需求详情"
)
public
Result
findByDemand
(
@RequestParam
(
name
=
"demandId"
)
Long
demandId
)
{
return
tDemandService
.
findByDemand
(
demandId
);
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/goods/bean/request/DemandAddReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.NonNull
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
DemandAddReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"需求名称"
)
@NotNull
(
message
=
"需求名称不能为空"
)
private
String
demandName
;
@ApiModelProperty
(
value
=
"需求描述"
)
@NotNull
(
message
=
"需求描述不能为空"
)
private
String
demandDescribe
;
}
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/goods/bean/request/DemandListReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
DemandListReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
"搜索条件"
)
private
String
search
;
@ApiModelProperty
(
"审核状态"
)
private
String
auditStatus
;
}
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/entity/Demand.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 用户需求定制申请(Demand)实体类
*
* @author Bellamy
* @since 2020-12-01 10:41:34
*/
@TableName
(
"t_demand"
)
@ApiModel
@Data
public
class
Demand
implements
Serializable
{
private
static
final
long
serialVersionUID
=
119352065467540895L
;
/**
* 需求id
*/
@TableId
(
value
=
"demand_id"
,
type
=
IdType
.
AUTO
)
private
Long
demandId
;
/**
* 用户id
*/
private
Long
customerId
;
/**
* 需求名称
*/
private
String
demandName
;
/**
* 需求描述
*/
private
String
demandDescribe
;
/**
* 审核状态:01待审核,02已审核,03未通过
*/
private
String
auditStatus
;
/**
* 审核人
*/
private
String
auditPerson
;
/**
* 审核时间
*/
private
Date
auditTime
;
/**
* 驳回原因
*/
private
String
rejectReason
;
/**
* 创建人
*/
private
String
crePerson
;
/**
* 创建时间
*/
private
Date
creTime
;
/**
* 删除标识:Y是,N否
*/
private
String
delFlag
;
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/mapper/DemandDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.dm.mall.moduls.entity.Demand
;
/**
* 用户需求定制申请(TDemand)表数据库访问层
*
* @author Bellamy
* @since 2020-12-01 10:41:34
*/
public
interface
DemandDao
extends
BaseMapper
<
Demand
>
{
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/DemandService.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandAddReq
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandListReq
;
import
com.jz.dm.mall.moduls.entity.Demand
;
/**
* 用户需求定制申请(TDemand)表服务接口
*
* @author Bellamy
* @since 2020-12-01 10:41:34
*/
public
interface
DemandService
{
/**
* 条件查询需求
* @param req
* @return
*/
Result
<
IPage
<
Demand
>>
findList
(
DemandListReq
req
);
/**
* 需求发布
* @param req
* @return
*/
Result
addDemand
(
DemandAddReq
req
);
/**
* 查询需求详情
* @param demandId
* @return
*/
Result
findByDemand
(
Long
demandId
);
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/impl/DemandServiceImpl.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.jz.common.bean.MallCustomerApiDto
;
import
com.jz.common.constant.RedisMessageConstant
;
import
com.jz.common.constant.ResultMsg
;
import
com.jz.common.enums.AuditStatusEnum
;
import
com.jz.common.enums.DelFlagEnum
;
import
com.jz.common.utils.DateUtils
;
import
com.jz.common.utils.Result
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandAddReq
;
import
com.jz.dm.mall.moduls.controller.goods.bean.request.DemandListReq
;
import
com.jz.dm.mall.moduls.entity.Demand
;
import
com.jz.dm.mall.moduls.mapper.DemandDao
;
import
com.jz.dm.mall.moduls.service.DemandService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
/**
* 用户需求定制申请(TDemand)表服务实现类
*
* @author Bellamy
* @since 2020-12-01 10:41:34
*/
@Service
(
"demandService"
)
public
class
DemandServiceImpl
implements
DemandService
{
@Autowired
private
DemandDao
tDemandDao
;
@Autowired
private
RedisTemplate
redisTemplate
;
/**
* 条件查询需求
*
* @param req
* @return
*/
@Override
public
Result
<
IPage
<
Demand
>>
findList
(
DemandListReq
req
)
{
IPage
<
Demand
>
page
=
new
Page
<>(
req
.
getPageNum
(),
req
.
getPageSize
());
QueryWrapper
<
Demand
>
queryWrapper
=
new
QueryWrapper
<>();
if
(
StringUtils
.
isNotEmpty
(
req
.
getSearch
()))
{
queryWrapper
.
and
(
s
->
s
.
like
(
"demand_name"
,
req
.
getSearch
())
.
or
().
like
(
"demand_describe"
,
req
.
getSearch
()));
}
if
(
StringUtils
.
isNotEmpty
(
req
.
getAuditStatus
()))
{
queryWrapper
.
eq
(
"audit_status"
,
req
.
getAuditStatus
());
}
queryWrapper
.
eq
(
"del_flag"
,
DelFlagEnum
.
NO
.
getValue
());
queryWrapper
.
orderByDesc
(
"cre_time"
);
IPage
<
Demand
>
list
=
tDemandDao
.
selectPage
(
page
,
queryWrapper
);
if
(
list
.
getTotal
()
!=
0
)
{
return
Result
.
of_success
(
list
);
}
return
Result
.
of_error
(
ResultMsg
.
DATA_NOT_FOUND
);
}
/**
* 需求发布
*
* @param req
* @return
*/
@Override
public
Result
addDemand
(
DemandAddReq
req
)
{
Demand
demand
=
new
Demand
();
demand
.
setCustomerId
(
getCustomer
().
getCustomerId
());
demand
.
setDemandName
(
req
.
getDemandName
());
demand
.
setDemandDescribe
(
req
.
getDemandDescribe
());
demand
.
setCreTime
(
DateUtils
.
getToday
());
demand
.
setAuditStatus
(
AuditStatusEnum
.
DSH
.
getValue
());
demand
.
setCrePerson
(
getCustomer
().
getCustomerId
()
+
""
);
demand
.
setDelFlag
(
DelFlagEnum
.
NO
.
getValue
());
if
(
tDemandDao
.
insert
(
demand
)
!=
1
)
{
return
Result
.
of_error
(
ResultMsg
.
INSERT_SUCCESS
);
}
return
Result
.
of_success
(
ResultMsg
.
INSERT_SUCCESS
);
}
/**
* 查询需求详情
*
* @param demandId
* @return
*/
@Override
public
Result
findByDemand
(
Long
demandId
)
{
QueryWrapper
<
Demand
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"demand_id"
,
demandId
);
queryWrapper
.
eq
(
"del_flag"
,
DelFlagEnum
.
NO
.
getValue
());
Demand
demand
=
tDemandDao
.
selectOne
(
queryWrapper
);
if
(
demand
!=
null
)
{
return
Result
.
of_success
(
demand
);
}
return
Result
.
of_error
(
ResultMsg
.
DATA_NOT_FOUND
);
}
public
MallCustomerApiDto
getCustomer
()
{
MallCustomerApiDto
customer
=
(
MallCustomerApiDto
)
redisTemplate
.
opsForValue
().
get
(
"USER_"
+
RedisMessageConstant
.
SENDTYPE_LOGIN_CUSTOMER
);
return
customer
;
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/impl/OrderServiceImpl.java
View file @
e8a13bd5
...
...
@@ -120,7 +120,6 @@ public class OrderServiceImpl implements OrderService {
if
(
StringUtils
.
isNotEmpty
(
orderId
))
{
orderDto
=
orderDao
.
getOrderDetail
(
orderId
);
if
(
orderDto
!=
null
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
Date
endTime
=
orderDto
.
getInvalidTime
();
String
indate
=
DateUtils
.
getTime
(
endTime
,
DateUtils
.
getToday
());
orderDto
.
setIndate
(
indate
);
...
...
@@ -328,7 +327,6 @@ public class OrderServiceImpl implements OrderService {
if
(
StringUtils
.
isEmpty
(
req
.
getRequestToken
()))
{
return
Result
.
of_error
(
"授权码不能为空!"
);
}
System
.
out
.
println
(
JSON
.
toJSONString
(
req
));
String
post
=
HttpsUtilsTest
.
submitPost
(
gatewayOrderLogDetails
,
JSON
.
toJSONString
(
req
));
JSONObject
params
=
JSONObject
.
parseObject
(
post
);
if
(!
params
.
get
(
"code"
).
equals
(
200
)
||
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
params
.
get
(
"data"
))){
...
...
jz-dm-mall/src/main/resources/mapper/goods/DemandDao.xml
0 → 100644
View file @
e8a13bd5
<?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=
"com.jz.mall.moduls.mapper.DemandDao"
>
<resultMap
type=
"com.jz.dm.mall.moduls.entity.Demand"
id=
"TDemandMap"
>
<result
property=
"demandId"
column=
"demand_id"
jdbcType=
"INTEGER"
/>
<result
property=
"customerId"
column=
"customer_id"
jdbcType=
"INTEGER"
/>
<result
property=
"categoryId"
column=
"category_id"
jdbcType=
"INTEGER"
/>
<result
property=
"demandName"
column=
"demand_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"demandDescribe"
column=
"demand_describe"
jdbcType=
"VARCHAR"
/>
<result
property=
"dataType"
column=
"data_type"
jdbcType=
"INTEGER"
/>
<result
property=
"releaseTime"
column=
"release_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"auditStatus"
column=
"audit_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"auditPerson"
column=
"audit_person"
jdbcType=
"VARCHAR"
/>
<result
property=
"auditTime"
column=
"audit_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"rejectReason"
column=
"reject_reason"
jdbcType=
"VARCHAR"
/>
<result
property=
"purchaseMethod"
column=
"purchase_method"
jdbcType=
"VARCHAR"
/>
<result
property=
"crePerson"
column=
"cre_person"
jdbcType=
"VARCHAR"
/>
<result
property=
"creTime"
column=
"cre_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"ifShow"
column=
"if_show"
jdbcType=
"VARCHAR"
/>
<result
property=
"delFlag"
column=
"del_flag"
jdbcType=
"VARCHAR"
/>
</resultMap>
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TDemandMap"
>
select
demand_id, customer_id, category_id, demand_name, demand_describe, data_type, release_time, audit_status, audit_person, audit_time, reject_reason, purchase_method, cre_person, cre_time, if_show, del_flag
from t_demand
where demand_id = #{demandId}
</select>
<!--查询指定行数据-->
<select
id=
"queryAllByLimit"
resultMap=
"TDemandMap"
>
select
demand_id, customer_id, category_id, demand_name, demand_describe, data_type, release_time, audit_status, audit_person, audit_time, reject_reason, purchase_method, cre_person, cre_time, if_show, del_flag
from t_demand
limit #{offset}, #{limit}
</select>
<!--通过实体作为筛选条件查询-->
<select
id=
"queryAll"
resultMap=
"TDemandMap"
>
select
demand_id, customer_id, category_id, demand_name, demand_describe, data_type, release_time, audit_status,
audit_person, audit_time, reject_reason, purchase_method, cre_person, cre_time, if_show, del_flag
from t_demand
<where>
<if
test=
"demandId != null"
>
and demand_id = #{demandId}
</if>
<if
test=
"customerId != null"
>
and customer_id = #{customerId}
</if>
<if
test=
"categoryId != null"
>
and category_id = #{categoryId}
</if>
<if
test=
"demandName != null and demandName != ''"
>
and demand_name = #{demandName}
</if>
<if
test=
"demandDescribe != null and demandDescribe != ''"
>
and demand_describe = #{demandDescribe}
</if>
<if
test=
"dataType != null"
>
and data_type = #{dataType}
</if>
<if
test=
"releaseTime != null"
>
and release_time = #{releaseTime}
</if>
<if
test=
"auditStatus != null and auditStatus != ''"
>
and audit_status = #{auditStatus}
</if>
<if
test=
"auditPerson != null and auditPerson != ''"
>
and audit_person = #{auditPerson}
</if>
<if
test=
"auditTime != null"
>
and audit_time = #{auditTime}
</if>
<if
test=
"rejectReason != null and rejectReason != ''"
>
and reject_reason = #{rejectReason}
</if>
<if
test=
"purchaseMethod != null and purchaseMethod != ''"
>
and purchase_method = #{purchaseMethod}
</if>
<if
test=
"crePerson != null and crePerson != ''"
>
and cre_person = #{crePerson}
</if>
<if
test=
"creTime != null"
>
and cre_time = #{creTime}
</if>
<if
test=
"ifShow != null and ifShow != ''"
>
and if_show = #{ifShow}
</if>
<if
test=
"delFlag != null and delFlag != ''"
>
and del_flag = #{delFlag}
</if>
</where>
</select>
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"demandId"
useGeneratedKeys=
"true"
>
insert into t_demand(customer_id, category_id, demand_name, demand_describe, data_type, release_time, audit_status, audit_person, audit_time, reject_reason, purchase_method, cre_person, cre_time, if_show, del_flag)
values (#{customerId}, #{categoryId}, #{demandName}, #{demandDescribe}, #{dataType}, #{releaseTime}, #{auditStatus}, #{auditPerson}, #{auditTime}, #{rejectReason}, #{purchaseMethod}, #{crePerson}, #{creTime}, #{ifShow}, #{delFlag})
</insert>
<insert
id=
"insertBatch"
keyProperty=
"demandId"
useGeneratedKeys=
"true"
>
insert into t_demand(customer_id, category_id, demand_name, demand_describe, data_type,
release_time, audit_status, audit_person, audit_time, reject_reason, purchase_method, cre_person, cre_time,
if_show, del_flag)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.customerId}, #{entity.categoryId}, #{entity.demandName}, #{entity.demandDescribe},
#{entity.dataType}, #{entity.releaseTime}, #{entity.auditStatus}, #{entity.auditPerson},
#{entity.auditTime}, #{entity.rejectReason}, #{entity.purchaseMethod}, #{entity.crePerson},
#{entity.creTime}, #{entity.ifShow}, #{entity.delFlag})
</foreach>
</insert>
<!--通过主键修改数据-->
<update
id=
"update"
>
update t_demand
<set>
<if
test=
"customerId != null"
>
customer_id = #{customerId},
</if>
<if
test=
"categoryId != null"
>
category_id = #{categoryId},
</if>
<if
test=
"demandName != null and demandName != ''"
>
demand_name = #{demandName},
</if>
<if
test=
"demandDescribe != null and demandDescribe != ''"
>
demand_describe = #{demandDescribe},
</if>
<if
test=
"dataType != null"
>
data_type = #{dataType},
</if>
<if
test=
"releaseTime != null"
>
release_time = #{releaseTime},
</if>
<if
test=
"auditStatus != null and auditStatus != ''"
>
audit_status = #{auditStatus},
</if>
<if
test=
"auditPerson != null and auditPerson != ''"
>
audit_person = #{auditPerson},
</if>
<if
test=
"auditTime != null"
>
audit_time = #{auditTime},
</if>
<if
test=
"rejectReason != null and rejectReason != ''"
>
reject_reason = #{rejectReason},
</if>
<if
test=
"purchaseMethod != null and purchaseMethod != ''"
>
purchase_method = #{purchaseMethod},
</if>
<if
test=
"crePerson != null and crePerson != ''"
>
cre_person = #{crePerson},
</if>
<if
test=
"creTime != null"
>
cre_time = #{creTime},
</if>
<if
test=
"ifShow != null and ifShow != ''"
>
if_show = #{ifShow},
</if>
<if
test=
"delFlag != null and delFlag != ''"
>
del_flag = #{delFlag},
</if>
</set>
where demand_id = #{demandId}
</update>
<!--通过主键删除-->
<delete
id=
"deleteById"
>
delete from t_demand where demand_id = #{demandId}
</delete>
</mapper>
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/BannerController.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.config.bean.req.BannerAddAndEditReq
;
import
com.jz.manage.moduls.controller.config.bean.req.BannerConfigListReq
;
import
com.jz.manage.moduls.entity.Banner
;
import
com.jz.manage.moduls.service.BannerServer
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@RestController
@RequestMapping
(
"banner"
)
@Api
(
tags
=
"平台--配置管理--controller"
)
public
class
BannerController
extends
BaseController
{
@Autowired
private
BannerServer
bannerServer
;
/**
* 查询全部广告
* @return
*/
@PostMapping
(
value
=
"/findList"
)
@ApiOperation
(
value
=
"广告配置--查询全部广告"
)
public
Result
<
IPage
<
Banner
>>
findList
(
@RequestBody
BannerConfigListReq
req
)
{
return
bannerServer
.
findList
(
req
);
}
/**
* 查询广告详情
* @param bannerId
* @return
*/
@PostMapping
(
value
=
"/findByBanner"
)
@ApiOperation
(
value
=
"广告配置--查询广告详情"
)
public
Result
findByBanner
(
@RequestParam
(
name
=
"bannerId"
)
Long
bannerId
)
{
return
bannerServer
.
findByBanner
(
bannerId
);
}
/**
* 新增广告
* @param req
* @return
*/
@PostMapping
(
value
=
"/addBanner"
)
@ApiOperation
(
value
=
"广告配置--新增广告"
)
public
Result
addBanner
(
@RequestBody
BannerAddAndEditReq
req
)
{
return
bannerServer
.
addBanner
(
req
);
}
/**
* 编辑广告
* @param req
* @return
*/
@PostMapping
(
value
=
"/editBanner"
)
@ApiOperation
(
value
=
"广告配置--编辑广告"
)
public
Result
editBanner
(
@RequestBody
BannerAddAndEditReq
req
)
{
return
bannerServer
.
editBanner
(
req
);
}
/**
* 删除广告
* @param bannerId
* @return
*/
@PostMapping
(
value
=
"/deleteBanner"
)
@ApiOperation
(
value
=
"广告配置--删除广告"
)
public
Result
deleteBanner
(
@RequestParam
(
name
=
"bannerId"
)
Long
bannerId
)
{
return
bannerServer
.
deleteBanner
(
bannerId
);
}
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/MenuConfigController.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.config.bean.req.CategoryConfigEditReq
;
import
com.jz.manage.moduls.controller.config.bean.req.CategoryConfigReq
;
import
com.jz.manage.moduls.controller.config.bean.req.MenuConfigReq
;
import
com.jz.manage.moduls.entity.DataGoodsCategory
;
import
com.jz.manage.moduls.entity.MenuConfig
;
import
com.jz.manage.moduls.service.MenuConfigServer
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@RestController
@RequestMapping
(
"menuConfig"
)
@Api
(
tags
=
"平台--配置管理--controller"
)
public
class
MenuConfigController
extends
BaseController
{
@Autowired
private
MenuConfigServer
menuConfigServer
;
/**
* 查询全部菜单
* @return
*/
@GetMapping
(
value
=
"/findList"
)
@ApiOperation
(
value
=
"菜单配置--查询全部菜单"
)
public
Result
findList
()
{
return
menuConfigServer
.
findList
();
}
/**
* 编辑菜单
* @param req
* @return
*/
@PostMapping
(
value
=
"/editUrl"
)
@ApiOperation
(
value
=
"菜单配置--编辑菜单"
)
public
Result
editUrl
(
@RequestBody
@Valid
MenuConfigReq
req
)
{
return
menuConfigServer
.
editUrl
(
req
);
}
/**
* 条件查询分类配置
* @param req
* @return
*/
@PostMapping
(
value
=
"/findCategory"
)
@ApiOperation
(
value
=
"分类配置--条件查询分类"
)
public
Result
<
IPage
<
DataGoodsCategory
>>
findCategory
(
@RequestBody
CategoryConfigReq
req
)
{
return
menuConfigServer
.
findCategory
(
req
);
}
/**
* 编辑分类配置
* @param req
* @return
*/
@PostMapping
(
value
=
"/editCategory"
)
@ApiOperation
(
value
=
"分类配置--编辑分类配置"
)
public
Result
editCategory
(
@RequestBody
@Valid
CategoryConfigEditReq
req
)
{
return
menuConfigServer
.
editCategory
(
req
);
}
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/bean/req/BannerAddAndEditReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
.
bean
.
req
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
BannerAddAndEditReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"广告id"
)
private
Long
bannerId
;
@ApiModelProperty
(
value
=
"广告名称"
)
@NotNull
(
message
=
"广告名称不能为空"
)
private
String
bannerName
;
@ApiModelProperty
(
value
=
"广告位置"
)
@NotNull
(
message
=
"广告位置不能为空"
)
private
String
bannerLocation
;
@ApiModelProperty
(
value
=
"广告位描述"
)
private
String
bannerDesc
;
@ApiModelProperty
(
value
=
"广告链接"
)
@NotNull
(
message
=
"广告链接不能为空"
)
private
String
bannerUrl
;
@ApiModelProperty
(
value
=
"排序"
)
@NotNull
(
message
=
"排序不能为空"
)
private
Long
sort
;
@ApiModelProperty
(
value
=
"开始时间"
)
@NotNull
(
message
=
"开始时间不能为空"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
bannerStart
;
@ApiModelProperty
(
value
=
"结束时间"
)
@NotNull
(
message
=
"结束时间不能为空"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
bannerEnd
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/bean/req/BannerConfigListReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
.
bean
.
req
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
BannerConfigListReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
value
=
"搜索"
)
private
String
search
;
@ApiModelProperty
(
value
=
"广告位置"
)
private
String
bannerLocation
;
@ApiModelProperty
(
value
=
"广告状态 01已发布 02未发布"
)
private
String
bannerStatus
;
@ApiModelProperty
(
value
=
"广告位描述"
)
private
String
bannerDesc
;
@ApiModelProperty
(
value
=
"开始时间"
)
private
String
bannerStart
;
@ApiModelProperty
(
value
=
"结束时间"
)
private
String
bannerEnd
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/bean/req/CategoryConfigEditReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
.
bean
.
req
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
CategoryConfigEditReq
implements
Serializable
{
@ApiModelProperty
(
"分类id"
)
@NotNull
(
message
=
"分类id不能为空"
)
private
Long
categoryId
;
@ApiModelProperty
(
"图片"
)
@NotNull
(
message
=
"图片不能为空"
)
private
String
categoryPicture
;
@ApiModelProperty
(
"描述"
)
@NotNull
(
message
=
"描述不能为空"
)
private
String
categoryDesc
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/bean/req/CategoryConfigReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
.
bean
.
req
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
CategoryConfigReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
"分类名称"
)
private
String
categoryName
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/config/bean/req/MenuConfigReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
config
.
bean
.
req
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
MenuConfigReq
implements
Serializable
{
@ApiModelProperty
(
"菜单id"
)
@NotNull
(
message
=
"菜单id不能为空"
)
private
Long
configId
;
@ApiModelProperty
(
"菜单路径"
)
@NotNull
(
message
=
"菜单路径不能为空"
)
private
String
configUrl
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/finance/platForm/dto/DepartmentAssetsDto.java
View file @
e8a13bd5
...
...
@@ -3,6 +3,7 @@ package com.jz.manage.moduls.controller.finance.platForm.dto;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.io.Serializable
;
...
...
@@ -27,5 +28,35 @@ public class DepartmentAssetsDto implements Serializable {
private
String
unifiedCreditCode
;
@ApiModelProperty
(
"可用余额"
)
private
String
useMoney
;
@ApiModelProperty
(
"用户id"
)
private
Long
customerId
;
@ApiModelProperty
(
"用户名称"
)
private
String
customerName
;
@ApiModelProperty
(
"资产账户id"
)
private
Long
assetsId
;
@ApiModelProperty
(
"商品名称"
)
private
String
dataName
;
@ApiModelProperty
(
"生效日期"
)
private
String
takeEffectTime
;
@ApiModelProperty
(
"失效日期"
)
private
String
invalidTime
;
@ApiModelProperty
(
"购买方式"
)
private
String
purchaseMethod
;
@ApiModelProperty
(
"支付金额"
)
private
String
paymentMoney
;
@ApiModelProperty
(
"年(元)"
)
private
String
yearType
;
@ApiModelProperty
(
"季(元)"
)
private
String
seasonType
;
@ApiModelProperty
(
"月(元)"
)
private
String
monthType
;
@ApiModelProperty
(
"次(元)"
)
private
String
secondType
;
@ApiModelProperty
(
"订单id"
)
private
Long
orderId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/DataGoodsApiController.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.constant.ResultMsg
;
import
com.jz.common.utils.Result
;
import
com.jz.common.utils.StatusCode
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DepartmentDataGoodsDto
;
import
com.jz.manage.moduls.controller.goods.bean.request.DepartmentByRenewReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DepartmentDataGoodsReq
;
import
com.jz.manage.moduls.service.DataGoodsApiService
;
import
com.jz.manage.moduls.service.DataGoodsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
...
...
@@ -22,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
@RequestMapping
(
"dataGoodsApi"
)
@Api
(
tags
=
"平台--
数据api
-controller"
)
@Api
(
tags
=
"平台--
商品管理--企业商品管理-
-controller"
)
public
class
DataGoodsApiController
extends
BaseController
{
/**
* 服务对象
...
...
@@ -30,6 +36,7 @@ public class DataGoodsApiController extends BaseController {
@Autowired
private
DataGoodsApiService
tDataGoodsApiService
;
/**
* 根据主键查询商品详情-api
* @param id
...
...
@@ -44,5 +51,21 @@ public class DataGoodsApiController extends BaseController {
return
Result
.
of_error
(
"查询失败!"
);
}
@PostMapping
(
"/findByDepartmentGoods"
)
@ApiOperation
(
value
=
"企业商品管理--列表查询"
)
public
Result
<
IPage
<
DepartmentDataGoodsDto
>>
findByDepartmentGoods
(
@RequestBody
DepartmentDataGoodsReq
req
)
{
return
tDataGoodsApiService
.
findByDepartmentGoods
(
req
);
}
@PostMapping
(
"/DepartmentByRenew"
)
@ApiOperation
(
value
=
"企业商品管理--续费"
)
public
Result
DepartmentByRenew
(
@RequestBody
@Valid
DepartmentByRenewReq
req
)
{
try
{
return
tDataGoodsApiService
.
DepartmentByRenew
(
req
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
Result
.
of_error
(
ResultMsg
.
FAILURE
);
}
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/DataGoodsCategoryController.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.constant.ResultMsg
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.goods.bean.request.AddCateGoryReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.CategoryAndSceneReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.CategoryDetailReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsByCategoryReq
;
import
com.jz.manage.moduls.entity.DataGoodsCategory
;
import
com.jz.manage.moduls.service.DataGoodsCategoryService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.
util.StringUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.
web.bind.annotation.*
;
import
javax.validation.Valid
;
import
java.util.List
;
/**
* 数据商品分类(行业)(TDataGoodsCategory)表控制层
...
...
@@ -19,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
@RequestMapping
(
"dataGoodsCategory"
)
@Api
(
tags
=
"平台--
数据商品分类行业
--controller"
)
@Api
(
tags
=
"平台--
商品管理--分类管理
--controller"
)
public
class
DataGoodsCategoryController
extends
BaseController
{
/**
* 服务对象
...
...
@@ -27,13 +36,79 @@ public class DataGoodsCategoryController extends BaseController {
@Autowired
private
DataGoodsCategoryService
categoryService
;
@GetMapping
(
value
=
"/findCategory"
)
@GetMapping
(
value
=
"/find
By
Category"
)
@ApiOperation
(
value
=
"查询数据商品分类"
,
notes
=
"查询所有的商品分类"
)
public
Result
findCategory
()
{
Result
result
=
categoryService
.
findCategory
();
if
(
StringUtils
.
isEmpty
(
result
))
{
return
Result
.
of_error
(
"查询失败!"
);
public
Result
<
List
<
DataGoodsCategory
>>
findByCategory
()
throws
Exception
{
return
categoryService
.
findByCategory
();
}
/**
* 查询场景分类
* @return
*/
@GetMapping
(
value
=
"/findByScene"
)
@ApiOperation
(
value
=
"查询场景分类"
,
notes
=
"查询所有的场景分类"
)
public
Result
findByScene
()
{
return
categoryService
.
findByScene
();
}
/**
* 添加分类
* @param category
* @return
*/
@PostMapping
(
value
=
"/addCategory"
)
@ApiOperation
(
value
=
"商品分类管理--添加分类"
,
notes
=
"添加一级分类/子级分类"
)
public
Result
addCategory
(
@RequestBody
@Valid
AddCateGoryReq
category
)
{
try
{
return
categoryService
.
addCategory
(
category
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
Result
.
of_error
(
ResultMsg
.
FAILURE
);
}
}
/**
* 编辑分类
* @param category
* @return
*/
@PostMapping
(
value
=
"/editCateGoryByParent"
)
@ApiOperation
(
value
=
"商品分类管理--编辑分类"
,
notes
=
"编辑一级分类/子级分类"
)
public
Result
editCategory
(
@RequestBody
@Valid
AddCateGoryReq
category
)
{
try
{
return
categoryService
.
editCategory
(
category
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
Result
.
of_error
(
ResultMsg
.
FAILURE
);
}
}
/**
* 获取分类详情
* @param req
* @return
*/
@PostMapping
(
"/getCategoryDetail"
)
@ApiOperation
(
value
=
"商品分类管理--获取分类详情"
)
public
Result
getCategoryDetail
(
@RequestBody
@Valid
CategoryDetailReq
req
)
{
return
categoryService
.
getCategoryDetail
(
req
);
}
/**
* 条件查询商品分类
* @param search
* @return
*/
@PostMapping
(
value
=
"/selectByCategory"
)
@ApiOperation
(
value
=
"商品分类管理--条件查询商品分类"
)
public
Result
selectByCategory
(
@RequestParam
(
required
=
false
)
String
search
)
{
return
categoryService
.
selectByCategory
(
search
);
}
return
result
;
@PostMapping
(
value
=
"/deleteByCategory"
)
@ApiOperation
(
value
=
"商品分类管理--删除分类"
)
public
Result
deleteByCategory
(
@RequestBody
@Valid
CategoryAndSceneReq
req
)
{
return
categoryService
.
deleteByCategory
(
req
);
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/DataGoodsController.java
View file @
e8a13bd5
...
...
@@ -3,18 +3,16 @@ package com.jz.manage.moduls.controller.goods;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.bean.BaseBeanResponse
;
import
com.jz.common.bean.BaseResponse
;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.constant.Constants
;
import
com.jz.common.entity.DataGoods
;
import
com.jz.common.constant.ResultMsg
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsAuditDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsListDto
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsAuditListReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsAuditReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsListRequest
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsRequest
;
import
com.jz.manage.moduls.controller.goods.bean.request.*
;
import
com.jz.manage.moduls.entity.DataGoods
;
import
com.jz.manage.moduls.service.DataGoodsService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -32,7 +30,7 @@ import javax.validation.Valid;
*/
@RestController
@RequestMapping
(
"dataGoods"
)
@Api
(
tags
=
"平台--
数据商品
--controller"
)
@Api
(
tags
=
"平台--
商品管理--商品列表
--controller"
)
public
class
DataGoodsController
extends
BaseController
{
/**
* 服务对象
...
...
@@ -40,23 +38,22 @@ public class DataGoodsController extends BaseController {
@Autowired
private
DataGoodsService
dataGoodsService
;
/**列表查询数据商品
* @param dataGoodsListRequest
* @return
*/
@PostMapping
(
value
=
"/findList"
)
@ApiOperation
(
value
=
"自营数据--列表查询数据"
)
public
PageInfoResponse
<
DataGoodsListDto
>
findList
(
@RequestBody
DataGoodsListRequest
dataGoodsListRequest
,
HttpServletRequest
httpRequest
){
PageInfoResponse
<
DataGoodsListDto
>
pageInfo
=
new
PageInfoResponse
<>();
@ApiOperation
(
value
=
"商品列表--列表查询数据"
)
public
Result
<
IPage
<
DataGoodsListDto
>>
findList
(
@RequestBody
DataGoodsListRequest
dataGoodsListRequest
,
HttpServletRequest
httpRequest
){
try
{
pageInfo
=
dataGoodsService
.
findList
(
dataGoodsListRequest
,
httpRequest
);
return
dataGoodsService
.
findList
(
dataGoodsListRequest
,
httpRequest
);
}
catch
(
Exception
e
)
{
pageInfo
.
setMessage
(
"查询失败"
);
pageInfo
.
setCode
(
Constants
.
FAILURE_CODE
);
e
.
printStackTrace
();
return
Result
.
of_error
(
"查询失败!"
);
}
return
pageInfo
;
}
/**列表查询审核数据商品
* @param req
...
...
@@ -161,19 +158,121 @@ public class DataGoodsController extends BaseController {
return
baseBeanResponse
;
}
/**
* 商品上下架
* @param goodsId
* @param statusId
* @return
*/
@PostMapping
(
"/editStatus/{goodsId}/{statusId}"
)
@ApiOperation
(
value
=
"商品上下架"
)
@ApiOperation
(
value
=
"商品
列表--商品
上下架"
)
public
Result
editStatus
(
@PathVariable
(
value
=
"goodsId"
)
Long
goodsId
,
@PathVariable
(
value
=
"statusId"
)
Long
statusId
)
{
Result
result
=
null
;
@PathVariable
(
value
=
"statusId"
)
String
statusId
)
{
try
{
re
sult
=
dataGoodsService
.
editStatus
(
goodsId
,
statusId
);
re
turn
dataGoodsService
.
editStatus
(
goodsId
,
statusId
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
result
=
new
Result
(
false
,
"操作失败!"
);
return
Result
.
of_error
(
ResultMsg
.
UPDATE_FAIL
);
}
}
return
result
;
/**
* 商品列表--浏览授权
* @param roleReq
* @return
*/
@PostMapping
(
"/browseByAuthorization"
)
@ApiOperation
(
value
=
"商品列表--浏览授权"
)
public
Result
browseByAuthorization
(
@RequestBody
@Valid
DataGoodsByRoleReq
roleReq
)
{
return
dataGoodsService
.
browseByAuthorization
(
roleReq
);
}
/**
* 商品列表--浏览授权--查询授权
* @param dataGoodsId
* @return
*/
@PostMapping
(
"/findByAuthorization"
)
@ApiOperation
(
value
=
"商品列表--浏览授权--查询授权"
)
public
Result
findByAuthorization
(
@RequestParam
(
name
=
"dataGoodsId"
)
Long
dataGoodsId
)
{
return
dataGoodsService
.
findByAuthorization
(
dataGoodsId
);
}
/**
*
* @param
* @return
*/
@PostMapping
(
"/useByAuthorization"
)
@ApiOperation
(
value
=
"商品列表--使用授权"
)
public
Result
useByAuthorization
(
@RequestBody
GoodsByAuthorizationReq
req
)
{
try
{
return
dataGoodsService
.
useByAuthorization
(
req
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
Result
.
of_error
(
ResultMsg
.
FAILURE
);
}
}
@PostMapping
(
"/findByDepartment"
)
@ApiOperation
(
value
=
"商品列表--使用授权/续费--搜索企业"
)
public
Result
findByDepartment
(
@RequestBody
DepartmentGoodsReq
req
)
{
return
dataGoodsService
.
findByDepartment
(
req
);
}
/**
* 根据主键查询商品详情-api
* @param id
* @return
*/
@GetMapping
(
"/getDataDetails/{id}"
)
@ApiOperation
(
value
=
"商品列表--查看商品详情"
)
public
Result
findById
(
@PathVariable
(
value
=
"id"
)
Long
id
)
throws
Exception
{
if
(
id
!=
null
)
{
return
dataGoodsService
.
selectById
(
id
);
}
return
Result
.
of_error
(
"查询失败!"
);
}
/**
* 获取api列表
* @param req
* @return
*/
@PostMapping
(
"/getApiGoods"
)
@ApiOperation
(
value
=
"制作商品-获取api列表"
,
notes
=
"dmp制作api,发送到数据银行"
)
public
Result
getAPIList
(
@RequestBody
@Valid
SendDataReq
req
)
{
return
dataGoodsService
.
getAPIList
(
req
);
}
/**
* 获取API详情
* @param req
* @return
*/
@ApiOperation
(
value
=
"制作商品-API详情查询"
,
notes
=
"调用接口"
)
@PostMapping
(
value
=
"/getApiInterfaceDetail"
)
public
Result
getApiInterfaceDetail
(
@RequestBody
@Valid
ApiInterfaceDetailReq
req
)
{
return
dataGoodsService
.
getApiInterfaceDetail
(
req
);
}
/**
* 制作商品
* @param req
* @return
*/
@PostMapping
(
"/makeByGoods"
)
@ApiOperation
(
value
=
"制作商品--编辑/制作商品"
,
notes
=
"平台方制作商品"
)
public
Result
makeByGoods
(
@RequestBody
@Valid
DataApiUpReq
req
)
{
try
{
return
dataGoodsService
.
makeByGoods
(
req
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
Result
.
of_error
(
"制作失败!"
);
}
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/DemandController.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.BaseController
;
import
com.jz.manage.moduls.controller.goods.bean.request.DemandAuditReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DemandListReq
;
import
com.jz.manage.moduls.entity.Demand
;
import
com.jz.manage.moduls.service.DemandService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* 用户需求定制申请(TDemand)表控制层
...
...
@@ -14,6 +22,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
@RequestMapping
(
"demand"
)
@Api
(
tags
=
"平台--需求管理--controller"
)
public
class
DemandController
extends
BaseController
{
/**
* 服务对象
...
...
@@ -21,4 +30,31 @@ public class DemandController extends BaseController {
@Autowired
private
DemandService
tDemandService
;
/**
* 条件查询需求审核列表
* @param req
* @return
*/
@PostMapping
(
"/findList"
)
@ApiOperation
(
value
=
"需求审核--条件查询需求"
)
public
Result
<
IPage
<
Demand
>>
findList
(
@RequestBody
DemandListReq
req
)
{
return
tDemandService
.
findList
(
req
);
}
/**
* 查询需求详情
* @param demandId
* @return
*/
@GetMapping
(
"/findByDemand"
)
@ApiOperation
(
value
=
"需求审核--查询需求详情"
)
public
Result
findByDemand
(
@RequestParam
(
name
=
"demandId"
)
Long
demandId
)
{
return
tDemandService
.
findByDemand
(
demandId
);
}
@PostMapping
(
"/auditDemand"
)
@ApiOperation
(
value
=
"需求审核--审核需求"
)
public
Result
auditDemand
(
@RequestBody
@Valid
DemandAuditReq
req
)
{
return
tDemandService
.
auditDemand
(
req
);
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/dto/ApiInterfaceDto.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Description:
* @Author: Mr.zhang
* @Date: 2020-12-23
*/
@Data
@ApiModel
(
"gateWay制作api返回参数"
)
public
class
ApiInterfaceDto
implements
Serializable
{
/**
* api唯一标识
*/
@ApiModelProperty
(
value
=
"api唯一标识"
)
private
String
apiKey
;
/**
* api名称
*/
@ApiModelProperty
(
value
=
"api名称"
)
private
String
apiName
;
/**
* api请求协议:http,https
*/
@ApiModelProperty
(
value
=
"api请求协议:http,https"
)
private
String
apiProtocl
;
/**
* 接入类型:对应字典表key
*/
@ApiModelProperty
(
value
=
"接入类型:对应字典表key"
)
private
String
apiType
;
/**
* 目标url
*/
@ApiModelProperty
(
value
=
"目标url"
)
private
String
targetUrl
;
/**
* 请求方式:GET POST
*/
@ApiModelProperty
(
value
=
"请求方式:GET POST"
)
private
String
reqType
;
/**
* '输出类型:flow 流形式输出, json格式输出',
*/
@ApiModelProperty
(
value
=
"'输出类型:flow 流形式输出, json格式输出',"
)
private
String
outputType
;
/**
* 状态(1-草稿 2-发布 3-过时 4-冻结 5-失效)
*/
@ApiModelProperty
(
value
=
"状态(1-草稿 2-发布 3-过时 4-冻结 5-失效)"
)
private
String
status
;
/**
* 接口功能
*/
@ApiModelProperty
(
value
=
"接口功能"
)
private
String
apiFunction
;
/**
* 版本号
*/
@ApiModelProperty
(
value
=
"版本号"
)
private
String
version
;
/**
* 加密方式:0 无 1. MD5 2. RSA
*/
@ApiModelProperty
(
value
=
"加密方式:0 无 1. MD5 2. RSA"
)
private
Integer
signType
;
/**
* 限流类型:DAY 按天,MONTH 按月, YEAR 按年
*/
@ApiModelProperty
(
value
=
"限流类型:DAY 按天,MONTH 按月, YEAR 按年"
)
private
String
limitType
;
/**
* 限制次数
*/
@ApiModelProperty
(
value
=
"限制次数"
)
private
Long
reqFrequency
;
/**
* 超时时间
*/
@ApiModelProperty
(
value
=
"超时时间"
)
private
String
timeout
;
/**
* 文件夹id
*/
@ApiModelProperty
(
value
=
"文件夹id"
)
private
Long
fileId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/dto/CategoryAndSceneDto.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
@Data
public
class
CategoryAndSceneDto
implements
Serializable
{
@ApiModelProperty
(
value
=
"场景分类id"
)
private
Long
sceneId
;
@ApiModelProperty
(
value
=
"场景名称"
)
private
String
sceneName
;
@ApiModelProperty
(
value
=
"商品分类id"
)
private
Long
categoryId
;
@ApiModelProperty
(
value
=
"商品名称"
)
private
String
categoryName
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/dto/DataAndOrderDto.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/1
* @Version:
*/
@ApiModel
@Data
public
class
DataAndOrderDto
implements
Serializable
{
@ApiModelProperty
(
value
=
"订单数量"
)
private
Long
orderTotal
;
@ApiModelProperty
(
value
=
"订单状态"
)
private
String
orderState
;
@ApiModelProperty
(
value
=
"购买方式"
)
private
String
purchaseMethod
;
@ApiModelProperty
(
value
=
"apiKey"
)
private
String
apiKey
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/dto/DataGoodsListDto.java
View file @
e8a13bd5
...
...
@@ -34,7 +34,7 @@ public class DataGoodsListDto {
* 数据类型
*/
@ApiModelProperty
(
value
=
"数据类型"
)
private
String
api
Type
;
private
String
data
Type
;
/**
* 数据行业
...
...
@@ -66,5 +66,7 @@ public class DataGoodsListDto {
@ApiModelProperty
(
value
=
"数据状态"
)
private
String
dataStatus
;
@ApiModelProperty
(
value
=
"商品状态"
)
private
String
goodsState
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/dto/DepartmentDataGoodsDto.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
(
"企业商品列表返回参数"
)
@Data
public
class
DepartmentDataGoodsDto
implements
Serializable
{
@ApiModelProperty
(
"企业id"
)
private
Long
departmentId
;
@ApiModelProperty
(
"企业名称"
)
private
String
departmentName
;
@ApiModelProperty
(
"商品id"
)
private
Long
dataGoodsId
;
@ApiModelProperty
(
"商品名称"
)
private
String
dataName
;
@ApiModelProperty
(
"商品分类"
)
private
String
categoryName
;
@ApiModelProperty
(
"商品状态"
)
private
String
goodsStatus
;
@ApiModelProperty
(
"授权时间"
)
private
Date
date
;
@ApiModelProperty
(
"授权开始时间"
)
private
String
takeEffectTime
;
@ApiModelProperty
(
"授权结束时间"
)
private
String
invalidTime
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/AddCateGoryReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
@ApiModel
@Data
public
class
AddCateGoryReq
implements
Serializable
{
@ApiModelProperty
(
"上级分类id"
)
private
Long
categoryId
;
@ApiModelProperty
(
"商品分类名称"
)
@NotNull
(
message
=
"商品分类名称不能为空"
)
private
String
categoryName
;
@ApiModelProperty
(
"所属场景id/ 编辑-新场景id"
)
private
Long
sceneId
;
@ApiModelProperty
(
"编辑-旧场景id"
)
private
Long
oldSceneId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/ApiInterfaceDetailReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @author ZC
* @PACKAGE_NAME: com.jz.dm.models.req
* @PROJECT_NAME: jz-dm-parent
* @NAME: LogInfoDetailReq
* @DATE: 2020-12-25/15:18
* @DAY_NAME_SHORT: 周五
* @Description:
**/
@Data
@ApiModel
(
"API详情信息"
)
public
class
ApiInterfaceDetailReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"id"
,
required
=
true
)
@NotNull
(
message
=
"id不能为空"
)
private
Long
id
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/AuthMallUserApiReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.jz.common.enums.auth.AuthModeEnum
;
import
com.jz.common.enums.auth.AuthTypeEnum
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2020/12/31
* @Version:
*/
@Data
@ApiModel
(
"商城用户API认证"
)
public
class
AuthMallUserApiReq
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6112096815489941276L
;
@ApiModelProperty
(
value
=
"apiKey唯一标识"
,
required
=
true
)
@NotNull
(
message
=
"apiKey唯一标识不能为空"
)
private
String
apiKey
;
@ApiModelProperty
(
value
=
"组织编码"
,
required
=
true
)
@NotNull
(
message
=
"组织编码不能为空"
)
private
String
orgCode
;
@ApiModelProperty
(
value
=
"授权类型:DATA_BANK_AUTH 数据银行 , DMP_AUTH 授权"
,
required
=
true
)
@NotNull
(
message
=
"授权类型不能为空"
)
private
String
authType
;
@ApiModelProperty
(
value
=
"授权方式:POWER_CALL_MODE 按次调用 ,RECORD_TIME_MODE 按时间调用,PERMANENT_TIME_MODE 永久有效"
,
required
=
true
)
@NotNull
(
message
=
"授权方式不能为空"
)
private
String
authMode
;
@ApiModelProperty
(
value
=
"开始时间"
,
required
=
false
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
validStartTime
;
@ApiModelProperty
(
value
=
"结束时间"
,
required
=
false
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
validEndTime
;
@ApiModelProperty
(
value
=
"备注"
,
required
=
false
)
private
String
remark
;
@ApiModelProperty
(
value
=
"创建用户"
,
required
=
false
)
private
String
createUser
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/AuthRenewUpdateReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
@Data
public
class
AuthRenewUpdateReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"授权码"
,
required
=
true
)
@NotNull
(
message
=
"授权码不能为空"
)
private
String
authCode
;
@ApiModelProperty
(
value
=
"有效截止时间"
,
required
=
true
)
@NotNull
(
message
=
"有效截止时间不能空"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
validEndTime
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/CategoryAndSceneReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@Data
@ApiModel
public
class
CategoryAndSceneReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"场景分类id"
)
private
Long
sceneId
;
@ApiModelProperty
(
value
=
"商品分类id"
)
@NotNull
(
message
=
"商品分类id不能为空"
)
private
Long
categoryId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/CategoryDetailReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@Data
@ApiModel
public
class
CategoryDetailReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"分类id"
)
@NotNull
(
message
=
"分类id不能为空"
)
private
Long
categoryId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DataApiUpReq.java
View file @
e8a13bd5
...
...
@@ -20,112 +20,74 @@ import java.util.List;
* @Version:
*/
@Data
@ApiModel
(
value
=
"
自营数据--api上传参数对象"
,
description
=
"api上传
参数对象"
)
@ApiModel
(
value
=
"
制作商品--制作商品参数对象"
,
description
=
"制作商品
参数对象"
)
public
class
DataApiUpReq
implements
Serializable
{
/**
*
api表
*
goods
*/
@ApiModelProperty
(
value
=
"请求类型"
)
private
String
requestType
;
@ApiModelProperty
(
value
=
"接口地址"
)
private
String
apiUrl
;
@ApiModelProperty
(
value
=
"api请求协议 HTTP/HTTPS"
)
@NotNull
()
private
String
apiProtocl
;
@ApiModelProperty
(
value
=
"api返回数据样例"
)
private
String
returnDataExample
;
@ApiModelProperty
(
value
=
"返回类型 json/flow"
)
private
String
returnType
;
@ApiModelProperty
(
value
=
"加密方式 MD5/RSA"
)
private
String
encryMode
;
@ApiModelProperty
(
value
=
"功能"
)
private
String
apiFunction
;
@ApiModelProperty
(
value
=
"创建人"
,
hidden
=
true
)
private
String
crePerson
;
@ApiModelProperty
(
value
=
"价格类型"
)
private
String
priceType
;
@ApiModelProperty
(
value
=
"api类型 01:api 02: 数据包"
)
private
String
apiType
;
@ApiModelProperty
(
value
=
"接口描述"
,
required
=
false
)
private
String
apiDesc
;
@ApiModelProperty
(
value
=
"目标地址"
,
required
=
false
)
private
String
targetUrl
;
/**
* goods表
*/
@ApiModelProperty
(
value
=
"数据名称"
)
@ApiModelProperty
(
value
=
"apiKey"
)
@NotNull
(
message
=
"apiKey不能为空"
)
private
String
apiKey
;
@ApiModelProperty
(
value
=
"数据类型"
)
@NotNull
(
message
=
"数据类型不能为空"
)
private
String
dataType
;
@ApiModelProperty
(
value
=
"数据商品名称"
)
@NotNull
(
message
=
"数据商品名称不能为空"
)
private
String
dataName
;
@ApiModelProperty
(
value
=
"商品分类"
)
private
Long
categoryId
;
@ApiModelProperty
(
value
=
"场景分类"
)
private
Long
sceneId
;
@ApiModelProperty
(
value
=
"目标地址"
)
@NotNull
(
message
=
"目标地址不能为空"
)
private
String
targetUrl
;
@ApiModelProperty
(
value
=
"数据描述"
)
@NotNull
(
message
=
"数据描述不能为空"
)
private
String
dataDesc
;
@ApiModelProperty
(
value
=
"商品图片"
)
@NotNull
(
message
=
"商品图片不能为空"
)
private
String
dataPicture
;
@ApiModelProperty
(
value
=
"唯一数据商品标识"
)
private
String
apiOpenId
;
@ApiModelProperty
(
value
=
"审核人"
,
hidden
=
true
)
private
String
auditPerson
;
@ApiModelProperty
(
value
=
"数据最大量"
)
@NotNull
(
message
=
"数据最大量不能为空"
)
private
String
dataMaximum
;
@ApiModelProperty
(
value
=
"最大页数"
)
@NotNull
(
message
=
"最大页数不能为空"
)
private
String
maxPages
;
@ApiModelProperty
(
value
=
"每页数据量"
)
@NotNull
(
message
=
"每页数据量不能为空"
)
private
String
dataSize
;
@ApiModelProperty
(
value
=
"商品有限期"
)
@NotNull
(
message
=
"商品有限期不能为空"
)
private
Integer
goodsLimited
;
@ApiModelProperty
(
value
=
"价格类型"
)
@NotNull
(
message
=
"价格类型不能为空"
)
private
String
priceType
;
@ApiModelProperty
(
value
=
"年(元)"
)
private
BigDecimal
yearType
;
@ApiModelProperty
(
value
=
"季(元)"
)
private
BigDecimal
seasonType
;
@ApiModelProperty
(
value
=
"月(元)"
)
private
BigDecimal
monthType
;
@ApiModelProperty
(
value
=
"次(元)"
)
private
BigDecimal
secondType
;
/**
* apiParam
*/
@ApiModelProperty
(
value
=
"请求头"
)
private
List
<
DataGoodsApiParams
>
reqHeaders
;
@ApiModelProperty
(
value
=
"请求参数"
)
private
List
<
DataGoodsApiParams
>
requestParam
;
@ApiModelProperty
(
value
=
"响应参数"
)
private
List
<
DataGoodsApiParams
>
responseParam
;
@ApiModelProperty
(
value
=
"固定参数"
)
private
List
<
DataGoodsApiParams
>
inboxParam
;
@ApiModelProperty
(
value
=
"响应状态码参数"
)
public
List
<
DataGoodsApiParams
>
respCode
;
/**
* 接口需要的参数
* gateway制作参数
* api
*/
@ApiModelProperty
(
value
=
"接入类型:对应字典表key"
,
required
=
true
)
@NotNull
(
message
=
"接入类型不能为空"
)
public
String
joinType
;
// @ApiModelProperty(value = "api类型 01:api 02: 数据包")
// private String apiType;
// @ApiModelProperty(value = "api名称")
// private String apiName;
// @ApiModelProperty(value = "返回类型 json/flow")
// private String returnType;
// @ApiModelProperty(value = "加密方式 MD5/RSA")
// private String encryMode;
// @ApiModelProperty(value = "传输方式")
// private String transMode;
// @ApiModelProperty(value = "超时时间")
// private String overTime;
// @ApiModelProperty(value = "api请求协议:http,https")
// private String apiProtocl;
@ApiModelProperty
(
value
=
"是否分页"
)
@NotNull
(
message
=
"是否分页不能为空"
)
public
String
page
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DataGoodsByCategoryReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
@ApiModel
(
value
=
"分类搜索条件请求参数"
)
@Data
public
class
DataGoodsByCategoryReq
extends
BasePageBean
{
@ApiModelProperty
(
"分类搜索"
)
private
String
search
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DataGoodsByRoleReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.sun.org.apache.xpath.internal.operations.Bool
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/2
* @Version:
*/
@ApiModel
@Data
public
class
DataGoodsByRoleReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"商品id"
)
@NotNull
(
message
=
"商品id不能为空!"
)
private
Long
dataGoodsId
;
@ApiModelProperty
(
value
=
"未登录用户 01开启,02关闭"
)
private
String
logOutUser
;
@ApiModelProperty
(
value
=
"已登陆认证用户 01开启,02关闭"
)
private
String
unverifiedUser
;
@ApiModelProperty
(
value
=
"已认证用户 01开启,02关闭"
)
private
String
authenticatedUser
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DataGoodsListRequest.java
View file @
e8a13bd5
...
...
@@ -47,5 +47,12 @@ public class DataGoodsListRequest extends BasePageBean {
@ApiModelProperty
(
value
=
"数据类型"
)
private
String
apiType
;
@ApiModelProperty
(
value
=
"搜索"
)
private
String
search
;
@ApiModelProperty
(
value
=
"上传时间"
)
private
String
creTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
String
uptTime
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DemandAuditReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
DemandAuditReq
implements
Serializable
{
@ApiModelProperty
(
"需求id"
)
@NotNull
(
message
=
"需求id不能为空"
)
private
Long
demandId
;
@ApiModelProperty
(
"审核状态 01通过 02不通过"
)
@NotNull
(
message
=
"审核状态不能为空"
)
private
String
auditStatus
;
@ApiModelProperty
(
"审核说明"
)
private
String
rejectReason
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DemandListReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
public
class
DemandListReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
"搜索条件"
)
private
String
search
;
@ApiModelProperty
(
"审核状态"
)
private
String
auditStatus
;
@ApiModelProperty
(
"审核时间"
)
private
String
auditTime
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DepartmentByRenewReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
(
"企业商品管理--续费--请求参数"
)
@Data
public
class
DepartmentByRenewReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"企业id"
)
@NotNull
(
message
=
"企业id不能为空"
)
private
Long
departmentId
;
@ApiModelProperty
(
value
=
"商品id"
)
@NotNull
(
message
=
"商品id不能为空"
)
private
Long
dataGoodsId
;
@ApiModelProperty
(
value
=
"资产id"
)
@NotNull
(
message
=
"资产id不能为空"
)
private
Long
assetsId
;
@ApiModelProperty
(
"用户id"
)
@NotNull
(
message
=
"用户id不能为空"
)
private
Long
customerId
;
@ApiModelProperty
(
value
=
"商品金额"
)
private
BigDecimal
dataPrice
;
@ApiModelProperty
(
value
=
"失效期"
)
@NotNull
(
message
=
"失效期不能为空"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
invalidTime
;
@ApiModelProperty
(
value
=
"订单id"
)
@NotNull
(
message
=
"订单id不能为空"
)
private
Long
orderId
;
@ApiModelProperty
(
value
=
"购买方式 01年,02季,03月,04次"
)
@NotNull
(
message
=
"购买方式不能为空"
)
private
String
purchaseMethod
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DepartmentDataGoodsReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
(
"企业商品列表请求参数"
)
@Data
public
class
DepartmentDataGoodsReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
"搜索条件"
)
private
String
search
;
@ApiModelProperty
(
"分类id"
)
private
Long
categoryId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DepartmentGoodsReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/5
* @Version:
*/
@ApiModel
(
"搜索企业请求参数"
)
@Data
public
class
DepartmentGoodsReq
implements
Serializable
{
@ApiModelProperty
(
"搜索条件"
)
private
String
search
;
@ApiModelProperty
(
"企业id"
)
private
Long
departmentId
;
@ApiModelProperty
(
"商品id"
)
private
Long
dataGoodsId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/GoodsByAuthorizationReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/2
* @Version:
*/
@Data
@ApiModel
public
class
GoodsByAuthorizationReq
implements
Serializable
{
@ApiModelProperty
(
value
=
"商品id"
)
private
Long
dataGoodsId
;
@ApiModelProperty
(
value
=
"企业id"
)
private
Long
departmentId
;
@ApiModelProperty
(
value
=
"用户id"
)
private
Long
customerId
;
@ApiModelProperty
(
value
=
"购买方式 01年,02季,03月,04次"
)
private
String
purchaseMethod
;
@ApiModelProperty
(
value
=
"生效期"
)
private
Date
takeEffectTime
;
@ApiModelProperty
(
value
=
"失效期"
)
private
Date
invalidTime
;
@ApiModelProperty
(
value
=
"apiKey"
)
private
String
apiKey
;
@ApiModelProperty
(
value
=
"商品金额"
)
private
BigDecimal
dataPrice
;
@ApiModelProperty
(
value
=
"价格类型"
)
private
String
priceType
;
@ApiModelProperty
(
value
=
"资产账户id"
)
private
Long
assetsId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/SendDataReq.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
goods
.
bean
.
request
;
import
com.jz.common.bean.BasePageBean
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author ZC
* @PACKAGE_NAME: com.jz.dm.models.resp
* @PROJECT_NAME: jz-dm-parent
* @NAME: SendDataReq
* @DATE: 2021-1-29/17:35
* @DAY_NAME_SHORT: 周五
* @Description:
**/
@Data
@ApiModel
public
class
SendDataReq
extends
BasePageBean
implements
Serializable
{
@ApiModelProperty
(
value
=
"关键词"
)
private
String
key
;
@ApiModelProperty
(
value
=
"数据类型"
)
private
String
apiType
;
@ApiModelProperty
(
value
=
"数据格式:Json Flow"
)
private
String
outputType
;
@ApiModelProperty
(
value
=
"创建开始时间"
)
private
String
startTime
;
@ApiModelProperty
(
value
=
"创建结束时间"
)
private
String
endTime
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/order/bean/dto/OrderAndAuthorizedDto.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
controller
.
order
.
bean
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
@ApiModel
(
"/商品是否授权企业返回参数"
)
@Data
public
class
OrderAndAuthorizedDto
implements
Serializable
{
@ApiModelProperty
(
"是否有效:01有效,02无效"
)
private
String
goodsState
;
@ApiModelProperty
(
"用户id"
)
private
Long
customerId
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/Banner.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName: 广告实体对象
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
@TableName
(
"t_banner"
)
public
class
Banner
implements
Serializable
{
private
static
final
long
serialVersionUID
=
596897642919072871L
;
@ApiModelProperty
(
value
=
"广告id"
)
@TableId
(
value
=
"banner_id"
,
type
=
IdType
.
AUTO
)
private
Long
bannerId
;
@ApiModelProperty
(
value
=
"广告名称"
)
@TableField
(
"banner_name"
)
private
String
bannerName
;
@ApiModelProperty
(
value
=
"广告位置"
)
@TableField
(
"banner_location"
)
private
String
bannerLocation
;
@ApiModelProperty
(
value
=
"广告位描述"
)
@TableField
(
"banner_desc"
)
private
String
bannerDesc
;
@ApiModelProperty
(
value
=
"广告链接"
)
@TableField
(
"banner_url"
)
private
String
bannerUrl
;
@ApiModelProperty
(
value
=
"排序"
)
@TableField
(
"sort"
)
private
Long
sort
;
@ApiModelProperty
(
value
=
"开始时间"
)
@TableField
(
"banner_start"
)
private
Date
bannerStart
;
@ApiModelProperty
(
value
=
"结束时间"
)
@TableField
(
"banner_end"
)
private
Date
bannerEnd
;
@ApiModelProperty
(
value
=
"创建时间"
)
@TableField
(
"cre_time"
)
private
Date
creTime
;
@ApiModelProperty
(
value
=
"创建人"
)
@TableField
(
"cre_person"
)
private
String
crePerson
;
@ApiModelProperty
(
value
=
"更新时间"
)
@TableField
(
"upt_time"
)
private
Date
uptTime
;
@ApiModelProperty
(
value
=
"更新人"
)
@TableField
(
"upt_person"
)
private
String
uptPerson
;
@ApiModelProperty
(
value
=
"删除标识"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/DataGoods.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
@@ -14,325 +18,157 @@ import java.util.Date;
* @author Bellamy
* @since 2020-12-01 10:41:30
*/
@TableName
(
"t_data_goods"
)
@TableName
(
value
=
"t_data_goods"
,
autoResultMap
=
true
)
@ApiModel
@Data
public
class
DataGoods
implements
Serializable
{
private
static
final
long
serialVersionUID
=
938517475031285541L
;
/**
* 数据商品id
*/
@TableId
(
value
=
"data_goods_id"
,
type
=
IdType
.
AUTO
)
private
Long
dataGoodsId
;
/**
* 商品分类id(行业)
*/
@TableField
(
"category_id"
)
private
Long
categoryId
;
@TableField
(
"scene_id"
)
private
Long
sceneId
;
/**
* 数据商户id
*/
@TableField
(
"user_id"
)
private
Long
userId
;
@TableField
(
"api_openid"
)
private
String
apiOpenid
;
/**
* 数据商品名称
*/
@TableField
(
"data_name"
)
private
String
dataName
;
/**
* 数据类型:01api,02数据包
*/
@TableField
(
"data_type"
)
private
String
dataType
;
/**
* 数据商品标签
*/
@TableField
(
"data_label"
)
private
String
dataLabel
;
/**
* 数据商品图片
*/
@TableField
(
"data_picture"
)
private
String
dataPicture
;
/**
* 数据商品价格
*/
@TableField
(
"data_price"
)
private
BigDecimal
dataPrice
;
/**
* 优惠价格
*/
@TableField
(
"discount_price"
)
private
BigDecimal
discountPrice
;
/**
* 价格类型:01免费,02收费
*/
@TableField
(
"price_type"
)
private
String
priceType
;
/**
* 商品规格
*/
@TableField
(
"goods"
)
private
String
goodsStandards
;
/**
* 数据状态:01预售,02在售中,03下架,04上架
*/
@TableField
(
"data_status"
)
private
String
dataStatus
;
/**
* 审核状态:01待审核,02已审核,03未通过
*/
@TableField
(
"audit_status"
)
private
String
auditStatus
;
/**
* 清洗规则(脱敏校验)
*/
@TableField
(
"clean_rule"
)
private
String
cleanRule
;
/**
* 驳回原因
*/
@TableField
(
"reject_reason"
)
private
String
rejectReason
;
@ApiModelProperty
(
value
=
"唯一数据商品标识"
)
private
String
apiOpenId
;
/**
* 审核人
*/
@TableField
(
"audit_person"
)
private
String
auditPerson
;
/**
* 审核时间
*/
@TableField
(
"audit_time"
)
private
Date
auditTime
;
/**
* 创建时间
*/
@TableField
(
"cre_time"
)
private
Date
creTime
;
/**
* 创建人
*/
@TableField
(
"cre_person"
)
private
String
crePerson
;
/**
* 更新时间
*/
@TableField
(
"upt_time"
)
private
Date
uptTime
;
/**
* 更新人
*/
@TableField
(
"upt_person"
)
private
String
uptPerson
;
/**
* 删除标识
*/
@TableField
(
"del_flag"
)
private
String
delFlag
;
/**
* 年(元)
*/
@TableField
(
"year_type"
)
private
BigDecimal
yearType
;
/**
* 季(元)
*/
@TableField
(
"season_type"
)
private
BigDecimal
seasonType
;
/**
* 月(元)
*/
@TableField
(
"month_type"
)
private
BigDecimal
monthType
;
/**
* 次(元)
*/
@TableField
(
"second_type"
)
private
BigDecimal
secondType
;
@TableField
(
"data_desc"
)
private
String
dataDesc
;
@TableField
(
"data_maximum"
)
private
String
dataMaximum
;
public
Long
getDataGoodsId
()
{
return
dataGoodsId
;
}
public
void
setDataGoodsId
(
Long
dataGoodsId
)
{
this
.
dataGoodsId
=
dataGoodsId
;
}
public
Long
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
Long
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
Long
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
String
getDataName
()
{
return
dataName
;
}
public
void
setDataName
(
String
dataName
)
{
this
.
dataName
=
dataName
;
}
public
String
getDataType
()
{
return
dataType
;
}
public
void
setDataType
(
String
dataType
)
{
this
.
dataType
=
dataType
;
}
public
String
getDataLabel
()
{
return
dataLabel
;
}
public
void
setDataLabel
(
String
dataLabel
)
{
this
.
dataLabel
=
dataLabel
;
}
public
String
getDataPicture
()
{
return
dataPicture
;
}
public
void
setDataPicture
(
String
dataPicture
)
{
this
.
dataPicture
=
dataPicture
;
}
public
BigDecimal
getDataPrice
()
{
return
dataPrice
;
}
public
void
setDataPrice
(
BigDecimal
dataPrice
)
{
this
.
dataPrice
=
dataPrice
;
}
public
BigDecimal
getDiscountPrice
()
{
return
discountPrice
;
}
public
void
setDiscountPrice
(
BigDecimal
discountPrice
)
{
this
.
discountPrice
=
discountPrice
;
}
public
String
getPriceType
()
{
return
priceType
;
}
public
void
setPriceType
(
String
priceType
)
{
this
.
priceType
=
priceType
;
}
public
String
getGoodsStandards
()
{
return
goodsStandards
;
}
public
void
setGoodsStandards
(
String
goodsStandards
)
{
this
.
goodsStandards
=
goodsStandards
;
}
public
String
getDataStatus
()
{
return
dataStatus
;
}
public
void
setDataStatus
(
String
dataStatus
)
{
this
.
dataStatus
=
dataStatus
;
}
public
String
getAuditStatus
()
{
return
auditStatus
;
}
public
void
setAuditStatus
(
String
auditStatus
)
{
this
.
auditStatus
=
auditStatus
;
}
public
String
getCleanRule
()
{
return
cleanRule
;
}
public
void
setCleanRule
(
String
cleanRule
)
{
this
.
cleanRule
=
cleanRule
;
}
public
String
getRejectReason
()
{
return
rejectReason
;
}
public
void
setRejectReason
(
String
rejectReason
)
{
this
.
rejectReason
=
rejectReason
;
}
public
String
getAuditPerson
()
{
return
auditPerson
;
}
public
void
setAuditPerson
(
String
auditPerson
)
{
this
.
auditPerson
=
auditPerson
;
}
public
Date
getAuditTime
()
{
return
auditTime
;
}
public
void
setAuditTime
(
Date
auditTime
)
{
this
.
auditTime
=
auditTime
;
}
public
Date
getCreTime
()
{
return
creTime
;
}
public
void
setCreTime
(
Date
creTime
)
{
this
.
creTime
=
creTime
;
}
public
String
getCrePerson
()
{
return
crePerson
;
}
public
void
setCrePerson
(
String
crePerson
)
{
this
.
crePerson
=
crePerson
;
}
public
Date
getUptTime
()
{
return
uptTime
;
}
public
void
setUptTime
(
Date
uptTime
)
{
this
.
uptTime
=
uptTime
;
}
public
String
getUptPerson
()
{
return
uptPerson
;
}
public
void
setUptPerson
(
String
uptPerson
)
{
this
.
uptPerson
=
uptPerson
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
BigDecimal
getYearType
()
{
return
yearType
;
}
public
void
setYearType
(
BigDecimal
yearType
)
{
this
.
yearType
=
yearType
;
}
public
BigDecimal
getSeasonType
()
{
return
seasonType
;
}
public
void
setSeasonType
(
BigDecimal
seasonType
)
{
this
.
seasonType
=
seasonType
;
}
public
BigDecimal
getMonthType
()
{
return
monthType
;
}
public
void
setMonthType
(
BigDecimal
monthType
)
{
this
.
monthType
=
monthType
;
}
public
BigDecimal
getSecondType
()
{
return
secondType
;
}
public
void
setSecondType
(
BigDecimal
secondType
)
{
this
.
secondType
=
secondType
;
}
@TableField
(
"max_pages"
)
private
String
maxPages
;
@TableField
(
"data_size"
)
private
String
dataSize
;
@TableField
(
"goods_limited"
)
private
Date
goodsLimited
;
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/DataGoodsCategory.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
...
...
@@ -23,31 +27,65 @@ public class DataGoodsCategory implements Serializable {
/**
* 商品分类id
*/
@TableId
(
value
=
"category_id"
,
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"商品分类id"
)
private
Long
categoryId
;
/**
* 分类名称
*/
@TableField
(
"category_name"
)
@ApiModelProperty
(
value
=
"分类名称"
)
private
String
categoryName
;
/**
* 父级分类id
*/
@TableField
(
"parent_id"
)
@ApiModelProperty
(
value
=
"父级分类id"
)
private
Long
parentId
;
/**
* 是否为子节点:Y是,N否
*/
@TableField
(
"if_child"
)
@ApiModelProperty
(
value
=
"是否为子节点"
)
private
String
ifChild
;
/**
* 创建时间
*/
@TableField
(
"cre_time"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
creTime
;
@TableField
(
"cre_person"
)
@ApiModelProperty
(
value
=
"创建人"
)
private
String
crePerson
;
/**
* 更新时间
*/
@TableField
(
"upt_time"
)
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
uptTime
;
private
String
delFlag
;
@TableField
(
"upt_person"
)
@ApiModelProperty
(
value
=
"更新人"
)
private
String
uptPerson
;
@ApiModelProperty
(
value
=
"分类描述"
)
@TableField
(
"category_desc"
)
private
String
categoryDesc
;
@ApiModelProperty
(
"分类图片"
)
@TableField
(
"category_picture"
)
private
String
categoryPicture
;
@ApiModelProperty
(
"分类位置"
)
@TableField
(
"category_location"
)
private
String
categoryLocation
;
@TableField
(
"del_flag"
)
@ApiModelProperty
(
value
=
"是否删除"
)
private
String
delFlag
;
@TableField
(
exist
=
false
)
private
List
<
DataGoodsCategory
>
children
;
...
...
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/Demand.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -14,20 +17,19 @@ import java.util.Date;
*/
@TableName
(
"t_demand"
)
@ApiModel
@Data
public
class
Demand
implements
Serializable
{
private
static
final
long
serialVersionUID
=
119352065467540895L
;
/**
* 需求id
*/
@TableId
(
value
=
"demand_id"
,
type
=
IdType
.
AUTO
)
private
Long
demandId
;
/**
* 用户id
*/
private
Long
customerId
;
/**
* 商品分类id(行业)
*/
private
Long
categoryId
;
/**
* 需求名称
*/
...
...
@@ -36,14 +38,7 @@ public class Demand implements Serializable {
* 需求描述
*/
private
String
demandDescribe
;
/**
* 数据类型:01api,02数据包
*/
private
Long
dataType
;
/**
* 发布时间
*/
private
Date
releaseTime
;
/**
* 审核状态:01待审核,02已审核,03未通过
*/
...
...
@@ -60,10 +55,7 @@ public class Demand implements Serializable {
* 驳回原因
*/
private
String
rejectReason
;
/**
* 购买方式
*/
private
String
purchaseMethod
;
/**
* 创建人
*/
...
...
@@ -72,142 +64,12 @@ public class Demand implements Serializable {
* 创建时间
*/
private
Date
creTime
;
/**
* 展示状态:01展示,02不展示
*/
private
String
ifShow
;
/**
* 删除标识:Y是,N否
*/
private
String
delFlag
;
public
Long
getDemandId
()
{
return
demandId
;
}
public
void
setDemandId
(
Long
demandId
)
{
this
.
demandId
=
demandId
;
}
public
Long
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
Long
customerId
)
{
this
.
customerId
=
customerId
;
}
public
Long
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
Long
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getDemandName
()
{
return
demandName
;
}
public
void
setDemandName
(
String
demandName
)
{
this
.
demandName
=
demandName
;
}
public
String
getDemandDescribe
()
{
return
demandDescribe
;
}
public
void
setDemandDescribe
(
String
demandDescribe
)
{
this
.
demandDescribe
=
demandDescribe
;
}
public
Long
getDataType
()
{
return
dataType
;
}
public
void
setDataType
(
Long
dataType
)
{
this
.
dataType
=
dataType
;
}
public
Date
getReleaseTime
()
{
return
releaseTime
;
}
public
void
setReleaseTime
(
Date
releaseTime
)
{
this
.
releaseTime
=
releaseTime
;
}
public
String
getAuditStatus
()
{
return
auditStatus
;
}
public
void
setAuditStatus
(
String
auditStatus
)
{
this
.
auditStatus
=
auditStatus
;
}
public
String
getAuditPerson
()
{
return
auditPerson
;
}
public
void
setAuditPerson
(
String
auditPerson
)
{
this
.
auditPerson
=
auditPerson
;
}
public
Date
getAuditTime
()
{
return
auditTime
;
}
public
void
setAuditTime
(
Date
auditTime
)
{
this
.
auditTime
=
auditTime
;
}
public
String
getRejectReason
()
{
return
rejectReason
;
}
public
void
setRejectReason
(
String
rejectReason
)
{
this
.
rejectReason
=
rejectReason
;
}
public
String
getPurchaseMethod
()
{
return
purchaseMethod
;
}
public
void
setPurchaseMethod
(
String
purchaseMethod
)
{
this
.
purchaseMethod
=
purchaseMethod
;
}
public
String
getCrePerson
()
{
return
crePerson
;
}
public
void
setCrePerson
(
String
crePerson
)
{
this
.
crePerson
=
crePerson
;
}
public
Date
getCreTime
()
{
return
creTime
;
}
public
void
setCreTime
(
Date
creTime
)
{
this
.
creTime
=
creTime
;
}
public
String
getIfShow
()
{
return
ifShow
;
}
public
void
setIfShow
(
String
ifShow
)
{
this
.
ifShow
=
ifShow
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/FinanceTradeFlow.java
View file @
e8a13bd5
...
...
@@ -3,6 +3,7 @@ package com.jz.manage.moduls.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
@@ -16,6 +17,7 @@ import java.util.Date;
*/
@TableName
(
"t_finance_trade_flow"
)
@ApiModel
@Data
public
class
FinanceTradeFlow
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
55257582310832314L
;
/**
...
...
@@ -71,99 +73,4 @@ public class FinanceTradeFlow implements Serializable {
private
BigDecimal
balanceMoney
;
public
Long
getTradeFlowId
()
{
return
tradeFlowId
;
}
public
void
setTradeFlowId
(
Long
tradeFlowId
)
{
this
.
tradeFlowId
=
tradeFlowId
;
}
public
Long
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Long
orderId
)
{
this
.
orderId
=
orderId
;
}
public
Long
getCashOutId
()
{
return
cashOutId
;
}
public
void
setCashOutId
(
Long
cashOutId
)
{
this
.
cashOutId
=
cashOutId
;
}
public
Long
getCustomerBalanceId
()
{
return
customerBalanceId
;
}
public
void
setCustomerBalanceId
(
Long
customerBalanceId
)
{
this
.
customerBalanceId
=
customerBalanceId
;
}
public
String
getTradeFlowNumber
()
{
return
tradeFlowNumber
;
}
public
void
setTradeFlowNumber
(
String
tradeFlowNumber
)
{
this
.
tradeFlowNumber
=
tradeFlowNumber
;
}
public
BigDecimal
getTradeMoney
()
{
return
tradeMoney
;
}
public
void
setTradeMoney
(
BigDecimal
tradeMoney
)
{
this
.
tradeMoney
=
tradeMoney
;
}
public
String
getTradeType
()
{
return
tradeType
;
}
public
void
setTradeType
(
String
tradeType
)
{
this
.
tradeType
=
tradeType
;
}
public
Date
getCreTime
()
{
return
creTime
;
}
public
void
setCreTime
(
Date
creTime
)
{
this
.
creTime
=
creTime
;
}
public
String
getCrePerson
()
{
return
crePerson
;
}
public
void
setCrePerson
(
String
crePerson
)
{
this
.
crePerson
=
crePerson
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
Long
getAssetsId
()
{
return
assetsId
;
}
public
void
setAssetsId
(
Long
assetsId
)
{
this
.
assetsId
=
assetsId
;
}
public
BigDecimal
getBalanceMoney
()
{
return
balanceMoney
;
}
public
void
setBalanceMoney
(
BigDecimal
balanceMoney
)
{
this
.
balanceMoney
=
balanceMoney
;
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/MenuConfig.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
@ApiModel
@Data
@TableName
(
"t_menu_config"
)
public
class
MenuConfig
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5307571642090373317L
;
@ApiModelProperty
(
value
=
"广告id"
)
@TableId
(
value
=
"config_id"
,
type
=
IdType
.
AUTO
)
private
Long
configId
;
@ApiModelProperty
(
value
=
"菜单名称"
)
private
String
configName
;
@ApiModelProperty
(
value
=
"菜单路径"
)
private
String
configUrl
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
creTime
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
crePerson
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
uptTime
;
@ApiModelProperty
(
value
=
"更新人"
)
private
String
uptPerson
;
@ApiModelProperty
(
value
=
"删除标识"
)
private
String
delFlag
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/Order.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
@@ -15,11 +18,13 @@ import java.util.Date;
*/
@TableName
(
"t_order"
)
@ApiModel
@Data
public
class
Order
implements
Serializable
{
private
static
final
long
serialVersionUID
=
651546246975691600L
;
/**
* 订单id
*/
@TableId
(
value
=
"order_id"
,
type
=
IdType
.
AUTO
)
private
Long
orderId
;
/**
* 订单编号
...
...
@@ -110,189 +115,4 @@ public class Order implements Serializable {
*/
private
String
delFlag
;
public
Long
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Long
orderId
)
{
this
.
orderId
=
orderId
;
}
public
String
getOrderNumber
()
{
return
orderNumber
;
}
public
void
setOrderNumber
(
String
orderNumber
)
{
this
.
orderNumber
=
orderNumber
;
}
public
Long
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
Long
customerId
)
{
this
.
customerId
=
customerId
;
}
public
String
getOrderStatus
()
{
return
orderStatus
;
}
public
void
setOrderStatus
(
String
orderStatus
)
{
this
.
orderStatus
=
orderStatus
;
}
public
BigDecimal
getOrderMoney
()
{
return
orderMoney
;
}
public
void
setOrderMoney
(
BigDecimal
orderMoney
)
{
this
.
orderMoney
=
orderMoney
;
}
public
Date
getOrderTime
()
{
return
orderTime
;
}
public
void
setOrderTime
(
Date
orderTime
)
{
this
.
orderTime
=
orderTime
;
}
public
Long
getSellerId
()
{
return
sellerId
;
}
public
void
setSellerId
(
Long
sellerId
)
{
this
.
sellerId
=
sellerId
;
}
public
BigDecimal
getPaymentMoney
()
{
return
paymentMoney
;
}
public
void
setPaymentMoney
(
BigDecimal
paymentMoney
)
{
this
.
paymentMoney
=
paymentMoney
;
}
public
Date
getPaymentTime
()
{
return
paymentTime
;
}
public
void
setPaymentTime
(
Date
paymentTime
)
{
this
.
paymentTime
=
paymentTime
;
}
public
String
getPaymentMethod
()
{
return
paymentMethod
;
}
public
void
setPaymentMethod
(
String
paymentMethod
)
{
this
.
paymentMethod
=
paymentMethod
;
}
public
BigDecimal
getDistrictMoney
()
{
return
districtMoney
;
}
public
void
setDistrictMoney
(
BigDecimal
districtMoney
)
{
this
.
districtMoney
=
districtMoney
;
}
public
String
getPurchaseMethod
()
{
return
purchaseMethod
;
}
public
void
setPurchaseMethod
(
String
purchaseMethod
)
{
this
.
purchaseMethod
=
purchaseMethod
;
}
public
String
getGoodsToken
()
{
return
goodsToken
;
}
public
void
setGoodsToken
(
String
goodsToken
)
{
this
.
goodsToken
=
goodsToken
;
}
public
String
getSaltValue
()
{
return
saltValue
;
}
public
void
setSaltValue
(
String
saltValue
)
{
this
.
saltValue
=
saltValue
;
}
public
String
getApiKey
()
{
return
apiKey
;
}
public
void
setApiKey
(
String
apiKey
)
{
this
.
apiKey
=
apiKey
;
}
public
Date
getTakeEffectTime
()
{
return
takeEffectTime
;
}
public
void
setTakeEffectTime
(
Date
takeEffectTime
)
{
this
.
takeEffectTime
=
takeEffectTime
;
}
public
Date
getInvalidTime
()
{
return
invalidTime
;
}
public
void
setInvalidTime
(
Date
invalidTime
)
{
this
.
invalidTime
=
invalidTime
;
}
public
String
getPriceType
()
{
return
priceType
;
}
public
void
setPriceType
(
String
priceType
)
{
this
.
priceType
=
priceType
;
}
public
String
getCrePerson
()
{
return
crePerson
;
}
public
void
setCrePerson
(
String
crePerson
)
{
this
.
crePerson
=
crePerson
;
}
public
Date
getCreTime
()
{
return
creTime
;
}
public
void
setCreTime
(
Date
creTime
)
{
this
.
creTime
=
creTime
;
}
public
Date
getUptTime
()
{
return
uptTime
;
}
public
void
setUptTime
(
Date
uptTime
)
{
this
.
uptTime
=
uptTime
;
}
public
String
getUptPerson
()
{
return
uptPerson
;
}
public
void
setUptPerson
(
String
uptPerson
)
{
this
.
uptPerson
=
uptPerson
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/OrderPayment.java
View file @
e8a13bd5
...
...
@@ -2,6 +2,7 @@ package com.jz.manage.moduls.entity;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
...
...
@@ -15,6 +16,7 @@ import java.util.Date;
*/
@TableName
(
"t_order_payment"
)
@ApiModel
@Data
public
class
OrderPayment
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
14423507905800987L
;
/**
...
...
@@ -57,98 +59,12 @@ public class OrderPayment implements Serializable {
* 创建时间
*/
private
Date
creTime
;
private
String
crePerson
;
/**
* 删除标识
*/
private
String
delFlag
;
public
Long
getPaymentId
()
{
return
paymentId
;
}
public
void
setPaymentId
(
Long
paymentId
)
{
this
.
paymentId
=
paymentId
;
}
public
Long
getOrderId
()
{
return
orderId
;
}
public
void
setOrderId
(
Long
orderId
)
{
this
.
orderId
=
orderId
;
}
public
Long
getSellerId
()
{
return
sellerId
;
}
public
void
setSellerId
(
Long
sellerId
)
{
this
.
sellerId
=
sellerId
;
}
public
BigDecimal
getPaymentMoney
()
{
return
paymentMoney
;
}
public
void
setPaymentMoney
(
BigDecimal
paymentMoney
)
{
this
.
paymentMoney
=
paymentMoney
;
}
public
Date
getPaymentTime
()
{
return
paymentTime
;
}
public
void
setPaymentTime
(
Date
paymentTime
)
{
this
.
paymentTime
=
paymentTime
;
}
public
String
getPaymentMethod
()
{
return
paymentMethod
;
}
public
void
setPaymentMethod
(
String
paymentMethod
)
{
this
.
paymentMethod
=
paymentMethod
;
}
public
BigDecimal
getDistrictMoney
()
{
return
districtMoney
;
}
public
void
setDistrictMoney
(
BigDecimal
districtMoney
)
{
this
.
districtMoney
=
districtMoney
;
}
public
String
getPaymentStatus
()
{
return
paymentStatus
;
}
public
void
setPaymentStatus
(
String
paymentStatus
)
{
this
.
paymentStatus
=
paymentStatus
;
}
public
String
getPurchaseMethod
()
{
return
purchaseMethod
;
}
public
void
setPurchaseMethod
(
String
purchaseMethod
)
{
this
.
purchaseMethod
=
purchaseMethod
;
}
public
Date
getCreTime
()
{
return
creTime
;
}
public
void
setCreTime
(
Date
creTime
)
{
this
.
creTime
=
creTime
;
}
public
String
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/RoleGoods.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/2
* @Version:
*/
@Data
@ApiModel
@TableName
(
value
=
"t_role_goods"
)
public
class
RoleGoods
implements
Serializable
{
@TableId
(
value
=
"role_goods_id"
,
type
=
IdType
.
AUTO
)
private
Long
roleGoodsId
;
@TableField
(
"role_id"
)
private
Long
roleId
;
@TableField
(
"data_goods_id"
)
private
Long
dataGoodsId
;
@TableField
(
"del_flag"
)
private
String
delFlag
;
@TableField
(
exist
=
false
)
private
String
roleName
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/SceneCategory.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @ClassName: 场景分类表
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
@TableName
(
"t_scene_category"
)
@ApiModel
@Data
public
class
SceneCategory
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6098559795341556267L
;
/**
* 商品分类id
*/
@TableId
(
value
=
"scene_id"
,
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"场景分类id"
)
private
Long
sceneId
;
/**
* 分类名称
*/
@TableField
(
"scene_name"
)
@ApiModelProperty
(
value
=
"分类名称"
)
private
String
sceneName
;
/**
* 父级分类id
*/
@TableField
(
"parent_id"
)
@ApiModelProperty
(
value
=
"父级分类id"
)
private
Long
parentId
;
/**
* 是否为子节点:Y是,N否
*/
@TableField
(
"if_child"
)
@ApiModelProperty
(
value
=
"是否为子节点"
)
private
String
ifChild
;
/**
* 创建时间
*/
@TableField
(
"cre_time"
)
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
creTime
;
@TableField
(
"cre_person"
)
@ApiModelProperty
(
value
=
"创建人"
)
private
String
crePerson
;
/**
* 更新时间
*/
@TableField
(
"upt_time"
)
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
uptTime
;
@TableField
(
"del_flag"
)
@ApiModelProperty
(
value
=
"是否删除"
)
private
String
delFlag
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/entity/SceneGoodsCategory.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @ClassName: 商品-场景分类关系表
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
@TableName
(
"t_scene_goods_category"
)
@Data
@ApiModel
public
class
SceneGoodsCategory
implements
Serializable
{
private
static
final
long
serialVersionUID
=
7794764423295187797L
;
@TableId
(
value
=
"scene_category_id"
,
type
=
IdType
.
AUTO
)
private
Long
sceneCategoryId
;
@TableField
(
"scene_id"
)
private
Long
sceneId
;
@TableField
(
"category_id"
)
private
Long
categoryId
;
@TableField
(
"del_flag"
)
private
String
delFlag
;
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/BannerDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.entity.Banner
;
import
org.apache.ibatis.annotations.Param
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
public
interface
BannerDao
extends
BaseMapper
<
Banner
>
{
/**
* 条件查询全部广告
* @param page
* @param queryWrapper
* @return
*/
IPage
<
Banner
>
selectByList
(
IPage
<
Banner
>
page
,
@Param
(
"ew"
)
QueryWrapper
<
Banner
>
queryWrapper
);
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/DataGoodsApiDao.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsApiDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DepartmentDataGoodsDto
;
import
com.jz.manage.moduls.entity.DataGoodsApi
;
import
org.apache.ibatis.annotations.Param
;
...
...
@@ -22,4 +25,6 @@ public interface DataGoodsApiDao extends BaseMapper<DataGoodsApi> {
* @return
*/
List
<
DataGoodsApiDto
>
findById
(
@Param
(
"dataGoodsId"
)
Long
id
);
IPage
<
DepartmentDataGoodsDto
>
selectByList
(
IPage
<
DepartmentDataGoodsDto
>
page
,
@Param
(
"ew"
)
QueryWrapper
<
DepartmentDataGoodsDto
>
queryWrapper
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/DataGoodsCategoryDao.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.goods.bean.dto.CategoryAndSceneDto
;
import
com.jz.manage.moduls.entity.DataGoodsCategory
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -15,9 +19,18 @@ import java.util.List;
public
interface
DataGoodsCategoryDao
extends
BaseMapper
<
DataGoodsCategory
>
{
List
<
DataGoodsCategory
>
findByScene
();
/**
* 查询所有分类
* 条件查询分类
* @param categoryName
* @return
*/
List
<
DataGoodsCategory
>
selectByList
();
List
<
DataGoodsCategory
>
selectByList
(
@Param
(
"categoryName"
)
String
categoryName
);
CategoryAndSceneDto
getCategoryDetail
(
@Param
(
"categoryId"
)
Long
categoryId
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/DataGoodsDao.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.common.entity.DataGoods
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsAuditDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsListDto
;
import
com.jz.manage.moduls.entity.DataGoods
;
import
org.apache.ibatis.annotations.Param
;
/**
...
...
@@ -55,12 +55,6 @@ public interface DataGoodsDao extends BaseMapper<DataGoods> {
*/
public
int
deleteByPrimaryKey
(
Long
dataGoodsId
)
throws
Exception
;
/**条件查询数据商品
* @param param
* @return
* @throws Exception
*/
public
List
<
DataGoodsListDto
>
findList
(
Map
<
String
,
Object
>
param
)
throws
Exception
;
/**主键查询数据商品
* @param
...
...
@@ -82,4 +76,11 @@ public interface DataGoodsDao extends BaseMapper<DataGoods> {
* @return
*/
IPage
<
DataGoodsAuditDto
>
findByAudit
(
IPage
<
DataGoodsAuditDto
>
page
,
@Param
(
"ew"
)
QueryWrapper
<
DataGoodsAuditDto
>
queryWrapper
);
/**条件查询数据商品
* @param pageInfoResponse
* @return
*/
IPage
<
DataGoodsListDto
>
findList
(
IPage
<
DataGoodsListDto
>
pageInfoResponse
,
@Param
(
"ew"
)
QueryWrapper
<
DataGoodsListDto
>
queryWrapper
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/DemandDao.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.common.entity.Demand
;
import
com.jz.manage.moduls.entity.Demand
;
/**
* 用户需求定制申请(TDemand)表数据库访问层
...
...
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/DepartmentDao.java
View file @
e8a13bd5
...
...
@@ -10,6 +10,8 @@ import com.jz.manage.moduls.controller.customer.bean.dto.CompanyDetailsDto;
import
com.jz.manage.moduls.controller.customer.bean.dto.EnterpriseAuditDto
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 企业(TDepartment)表数据库访问层
*
...
...
@@ -37,5 +39,5 @@ public interface DepartmentDao extends BaseMapper<Department> {
* @param query
* @return
*/
DepartmentAssetsDto
selectByDepartment
(
@Param
(
"ew"
)
QueryWrapper
<
DepartmentAssetsDto
>
query
);
List
<
DepartmentAssetsDto
>
selectByDepartment
(
@Param
(
"ew"
)
QueryWrapper
<
DepartmentAssetsDto
>
query
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/MenuConfigDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.entity.MenuConfig
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
public
interface
MenuConfigDao
extends
BaseMapper
<
MenuConfig
>
{
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/OrderDao.java
View file @
e8a13bd5
...
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.controller.finance.platForm.dto.MoneyAndOrderTotalDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataAndOrderDto
;
import
com.jz.manage.moduls.controller.order.bean.dto.OrderAndAuthorizedDto
;
import
com.jz.manage.moduls.controller.order.bean.dto.OrderDetailDto
;
import
com.jz.manage.moduls.controller.order.bean.dto.OrderDto
;
import
com.jz.manage.moduls.entity.Order
;
...
...
@@ -41,4 +43,19 @@ public interface OrderDao extends BaseMapper<Order> {
* @return
*/
IPage
<
OrderDto
>
queryListOrderInfo
(
IPage
<
OrderDto
>
page
,
@Param
(
"ew"
)
QueryWrapper
<
OrderDto
>
query
);
/**
* 查询是否授权给企业使用
* @param goodsId
* @return
*/
DataAndOrderDto
selectByGoods
(
@Param
(
"goodsId"
)
Long
goodsId
);
/**
*
* @param customerId
* @param dataGoodsId
* @return
*/
OrderAndAuthorizedDto
isAuthorization
(
@Param
(
"customerId"
)
Long
customerId
,
@Param
(
"dataGoodsId"
)
Long
dataGoodsId
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/RoleGoodsDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.entity.RoleGoods
;
import
org.apache.ibatis.annotations.Param
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/2
* @Version:
*/
public
interface
RoleGoodsDao
extends
BaseMapper
<
RoleGoods
>
{
/**
* 获取商品权限
* @param dataGoodsId
* @return
*/
RoleGoods
findByRole
(
@Param
(
"dataGoodsId"
)
Long
dataGoodsId
);
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/SceneCategoryDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.entity.SceneCategory
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
public
interface
SceneCategoryDao
extends
BaseMapper
<
SceneCategory
>
{
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/mapper/SceneGoodsCategoryDao.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.manage.moduls.entity.SceneGoodsCategory
;
/**
* @ClassName:
* @Author: Carl
* @Date: 2021/2/3
* @Version:
*/
public
interface
SceneGoodsCategoryDao
extends
BaseMapper
<
SceneGoodsCategory
>
{
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/service/BannerServer.java
0 → 100644
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.config.bean.req.BannerAddAndEditReq
;
import
com.jz.manage.moduls.controller.config.bean.req.BannerConfigListReq
;
import
com.jz.manage.moduls.entity.Banner
;
/**
* @ClassName: 广告配置表服务接口
* @Author: Carl
* @Date: 2021/2/7
* @Version:
*/
public
interface
BannerServer
{
/**
* 查询全部广告
* @return
*/
Result
<
IPage
<
Banner
>>
findList
(
BannerConfigListReq
req
);
/**
* 查询广告
* @param bannerId
* @return
*/
Result
findByBanner
(
Long
bannerId
);
/**
* 新增广告
* @param req
* @return
*/
Result
addBanner
(
BannerAddAndEditReq
req
);
/**
* 编辑广告
* @param req
* @return
*/
Result
editBanner
(
BannerAddAndEditReq
req
);
/**
* 删除广告
* @param bannerId
* @return
*/
Result
deleteBanner
(
Long
bannerId
);
}
jz-dm-manage/src/main/java/com/jz/manage/moduls/service/DataGoodsApiService.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DepartmentDataGoodsDto
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataApiUpReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DepartmentByRenewReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DepartmentDataGoodsReq
;
/**
...
...
@@ -19,5 +23,13 @@ public interface DataGoodsApiService {
*/
Result
selectById
(
Long
id
)
throws
Exception
;
/**
* 条件查询企业商品列表
* @param req
* @return
*/
Result
<
IPage
<
DepartmentDataGoodsDto
>>
findByDepartmentGoods
(
DepartmentDataGoodsReq
req
);
Result
DepartmentByRenew
(
DepartmentByRenewReq
req
)
throws
Exception
;
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/service/DataGoodsCategoryService.java
View file @
e8a13bd5
package
com
.
jz
.
manage
.
moduls
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.goods.bean.request.AddCateGoryReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.CategoryAndSceneReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.CategoryDetailReq
;
import
com.jz.manage.moduls.controller.goods.bean.request.DataGoodsByCategoryReq
;
import
com.jz.manage.moduls.entity.DataGoodsCategory
;
import
java.util.List
;
...
...
@@ -18,5 +23,46 @@ public interface DataGoodsCategoryService {
* 查询所有的商品分类
* @return
*/
Result
findCategory
();
Result
<
List
<
DataGoodsCategory
>>
findByCategory
()
throws
Exception
;
/**
* 查询场景分类
* @return
*/
Result
findByScene
();
/**
* 添加一级分类
* @param category
* @return
*/
Result
addCategory
(
AddCateGoryReq
category
)
throws
Exception
;
/**
* 编辑分类
* @param category
* @return
*/
Result
editCategory
(
AddCateGoryReq
category
)
throws
Exception
;
/**
* 条件查询分类
* @param search
* @return
*/
Result
selectByCategory
(
String
search
);
/**
* 查询分类详情
* @param req
* @return
*/
Result
getCategoryDetail
(
CategoryDetailReq
req
);
/**
* 删除分类
* @param req
* @return
*/
Result
deleteByCategory
(
CategoryAndSceneReq
req
);
}
\ No newline at end of file
jz-dm-manage/src/main/java/com/jz/manage/moduls/service/DataGoodsService.java
View file @
e8a13bd5
...
...
@@ -5,13 +5,13 @@ import javax.servlet.http.HttpServletRequest;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.jz.common.bean.BaseBeanResponse
;
import
com.jz.common.bean.BaseResponse
;
import
com.jz.common.bean.PageInfoResponse
;
import
com.jz.common.entity.DataGoods
;
import
com.jz.common.utils.Result
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsAuditDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsDto
;
import
com.jz.manage.moduls.controller.goods.bean.dto.DataGoodsListDto
;
import
com.jz.manage.moduls.controller.goods.bean.request.*
;
import
com.jz.manage.moduls.entity.DataGoods
;
/**
...
...
@@ -28,7 +28,7 @@ public interface DataGoodsService {
* @return
* @throws Exception
*/
public
PageInfoResponse
<
DataGoodsListDto
>
findList
(
DataGoodsListRequest
dataGoodsListRequest
,
HttpServletRequest
httpRequest
)
throws
Exception
;
public
Result
<
IPage
<
DataGoodsListDto
>
>
findList
(
DataGoodsListRequest
dataGoodsListRequest
,
HttpServletRequest
httpRequest
)
throws
Exception
;
/**新增数据商品
...
...
@@ -67,7 +67,13 @@ public interface DataGoodsService {
*/
public
BaseResponse
deleteById
(
DataGoodsRequest
dataGoodsRequest
,
HttpServletRequest
httpRequest
)
throws
Exception
;
Result
editStatus
(
Long
goodsId
,
Long
statusId
);
/**
* 商品上下级管理
* @param goodsId
* @param statusId
* @return
*/
Result
editStatus
(
Long
goodsId
,
String
statusId
)
throws
Exception
;
/**
* 列表查询审核数据商品
...
...
@@ -84,6 +90,61 @@ public interface DataGoodsService {
*/
Result
auditDataGoods
(
DataGoodsAuditReq
req
);
/**
* 获取api列表
* @return
*/
Result
getAPIList
(
SendDataReq
req
);
/**
* 获取API详情
* @param req
* @return
*/
Result
getApiInterfaceDetail
(
ApiInterfaceDetailReq
req
);
/**
* 制作商品
* @param req
* @return
*/
Result
makeByGoods
(
DataApiUpReq
req
)
throws
Exception
;
/**
* 浏览授权
* @param roleReq
* @return
*/
Result
browseByAuthorization
(
DataGoodsByRoleReq
roleReq
);
/**
* 查询授权
* @param dataGoodsId
* @return
*/
Result
findByAuthorization
(
Long
dataGoodsId
);
/**
* 查询商品详情
* @param id
* @return
*/
Result
selectById
(
Long
id
);
/**
* 使用授权
* @param req
* @return
*/
Result
useByAuthorization
(
GoodsByAuthorizationReq
req
)
throws
Exception
;