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
83a4b71e
Commit
83a4b71e
authored
Sep 03, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办停用
parent
949dfb0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+21
-8
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+10
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
83a4b71e
...
@@ -292,14 +292,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -292,14 +292,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
log
.
info
(
"企微关联数={},{}"
,
count
,
JSON
.
toJSONString
(
list
));
log
.
info
(
"企微关联数={},{}"
,
count
,
JSON
.
toJSONString
(
list
));
String
msg
=
"好办服务已到期"
;
String
msg
=
"好办服务已到期"
;
if
(
count
==
1
)
{
if
(
count
==
1
)
{
ServiceResponse
<
EnterpriseUsingPermissionDto
>
resp
=
this
.
enterpriseUseForbidService
.
getPermisssionByCode
(
list
.
get
(
0
).
getEnterpriseId
(),
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
msg
=
this
.
getEndDate
(
list
.
get
(
0
).
getEnterpriseId
())
;
log
.
info
(
"返回权限信息={}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
isSuccess
())
{
EnterpriseUsingPermissionDto
dto
=
resp
.
getResult
()
;
if
(
null
!=
dto
.
getServiceEndDate
()
&&
0
!=
dto
.
getStatus
()
&&
1
!=
dto
.
getStatus
())
{
msg
=
"好办服务已于"
+
DateUtil
.
dateToStr
(
dto
.
getServiceEndDate
(),
"yyyy-MM-dd"
)+
"到期"
;
}
}
return
ServiceResponse
.
failure
(
"2000"
,
msg
);
return
ServiceResponse
.
failure
(
"2000"
,
msg
);
}
else
{
}
else
{
boolean
flag
=
false
;
boolean
flag
=
false
;
...
@@ -499,8 +492,28 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -499,8 +492,28 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
Integer
code
=
this
.
enterpriseUseForbidService
.
selectPermissionStatus
(
eid
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
Integer
code
=
this
.
enterpriseUseForbidService
.
selectPermissionStatus
(
eid
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
log
.
info
(
"好办是否到期停用={},{}"
,
eid
,
code
);
log
.
info
(
"好办是否到期停用={},{}"
,
eid
,
code
);
if
(
code
==
0
||
code
==
1
)
{
if
(
code
==
0
||
code
==
1
)
{
ServiceResponse
<
EnterpriseUsingPermissionDto
>
resp
=
this
.
enterpriseUseForbidService
.
getPermisssionByCode
(
eid
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
log
.
info
(
"返回权限信息={}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
isSuccess
())
{
EnterpriseUsingPermissionDto
dto
=
resp
.
getResult
()
;
if
(
null
!=
dto
.
getServiceEndDate
()
&&
dto
.
getServiceEndDate
().
after
(
new
Date
()))
{
return
false
;
}
}
return
false
;
return
false
;
}
}
return
true
;
return
true
;
}
}
private
String
getEndDate
(
String
enterpriseId
)
{
ServiceResponse
<
EnterpriseUsingPermissionDto
>
resp
=
this
.
enterpriseUseForbidService
.
getPermisssionByCode
(
enterpriseId
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
log
.
info
(
"返回权限信息={}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
isSuccess
())
{
EnterpriseUsingPermissionDto
dto
=
resp
.
getResult
()
;
if
(
null
!=
dto
.
getServiceEndDate
()
&&
(
dto
.
getServiceEndDate
().
after
(
new
Date
())
||
(
dto
.
getStatus
()!=
0
&&
dto
.
getStatus
()!=
1
))
)
{
return
"好办服务已于"
+
DateUtil
.
dateToStr
(
dto
.
getServiceEndDate
(),
"yyyy-MM-dd"
)+
"到期"
;
}
}
return
"好办服务已到期"
;
}
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
83a4b71e
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
import
com.alibaba.dubbo.common.utils.CollectionUtils
;
import
com.alibaba.dubbo.common.utils.CollectionUtils
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.EntityUtil
;
...
@@ -26,6 +27,7 @@ import com.gic.dict.api.dto.GlobalDictMap;
...
@@ -26,6 +27,7 @@ import com.gic.dict.api.dto.GlobalDictMap;
import
com.gic.dict.api.dto.ProvinceDTO
;
import
com.gic.dict.api.dto.ProvinceDTO
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.EnterpriseUsingPermissionDto
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StorePhotoDTO
;
import
com.gic.enterprise.api.dto.StorePhotoDTO
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.EnterpriseService
;
...
@@ -372,6 +374,14 @@ public class StoreController extends WebBaseController {
...
@@ -372,6 +374,14 @@ public class StoreController extends WebBaseController {
Integer
code
=
this
.
enterpriseUseForbidService
.
selectPermissionStatus
(
enterpriseId
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
Integer
code
=
this
.
enterpriseUseForbidService
.
selectPermissionStatus
(
enterpriseId
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
logger
.
info
(
"好办是否到期停用={},{}"
,
enterpriseId
,
code
);
logger
.
info
(
"好办是否到期停用={},{}"
,
enterpriseId
,
code
);
if
(
code
==
0
||
code
==
1
)
{
if
(
code
==
0
||
code
==
1
)
{
ServiceResponse
<
EnterpriseUsingPermissionDto
>
resp
=
this
.
enterpriseUseForbidService
.
getPermisssionByCode
(
enterpriseId
,
EnterpriseServiceEnum
.
HAO_BAN
.
getRightMenuCode
())
;
logger
.
info
(
"返回权限信息={}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
isSuccess
())
{
EnterpriseUsingPermissionDto
dto
=
resp
.
getResult
()
;
if
(
null
!=
dto
.
getServiceEndDate
()
&&
dto
.
getServiceEndDate
().
after
(
new
Date
()))
{
return
false
;
}
}
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
...
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