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
6feeb455
Commit
6feeb455
authored
May 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
9551bf96
2da73e3a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
14 deletions
+13
-14
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+3
-3
MaterialController.java
.../gic/haoban/manage/web/controller/MaterialController.java
+5
-5
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+1
-2
SyncDealContoller.java
...m/gic/haoban/manage/web/controller/SyncDealContoller.java
+1
-1
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+2
-2
spring-interceptor.xml
...anage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
+1
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
6feeb455
...
@@ -158,7 +158,7 @@ public class ApplicationController extends WebBaseController {
...
@@ -158,7 +158,7 @@ public class ApplicationController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
}
}
if
(
enterpriseDTO
.
getContactFlag
()
!=
null
&&
enterpriseDTO
.
getContactFlag
()
==
0
)
{
if
(
enterpriseDTO
.
getContactFlag
()
!=
null
&&
enterpriseDTO
.
getContactFlag
()
==
0
)
{
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"同步企业微信架构"
,
login
.
get
Staff
Id
(),
"首次同步企业微信架构"
);
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"同步企业微信架构"
,
login
.
get
Clerk
Id
(),
"首次同步企业微信架构"
);
if
(
StringUtils
.
isBlank
(
taskId
))
{
if
(
StringUtils
.
isBlank
(
taskId
))
{
log
.
info
(
"【是否绑定】taskId={}"
,
taskId
);
log
.
info
(
"【是否绑定】taskId={}"
,
taskId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
true
);
...
@@ -191,7 +191,7 @@ public class ApplicationController extends WebBaseController {
...
@@ -191,7 +191,7 @@ public class ApplicationController extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
}
if
(
StringUtils
.
isNotBlank
(
secretSetting
.
getSecretVal
())
&&
enterpriseDTO
.
getContactFlag
()
!=
null
)
{
if
(
StringUtils
.
isNotBlank
(
secretSetting
.
getSecretVal
())
&&
enterpriseDTO
.
getContactFlag
()
!=
null
)
{
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
get
Staff
Id
(),
"后门同步企业微信架构"
);
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
get
Clerk
Id
(),
"后门同步企业微信架构"
);
if
(
StringUtils
.
isBlank
(
taskId
))
{
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
false
);
}
}
...
@@ -288,7 +288,7 @@ public class ApplicationController extends WebBaseController {
...
@@ -288,7 +288,7 @@ public class ApplicationController extends WebBaseController {
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
WxEnterpriseDTO
enterpriseDTO
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
WxEnterpriseDTO
enterpriseDTO
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
);
if
(
enterpriseDTO
!=
null
)
{
if
(
enterpriseDTO
!=
null
)
{
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
get
Staff
Id
(),
"后门同步企业微信架构"
);
String
taskId
=
dealSyncOperationApiService
.
createQywxTask
(
wxEnterpriseId
,
"后门同步企业微信架构"
,
login
.
get
Clerk
Id
(),
"后门同步企业微信架构"
);
if
(
StringUtils
.
isBlank
(
taskId
))
{
if
(
StringUtils
.
isBlank
(
taskId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
false
);
return
resultResponse
(
HaoBanErrCode
.
ERR_0
,
false
);
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/MaterialController.java
View file @
6feeb455
...
@@ -124,8 +124,8 @@ public class MaterialController extends WebBaseController {
...
@@ -124,8 +124,8 @@ public class MaterialController extends WebBaseController {
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
materialDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
materialDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
materialDTO
.
setStaffId
(
login
.
get
Staff
Id
());
materialDTO
.
setStaffId
(
login
.
get
Clerk
Id
());
materialDTO
.
setStaffName
(
null
);
materialDTO
.
setStaffName
(
login
.
getClerkName
()
);
String
materialTitle
=
materialDTO
.
getMaterialTitle
();
String
materialTitle
=
materialDTO
.
getMaterialTitle
();
String
categoryId
=
materialDTO
.
getCategoryId
();
String
categoryId
=
materialDTO
.
getCategoryId
();
Integer
categoryType
=
materialDTO
.
getMaterialType
();
Integer
categoryType
=
materialDTO
.
getMaterialType
();
...
@@ -153,7 +153,7 @@ public class MaterialController extends WebBaseController {
...
@@ -153,7 +153,7 @@ public class MaterialController extends WebBaseController {
BatchAddMaterialDTO
.
Material
material
=
dto
.
getMaterial
();
BatchAddMaterialDTO
.
Material
material
=
dto
.
getMaterial
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
material
.
setWxEnterpriseId
(
login
.
getWxEnterpriseId
());
material
.
setWxEnterpriseId
(
login
.
getWxEnterpriseId
());
material
.
setStaffId
(
login
.
get
Staff
Id
());
material
.
setStaffId
(
login
.
get
Clerk
Id
());
material
.
setStaffName
(
null
);
material
.
setStaffName
(
null
);
if
(
StringUtils
.
isAnyBlank
(
material
.
getCategoryId
(),
material
.
getMaterialTitle
())
if
(
StringUtils
.
isAnyBlank
(
material
.
getCategoryId
(),
material
.
getMaterialTitle
())
||
Objects
.
isNull
(
material
.
getMaterialType
()))
{
||
Objects
.
isNull
(
material
.
getMaterialType
()))
{
...
@@ -182,8 +182,8 @@ public class MaterialController extends WebBaseController {
...
@@ -182,8 +182,8 @@ public class MaterialController extends WebBaseController {
@RequestMapping
(
"/material-edit"
)
@RequestMapping
(
"/material-edit"
)
public
HaobanResponse
materialEdit
(
MaterialDTO
materialDTO
)
{
public
HaobanResponse
materialEdit
(
MaterialDTO
materialDTO
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
materialDTO
.
setStaffId
(
login
.
get
Staff
Id
());
materialDTO
.
setStaffId
(
login
.
get
Clerk
Id
());
materialDTO
.
setStaffName
(
null
);
materialDTO
.
setStaffName
(
login
.
getClerkName
()
);
String
materialId
=
materialDTO
.
getMaterialId
();
String
materialId
=
materialDTO
.
getMaterialId
();
MaterialDTO
dto
=
materialApiService
.
selectMaterialById
(
materialId
);
MaterialDTO
dto
=
materialApiService
.
selectMaterialById
(
materialId
);
if
(
dto
==
null
)
{
if
(
dto
==
null
)
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
6feeb455
...
@@ -340,12 +340,11 @@ public class StaffController extends WebBaseController {
...
@@ -340,12 +340,11 @@ public class StaffController extends WebBaseController {
*/
*/
@RequestMapping
(
"del-clerk-relation"
)
@RequestMapping
(
"del-clerk-relation"
)
public
HaobanResponse
delStaffClerkList
(
String
staffId
,
String
clerkId
)
{
public
HaobanResponse
delStaffClerkList
(
String
staffId
,
String
clerkId
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
StaffDTO
staff
=
staffApiService
.
selectById
(
staffId
);
StaffDTO
staff
=
staffApiService
.
selectById
(
staffId
);
if
(
staff
==
null
)
{
if
(
staff
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10007
);
return
resultResponse
(
HaoBanErrCode
.
ERR_10007
);
}
}
boolean
b
=
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
login
.
getStaffId
()
,
clerkId
);
boolean
b
=
staffClerkRelationApiService
.
unbindByStaffAndClerkId
(
staffId
,
clerkId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
b
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
b
);
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/SyncDealContoller.java
View file @
6feeb455
...
@@ -48,7 +48,7 @@ public class SyncDealContoller extends WebBaseController {
...
@@ -48,7 +48,7 @@ public class SyncDealContoller extends WebBaseController {
if
(
RedisUtil
.
getCache
(
key
)
!=
null
)
{
if
(
RedisUtil
.
getCache
(
key
)
!=
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
}
}
task
=
dealSyncOperationApiService
.
createTask
(
wxEnterpriseId
,
"门店同步"
,
login
.
get
Staff
Id
(),
"部门同步"
);
task
=
dealSyncOperationApiService
.
createTask
(
wxEnterpriseId
,
"门店同步"
,
login
.
get
Clerk
Id
(),
"部门同步"
);
dealSyncOperationApiService
.
dealDepartment
(
task
,
login
.
getWxEnterpriseId
(),
qo
.
getAddDepartment
(),
qo
.
getEditDepartment
());
dealSyncOperationApiService
.
dealDepartment
(
task
,
login
.
getWxEnterpriseId
(),
qo
.
getAddDepartment
(),
qo
.
getEditDepartment
());
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
6feeb455
...
@@ -561,7 +561,7 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -561,7 +561,7 @@ public class WxEnterpriseController extends WebBaseController {
if
(
monthCount
>=
3
)
{
if
(
monthCount
>=
3
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_100020
);
return
resultResponse
(
HaoBanErrCode
.
ERR_100020
);
}
}
String
taskId
=
dealSyncOperationApiService
.
createWxFriendTask
(
wxEnterpriseId
,
"刷新企微好友"
,
login
.
get
Staff
Id
(),
"刷新企微好友"
);
String
taskId
=
dealSyncOperationApiService
.
createWxFriendTask
(
wxEnterpriseId
,
"刷新企微好友"
,
login
.
get
Clerk
Id
(),
"刷新企微好友"
);
if
(
StringUtils
.
isEmpty
(
taskId
))
{
if
(
StringUtils
.
isEmpty
(
taskId
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_100021
);
return
resultResponse
(
HaoBanErrCode
.
ERR_100021
);
}
}
...
@@ -628,7 +628,7 @@ public class WxEnterpriseController extends WebBaseController {
...
@@ -628,7 +628,7 @@ public class WxEnterpriseController extends WebBaseController {
public
HaobanResponse
flushBindStoreList
(
String
enterpriseId
)
{
public
HaobanResponse
flushBindStoreList
(
String
enterpriseId
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
ServiceResponse
response
=
wxEnterpriseRelatedApiService
.
flushBindStoreByEnterpriseId
(
enterpriseId
,
wxEnterpriseId
,
login
.
get
Staff
Id
(),
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
());
ServiceResponse
response
=
wxEnterpriseRelatedApiService
.
flushBindStoreByEnterpriseId
(
enterpriseId
,
wxEnterpriseId
,
login
.
get
Clerk
Id
(),
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
());
logger
.
info
(
"返回信息:{}"
,
JSONObject
.
toJSONString
(
response
));
logger
.
info
(
"返回信息:{}"
,
JSONObject
.
toJSONString
(
response
));
if
(
response
.
getCode
()
!=
1
)
{
if
(
response
.
getCode
()
!=
1
)
{
HaoBanErrCode
.
ERR_DEFINE
.
setMsg
(
response
.
getMessage
());
HaoBanErrCode
.
ERR_DEFINE
.
setMsg
(
response
.
getMessage
());
...
...
haoban-manage3-web/src/main/webapp/WEB-INF/spring-interceptor.xml
View file @
6feeb455
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<mvc:interceptors>
<mvc:interceptors>
<bean
class=
"com.gic.haoban.common.interceptor.HttpLimitInterceptor"
/>
<bean
class=
"com.gic.haoban.common.interceptor.HttpLimitInterceptor"
/>
<bean
class=
"com.gic.commons.interceptor.HeaderTagInterceptor"
/>
<bean
class=
"com.gic.commons.interceptor.HeaderTagInterceptor"
/>
<bean
class=
"com.gic.web.common.inteceptor.RequestInteceptor"
></bean
>
<bean
class=
"com.gic.web.common.inteceptor.RequestInteceptor"
/
>
<mvc:interceptor>
<mvc:interceptor>
<mvc:mapping
path=
"/**"
/>
<mvc:mapping
path=
"/**"
/>
<mvc:exclude-mapping
path=
"/login.json"
/>
<mvc:exclude-mapping
path=
"/login.json"
/>
...
...
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