Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
4d46b5bf
Commit
4d46b5bf
authored
Aug 03, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 分组过滤增加 企微id
parent
980b5ea8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
9 deletions
+12
-9
TabHaobanHmGroupSettingMapper.java
.../service/dao/mapper/hm/TabHaobanHmGroupSettingMapper.java
+2
-1
HmGroupService.java
.../gic/haoban/manage/service/service/hm/HmGroupService.java
+1
-1
HmGroupServiceImpl.java
...an/manage/service/service/hm/impl/HmGroupServiceImpl.java
+2
-2
HmGroupApiServiceImpl.java
...ge/service/service/out/impl/hm/HmGroupApiServiceImpl.java
+3
-3
TabHaobanHmGroupSettingMapper.xml
...ain/resources/mapper/hm/TabHaobanHmGroupSettingMapper.xml
+2
-0
HmPageServiceTest.java
haoban-manage3-service/src/test/java/HmPageServiceTest.java
+1
-1
HmGroupController.java
...ic/haoban/manage/web/controller/hm/HmGroupController.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmGroupSettingMapper.java
View file @
4d46b5bf
...
@@ -40,6 +40,6 @@ public interface TabHaobanHmGroupSettingMapper {
...
@@ -40,6 +40,6 @@ public interface TabHaobanHmGroupSettingMapper {
* @param enterpriseId
* @param enterpriseId
* @return
* @return
*/
*/
List
<
TabHaobanHmGroupSetting
>
queryHmGroupSettingByName
(
@Param
(
"enterpriseId"
)
String
enterpriseId
,
@Param
(
"groupName"
)
String
groupName
);
List
<
TabHaobanHmGroupSetting
>
queryHmGroupSettingByName
(
@Param
(
"
wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"
enterpriseId"
)
String
enterpriseId
,
@Param
(
"groupName"
)
String
groupName
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/HmGroupService.java
View file @
4d46b5bf
...
@@ -59,6 +59,6 @@ public interface HmGroupService {
...
@@ -59,6 +59,6 @@ public interface HmGroupService {
* @param enterpriseId
* @param enterpriseId
* @return
* @return
*/
*/
List
<
HmGroupSettingBO
>
queryGroupSettingByName
(
String
enterpriseId
,
String
groupName
);
List
<
HmGroupSettingBO
>
queryGroupSettingByName
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
groupName
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmGroupServiceImpl.java
View file @
4d46b5bf
...
@@ -136,8 +136,8 @@ public class HmGroupServiceImpl implements HmGroupService {
...
@@ -136,8 +136,8 @@ public class HmGroupServiceImpl implements HmGroupService {
}
}
}
}
public
List
<
HmGroupSettingBO
>
queryGroupSettingByName
(
String
enterpriseId
,
String
groupName
){
public
List
<
HmGroupSettingBO
>
queryGroupSettingByName
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
groupName
){
List
<
TabHaobanHmGroupSetting
>
tabHaobanHmGroupSettings
=
haobanHmGroupSettingMapper
.
queryHmGroupSettingByName
(
enterpriseId
,
groupName
);
List
<
TabHaobanHmGroupSetting
>
tabHaobanHmGroupSettings
=
haobanHmGroupSettingMapper
.
queryHmGroupSettingByName
(
wxEnterpriseId
,
enterpriseId
,
groupName
);
if
(
CollectionUtils
.
isEmpty
(
tabHaobanHmGroupSettings
)){
if
(
CollectionUtils
.
isEmpty
(
tabHaobanHmGroupSettings
)){
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmGroupApiServiceImpl.java
View file @
4d46b5bf
...
@@ -69,7 +69,7 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
...
@@ -69,7 +69,7 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
if
(
StringUtils
.
equals
(
DEFAULT_GROUP_NAME
,
hmGroupDTO
.
getGroupName
()))
{
if
(
StringUtils
.
equals
(
DEFAULT_GROUP_NAME
,
hmGroupDTO
.
getGroupName
()))
{
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_9
.
getCode
()
+
""
,
"分组名称不能重复"
);
return
ServiceResponse
.
failure
(
HaoBanErrCodeCommon
.
ERR_9
.
getCode
()
+
""
,
"分组名称不能重复"
);
}
}
List
<
HmGroupSettingBO
>
groupSettingBos
=
groupService
.
queryGroupSettingByName
(
hmGroupDTO
.
getEnterpriseId
(),
hmGroupDTO
.
getGroupName
());
List
<
HmGroupSettingBO
>
groupSettingBos
=
groupService
.
queryGroupSettingByName
(
hmGroupDTO
.
get
WxEnterpriseId
(),
hmGroupDTO
.
get
EnterpriseId
(),
hmGroupDTO
.
getGroupName
());
if
(
hmGroupDTO
.
getGroupId
()
==
null
)
{
if
(
hmGroupDTO
.
getGroupId
()
==
null
)
{
// insert
// insert
// check groupName unique
// check groupName unique
...
@@ -240,8 +240,8 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
...
@@ -240,8 +240,8 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
* @return
* @return
*/
*/
@Override
@Override
public
ServiceResponse
<
List
<
HmGroupDTO
>>
queryGroupListByName
(
String
enterpriseId
,
String
groupName
)
{
public
ServiceResponse
<
List
<
HmGroupDTO
>>
queryGroupListByName
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
groupName
)
{
List
<
HmGroupSettingBO
>
hmGroupSettingBos
=
groupService
.
queryGroupSettingByName
(
enterpriseId
,
groupName
);
List
<
HmGroupSettingBO
>
hmGroupSettingBos
=
groupService
.
queryGroupSettingByName
(
wxEnterpriseId
,
enterpriseId
,
groupName
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListByOrika
(
HmGroupDTO
.
class
,
hmGroupSettingBos
));
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListByOrika
(
HmGroupDTO
.
class
,
hmGroupSettingBos
));
}
}
}
}
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmGroupSettingMapper.xml
View file @
4d46b5bf
...
@@ -210,6 +210,7 @@
...
@@ -210,6 +210,7 @@
from tab_haoban_hm_group_setting
from tab_haoban_hm_group_setting
where group_name = #{groupName}
where group_name = #{groupName}
and enterprise_id = #{enterpriseId}
and enterprise_id = #{enterpriseId}
and wx_enterprise_id = #{wxEnterpriseId}
and `status` = 1
and `status` = 1
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/test/java/HmPageServiceTest.java
View file @
4d46b5bf
...
@@ -137,7 +137,7 @@ public class HmPageServiceTest {
...
@@ -137,7 +137,7 @@ public class HmPageServiceTest {
@Test
@Test
public
void
groupNameCheckTest
(){
public
void
groupNameCheckTest
(){
ServiceResponse
<
List
<
HmGroupDTO
>>
ms
=
groupService
.
queryGroupListByName
(
"ff8080815dacd3a2015dacd3ef5c0000"
,
"测试006"
);
ServiceResponse
<
List
<
HmGroupDTO
>>
ms
=
groupService
.
queryGroupListByName
(
"
"
,
"
ff8080815dacd3a2015dacd3ef5c0000"
,
"测试006"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
ms
));
System
.
out
.
println
(
JSON
.
toJSONString
(
ms
));
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmGroupController.java
View file @
4d46b5bf
...
@@ -143,7 +143,7 @@ public class HmGroupController extends WebBaseController {
...
@@ -143,7 +143,7 @@ public class HmGroupController extends WebBaseController {
if
(
StringUtils
.
isBlank
(
groupSettingVO
.
getGroupName
())){
if
(
StringUtils
.
isBlank
(
groupSettingVO
.
getGroupName
())){
return
RestResponse
.
successResult
(
Collections
.
emptyList
());
return
RestResponse
.
successResult
(
Collections
.
emptyList
());
}
}
ServiceResponse
<
List
<
HmGroupDTO
>>
serviceResponse
=
groupApiService
.
queryGroupListByName
(
loginUser
.
getEnterpriseId
(),
groupSettingVO
.
getGroupName
());
ServiceResponse
<
List
<
HmGroupDTO
>>
serviceResponse
=
groupApiService
.
queryGroupListByName
(
loginUser
.
get
WxEnterpriseId
(),
loginUser
.
get
EnterpriseId
(),
groupSettingVO
.
getGroupName
());
if
(
serviceResponse
.
isSuccess
()){
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
}
...
...
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