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
2cfc99ba
Commit
2cfc99ba
authored
Jul 08, 2022
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 活码分组接口自测
parent
07b3d8aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
HmGroupApiServiceImpl.java
...ge/service/service/out/impl/hm/HmGroupApiServiceImpl.java
+2
-2
HmGroupController.java
...ic/haoban/manage/web/controller/hm/HmGroupController.java
+9
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmGroupApiServiceImpl.java
View file @
2cfc99ba
...
...
@@ -67,8 +67,8 @@ public class HmGroupApiServiceImpl implements HmGroupApiService {
// insert
// check groupName unique
if
(
CollectionUtils
.
isNotEmpty
(
tabHaobanHmGroupSettings
))
{
serviceResponse
.
setCode
(
HaoBanErrCodeCommon
.
ERR_
2
.
getCode
());
serviceResponse
.
setMessage
(
HaoBanErrCodeCommon
.
ERR_
2
.
getMsg
());
serviceResponse
.
setCode
(
HaoBanErrCodeCommon
.
ERR_
5
.
getCode
());
serviceResponse
.
setMessage
(
HaoBanErrCodeCommon
.
ERR_
5
.
getMsg
());
return
serviceResponse
;
}
TabHaobanHmGroupSetting
tempGroupSetting
=
new
TabHaobanHmGroupSetting
();
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmGroupController.java
View file @
2cfc99ba
...
...
@@ -6,7 +6,6 @@ import com.gic.haoban.base.api.common.PageResult2;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.manage.api.dto.hm.HmGroupDTO
;
import
com.gic.haoban.manage.api.dto.hm.HmGroupQueryDTO
;
...
...
@@ -21,8 +20,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @Author MUSI
...
...
@@ -47,8 +44,11 @@ public class HmGroupController extends WebBaseController {
hmGroupDTO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmGroupDTO
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
ServiceResponse
<
Long
>
serviceResponse
=
groupApiService
.
saveOrUpdateHmGroupSetting
(
hmGroupDTO
);
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
()+
""
,
serviceResponse
.
getMessage
());
}
@RequestMapping
(
path
=
"/list"
)
public
RestResponse
<?>
queryHmGroupList
(
HmGroupQO
hmGroupQo
){
...
...
@@ -77,8 +77,11 @@ public class HmGroupController extends WebBaseController {
hmGroupDTO
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
());
hmGroupDTO
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
ServiceResponse
<
Long
>
serviceResponse
=
groupApiService
.
saveOrUpdateHmGroupSetting
(
hmGroupDTO
);
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
()+
""
,
serviceResponse
.
getMessage
());
}
@RequestMapping
(
path
=
"/delete"
,
method
=
RequestMethod
.
POST
)
public
RestResponse
<?>
deleteHmGroupSetting
(
HmGroupSettingVO
hmGroupSettingVO
){
...
...
@@ -91,8 +94,11 @@ public class HmGroupController extends WebBaseController {
hmGroupDTO
.
setModifierName
(
loginUser
.
getClerkName
());
hmGroupDTO
.
setGroupId
(
hmGroupSettingVO
.
getGroupId
());
ServiceResponse
<
Boolean
>
serviceResponse
=
groupApiService
.
deleteGroupSetting
(
hmGroupDTO
);
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
return
RestResponse
.
failure
(
serviceResponse
.
getCode
()+
""
,
serviceResponse
.
getMessage
());
}
@RequestMapping
(
path
=
"/refer/count"
)
public
RestResponse
<?>
queryGroupTotalReferCount
(){
...
...
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