Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
1c023a12
提交
1c023a12
authored
6月 30, 2023
作者:
zhenjie
提交者:
余乾开
7月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
需求列表、业务案例、新闻列表地址编码筛选
上级
fc7cd720
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
5 行删除
+8
-5
IndustryCaseServiceImpl.java
...mmc/csf/release/service/impl/IndustryCaseServiceImpl.java
+4
-0
IndustryNewsServiceImpl.java
...mmc/csf/release/service/impl/IndustryNewsServiceImpl.java
+4
-0
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+0
-5
没有找到文件。
release-service/src/main/java/com/mmc/csf/release/service/impl/IndustryCaseServiceImpl.java
浏览文件 @
1c023a12
...
@@ -10,6 +10,7 @@ import com.mmc.csf.release.dao.IndustryCaseDao;
...
@@ -10,6 +10,7 @@ import com.mmc.csf.release.dao.IndustryCaseDao;
import
com.mmc.csf.release.entity.information.IndustryCaseDO
;
import
com.mmc.csf.release.entity.information.IndustryCaseDO
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.service.IndustryCaseService
;
import
com.mmc.csf.release.service.IndustryCaseService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -34,6 +35,9 @@ public class IndustryCaseServiceImpl implements IndustryCaseService {
...
@@ -34,6 +35,9 @@ public class IndustryCaseServiceImpl implements IndustryCaseService {
//查询对应地区的用户
//查询对应地区的用户
if
(
industryCaseQO
.
getProvinceCode
()
!=
null
)
{
if
(
industryCaseQO
.
getProvinceCode
()
!=
null
)
{
List
<
Integer
>
userIds
=
userAppApi
.
feignListUserAccountIds
(
industryCaseQO
.
getProvinceCode
(),
industryCaseQO
.
getCityCode
(),
industryCaseQO
.
getDistrictCode
(),
request
.
getHeader
(
TokenConstant
.
TOKEN
));
List
<
Integer
>
userIds
=
userAppApi
.
feignListUserAccountIds
(
industryCaseQO
.
getProvinceCode
(),
industryCaseQO
.
getCityCode
(),
industryCaseQO
.
getDistrictCode
(),
request
.
getHeader
(
TokenConstant
.
TOKEN
));
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
ResultBody
.
success
(
PageResult
.
buildPage
(
industryCaseQO
.
getPageNo
(),
industryCaseQO
.
getPageSize
(),
0
));
}
industryCaseQO
.
setUserIds
(
userIds
);
industryCaseQO
.
setUserIds
(
userIds
);
}
}
int
count
=
industryCaseDao
.
countListCasePage
(
industryCaseQO
);
int
count
=
industryCaseDao
.
countListCasePage
(
industryCaseQO
);
...
...
release-service/src/main/java/com/mmc/csf/release/service/impl/IndustryNewsServiceImpl.java
浏览文件 @
1c023a12
...
@@ -12,6 +12,7 @@ import com.mmc.csf.release.dao.IndustryNewsDao;
...
@@ -12,6 +12,7 @@ import com.mmc.csf.release.dao.IndustryNewsDao;
import
com.mmc.csf.release.entity.information.IndustryNewsDO
;
import
com.mmc.csf.release.entity.information.IndustryNewsDO
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.service.IndustryNewsService
;
import
com.mmc.csf.release.service.IndustryNewsService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -37,6 +38,9 @@ public class IndustryNewsServiceImpl implements IndustryNewsService {
...
@@ -37,6 +38,9 @@ public class IndustryNewsServiceImpl implements IndustryNewsService {
//查询对应地区的用户, 默认查广东
//查询对应地区的用户, 默认查广东
if
(
industryCaseQO
.
getProvinceCode
()
!=
null
)
{
if
(
industryCaseQO
.
getProvinceCode
()
!=
null
)
{
List
<
Integer
>
userIds
=
userAppApi
.
feignListUserAccountIds
(
industryCaseQO
.
getProvinceCode
(),
industryCaseQO
.
getCityCode
(),
industryCaseQO
.
getDistrictCode
(),
request
.
getHeader
(
TokenConstant
.
TOKEN
));
List
<
Integer
>
userIds
=
userAppApi
.
feignListUserAccountIds
(
industryCaseQO
.
getProvinceCode
(),
industryCaseQO
.
getCityCode
(),
industryCaseQO
.
getDistrictCode
(),
request
.
getHeader
(
TokenConstant
.
TOKEN
));
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
ResultBody
.
success
(
PageResult
.
buildPage
(
industryCaseQO
.
getPageNo
(),
industryCaseQO
.
getPageSize
(),
0
));
}
industryCaseQO
.
setUserIds
(
userIds
);
industryCaseQO
.
setUserIds
(
userIds
);
}
}
int
count
=
industryNewsDao
.
countListNewsPage
(
industryCaseQO
);
int
count
=
industryNewsDao
.
countListNewsPage
(
industryCaseQO
);
...
...
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
1c023a12
...
@@ -69,11 +69,6 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -69,11 +69,6 @@ public class RequirementsServiceImpl implements RequirementsService {
@Override
@Override
public
ResultBody
listPublishPage
(
IndustryCaseQO
industryCaseQO
,
HttpServletRequest
request
)
{
public
ResultBody
listPublishPage
(
IndustryCaseQO
industryCaseQO
,
HttpServletRequest
request
)
{
//查询对应地区的用户
//查询对应地区的用户
//查询对应地区的用户, 默认查广东
if
(
industryCaseQO
.
getProvinceCode
()
!=
null
){
List
<
Integer
>
userIds
=
userAppApi
.
feignListUserAccountIds
(
industryCaseQO
.
getProvinceCode
(),
industryCaseQO
.
getCityCode
(),
industryCaseQO
.
getDistrictCode
(),
request
.
getHeader
(
TokenConstant
.
TOKEN
));
industryCaseQO
.
setUserIds
(
userIds
);
}
int
count
=
requirementsDao
.
countListPublishPage
(
industryCaseQO
);
int
count
=
requirementsDao
.
countListPublishPage
(
industryCaseQO
);
if
(
count
==
0
)
{
if
(
count
==
0
)
{
return
ResultBody
.
success
(
PageResult
.
buildPage
(
industryCaseQO
.
getPageNo
(),
industryCaseQO
.
getPageSize
(),
count
));
return
ResultBody
.
success
(
PageResult
.
buildPage
(
industryCaseQO
.
getPageNo
(),
industryCaseQO
.
getPageSize
(),
count
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论