Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
e91f511c
Commit
e91f511c
authored
Jul 30, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增获取渠道精简列表接口
parent
d0402944
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
ChannelConvert.java
...der/yudao/module/sale/convert/channel/ChannelConvert.java
+1
-0
ChannelService.java
...der/yudao/module/sale/service/channel/ChannelService.java
+2
-0
ChannelServiceImpl.java
.../module/sale/service/channel/impl/ChannelServiceImpl.java
+6
-0
ChannelSimpleRespVO.java
...der/yudao/module/sale/vo/channel/ChannelSimpleRespVO.java
+22
-0
ChannelController.java
...dule/sale/controller/admin/channel/ChannelController.java
+7
-0
No files found.
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/convert/channel/ChannelConvert.java
View file @
e91f511c
...
...
@@ -26,6 +26,7 @@ public interface ChannelConvert {
ChannelRespVO
convert
(
ChannelDO
bean
);
List
<
ChannelRespVO
>
convertList
(
List
<
ChannelDO
>
list
);
List
<
ChannelSimpleRespVO
>
convertSimpleList
(
List
<
ChannelDO
>
list
);
PageResult
<
ChannelRespVO
>
convertPage
(
PageResult
<
ChannelDO
>
page
);
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/channel/ChannelService.java
View file @
e91f511c
...
...
@@ -86,4 +86,6 @@ public interface ChannelService extends IService<ChannelDO> {
* @return 渠道管理分页
*/
PageResult
<
ChannelRespVO
>
channelPage
(
ChannelPageReqVO
pageVO
);
List
<
ChannelDO
>
getChannelSimpleList
();
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/service/channel/impl/ChannelServiceImpl.java
View file @
e91f511c
...
...
@@ -19,6 +19,7 @@ import cn.iocoder.yudao.module.sale.service.channel.ChannelService;
import
cn.iocoder.yudao.module.sale.service.channelPackaging.ChannelPackagingService
;
import
cn.iocoder.yudao.module.sale.service.channelPriceStepClearance.ChannelPriceStepClearanceService
;
import
cn.iocoder.yudao.module.sale.vo.channel.*
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -233,4 +234,9 @@ public class ChannelServiceImpl extends AbstractService<ChannelMapper, ChannelDO
List
<
ChannelRespVO
>
channelList
=
pageResult
.
getList
();
return
pageResult
;
}
@Override
public
List
<
ChannelDO
>
getChannelSimpleList
()
{
return
channelMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChannelDO
>());
}
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/channel/ChannelSimpleRespVO.java
0 → 100644
View file @
e91f511c
package
cn
.
iocoder
.
yudao
.
module
.
sale
.
vo
.
channel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
@ApiModel
(
"渠道精简信息 Response VO"
)
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
ChannelSimpleRespVO
{
@ApiModelProperty
(
value
=
""
,
required
=
true
)
private
Long
channelId
;
@ApiModelProperty
(
value
=
"中文标题"
)
private
String
nameZh
;
@ApiModelProperty
(
value
=
"英文标题"
)
private
String
nameEn
;
}
\ No newline at end of file
yudao-module-sale/yudao-module-sale-rest/src/main/java/cn/iocoder/yudao/module/sale/controller/admin/channel/ChannelController.java
View file @
e91f511c
...
...
@@ -110,6 +110,13 @@ public class ChannelController {
return
success
(
ChannelConvert
.
INSTANCE
.
convertList
(
list
));
}
@GetMapping
(
"/list-all-simple"
)
@ApiOperation
(
value
=
"获得渠道精简信息列表"
,
notes
=
"主要用于前端的下拉选项"
)
public
CommonResult
<
List
<
ChannelSimpleRespVO
>>
getChannelSimpleList
()
{
List
<
ChannelDO
>
list
=
channelService
.
getChannelSimpleList
();
return
success
(
ChannelConvert
.
INSTANCE
.
convertSimpleList
(
list
));
}
@GetMapping
(
"/select"
)
@ApiOperation
(
"获得可用渠道列表查询(参数可选择一个,最终以目的地国家来查询,不传代表查询所有)"
)
@ApiImplicitParams
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment