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
25959804
Commit
25959804
authored
Feb 26, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0
into developer
parents
cff5f593
7513023d
Hide whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
793 additions
and
104 deletions
+793
-104
MemberUnionidRelatedDTO.java
...om/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
+100
-0
WxEnterpriseDTO.java
...n/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
+11
-0
YwWxEnterpriseDTO.java
...java/com/gic/haoban/manage/api/dto/YwWxEnterpriseDTO.java
+6
-5
DepartmentApiService.java
...m/gic/haoban/manage/api/service/DepartmentApiService.java
+7
-1
MemberUnionidRelatedApiService.java
...an/manage/api/service/MemberUnionidRelatedApiService.java
+13
-0
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+6
-1
EnterpriseController.java
...ic/haoban/manage/web/controller/EnterpriseController.java
+2
-2
pom.xml
haoban-manage3-service/pom.xml
+13
-0
DepartmentMapper.java
...ic/haoban/manage/service/dao/mapper/DepartmentMapper.java
+4
-1
MemberUnionidRelatedMapper.java
...manage/service/dao/mapper/MemberUnionidRelatedMapper.java
+25
-0
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+2
-1
MemberUnionidRelated.java
...ic/haoban/manage/service/entity/MemberUnionidRelated.java
+99
-0
TabHaobanWxEnterprise.java
...c/haoban/manage/service/entity/TabHaobanWxEnterprise.java
+13
-0
DepartmentService.java
.../gic/haoban/manage/service/service/DepartmentService.java
+2
-0
MemberUnionRelatedService.java
...ban/manage/service/service/MemberUnionRelatedService.java
+13
-0
WxEnterpriseService.java
...ic/haoban/manage/service/service/WxEnterpriseService.java
+2
-0
DepartmentServiceImpl.java
...an/manage/service/service/impl/DepartmentServiceImpl.java
+5
-0
MemberUnionRelatedServiceImpl.java
...e/service/service/impl/MemberUnionRelatedServiceImpl.java
+42
-0
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+7
-0
DepartmentApiServiceImpl.java
...ge/service/service/out/impl/DepartmentApiServiceImpl.java
+10
-2
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+41
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+2
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+16
-5
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+7
-1
dubbo-haoban-manage-service.xml
...ervice/src/main/resources/dubbo-haoban-manage-service.xml
+9
-0
DepartmentMapper.xml
...e3-service/src/main/resources/mapper/DepartmentMapper.xml
+19
-2
MemberUnionidRelatedMapper.xml
.../src/main/resources/mapper/MemberUnionidRelatedMapper.xml
+159
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+1
-1
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+21
-4
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+19
-0
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+2
-0
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+14
-2
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+24
-68
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+1
-0
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+57
-1
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+2
-0
DepartmentAddQO.java
...in/java/com/gic/haoban/manage/web/qo/DepartmentAddQO.java
+10
-0
StoreVo.java
...b/src/main/java/com/gic/haoban/manage/web/vo/StoreVo.java
+6
-5
dubbo-haoban-manage-web.xml
...3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
MemberUnionidRelatedDTO
implements
Serializable
{
private
String
memberUnionidRelatedId
;
private
String
memberId
;
private
String
unionid
;
private
String
wxEnterpriseId
;
private
Integer
statusFlag
;
private
String
externalUserid
;
private
String
wxUserId
;
private
Date
createTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getMemberUnionidRelatedId
()
{
return
memberUnionidRelatedId
;
}
public
void
setMemberUnionidRelatedId
(
String
memberUnionidRelatedId
)
{
this
.
memberUnionidRelatedId
=
memberUnionidRelatedId
==
null
?
null
:
memberUnionidRelatedId
.
trim
();
}
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
==
null
?
null
:
memberId
.
trim
();
}
public
String
getUnionid
()
{
return
unionid
;
}
public
void
setUnionid
(
String
unionid
)
{
this
.
unionid
=
unionid
==
null
?
null
:
unionid
.
trim
();
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
==
null
?
null
:
wxEnterpriseId
.
trim
();
}
public
Integer
getStatusFlag
()
{
return
statusFlag
;
}
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
}
public
String
getExternalUserid
()
{
return
externalUserid
;
}
public
void
setExternalUserid
(
String
externalUserid
)
{
this
.
externalUserid
=
externalUserid
==
null
?
null
:
externalUserid
.
trim
();
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
==
null
?
null
:
wxUserId
.
trim
();
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseDTO.java
View file @
25959804
...
...
@@ -54,6 +54,8 @@ public class WxEnterpriseDTO implements Serializable {
private
Integer
bindFlag
;
private
Integer
statusFlag
;
private
Integer
contactFlag
;
private
Date
createTime
;
...
...
@@ -277,4 +279,13 @@ public class WxEnterpriseDTO implements Serializable {
this
.
updateTime
=
updateTime
;
}
public
Integer
getContactFlag
()
{
return
contactFlag
;
}
public
void
setContactFlag
(
Integer
contactFlag
)
{
this
.
contactFlag
=
contactFlag
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/YwWxEnterpriseDTO.java
View file @
25959804
...
...
@@ -17,7 +17,7 @@ public class YwWxEnterpriseDTO implements Serializable {
private
Integer
statusFlag
;
//gic通讯录助手
private
String
gicContactHelper
;
private
String
contactFlag
;
//订购状态
private
String
buyStatus
;
//订购时间
...
...
@@ -75,12 +75,13 @@ public class YwWxEnterpriseDTO implements Serializable {
this
.
statusFlag
=
statusFlag
;
}
public
String
getGicContactHelper
()
{
return
gicContactHelper
;
public
String
getContactFlag
()
{
return
contactFlag
;
}
public
void
set
GicContactHelper
(
String
gicContactHelper
)
{
this
.
gicContactHelper
=
gicContactHelper
;
public
void
set
ContactFlag
(
String
contactFlag
)
{
this
.
contactFlag
=
contactFlag
;
}
public
String
getBuyStatus
()
{
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/DepartmentApiService.java
View file @
25959804
...
...
@@ -29,7 +29,7 @@ public interface DepartmentApiService {
* @return
*/
Page
<
DepartmentDTO
>
pageFullStoreByWxEnterpriseId
(
String
wxEnterpriseId
,
String
search
,
int
count
,
BasePageInfo
pageInfo
);
String
wxEnterpriseId
,
String
search
,
List
<
String
>
storeId
,
int
count
,
BasePageInfo
pageInfo
);
/**
* 根据部门id查询部门
* @param departmentId
...
...
@@ -115,4 +115,10 @@ public interface DepartmentApiService {
void
initwxDepartment
(
String
corpid
,
String
suiteid
,
String
wxEnterpriseId
);
/**
* 回收站的数量
* @param wxEnterpriseId
* @return
*/
Integer
departmentRecycleCount
(
String
wxEnterpriseId
);
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/MemberUnionidRelatedApiService.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
public
interface
MemberUnionidRelatedApiService
{
MemberUnionidRelatedDTO
getByUnionId
(
String
staffId
,
String
memberId
);
String
addMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
);
void
delMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
);
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
25959804
...
...
@@ -19,7 +19,7 @@ public interface WxEnterpriseApiService {
* 运维后台获取微信企业id列表
* @return
*/
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
String
gicContactFlag
,
String
version
);
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
Integer
gicContactFlag
,
String
version
);
/**
* 获取一个
* @param wxEnterpriseId
...
...
@@ -28,4 +28,9 @@ public interface WxEnterpriseApiService {
WxEnterpriseDTO
getOne
(
String
wxEnterpriseId
);
WxEnterpriseDTO
getEnterpriseBycorpId
(
String
corpId
);
/**
* 更新企业
* @param enterpriseDTO
*/
void
update
(
WxEnterpriseDTO
enterpriseDTO
);
}
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/EnterpriseController.java
View file @
25959804
...
...
@@ -31,8 +31,8 @@ public class EnterpriseController extends WebBaseController{
private
WxEnterpriseApiService
wxEnterpriseApiService
;
//企业列表
@RequestMapping
(
"wx-enterprise-list"
)
public
HaobanResponse
wxEnterpriseList
(
BasePageInfo
pageInfo
,
String
keyword
,
String
gicContactHelper
,
String
version
)
{
Page
<
YwWxEnterpriseDTO
>
page
=
wxEnterpriseApiService
.
list
(
pageInfo
,
keyword
,
gicContactHelper
,
version
);
public
HaobanResponse
wxEnterpriseList
(
BasePageInfo
pageInfo
,
String
keyword
,
Integer
contactFlag
,
String
version
)
{
Page
<
YwWxEnterpriseDTO
>
page
=
wxEnterpriseApiService
.
list
(
pageInfo
,
keyword
,
contactFlag
,
version
);
PageResult
<
YwWxEnterpriseDTO
>
pageVo
=
new
PageResult
<>();
pageVo
.
setList
(
EntityUtil
.
changeEntityListByJSON
(
YwWxEnterpriseDTO
.
class
,
page
.
getResult
()));
pageVo
.
setPageNum
(
page
.
getCurrentPage
());
...
...
haoban-manage3-service/pom.xml
View file @
25959804
...
...
@@ -91,6 +91,19 @@
<artifactId>
gic-wechat-api
</artifactId>
<version>
${gic-wechat-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-clerk-api
</artifactId>
<version>
${gic-clerk-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-member-api
</artifactId>
<version>
3.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/DepartmentMapper.java
View file @
25959804
...
...
@@ -38,11 +38,13 @@ public interface DepartmentMapper {
TabHaobanDepartment
getRootByEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
Page
<
TabHaobanDepartment
>
pageFullStoreByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"search"
)
String
search
,
@Param
(
"minCount"
)
int
minCount
);
Page
<
TabHaobanDepartment
>
pageFullStoreByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"search"
)
String
search
,
@Param
(
"
storeIds"
)
List
<
String
>
storeIds
,
@Param
(
"
minCount"
)
int
minCount
);
TabHaobanDepartment
getByRelatedId
(
@Param
(
"relatedId"
)
String
relatedId
);
Page
<
TabHaobanDepartment
>
pageByParentId
(
@Param
(
"parentId"
)
String
parentId
,
@Param
(
"keyword"
)
String
keyword
);
List
<
TabHaobanDepartment
>
listByChainId
(
@Param
(
"chainId"
)
String
chainId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
Integer
departmentRecycleCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/MemberUnionidRelatedMapper.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
import
org.apache.ibatis.annotations.Param
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
import
com.gic.haoban.manage.service.entity.MemberUnionidRelated
;
public
interface
MemberUnionidRelatedMapper
{
int
deleteByPrimaryKey
(
String
memberUnionidRelatedId
);
int
insert
(
MemberUnionidRelated
record
);
int
insertSelective
(
MemberUnionidRelated
record
);
MemberUnionidRelated
selectByPrimaryKey
(
String
memberUnionidRelatedId
);
int
updateByPrimaryKeySelective
(
MemberUnionidRelated
record
);
int
updateByPrimaryKey
(
MemberUnionidRelated
record
);
MemberUnionidRelatedDTO
getByUnionId
(
@Param
(
"wxUserId"
)
String
wxUserId
,
@Param
(
"unionid"
)
String
unionid
);
void
deleteByUnionidAndUserId
(
@Param
(
"unionid"
)
String
unionid
,
@Param
(
"wxUserId"
)
String
wxUserId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
25959804
...
...
@@ -21,7 +21,7 @@ public interface WxEnterpriseMapper {
int
updateByPrimaryKey
(
TabHaobanWxEnterprise
record
);
Page
<
TabHaobanWxEnterprise
>
list
(
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"gicContactFlag"
)
String
gicContactFlag
,
@Param
(
"version"
)
String
version
);
Page
<
TabHaobanWxEnterprise
>
list
(
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"gicContactFlag"
)
Integer
gicContactFlag
,
@Param
(
"version"
)
String
version
);
List
<
TabHaobanWxEnterprise
>
listBycorpId
(
@Param
(
"corpId"
)
String
corpId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/MemberUnionidRelated.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
service
.
entity
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
MemberUnionidRelated
implements
Serializable
{
private
String
memberUnionidRelatedId
;
private
String
memberId
;
private
String
unionid
;
private
String
wxEnterpriseId
;
private
Integer
statusFlag
;
private
String
externalUserid
;
private
String
wxUserId
;
private
Date
createTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getMemberUnionidRelatedId
()
{
return
memberUnionidRelatedId
;
}
public
void
setMemberUnionidRelatedId
(
String
memberUnionidRelatedId
)
{
this
.
memberUnionidRelatedId
=
memberUnionidRelatedId
==
null
?
null
:
memberUnionidRelatedId
.
trim
();
}
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
==
null
?
null
:
memberId
.
trim
();
}
public
String
getUnionid
()
{
return
unionid
;
}
public
void
setUnionid
(
String
unionid
)
{
this
.
unionid
=
unionid
==
null
?
null
:
unionid
.
trim
();
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
==
null
?
null
:
wxEnterpriseId
.
trim
();
}
public
Integer
getStatusFlag
()
{
return
statusFlag
;
}
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
}
public
String
getExternalUserid
()
{
return
externalUserid
;
}
public
void
setExternalUserid
(
String
externalUserid
)
{
this
.
externalUserid
=
externalUserid
==
null
?
null
:
externalUserid
.
trim
();
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
==
null
?
null
:
wxUserId
.
trim
();
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/TabHaobanWxEnterprise.java
View file @
25959804
...
...
@@ -53,6 +53,8 @@ public class TabHaobanWxEnterprise implements Serializable {
private
Integer
bindFlag
;
private
Integer
statusFlag
;
private
Integer
contactFlag
;
private
Date
createTime
;
...
...
@@ -275,4 +277,14 @@ public class TabHaobanWxEnterprise implements Serializable {
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getContactFlag
()
{
return
contactFlag
;
}
public
void
setContactFlag
(
Integer
contactFlag
)
{
this
.
contactFlag
=
contactFlag
;
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/DepartmentService.java
View file @
25959804
...
...
@@ -36,4 +36,6 @@ public interface DepartmentService {
List
<
TabHaobanDepartment
>
listByChainId
(
String
chainId
,
String
wxEnterpriseId
);
Integer
departmentRecycleCount
(
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/MemberUnionRelatedService.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
service
.
service
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
public
interface
MemberUnionRelatedService
{
MemberUnionidRelatedDTO
getByUnionId
(
String
wxUserId
,
String
unionid
);
String
addMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
);
void
delMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseService.java
View file @
25959804
...
...
@@ -16,4 +16,6 @@ public interface WxEnterpriseService {
*/
TabHaobanWxEnterprise
getEnterpriseBycorpId
(
String
corpId
);
void
update
(
WxEnterpriseDTO
enterpriseDTO
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/DepartmentServiceImpl.java
View file @
25959804
...
...
@@ -136,4 +136,9 @@ public class DepartmentServiceImpl implements DepartmentService {
return
mapper
.
listByChainId
(
chainId
,
wxEnterpriseId
);
}
@Override
public
Integer
departmentRecycleCount
(
String
wxEnterpriseId
)
{
return
mapper
.
departmentRecycleCount
(
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/MemberUnionRelatedServiceImpl.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
impl
;
import
java.util.Date
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.common.utils.StringUtil
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
import
com.gic.haoban.manage.service.dao.mapper.MemberUnionidRelatedMapper
;
import
com.gic.haoban.manage.service.entity.MemberUnionidRelated
;
import
com.gic.haoban.manage.service.service.MemberUnionRelatedService
;
@Service
public
class
MemberUnionRelatedServiceImpl
implements
MemberUnionRelatedService
{
@Autowired
private
MemberUnionidRelatedMapper
mapper
;
@Override
public
MemberUnionidRelatedDTO
getByUnionId
(
String
wxUserId
,
String
unionid
)
{
return
mapper
.
getByUnionId
(
wxUserId
,
unionid
);
}
@Override
public
String
addMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
)
{
dto
.
setStatusFlag
(
1
);
dto
.
setCreateTime
(
new
Date
());
dto
.
setUpdateTime
(
new
Date
());
dto
.
setMemberUnionidRelatedId
(
StringUtil
.
randomUUID
());
mapper
.
insert
(
EntityUtil
.
changeEntityByJSON
(
MemberUnionidRelated
.
class
,
dto
));
return
dto
.
getMemberUnionidRelatedId
();
}
@Override
public
void
delMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
)
{
mapper
.
deleteByUnionidAndUserId
(
dto
.
getUnionid
(),
dto
.
getWxUserId
());
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
25959804
...
...
@@ -46,4 +46,11 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
return
null
;
}
@Override
public
void
update
(
WxEnterpriseDTO
enterpriseDTO
)
{
enterpriseDTO
.
setUpdateTime
(
new
Date
());
mapper
.
updateByPrimaryKeySelective
(
EntityUtil
.
changeEntityByJSON
(
TabHaobanWxEnterprise
.
class
,
enterpriseDTO
));
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DepartmentApiServiceImpl.java
View file @
25959804
...
...
@@ -122,6 +122,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
hr
.
setErrorCode
(
1
);
//调微信的修改接口
TabHaobanDepartment
tab
=
departmentService
.
selectById
(
department
.
getDepartmentId
());
logger
.
info
(
"【部门修改】tab={}"
,
JSON
.
toJSONString
(
tab
));
WxEnterpriseDTO
enterpriseDTO
=
wxEnterpriseService
.
selectById
(
tab
.
getWxEnterpriseId
());
TabHaobanWxApplication
application
=
wxApplicationService
.
selectByWxEnterpriseIdAndApplicationType
(
tab
.
getWxEnterpriseId
(),
1
);
if
(
enterpriseDTO
!=
null
)
{
...
...
@@ -132,7 +133,9 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
dto
.
setOrder
(
department
.
getSort
());
TabHaobanDepartment
parent
=
departmentService
.
selectById
(
department
.
getParentDepartmentId
());
dto
.
setParentid
(
Integer
.
valueOf
(
parent
.
getWxDepartmentId
()));
dto
.
setId
(
Integer
.
valueOf
(
tab
.
getWxDepartmentId
()));
JSONResponse
jp
=
qywxDepartmentApiService
.
updateDepartment
(
enterpriseDTO
.
getCorpid
(),
application
.
getSiteId
(),
dto
);
logger
.
info
(
"【部门修改】jp={}"
,
JSON
.
toJSONString
(
jp
));
if
(
jp
.
getErrorCode
()
!=
0
)
{
hr
.
setErrorCode
(
0
);
hr
.
setMessage
(
"微信修改部门失败"
);
...
...
@@ -236,9 +239,9 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
@Override
public
Page
<
DepartmentDTO
>
pageFullStoreByWxEnterpriseId
(
String
wxEnterpriseId
,
String
search
,
int
count
,
BasePageInfo
pageInfo
)
{
String
wxEnterpriseId
,
String
search
,
List
<
String
>
storeIds
,
int
count
,
BasePageInfo
pageInfo
)
{
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
return
PageUtil
.
changePageHelperToCurrentPage
(
departmentMapper
.
pageFullStoreByWxEnterpriseId
(
wxEnterpriseId
,
search
,
count
),
DepartmentDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
departmentMapper
.
pageFullStoreByWxEnterpriseId
(
wxEnterpriseId
,
search
,
storeIds
,
count
),
DepartmentDTO
.
class
);
}
@Override
...
...
@@ -360,4 +363,9 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
}
}
@Override
public
Integer
departmentRecycleCount
(
String
wxEnterpriseId
)
{
return
departmentService
.
departmentRecycleCount
(
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
0 → 100644
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.gic.haoban.manage.api.dto.MemberUnionidRelatedDTO
;
import
com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService
;
import
com.gic.haoban.manage.service.entity.TabHaobanStaff
;
import
com.gic.haoban.manage.service.service.MemberUnionRelatedService
;
import
com.gic.haoban.manage.service.service.StaffService
;
@Service
public
class
MemberUnionidRelatedApiServiceImpl
implements
MemberUnionidRelatedApiService
{
@Autowired
private
MemberUnionRelatedService
memberUnionRelatedService
;
@Autowired
private
StaffService
staffService
;
@Autowired
private
com
.
gic
.
enterprise
.
api
.
service
.
StoreGroupService
gicDepartmentService
;
@Override
public
MemberUnionidRelatedDTO
getByUnionId
(
String
staffId
,
String
unionid
)
{
TabHaobanStaff
staff
=
staffService
.
selectById
(
staffId
);
if
(
staff
==
null
){
return
null
;
}
return
memberUnionRelatedService
.
getByUnionId
(
staff
.
getWxUserId
(),
unionid
);
}
@Override
public
String
addMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
)
{
return
memberUnionRelatedService
.
addMemberUnionidRelated
(
dto
);
}
@Override
public
void
delMemberUnionidRelated
(
MemberUnionidRelatedDTO
dto
)
{
memberUnionRelatedService
.
delMemberUnionidRelated
(
dto
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
25959804
...
...
@@ -217,7 +217,8 @@ public class MessageApiServiceImpl implements MessageApiService {
related
.
setClerkCode
(
qywxCallBackDTO
.
getUserid
());
related
.
setDepartmentId
(
department
.
getDepartmentId
());
related
.
setPhoneNumber
(
qywxCallBackDTO
.
getMobile
());
related
.
setStaffDepartmentRelatedId
(
staffId
);
//related.setStaffDepartmentRelatedId(staffId);
related
.
setStaffId
(
staffId
);
related
.
setStatusFlag
(
1
);
String
add1
=
this
.
staffDepartmentRelatedService
.
add
(
related
);
log
.
info
(
"新增用户部门关联关系:{}"
,
add1
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
25959804
...
...
@@ -18,6 +18,8 @@ import cn.hutool.core.collection.CollectionUtil;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.JSONResponse
;
import
com.gic.api.base.commons.Page
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.HaobanResponse
;
...
...
@@ -64,6 +66,10 @@ public class StaffApiServiceImpl implements StaffApiService {
private
WxApplicationService
wxApplicationService
;
@Autowired
private
DepartmentService
departmentService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
com
.
gic
.
enterprise
.
api
.
service
.
DepartmentService
gicDepartmentService
;
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
...
...
@@ -299,7 +305,12 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNoneBlank
(
related
.
getClerkCode
())){
if
(!
staffDTO
.
getPhoneNumber
().
equals
(
related
.
getPhoneNumber
())||!
staffDTO
.
getStaffName
().
equals
(
oldStaff
.
getStaffName
())){
//TODO 通知gic同步修改姓名和手机号
TabHaobanDepartment
department
=
departmentService
.
selectById
(
addId
);
com
.
gic
.
enterprise
.
api
.
dto
.
DepartmentDTO
dto
=
gicDepartmentService
.
getDeptment
(
department
.
getRelatedId
());
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByCodeNoStatus
(
dto
.
getEnterpriseId
(),
related
.
getClerkCode
());
clerkDTO
.
setClerkName
(
staffDTO
.
getStaffName
());
clerkDTO
.
setPhoneNumber
(
staffDTO
.
getPhoneNumber
());
clerkService
.
updateClerk
(
clerkDTO
);
}
}
...
...
@@ -315,10 +326,10 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(!
departmentIds
.
contains
(
tab1
.
getDepartmentId
())){
StaffDepartmentRelatedDTO
related
=
EntityUtil
.
changeEntityByJSON
(
StaffDepartmentRelatedDTO
.
class
,
tab1
);
staffDepartmentRelatedService
.
del
(
related
);
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isNoneBlank
(
tab1
.
getClerkCode
())){
//TODO 通知gic解绑
}
//
if(org.apache.commons.lang3.StringUtils.isNoneBlank(tab1.getClerkCode())){
//
//TODO 通知gic解绑
//
//
}
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
25959804
...
...
@@ -88,7 +88,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
@Override
public
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
String
gicContactFlag
,
String
version
)
{
public
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
Integer
gicContactFlag
,
String
version
)
{
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
Page
<
TabHaobanWxEnterprise
>
page
=
wxEnterpriseMapper
.
list
(
keyword
,
gicContactFlag
,
version
);
return
PageUtil
.
changePageHelperToCurrentPage
(
page
,
YwWxEnterpriseDTO
.
class
);
...
...
@@ -106,4 +106,10 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
TabHaobanWxEnterprise
enterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpId
);
return
EntityUtil
.
changeEntityByJSON
(
WxEnterpriseDTO
.
class
,
enterprise
);
}
@Override
public
void
update
(
WxEnterpriseDTO
enterpriseDTO
)
{
wxEnterpriseService
.
update
(
enterpriseDTO
);
}
}
haoban-manage3-service/src/main/resources/dubbo-haoban-manage-service.xml
View file @
25959804
...
...
@@ -30,9 +30,17 @@
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.WxEnterpriseApiService"
ref=
"wxEnterpriseApiServiceImpl"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.MessageApiService"
ref=
"messageApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.WxApplicationApiService"
ref=
"wxApplicationApiService"
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.MemberUnionidRelatedApiService"
ref=
"memberUnionidRelatedApiServiceImpl"
timeout=
"10000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.DepartmentService"
id=
"gicDepartmentService"
/>
<dubbo:reference
interface=
"com.gic.wechat.api.service.qywx.QywxDepartmentApiService"
id=
"qywxDepartmentApiService"
/>
<dubbo:reference
interface=
"com.gic.wechat.api.service.qywx.QywxUserApiService"
id=
"qywxUserApiService"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.StoreGroupService"
id=
"storeGroupService"
/>
<dubbo:reference
interface=
"com.gic.clerk.api.service.ClerkService"
id=
"clerkService"
/>
<dubbo:reference
interface=
"com.gic.member.api.service.MemberService"
id=
"memberService"
/>
</beans>
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/DepartmentMapper.xml
View file @
25959804
...
...
@@ -207,6 +207,7 @@
from tab_haoban_department
where parent_department_id = #{parentId,jdbcType=VARCHAR}
and status_flag = 1
order by sort asc
</select>
<select
id=
"selectMaxSort"
resultType=
"java.lang.Integer"
parameterType=
"java.lang.String"
>
...
...
@@ -300,8 +301,14 @@
and is_store = 1
and wx_enterprise_id = #{wxEnterpriseId}
<if
test=
"search != null and search != ''"
>
and
department_name
like CONCAT('%',#{search},'%')
and
wx_department_id
like CONCAT('%',#{search},'%')
</if>
<if
test=
"storeIds != null and storeIds.size != 0"
>
and related_id IN
<foreach
collection=
"storeIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id,jdbcType=VARCHAR}
</foreach>
</if>
order by create_time
) t WHERE t.rownum > #{minCount}
</select>
...
...
@@ -325,7 +332,7 @@
and parent_department_id = #{parentId}
</if>
<if
test=
"keyword != null and keyword != ''"
>
and (department_name like CONCAT('%',#{key
Word},'%') or department_id like CONCAT('%',#{keyW
ord},'%'))
and (department_name like CONCAT('%',#{key
word},'%') or department_id like CONCAT('%',#{keyw
ord},'%'))
</if>
</select>
...
...
@@ -340,4 +347,13 @@
and status_flag = 1
</select>
<select
id=
"departmentRecycleCount"
resultType=
"java.lang.Integer"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_department
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
and recycle_flag = 1
</select>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/MemberUnionidRelatedMapper.xml
0 → 100644
View file @
25959804
<?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.gic.haoban.manage.service.dao.mapper.MemberUnionidRelatedMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
<id
column=
"member_unionid_related_id"
property=
"memberUnionidRelatedId"
jdbcType=
"VARCHAR"
/>
<result
column=
"member_id"
property=
"memberId"
jdbcType=
"VARCHAR"
/>
<result
column=
"unionid"
property=
"unionid"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
jdbcType=
"VARCHAR"
/>
<result
column=
"status_flag"
property=
"statusFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"external_userid"
property=
"externalUserid"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_user_id"
property=
"wxUserId"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
member_unionid_related_id, member_id, unionid, wx_enterprise_id, status_flag, external_userid,
wx_user_id, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_member_unionid_related
where member_unionid_related_id = #{memberUnionidRelatedId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete from tab_haoban_member_unionid_related
where member_unionid_related_id = #{memberUnionidRelatedId,jdbcType=VARCHAR}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
insert into tab_haoban_member_unionid_related (member_unionid_related_id, member_id,
unionid, wx_enterprise_id, status_flag,
external_userid, wx_user_id, create_time,
update_time)
values (#{memberUnionidRelatedId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR},
#{unionid,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER},
#{externalUserid,jdbcType=VARCHAR}, #{wxUserId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
insert into tab_haoban_member_unionid_related
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberUnionidRelatedId != null"
>
member_unionid_related_id,
</if>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"unionid != null"
>
unionid,
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id,
</if>
<if
test=
"statusFlag != null"
>
status_flag,
</if>
<if
test=
"externalUserid != null"
>
external_userid,
</if>
<if
test=
"wxUserId != null"
>
wx_user_id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberUnionidRelatedId != null"
>
#{memberUnionidRelatedId,jdbcType=VARCHAR},
</if>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=VARCHAR},
</if>
<if
test=
"unionid != null"
>
#{unionid,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseId != null"
>
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"statusFlag != null"
>
#{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"externalUserid != null"
>
#{externalUserid,jdbcType=VARCHAR},
</if>
<if
test=
"wxUserId != null"
>
#{wxUserId,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
update tab_haoban_member_unionid_related
<set
>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=VARCHAR},
</if>
<if
test=
"unionid != null"
>
unionid = #{unionid,jdbcType=VARCHAR},
</if>
<if
test=
"wxEnterpriseId != null"
>
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if
test=
"statusFlag != null"
>
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"externalUserid != null"
>
external_userid = #{externalUserid,jdbcType=VARCHAR},
</if>
<if
test=
"wxUserId != null"
>
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where member_unionid_related_id = #{memberUnionidRelatedId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
update tab_haoban_member_unionid_related
set member_id = #{memberId,jdbcType=VARCHAR},
unionid = #{unionid,jdbcType=VARCHAR},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
status_flag = #{statusFlag,jdbcType=INTEGER},
external_userid = #{externalUserid,jdbcType=VARCHAR},
wx_user_id = #{wxUserId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where member_unionid_related_id = #{memberUnionidRelatedId,jdbcType=VARCHAR}
</update>
<select
id=
"getByUnionId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_member_unionid_related
where wx_user_id = #{wxUserId}
and status_flag = 1
and unionid = #{unionid}
</select>
<update
id=
"deleteByUnionidAndUserId"
parameterType=
"com.gic.haoban.manage.service.entity.MemberUnionidRelated"
>
update tab_haoban_member_unionid_related
set status_flag = 0
where unionid_id = #{unionid,jdbcType=VARCHAR}
and wx_user_id = #{wxUserId}
</update>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
25959804
...
...
@@ -257,7 +257,7 @@
from tab_haoban_staff
where status_flag = 1
<if
test=
"keyword != null and keyword != ''"
>
and
staff_name like CONCAT('%',#{keyWord},'%'
)
and
(staff_name like CONCAT('%',#{keyWord},'%') or phone_number like CONCAT('%',#{keyWord},'%')
)
</if>
<if
test=
"activeFlag != null"
>
and active_flag = #{activeFlag}
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
25959804
...
...
@@ -25,6 +25,7 @@
<result
column=
"square_logo_url"
property=
"squareLogoUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"round_logo_url"
property=
"roundLogoUrl"
jdbcType=
"VARCHAR"
/>
<result
column=
"level"
property=
"level"
jdbcType=
"INTEGER"
/>
<result
column=
"contact_flag"
property=
"contactFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"bind_flag"
property=
"bindFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"status_flag"
property=
"statusFlag"
jdbcType=
"INTEGER"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
...
...
@@ -34,7 +35,7 @@
wx_enterprise_id, corpid, permanent_code, corp_name, corp_type, corp_square_logo_url,
corp_user_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode, corp_scale,
corp_industry, corp_sub_industry, location, auth_info, agent, agentid, appid, name,
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time
,contact_flag
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
...
...
@@ -55,7 +56,7 @@
auth_info, agent, agentid,
appid, name, square_logo_url,
round_logo_url, level, bind_flag,
status_flag, create_time, update_time
status_flag, create_time, update_time
,contact_flag
)
values (#{wxEnterpriseId,jdbcType=VARCHAR}, #{corpid,jdbcType=VARCHAR}, #{permanentCode,jdbcType=VARCHAR},
#{corpName,jdbcType=VARCHAR}, #{corpType,jdbcType=VARCHAR}, #{corpSquareLogoUrl,jdbcType=VARCHAR},
...
...
@@ -65,7 +66,7 @@
#{authInfo,jdbcType=VARCHAR}, #{agent,jdbcType=VARCHAR}, #{agentid,jdbcType=VARCHAR},
#{appid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{squareLogoUrl,jdbcType=VARCHAR},
#{roundLogoUrl,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER}, #{bindFlag,jdbcType=INTEGER},
#{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
,#{contactFlag}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise"
>
...
...
@@ -146,6 +147,9 @@
<if
test=
"statusFlag != null"
>
status_flag,
</if>
<if
test=
"contactFlag != null"
>
contact_flag,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
...
@@ -229,6 +233,9 @@
<if
test=
"statusFlag != null"
>
#{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"contactFlag != null"
>
#{contactFlag,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -312,6 +319,9 @@
<if
test=
"statusFlag != null"
>
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
<if
test=
"contactFlag != null"
>
contact_flag = #{contactFlag,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
...
...
@@ -347,16 +357,23 @@
level = #{level,jdbcType=INTEGER},
bind_flag = #{bindFlag,jdbcType=INTEGER},
status_flag = #{statusFlag,jdbcType=INTEGER},
contact_flag = #{contactFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</update>
<select
id=
"list"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"list"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise
where status_flag = 1
<if
test=
"keyword != null and keyword != ''"
>
and corp_name like CONCAT('%',#{keyword},'%')
</if>
<if
test=
"gicContactFlag != null"
>
and contact_flag = #{gicContactFlag,jdbcType=INTEGER}
</if>
</select>
<select
id=
"listBycorpId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
...
...
haoban-manage3-service/src/test/java/ServiceTest.java
0 → 100644
View file @
25959804
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
locations
=
{
"classpath:applicationContext-conf.xml"
})
public
class
ServiceTest
{
@Autowired
private
WxEnterpriseRelatedApiService
wxEnterpriseRelatedApiService
;
@Test
public
void
test
()
{
wxEnterpriseRelatedApiService
.
listEnterpriseByWxEnterpriseId
(
"073e89a37eb14acabf258e59a57359b6"
);
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
25959804
...
...
@@ -75,6 +75,8 @@ public class ApplicationController extends WebBaseController{
applicationDTO
.
setSiteId
(
dto
.
getSuiteId
());
wxApplicationApiService
.
addSuite
(
applicationDTO
);
this
.
departmentApiService
.
initwxDepartment
(
dto
.
getCorpid
(),
suiteId
,
enterpriseDTO
.
getWxEnterpriseId
());
enterpriseDTO
.
setContactFlag
(
1
);
wxEnterpriseApiService
.
update
(
enterpriseDTO
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
result
);
}
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
dto
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
25959804
...
...
@@ -16,7 +16,9 @@ import com.gic.clerk.api.dto.ClerkDTO;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.api.dto.StaffDepartmentRelatedDTO
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.ClerkVo
;
...
...
@@ -26,15 +28,25 @@ public class ClerkController extends WebBaseController{
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
DepartmentApiService
departmentApiService
;
@Autowired
private
StaffDepartmentRelatedApiService
staffDepartmentRelatedApiService
;
//未绑定的clerkCode列表
@RequestMapping
(
"/clerk-code-list"
)
public
HaobanResponse
clerkCodeList
(
String
storeId
,
String
departmentId
)
{
public
HaobanResponse
clerkCodeList
(
String
departmentId
)
{
List
<
StaffDepartmentRelatedDTO
>
list
=
staffDepartmentRelatedApiService
.
listByDepartmentId
(
departmentId
);
List
<
ClerkVo
>
result
=
new
ArrayList
<
ClerkVo
>();
if
(
StringUtils
.
isAnyBlank
(
storeId
,
departmentId
)){
if
(
StringUtils
.
isAnyBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_2
);
}
DepartmentDTO
departmentDTO
=
departmentApiService
.
selectById
(
departmentId
);
if
(
departmentDTO
==
null
){
return
resultResponse
(
HaoBanErrCode
.
ERR_10009
);
}
String
storeId
=
departmentDTO
.
getRelatedId
();
if
(
StringUtils
.
isAnyBlank
(
departmentId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10009
);
}
String
bindFlag
=
"0"
;
//绑定的clerk
if
(
"1"
.
equals
(
bindFlag
)){
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
25959804
...
...
@@ -12,7 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.gic.api.base.commons.Page
;
import
com.gic.enterprise.api.dto.GicTreeDTO
;
...
...
@@ -49,7 +49,7 @@ public class DepartmentContoller extends WebBaseController{
@Autowired
private
StaffApiService
staffApiService
;
@RequestMapping
(
"department-list"
)
public
HaobanResponse
departmentList
(
String
parentId
,
BasePageInfo
pageInfo
,
String
key
w
ord
)
{
public
HaobanResponse
departmentList
(
String
parentId
,
BasePageInfo
pageInfo
,
String
key
W
ord
)
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getSessionUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
logger
.
info
(
"【部门列表】wxEnterpriseId={}"
,
wxEnterpriseId
);
...
...
@@ -57,7 +57,7 @@ public class DepartmentContoller extends WebBaseController{
Page
<
DepartmentDTO
>
page
=
new
Page
<
DepartmentDTO
>();
List
<
DepartmentDTO
>
list
=
new
ArrayList
<
DepartmentDTO
>();
if
(
StringUtils
.
isNotBlank
(
parentId
))
{
page
=
departmentApiService
.
pageByParentId
(
parentId
,
key
w
ord
,
pageInfo
);
page
=
departmentApiService
.
pageByParentId
(
parentId
,
key
W
ord
,
pageInfo
);
}
else
{
DepartmentDTO
dto
=
departmentApiService
.
getRootByEnterpriseId
(
wxEnterpriseId
);
list
.
add
(
dto
);
...
...
@@ -148,6 +148,16 @@ public class DepartmentContoller extends WebBaseController{
}
@RequestMapping
(
"department-recycle-count"
)
public
HaobanResponse
departmentRecycleCount
()
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getSessionUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
Integer
count
=
departmentApiService
.
departmentRecycleCount
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
count
);
}
@RequestMapping
(
"department-del"
)
public
HaobanResponse
departmentDel
(
String
departmentId
)
{
DepartmentDTO
dto
=
departmentApiService
.
selectById
(
departmentId
);
...
...
@@ -183,13 +193,15 @@ public class DepartmentContoller extends WebBaseController{
}
DepartmentDTO
department
=
new
DepartmentDTO
();
department
.
setParentDepartmentId
(
parentId
);
department
.
setWxDepartmentId
(
dto
.
getWxDepartmentId
());
//department.setWxDepartmentId(dto.getWxDepartmentId());
department
.
setWxEnterpriseId
(
dto
.
getWxEnterpriseId
());
department
.
setDepartmentName
(
departmentAddQO
.
getDepartmentName
());
department
.
setChainId
(
dto
.
getChainId
()
+
Constant
.
ID_SEPARATOR
+
dto
.
getDepartmentId
());
department
.
setChainName
(
dto
.
getChainName
()
+
Constant
.
NAME_SEPARATOR
+
dto
.
getDepartmentName
());
department
.
setIsStore
(
0
);
department
.
setIsStore
(
departmentAddQO
.
getStoreFlag
());
department
.
setLevel
(
dto
.
getLevel
()
+
1
);
department
.
setRelatedId
(
departmentAddQO
.
getRelatedId
());
HaobanResponse
hr
=
departmentApiService
.
add
(
department
);
if
(
hr
.
getErrorCode
()
!=
1
)
{
continue
;
...
...
@@ -202,21 +214,25 @@ public class DepartmentContoller extends WebBaseController{
}
}
logger
.
info
(
"【部门修改】editDepartment={}"
,
editDepartment
);
if
(
StringUtils
.
isNotBlank
(
editDepartment
))
{
List
<
DepartmentEditQO
>
list
=
JSONArray
.
parseArray
(
editDepartment
,
DepartmentEditQO
.
class
);
logger
.
info
(
"【部门修改】list={}"
,
JSON
.
toJSONString
(
list
));
for
(
DepartmentEditQO
departmentQO
:
list
)
{
String
parentId
=
departmentQO
.
get
CurrDepartment
();
String
parentId
=
departmentQO
.
get
ParentId
();
DepartmentDTO
parent
=
departmentApiService
.
selectById
(
parentId
);
if
(
parent
==
null
||
parent
.
getStatusFlag
()
==
0
)
{
continue
;
}
DepartmentDTO
department
=
departmentApiService
.
selectById
(
parentId
);
DepartmentDTO
department
=
departmentApiService
.
selectById
(
departmentQO
.
getDepartmentId
()
);
department
.
setParentDepartmentId
(
parentId
);
department
.
setWxEnterpriseId
(
department
.
getWxEnterpriseId
());
department
.
setDepartmentName
(
departmentQO
.
getDepartmentName
());
department
.
setChainId
(
parent
.
getChainId
()
+
Constant
.
ID_SEPARATOR
+
parent
.
getDepartmentId
());
department
.
setChainName
(
parent
.
getChainName
()
+
Constant
.
NAME_SEPARATOR
+
parent
.
getDepartmentName
());
department
.
setLevel
(
parent
.
getLevel
()
+
1
);
department
.
setSort
(
departmentQO
.
getSort
());
logger
.
info
(
"【部门修改】department={}"
,
JSON
.
toJSONString
(
department
));
handerSonDepartment
(
departmentQO
.
getCurrDepartment
());
HaobanResponse
hr
=
departmentApiService
.
edit
(
department
);
...
...
@@ -280,7 +296,7 @@ public class DepartmentContoller extends WebBaseController{
}
unBindDTO
.
setDepartmentName
(
departmentDTO
.
getName
());
unBindDTO
.
setDepartmentId
(
departmentDTO
.
getId
());
unBindDTO
.
setType
(
type
);
unBindDTO
.
setType
(
departmentDTO
.
getType
()
);
unBindDTO
.
setLevel
(
departmentDTO
.
getLevel
());
dtoList
.
add
(
unBindDTO
);
}
...
...
@@ -383,65 +399,5 @@ public class DepartmentContoller extends WebBaseController{
}
}
//溢出门店列表
@IgnoreLogin
@RequestMapping
(
"store-full-list"
)
public
HaobanResponse
storeFullList
(
BasePageInfo
basePageInfo
,
String
search
)
{
// LoginVO login = (LoginVO) AuthRequestUtil.getSessionUser();
// String wxEnterpriseId = login.getWxEnterpriseId();
String
wxEnterpriseId
=
"1"
;
int
maxVersionCount
=
0
;
Page
<
DepartmentDTO
>
page
=
departmentApiService
.
pageFullStoreByWxEnterpriseId
(
wxEnterpriseId
,
search
,
maxVersionCount
,
basePageInfo
);
List
<
DepartmentDTO
>
list
=
page
.
getResult
();
List
<
StoreVo
>
resultList
=
EntityUtil
.
changeEntityListByJSON
(
StoreVo
.
class
,
list
);
List
<
String
>
storeIds
=
list
.
stream
().
map
(
s
->
s
.
getRelatedId
()).
collect
(
Collectors
.
toList
());
String
[]
storeIdArr
=
storeIds
.
toArray
(
new
String
[
storeIds
.
size
()]);
List
<
StoreDTO
>
storeList
=
storeService
.
getStores
(
storeIdArr
);
Map
<
String
,
StoreDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
storeList
,
"storeId"
);
for
(
StoreVo
vo:
resultList
){
if
(
map
.
get
(
vo
.
getRelatedId
())!=
null
){
vo
.
setStoreCode
(
map
.
get
(
vo
.
getDepartmentId
()).
getStoreCode
());
vo
.
setStoreId
(
map
.
get
(
vo
.
getDepartmentId
()).
getStoreId
());
}
}
Page
resultPage
=
new
Page
<>();
resultPage
.
setCurrentPage
(
page
.
getCurrentPage
());
resultPage
.
setPageSize
(
page
.
getPageSize
());
resultPage
.
setTotalCount
(
page
.
getTotalCount
());
resultPage
.
setResult
(
resultList
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultPage
);
/*int pageNum = basePageInfo.getPageNum();
int pageSize = basePageInfo.getPageSize();
Page<DepartmentDTO> page = new Page<>(pageNum, pageSize, 0);
//TODO 获取版本容量
int maxSize = 0;
List<DepartmentDTO> list = departmentApiService.listStoreByWxEnterpriseId(wxEnterpriseId);
if(list == null||list.size()==0){
return resultResponse(HaoBanErrCode.ERR_1,new Page<>());
}
page.setTotalCount(list.size());
if(maxSize != 0){
if(list.size() <= maxSize){
//小于版本容量(无溢出门店)
return resultResponse(HaoBanErrCode.ERR_1,new Page<>());
}else{
//大于版本容量(有溢出门店)
list = list.subList(maxSize,list.size()-1);
}
}
List resultList = ListUtils.Pager(pageSize, pageNum, list);
return resultResponse(HaoBanErrCode.ERR_1,resultList);*/
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
25959804
...
...
@@ -85,6 +85,7 @@ public class StaffController extends WebBaseController{
logger
.
info
(
"【成员列表】related={}"
,
JSON
.
toJSONString
(
related
));
if
(
related
!=
null
)
{
staffDTO
.
setStaffDepartmentRelatedId
(
related
.
getStaffDepartmentRelatedId
());
staffDTO
.
setClerkCode
(
related
.
getClerkCode
());
}
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
25959804
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collector
;
...
...
@@ -12,12 +13,19 @@ import org.springframework.web.bind.annotation.RestController;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.druid.util.StringUtils
;
import
com.gic.api.base.commons.Page
;
import
com.gic.enterprise.api.dto.EnterpriseAndUserDTO
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.api.dto.EnterpriseDetailDTO
;
import
com.gic.haoban.manage.api.dto.YwWxEnterpriseDTO
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.web.anno.HttpLimit
;
...
...
@@ -25,6 +33,7 @@ import com.gic.haoban.manage.web.anno.IgnoreLogin;
import
com.gic.haoban.manage.web.auth.AuthRequestUtil
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.haoban.manage.web.vo.StoreVo
;
@RestController
public
class
WxEnterpriseController
extends
WebBaseController
{
...
...
@@ -34,6 +43,10 @@ public class WxEnterpriseController extends WebBaseController{
private
EnterpriseService
enterpriseService
;
@Autowired
private
WxEnterpriseApiService
wxEnterpriseApiService
;
@Autowired
private
DepartmentApiService
departmentApiService
;
@Autowired
private
StoreService
storeService
;
//授权企业列表
@HttpLimit
...
...
@@ -88,6 +101,49 @@ public class WxEnterpriseController extends WebBaseController{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
//溢出门店列表
@IgnoreLogin
@RequestMapping
(
"store-full-list"
)
public
HaobanResponse
storeFullList
(
BasePageInfo
basePageInfo
,
String
search
)
{
// LoginVO login = (LoginVO) AuthRequestUtil.getSessionUser();
// String wxEnterpriseId = login.getWxEnterpriseId();
String
wxEnterpriseId
=
"1"
;
int
maxVersionCount
=
0
;
List
<
String
>
storeIds
=
new
ArrayList
<
String
>();
List
<
EnterpriseDetailDTO
>
enterpriseList
=
wxEnterpriseRelatedApiService
.
listEnterpriseByWxEnterpriseId
(
wxEnterpriseId
);
if
(
CollectionUtil
.
isEmpty
(
enterpriseList
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_10010
);
}
List
<
String
>
enterpriseIds
=
enterpriseList
.
stream
().
map
(
s
->
s
.
getEnterpriseId
()).
collect
(
Collectors
.
toList
());
//TODO 调陶接口,获取store列表
Page
<
DepartmentDTO
>
page
=
departmentApiService
.
pageFullStoreByWxEnterpriseId
(
wxEnterpriseId
,
search
,
storeIds
,
maxVersionCount
,
basePageInfo
);
List
<
DepartmentDTO
>
list
=
page
.
getResult
();
List
<
StoreVo
>
resultList
=
EntityUtil
.
changeEntityListByJSON
(
StoreVo
.
class
,
list
);
List
<
String
>
t_storeIds
=
list
.
stream
().
map
(
s
->
s
.
getRelatedId
()).
collect
(
Collectors
.
toList
());
String
[]
storeIdArr
=
t_storeIds
.
toArray
(
new
String
[
t_storeIds
.
size
()]);
List
<
StoreDTO
>
storeList
=
storeService
.
getStores
(
storeIdArr
);
Map
<
String
,
StoreDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
storeList
,
"storeId"
);
for
(
StoreVo
vo:
resultList
){
if
(
map
.
get
(
vo
.
getRelatedId
())!=
null
){
vo
.
setStoreCode
(
map
.
get
(
vo
.
getDepartmentId
()).
getStoreCode
());
vo
.
setStoreId
(
map
.
get
(
vo
.
getDepartmentId
()).
getStoreId
());
vo
.
setStoreName
(
map
.
get
(
vo
.
getDepartmentId
()).
getStoreName
());
}
}
Page
resultPage
=
new
Page
<>();
resultPage
.
setCurrentPage
(
page
.
getCurrentPage
());
resultPage
.
setPageSize
(
page
.
getPageSize
());
resultPage
.
setTotalCount
(
page
.
getTotalCount
());
resultPage
.
setResult
(
resultList
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultPage
);
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
25959804
...
...
@@ -77,6 +77,8 @@ public enum HaoBanErrCode {
ERR_10007
(
10007
,
"成员不存在"
),
ERR_10008
(
10008
,
"请不要过于频繁点击"
),
ERR_10009
(
10009
,
"门店不存在"
),
ERR_10010
(
10010
,
"企业微信无关联的gic企业"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_OTHER
(-
999
,
"未知错误code"
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/DepartmentAddQO.java
View file @
25959804
...
...
@@ -10,6 +10,8 @@ public class DepartmentAddQO implements Serializable {
private
String
parentId
;
private
String
parentDepartmentId
;
private
String
sonDepartment
;
private
Integer
storeFlag
;
...
...
@@ -63,6 +65,14 @@ public class DepartmentAddQO implements Serializable {
public
void
setRelatedId
(
String
relatedId
)
{
this
.
relatedId
=
relatedId
;
}
public
String
getParentDepartmentId
()
{
return
parentId
;
}
public
void
setParentDepartmentId
(
String
parentDepartmentId
)
{
this
.
parentDepartmentId
=
parentDepartmentId
;
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/StoreVo.java
View file @
25959804
...
...
@@ -13,7 +13,7 @@ public class StoreVo implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
private
String
departmentId
;
private
String
department
Name
;
private
String
store
Name
;
private
String
storeId
;
private
String
storeCode
;
private
String
relatedId
;
...
...
@@ -30,11 +30,12 @@ public class StoreVo implements Serializable {
public
void
setDepartmentId
(
String
departmentId
)
{
this
.
departmentId
=
departmentId
;
}
public
String
getDepartmentName
()
{
return
departmentName
;
public
String
getStoreName
()
{
return
storeName
;
}
public
void
set
DepartmentName
(
String
department
Name
)
{
this
.
departmentName
=
department
Name
;
public
void
set
StoreName
(
String
store
Name
)
{
this
.
storeName
=
store
Name
;
}
public
String
getStoreId
()
{
return
storeId
;
...
...
haoban-manage3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
View file @
25959804
...
...
@@ -44,5 +44,5 @@
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.WxApplicationApiService"
id=
"wxApplicationApiService"
/>
<dubbo:reference
interface=
"com.gic.haoban.communicate.api.service.valid.ValidationCodeService"
id=
"validationCodeService"
/>
</beans>
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