Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
268b09ee
Commit
268b09ee
authored
Feb 17, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.scsmile.cn/zxf/smart_gov_platform
parents
12ebd7a5
dadacf10
Changes
45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
871 additions
and
406 deletions
+871
-406
base-manager/src/main/java/com/mortals/xhx/base/framework/config/FilterConfig.java
...a/com/mortals/xhx/base/framework/config/FilterConfig.java
+34
-4
base-manager/src/main/java/com/mortals/xhx/base/framework/filter/RequestFilter.java
.../com/mortals/xhx/base/framework/filter/RequestFilter.java
+25
-33
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
.../java/com/mortals/xhx/busiz/web/DemoWebApiController.java
+82
-3
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
...in/java/com/mortals/xhx/module/app/web/AppController.java
+0
-1
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppVersionController.java
.../com/mortals/xhx/module/app/web/AppVersionController.java
+0
-3
base-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
...mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
+27
-6
base-manager/src/main/java/com/mortals/xhx/module/dept/web/DeptController.java
.../java/com/mortals/xhx/module/dept/web/DeptController.java
+2
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+33
-3
base-manager/src/main/java/com/mortals/xhx/module/site/service/SiteMatterService.java
...om/mortals/xhx/module/site/service/SiteMatterService.java
+15
-9
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteMatterServiceImpl.java
...s/xhx/module/site/service/impl/SiteMatterServiceImpl.java
+30
-9
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+8
-0
base-manager/src/main/java/com/mortals/xhx/module/sms/service/impl/SmsSetServiceImpl.java
...ortals/xhx/module/sms/service/impl/SmsSetServiceImpl.java
+11
-0
base-manager/src/main/java/com/mortals/xhx/module/window/service/WindowMatterService.java
...ortals/xhx/module/window/service/WindowMatterService.java
+13
-8
base-manager/src/main/java/com/mortals/xhx/module/window/service/WindowService.java
.../com/mortals/xhx/module/window/service/WindowService.java
+14
-9
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowMatterServiceImpl.java
...x/module/window/service/impl/WindowMatterServiceImpl.java
+53
-3
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
...als/xhx/module/window/service/impl/WindowServiceImpl.java
+6
-4
base-manager/src/main/resources/logback-spring.xml
base-manager/src/main/resources/logback-spring.xml
+2
-2
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
...c/main/resources/sqlmap/module/matter/MatterMapperExt.xml
+4
-4
base-manager/src/test/java/com/mortals/httpclient/dept/DeptController.http
...test/java/com/mortals/httpclient/dept/DeptController.http
+2
-1
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
.../java/com/mortals/httpclient/matter/MatterController.http
+2
-2
base-manager/src/test/java/com/mortals/httpclient/site/SiteBusinessController.http
...a/com/mortals/httpclient/site/SiteBusinessController.http
+1
-1
base-manager/src/test/java/com/mortals/httpclient/system/system.http
...r/src/test/java/com/mortals/httpclient/system/system.http
+8
-0
portal-manager-ui/admin/src/api/APIServe.js
portal-manager-ui/admin/src/api/APIServe.js
+5
-5
portal-manager-ui/admin/src/api/api.js
portal-manager-ui/admin/src/api/api.js
+2
-1
portal-manager-ui/admin/src/api/applService.js
portal-manager-ui/admin/src/api/applService.js
+5
-5
portal-manager-ui/admin/src/api/area.js
portal-manager-ui/admin/src/api/area.js
+5
-5
portal-manager-ui/admin/src/api/authorityMis.js
portal-manager-ui/admin/src/api/authorityMis.js
+6
-6
portal-manager-ui/admin/src/api/dataAdmin.js
portal-manager-ui/admin/src/api/dataAdmin.js
+20
-3
portal-manager-ui/admin/src/api/logs.js
portal-manager-ui/admin/src/api/logs.js
+3
-3
portal-manager-ui/admin/src/api/menuMgmt.js
portal-manager-ui/admin/src/api/menuMgmt.js
+7
-7
portal-manager-ui/admin/src/api/siteArrange.js
portal-manager-ui/admin/src/api/siteArrange.js
+2
-2
portal-manager-ui/admin/src/api/user.js
portal-manager-ui/admin/src/api/user.js
+6
-6
portal-manager-ui/admin/src/api/userManagement.js
portal-manager-ui/admin/src/api/userManagement.js
+6
-6
portal-manager-ui/admin/src/main.js
portal-manager-ui/admin/src/main.js
+3
-0
portal-manager-ui/admin/src/mixins/table.js
portal-manager-ui/admin/src/mixins/table.js
+3
-5
portal-manager-ui/admin/src/request/request.js
portal-manager-ui/admin/src/request/request.js
+4
-1
portal-manager-ui/admin/src/utils/codeMap.js
portal-manager-ui/admin/src/utils/codeMap.js
+6
-0
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/HandlingDetails.vue
...Admin/components/queueCall/components/HandlingDetails.vue
+143
-75
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/businessInfo.vue
...ataAdmin/components/queueCall/components/businessInfo.vue
+29
-36
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/userInfo.vue
...ws/dataAdmin/components/queueCall/components/userInfo.vue
+4
-2
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/workpeopleInfo.vue
...aAdmin/components/queueCall/components/workpeopleInfo.vue
+38
-33
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/mixins/modal.js
.../src/views/dataAdmin/components/queueCall/mixins/modal.js
+3
-3
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/queueRecord.vue
.../src/views/dataAdmin/components/queueCall/queueRecord.vue
+196
-94
portal-manager/pom.xml
portal-manager/pom.xml
+1
-1
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
...om/mortals/xhx/base/framework/filter/AccessLogFilter.java
+2
-2
No files found.
base-manager/src/main/java/com/mortals/xhx/base/framework/config/FilterConfig.java
View file @
268b09ee
...
...
@@ -3,12 +3,15 @@ package com.mortals.xhx.base.framework.config;
import
com.mortals.framework.filter.RepeatableFilter
;
import
com.mortals.framework.filter.XssFilter
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.base.framework.filter.RepeatReadHttpRequest
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
javax.servlet.DispatcherType
;
import
javax.servlet.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -17,8 +20,8 @@ import java.util.Map;
*
* @author zxfei
*/
//
@Configuration
public
class
FilterConfig
{
@Configuration
public
class
FilterConfig
{
@Value
(
"${xss.enabled}"
)
private
String
enabled
;
...
...
@@ -45,7 +48,7 @@ public class FilterConfig {
}
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Bean
/*
@Bean
public FilterRegistrationBean someFilterRegistration() {
FilterRegistrationBean registration = new FilterRegistrationBean();
registration.setFilter(new RepeatableFilter());
...
...
@@ -53,6 +56,33 @@ public class FilterConfig {
registration.setName("repeatableFilter");
registration.setOrder(FilterRegistrationBean.LOWEST_PRECEDENCE);
return registration;
}*/
@Bean
public
FilterRegistrationBean
requestReplaceFilterRegistration
()
{
FilterRegistrationBean
registrationBean
=
new
FilterRegistrationBean
();
registrationBean
.
setFilter
(
new
RequestReplaceFilter
());
registrationBean
.
addUrlPatterns
(
"/*"
);
registrationBean
.
setName
(
"RequestReplaceFilter"
);
registrationBean
.
setOrder
(
1
);
return
registrationBean
;
}
public
static
class
RequestReplaceFilter
implements
Filter
{
@Override
public
void
init
(
javax
.
servlet
.
FilterConfig
filterConfig
)
throws
ServletException
{
}
@Override
public
void
destroy
()
{
}
@Override
public
void
doFilter
(
ServletRequest
servletRequest
,
ServletResponse
servletResponse
,
FilterChain
filterChain
)
throws
IOException
,
ServletException
{
filterChain
.
doFilter
(
new
RepeatReadHttpRequest
((
HttpServletRequest
)
servletRequest
),
servletResponse
);
}
}
}
base-manager/src/main/java/com/mortals/xhx/base/framework/filter/RequestFilter.java
View file @
268b09ee
...
...
@@ -6,53 +6,45 @@ import org.springframework.stereotype.Component;
import
org.springframework.web.filter.OncePerRequestFilter
;
import
org.springframework.web.util.ContentCachingRequestWrapper
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.ServletException
;
import
javax.servlet.*
;
import
javax.servlet.annotation.WebFilter
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
/**
*
* 请求过滤链
*
* @author: zxfei
* @date: 2022/4/20 14:52
*/
//@
Component
//@
WebFilter(urlPatterns = "/*")
@Slf4j
public
class
RequestFilter
extends
OncePerRequestFilter
implements
Filter
{
public
class
RequestFilter
implements
Filter
{
private
static
final
String
FORM_CONTENT_TYPE
=
"multipart/form-data"
;
@Override
protected
void
doFilterInternal
(
HttpServletRequest
request
,
HttpServletResponse
response
,
FilterChain
filterChain
)
throws
ServletException
,
IOException
{
try
{
request
=
new
ContentCachingRequestWrapper
(
request
);
filterChain
.
doFilter
(
request
,
response
);
}
catch
(
Exception
e
)
{
throw
e
;
}
finally
{
//清理ThreadLocal
MDC
.
clear
();
}
public
void
init
(
FilterConfig
filterConfig
)
{
}
/*private void setUsername(HttpServletRequest request) {
//通过token解析出username
String token = authTokenService.getToken(request);
//String token = request.getHeader("token");
if (!ObjectUtils.isEmpty(token)) {
MDC.put("token",token);
MDC.put("token", token);
try {
SessionUserInfo info = tokenService.getUserInfo();
if (info != null) {
String username = info.getUsername();
MDC.put("username", username);
}
} catch (CommonJsonException e) {
log.info("无效的token:{}", token);
@Override
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
String
contentType
=
request
.
getContentType
();
if
(
request
instanceof
HttpServletRequest
)
{
HttpServletRequest
requestWrapper
=
new
ContentCachingRequestWrapper
((
HttpServletRequest
)
request
);
// #1
if
(
contentType
!=
null
&&
contentType
.
contains
(
FORM_CONTENT_TYPE
))
{
chain
.
doFilter
(
request
,
response
);
}
else
{
chain
.
doFilter
(
requestWrapper
,
response
);
}
return
;
}
}*/
chain
.
doFilter
(
request
,
response
);
}
@Override
public
void
destroy
()
{
}
}
base-manager/src/main/java/com/mortals/xhx/busiz/web/DemoWebApiController.java
View file @
268b09ee
...
...
@@ -9,9 +9,19 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.framework.web.BaseJsonBodyController
;
import
com.mortals.xhx.module.dept.model.DeptEntity
;
import
com.mortals.xhx.module.dept.model.DeptQuery
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.matter.model.MatterQuery
;
import
com.mortals.xhx.module.matter.model.vo.MatterInfo
;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.site.model.SiteMatterEntity
;
import
com.mortals.xhx.module.site.model.SiteMatterQuery
;
import
com.mortals.xhx.module.site.service.SiteMatterService
;
import
com.mortals.xhx.module.window.model.*
;
import
com.mortals.xhx.module.window.service.WindowBusinessService
;
import
com.mortals.xhx.module.window.service.WindowMatterService
;
import
com.mortals.xhx.module.window.service.WindowService
;
import
lombok.extern.apachecommons.CommonsLog
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.http.HttpResponse
;
...
...
@@ -30,6 +40,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
...
...
@@ -47,6 +58,16 @@ import static com.mortals.framework.ap.SysConstains.PAGEINFO_KEY;
@Slf4j
public
class
DemoWebApiController
{
@Autowired
private
WindowService
windowService
;
@Autowired
private
SiteMatterService
siteMatterService
;
@Autowired
private
WindowMatterService
windowMatterService
;
@Autowired
private
DeptService
deptService
;
@PostMapping
(
value
=
"testGov"
)
@UnAuth
public
Rest
<
String
>
testGov
(
@RequestBody
MatterQuery
query
)
{
...
...
@@ -83,6 +104,64 @@ public class DemoWebApiController {
}
@PostMapping
(
value
=
"reDepts"
)
@UnAuth
public
Rest
<
String
>
reDepts
()
{
log
.
info
(
"更新部门与设备关联"
);
//更新窗口部门
List
<
WindowEntity
>
windowEntities
=
windowService
.
find
(
new
WindowQuery
());
for
(
WindowEntity
windowEntity
:
windowEntities
)
{
String
deptName
=
windowEntity
.
getDeptName
();
//根据部门名称查询部门
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
deptName
+
"%"
));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
windowEntity
.
getDeptId
()&&
deptEntity
.
getName
().
trim
().
equals
(
windowEntity
.
getDeptName
().
trim
()))
{
log
.
info
(
"部门:{},更新部门id:orgin deptId:{} ,updateDeptId:{}"
,
deptName
,
windowEntity
.
getDeptId
(),
deptEntity
.
getId
());
WindowEntity
temp
=
new
WindowEntity
();
temp
.
setId
(
windowEntity
.
getId
());
temp
.
setDeptId
(
deptEntity
.
getId
());
windowService
.
getDao
().
update
(
temp
);
// windowService.update(windowEntity);
}
}
}
//更新窗口事项中的部门id
List
<
WindowMatterEntity
>
windowMatterEntities
=
windowMatterService
.
find
(
new
WindowMatterQuery
());
for
(
WindowMatterEntity
windowMatterEntity
:
windowMatterEntities
)
{
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
windowMatterEntity
.
getDeptName
()+
"%"
));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
windowMatterEntity
.
getDeptId
()&&
windowMatterEntity
.
getDeptName
().
trim
().
equals
(
deptEntity
.
getName
()))
{
WindowMatterEntity
temp
=
new
WindowMatterEntity
();
temp
.
setId
(
windowMatterEntity
.
getId
());
temp
.
setDeptId
(
deptEntity
.
getId
());
temp
.
setDeptCode
(
deptEntity
.
getDeptNumber
());
windowMatterService
.
getDao
().
update
(
temp
);
// windowMatterService.update(windowMatterEntity);
}
}
}
List
<
SiteMatterEntity
>
siteMatterEntities
=
siteMatterService
.
find
(
new
SiteMatterQuery
());
for
(
SiteMatterEntity
siteMatterEntity
:
siteMatterEntities
)
{
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
name
(
siteMatterEntity
.
getDeptName
()+
"%"
));
if
(!
ObjectUtils
.
isEmpty
(
deptEntity
))
{
if
(
deptEntity
.
getId
()
!=
siteMatterEntity
.
getDeptId
()&&
siteMatterEntity
.
getDeptName
().
trim
().
equals
(
deptEntity
.
getName
().
trim
()))
{
SiteMatterEntity
temp
=
new
SiteMatterEntity
();
temp
.
setId
(
siteMatterEntity
.
getId
());
temp
.
setDeptId
(
deptEntity
.
getId
());
temp
.
setDeptCode
(
deptEntity
.
getDeptNumber
());
siteMatterService
.
getDao
().
update
(
temp
);
//siteMatterService.update(siteMatterEntity);
}
}
}
return
Rest
.
ok
();
}
public
static
void
main
(
String
[]
args
)
{
HttpClient
http
=
null
;
CookieStore
httpCookieStore
=
new
BasicCookieStore
();
...
...
@@ -96,9 +175,9 @@ public class DemoWebApiController {
byte
[]
data
=
EntityUtils
.
toByteArray
(
httpResponse
.
getEntity
());
String
encode
=
Base64
.
encode
(
data
);
log
.
info
(
"encode64:{}"
,
encode
);
log
.
info
(
"encode64:{}"
,
encode
);
// String resp = com.mortals.framework.util.HttpUtil.processMultipartResponse(httpResponse);
// log.info("resp:{}", resp);
// log.info("resp:{}", resp);
//String content = EntityUtils.toString(entity, charset);
//httpResponse.getEntity()
//httpResponse.toString()
...
...
@@ -107,7 +186,7 @@ public class DemoWebApiController {
}
/* check cookies */
String
cookieStr
=
Arrays
.
asList
(
httpCookieStore
.
getCookies
()).
stream
().
map
(
item
->
JSON
.
toJSONString
(
item
)).
collect
(
Collectors
.
joining
(
"|"
));
// log.info("cookies:{}", cookieStr);
// log.info("cookies:{}", cookieStr);
}
...
...
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppController.java
View file @
268b09ee
...
...
@@ -65,7 +65,6 @@ public class AppController extends BaseCRUDJsonBodyMappingController<AppService,
List
<
AppEntity
>
appEntityList
=
this
.
service
.
find
(
new
AppQuery
().
appCode
(
entity
.
getAppCode
()),
context
);
entity
.
setApplianceSiteScope
(
appEntityList
.
size
());
entity
.
setSiteIdList
(
appEntityList
.
stream
().
map
(
AppEntity:
:
getSiteId
).
collect
(
Collectors
.
toList
()));
SiteEntity
siteEntity
=
siteService
.
getCache
(
entity
.
getSiteId
().
toString
());
if
(!
ObjectUtils
.
isEmpty
(
siteEntity
)){
//请求地址 http://domian/app/siteCode/appcode/html
...
...
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppVersionController.java
View file @
268b09ee
...
...
@@ -49,9 +49,6 @@ import static com.mortals.xhx.common.key.Constant.CUSTAPP_ROOT_PATH;
@RequestMapping
(
"app/version"
)
public
class
AppVersionController
extends
BaseCRUDJsonBodyMappingController
<
AppVersionService
,
AppVersionEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
@Autowired
private
SiteService
siteService
;
@Autowired
...
...
base-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
View file @
268b09ee
...
...
@@ -69,6 +69,21 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
return
data
.
getDeptNumber
();
}
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected
void
validData
(
DeptEntity
entity
,
Context
context
)
throws
AppException
{
super
.
validData
(
entity
,
context
);
//校验部门编码是否重复
DeptEntity
extCache
=
this
.
getExtCache
(
entity
.
getDeptNumber
());
if
(!
ObjectUtils
.
isEmpty
(
extCache
)
&&
SourceEnum
.
自定义
.
getValue
()
==
entity
.
getSource
())
{
throw
new
AppException
(
"部门编码重复!deptCode:"
+
extCache
.
getDeptNumber
());
}
}
@Override
public
void
syncDept
(
String
areaCode
,
Context
context
)
{
List
<
MattersDeptEntity
>
deptList
=
mattersDeptService
.
find
(
new
MattersDeptQuery
());
...
...
@@ -96,22 +111,21 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
public
Rest
<
String
>
syncDeptBySiteId
(
SiteEntity
siteEntity
,
Context
context
)
{
String
url
=
GlobalSysInfo
.
getParamValue
(
Constant
.
GOV_DEPT_URL
,
"http://www.sczwfw.gov.cn/jiq/front/channel/deptSwitch"
);
Long
siteId
=
siteEntity
.
getId
();
String
areaCode
=
siteEntity
.
getAreaCode
();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"areaCode"
,
areaCode
);
Rest
<
Map
<
String
,
String
>>
rest
=
MatterHtmlParseUtil
.
syncDeptBySiteId
(
params
,
url
);
if
(
rest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
()
&&
rest
.
getData
().
keySet
().
size
()
>
0
)
{
//删除部门中属于政务部门的
deptService
.
deleteGovBySiteId
(
siteId
,
context
);
//
deptService.deleteGovBySiteId(siteId, context);
int
sortN
=
1
;
Map
<
String
,
String
>
data
=
rest
.
getData
();
for
(
Map
.
Entry
<
String
,
String
>
item
:
data
.
entrySet
())
{
String
deptCode
=
item
.
getKey
();
String
deptName
=
item
.
getValue
();
int
count
=
deptService
.
count
(
new
DeptQuery
().
siteId
(
siteId
).
deptNumber
(
deptCode
),
context
);
if
(
count
==
0
)
{
DeptEntity
deptEntity
=
new
DeptEntity
();
DeptEntity
deptEntity
=
deptService
.
selectOne
(
new
DeptQuery
().
siteId
(
siteId
).
deptNumber
(
deptCode
),
context
);
if
(
ObjectUtils
.
isEmpty
(
deptEntity
)
)
{
deptEntity
=
new
DeptEntity
();
deptEntity
.
initAttrValue
();
deptEntity
.
setDeptNumber
(
deptCode
);
deptEntity
.
setSiteId
(
siteId
);
...
...
@@ -121,6 +135,13 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
deptEntity
.
setCreateTime
(
new
Date
());
deptEntity
.
setCreateUserId
(
1L
);
deptService
.
save
(
deptEntity
,
context
);
}
else
{
//更新
deptEntity
.
setName
(
deptName
);
deptEntity
.
setSource
(
SourceEnum
.
政务网
.
getValue
());
deptEntity
.
setUpdateTime
(
new
Date
());
deptEntity
.
setUpdateUserId
(
1L
);
deptService
.
update
(
deptEntity
,
context
);
}
sortN
++;
}
...
...
@@ -136,7 +157,7 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
List
<
DeptVo
>
businessDeptList
=
this
.
dao
.
getBusinessByDept
(
deptQuery
);
Map
<
String
,
List
<
DeptVo
>>
collect
=
businessDeptList
.
parallelStream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getId
().
toString
()));
return
Rest
.
ok
(
collect
);
return
Rest
.
ok
(
collect
);
/* //查询部门窗口
...
...
base-manager/src/main/java/com/mortals/xhx/module/dept/web/DeptController.java
View file @
268b09ee
...
...
@@ -150,4 +150,6 @@ public class DeptController extends BaseCRUDJsonBodyMappingController<DeptServic
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
268b09ee
...
...
@@ -36,6 +36,8 @@ import com.mortals.xhx.module.site.service.SiteMatterService;
import
com.mortals.xhx.module.site.service.SiteService
;
import
com.mortals.xhx.module.site.service.SiteThemeMatterService
;
import
com.mortals.xhx.module.site.service.SiteThemeService
;
import
com.mortals.xhx.module.window.model.WindowMatterQuery
;
import
com.mortals.xhx.module.window.service.WindowMatterService
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.jsoup.Jsoup
;
...
...
@@ -92,6 +94,8 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
private
SiteThemeMatterService
siteThemeMatterService
;
@Autowired
private
SiteThemeService
siteThemeService
;
@Autowired
private
WindowMatterService
windowMatterService
;
@Override
...
...
@@ -102,7 +106,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
SiteEntity
siteEntity
=
siteService
.
get
(
entity
.
getSiteId
(),
context
);
entity
.
setAreaCode
(
siteEntity
.
getAreaCode
());
DeptEntity
extCache
=
deptService
.
getExtCache
(
entity
.
getDeptCode
());
entity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
entity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
}
}
...
...
@@ -143,8 +147,34 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
SiteEntity
siteEntity
=
siteService
.
get
(
entity
.
getSiteId
(),
context
);
entity
.
setAreaCode
(
siteEntity
.
getAreaCode
());
DeptEntity
extCache
=
deptService
.
getExtCache
(
entity
.
getDeptCode
());
entity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
entity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
}
MatterEntity
beforeMatterEntity
=
this
.
get
(
entity
.
getId
(),
context
);
//如果部门切换了 级联修改关联的其它项
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDeptCode
()))
{
if
(!
entity
.
getDeptCode
().
equals
(
beforeMatterEntity
.
getDeptCode
()))
{
//更新站点事项关联项
SiteMatterQuery
condition
=
new
SiteMatterQuery
();
condition
.
setMatterId
(
entity
.
getId
());
SiteMatterQuery
siteMatterQuery
=
new
SiteMatterQuery
();
DeptEntity
extCache
=
deptService
.
getExtCache
(
entity
.
getDeptCode
());
siteMatterQuery
.
setDeptId
(
extCache
==
null
?
0L
:
extCache
.
getId
());
siteMatterQuery
.
setDeptCode
(
entity
.
getDeptCode
());
siteMatterQuery
.
setDeptName
(
entity
.
getDeptName
());
siteMatterService
.
updateBatch
(
siteMatterQuery
,
condition
,
context
);
//更新站点窗口事项关联项
WindowMatterQuery
winCondition
=
new
WindowMatterQuery
();
winCondition
.
setSiteMatterId
(
entity
.
getId
());
WindowMatterQuery
windowMatterQuery
=
new
WindowMatterQuery
();
windowMatterQuery
.
setDeptId
(
extCache
==
null
?
0L
:
extCache
.
getId
());
windowMatterQuery
.
setDeptCode
(
entity
.
getDeptCode
());
windowMatterQuery
.
setDeptName
(
entity
.
getDeptName
());
windowMatterService
.
updateBatch
(
windowMatterQuery
,
winCondition
,
context
);
}
}
}
super
.
updateBefore
(
entity
,
context
);
}
...
...
@@ -997,7 +1027,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
//更新部门信息
DeptEntity
extCache
=
deptService
.
getExtCache
(
matterEntity
.
getDeptCode
());
matterEntity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
matterEntity
.
setDeptName
(
extCache
==
null
?
""
:
extCache
.
getName
());
/* if(!ObjectUtils.isEmpty(matterEntity.getDeptCode())&&ObjectUtils.isEmpty(matterEntity.getDeptName())){
DeptEntity extCache = deptService.getExtCache(matterEntity.getDeptCode());
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/SiteMatterService.java
View file @
268b09ee
package
com.mortals.xhx.module.site.service
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.site.dao.SiteMatterDao
;
import
com.mortals.xhx.module.site.model.SiteMatterEntity
;
/**
* SiteMatterService
*
* 站点事项 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
SiteMatterService
extends
ICRUDService
<
SiteMatterEntity
,
Long
>{
void
deleteBysiteIdAndSource
(
Long
siteId
,
Integer
source
,
Context
context
);
* SiteMatterService
* <p>
* 站点事项 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
SiteMatterService
extends
ICRUDService
<
SiteMatterEntity
,
Long
>
{
SiteMatterDao
getDao
();
void
deleteBysiteIdAndSource
(
Long
siteId
,
Integer
source
,
Context
context
);
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteMatterServiceImpl.java
View file @
268b09ee
package
com.mortals.xhx.module.site.service.impl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.PageInfo
;
...
...
@@ -17,12 +18,12 @@ import java.util.List;
import
java.util.Map
;
/**
* SiteMatterService
* 站点事项 service实现
*
* @author zxfei
* @date 2022-01-12
*/
* SiteMatterService
* 站点事项 service实现
*
* @author zxfei
* @date 2022-01-12
*/
@Service
(
"siteMatterService"
)
public
class
SiteMatterServiceImpl
extends
AbstractCRUDServiceImpl
<
SiteMatterDao
,
SiteMatterEntity
,
Long
>
implements
SiteMatterService
{
...
...
@@ -31,10 +32,10 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
@Override
protected
void
findAfter
(
SiteMatterEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
SiteMatterEntity
>
list
)
throws
AppException
{
list
.
forEach
(
item
->
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getMatterId
()))
{
list
.
forEach
(
item
->
{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getMatterId
()))
{
MatterEntity
matterEntity
=
matterService
.
get
(
item
.
getMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
item
.
setBelongDept
(
matterEntity
.
getBelongDept
());
item
.
setWindowToTheSceneNum
(
matterEntity
.
getWindowToTheSceneNum
());
item
.
setOnlineToTheSceneNum
(
matterEntity
.
getOnlineToTheSceneNum
());
...
...
@@ -45,6 +46,26 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected
void
updateBefore
(
SiteMatterEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateBefore
(
entity
,
context
);
SiteMatterEntity
beforeSiteMatterEntity
=
this
.
get
(
entity
.
getId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
beforeSiteMatterEntity
.
getDeptId
())&&!
beforeSiteMatterEntity
.
getDeptId
().
equals
(
entity
.
getDeptId
()))
{
//更新事项中的部门编号
MatterEntity
matterEntity
=
matterService
.
get
(
entity
.
getMatterId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
matterEntity
.
setDeptCode
(
entity
.
getDeptCode
());
matterEntity
.
setDeptName
(
entity
.
getDeptName
());
matterService
.
update
(
matterEntity
,
context
);
}
}
}
@Override
public
void
deleteBysiteIdAndSource
(
Long
siteId
,
Integer
source
,
Context
context
)
{
Map
<
String
,
Object
>
condition
=
new
HashMap
<>();
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
268b09ee
...
...
@@ -368,8 +368,16 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
private
List
<
SiteTreeSelect
>
getSiteTreeSelects
(
String
userId
)
{
String
siteTreeSelectStr
=
cacheService
.
hget
(
USER_SITE_TREE
,
userId
,
String
.
class
);
log
.
info
(
"userId:{},siteTreeSelectStr:{}"
,
userId
,
siteTreeSelectStr
);
//反序列化树对象
if
(
ObjectUtils
.
isEmpty
(
siteTreeSelectStr
)){
return
new
ArrayList
<>();
}
JSONArray
jsonArray
=
JSON
.
parseArray
(
siteTreeSelectStr
);
if
(
ObjectUtils
.
isEmpty
(
jsonArray
)){
return
new
ArrayList
<>();
}
List
<
SiteTreeSelect
>
collect
=
jsonArray
.
stream
().
map
(
item
->
{
SiteTreeSelect
siteTreeSelect
=
JSON
.
parseObject
(
item
.
toString
(),
SiteTreeSelect
.
class
);
return
siteTreeSelect
;
...
...
base-manager/src/main/java/com/mortals/xhx/module/sms/service/impl/SmsSetServiceImpl.java
View file @
268b09ee
...
...
@@ -22,6 +22,17 @@ import java.util.stream.Collectors;
@Service
(
"smsSetService"
)
public
class
SmsSetServiceImpl
extends
AbstractCRUDCacheServiceImpl
<
SmsSetDao
,
SmsSetEntity
,
Long
>
implements
SmsSetService
{
/**
* @param key
* @param data
*/
@Override
public
void
putCache
(
String
key
,
SmsSetEntity
data
)
{
key
=
data
.
getSiteId
().
toString
();
super
.
putCache
(
key
,
data
);
}
@Override
public
List
<
SmsSetEntity
>
find
(
SmsSetEntity
entity
)
throws
AppException
{
List
<
SmsSetEntity
>
cacheList
=
this
.
getCacheList
();
...
...
base-manager/src/main/java/com/mortals/xhx/module/window/service/WindowMatterService.java
View file @
268b09ee
package
com.mortals.xhx.module.window.service
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.window.dao.WindowMatterDao
;
import
com.mortals.xhx.module.window.model.WindowMatterEntity
;
/**
* WindowMatterService
*
* 窗口事项 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
WindowMatterService
extends
ICRUDService
<
WindowMatterEntity
,
Long
>{
* WindowMatterService
* <p>
* 窗口事项 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
WindowMatterService
extends
ICRUDService
<
WindowMatterEntity
,
Long
>
{
WindowMatterDao
getDao
();
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/window/service/WindowService.java
View file @
268b09ee
package
com.mortals.xhx.module.window.service
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDCacheService
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.window.dao.WindowDao
;
import
com.mortals.xhx.module.window.model.WindowEntity
;
/**
* WindowService
*
* 站点部门窗口 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
WindowService
extends
ICRUDCacheService
<
WindowEntity
,
Long
>
{
* WindowService
* <p>
* 站点部门窗口 service接口
*
* @author zxfei
* @date 2022-01-12
*/
public
interface
WindowService
extends
ICRUDCacheService
<
WindowEntity
,
Long
>
{
WindowDao
getDao
();
/**
* 添加业务到窗口
*
* @param businessIds
* @param windowId
* @param context
...
...
@@ -23,5 +29,4 @@ public interface WindowService extends ICRUDCacheService<WindowEntity,Long> {
void
addBusinessToWindow
(
String
businessIds
,
Long
windowId
,
Context
context
);
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowMatterServiceImpl.java
View file @
268b09ee
...
...
@@ -6,13 +6,19 @@ import com.mortals.framework.ap.GlobalSysInfo;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.util.HttpUtil
;
import
com.mortals.xhx.module.dept.model.DeptEntity
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.matter.model.MatterEntity
;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.window.model.WindowMatterQuery
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.xhx.module.window.dao.WindowMatterDao
;
import
com.mortals.xhx.module.window.model.WindowMatterEntity
;
import
com.mortals.xhx.module.window.service.WindowMatterService
;
import
org.springframework.util.ObjectUtils
;
import
java.util.Arrays
;
import
java.util.HashMap
;
...
...
@@ -31,6 +37,29 @@ import static com.mortals.xhx.common.key.Constant.PARAM_SERVER_PHP_HTTP_URL;
@Service
(
"windowMatterService"
)
@Slf4j
public
class
WindowMatterServiceImpl
extends
AbstractCRUDServiceImpl
<
WindowMatterDao
,
WindowMatterEntity
,
Long
>
implements
WindowMatterService
{
@Autowired
private
MatterService
matterService
;
@Autowired
private
DeptService
deptService
;
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected
void
saveBefore
(
WindowMatterEntity
entity
,
Context
context
)
throws
AppException
{
super
.
saveBefore
(
entity
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDeptId
()))
{
DeptEntity
cache
=
deptService
.
getCache
(
entity
.
getDeptId
().
toString
());
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeptCode
()))
{
entity
.
setDeptCode
(
cache
==
null
?
""
:
cache
.
getDeptNumber
());
}
}
}
/**
* @param entity
* @param context
...
...
@@ -49,9 +78,9 @@ public class WindowMatterServiceImpl extends AbstractCRUDServiceImpl<WindowMatte
*/
@Override
protected
void
removeBefore
(
Long
id
,
Context
context
)
throws
AppException
{
super
.
removeBefore
(
id
,
context
);
WindowMatterEntity
windowMatterEntity
=
this
.
get
(
id
,
context
);
pushChangeMsg
(
windowMatterEntity
);
super
.
removeBefore
(
id
,
context
);
}
/**
...
...
@@ -61,11 +90,11 @@ public class WindowMatterServiceImpl extends AbstractCRUDServiceImpl<WindowMatte
*/
@Override
protected
void
removeBefore
(
Long
[]
ids
,
Context
context
)
throws
AppException
{
super
.
removeBefore
(
ids
,
context
);
Arrays
.
asList
(
ids
).
forEach
(
id
->
{
WindowMatterEntity
windowMatterEntity
=
this
.
get
(
id
,
context
);
pushChangeMsg
(
windowMatterEntity
);
});
super
.
removeBefore
(
ids
,
context
);
}
/**
...
...
@@ -90,6 +119,27 @@ public class WindowMatterServiceImpl extends AbstractCRUDServiceImpl<WindowMatte
}
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected
void
updateBefore
(
WindowMatterEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateBefore
(
entity
,
context
);
WindowMatterEntity
beforeWindowMatterEntity
=
this
.
get
(
entity
.
getId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
beforeWindowMatterEntity
.
getDeptCode
())
&&
!
beforeWindowMatterEntity
.
getDeptCode
().
equals
(
entity
.
getDeptCode
()))
{
//更新
MatterEntity
matterEntity
=
matterService
.
get
(
entity
.
getSiteMatterId
());
if
(!
ObjectUtils
.
isEmpty
(
matterEntity
))
{
matterEntity
.
setDeptCode
(
entity
.
getDeptCode
());
matterEntity
.
setDeptName
(
entity
.
getDeptName
());
matterService
.
update
(
matterEntity
,
context
);
}
}
}
/**
* @param entity
* @param context
...
...
@@ -97,8 +147,8 @@ public class WindowMatterServiceImpl extends AbstractCRUDServiceImpl<WindowMatte
*/
@Override
protected
void
updateAfter
(
WindowMatterEntity
entity
,
Context
context
)
throws
AppException
{
pushChangeMsg
(
entity
);
super
.
updateAfter
(
entity
,
context
);
pushChangeMsg
(
entity
);
}
private
void
pushChangeMsg
(
WindowMatterEntity
entity
)
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowServiceImpl.java
View file @
268b09ee
...
...
@@ -91,8 +91,11 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
if
(
ObjectUtils
.
isEmpty
(
windowId
))
{
throw
new
AppException
(
"请选择对应窗口"
);
}
List
<
Long
>
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
List
<
Long
>
businessIdList
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
businessIds
)){
businessIdList
=
Arrays
.
asList
(
businessIds
.
split
(
","
)).
stream
().
map
(
Long:
:
parseLong
).
collect
(
Collectors
.
toList
());
}
WindowBusinessQuery
windowBusinessQuery
=
new
WindowBusinessQuery
();
//windowBusinessQuery.setSiteBusinessIdList(businessIdList);
//先删除后再新增
...
...
@@ -104,7 +107,6 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
}
WindowEntity
windowEntity
=
this
.
get
(
windowId
,
context
);
List
<
WindowBusinessEntity
>
windowBusinessEntities
=
businessIdList
.
stream
().
map
(
id
->
{
WindowBusinessEntity
windowBusinessEntity
=
new
WindowBusinessEntity
();
windowBusinessEntity
.
initAttrValue
();
...
...
@@ -122,7 +124,7 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
return
null
;
}
return
windowBusinessEntity
;
}).
collect
(
Collectors
.
toList
());
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
windowBusinessService
.
save
(
windowBusinessEntities
,
context
);
}
...
...
base-manager/src/main/resources/logback-spring.xml
View file @
268b09ee
...
...
@@ -69,8 +69,8 @@
<appender-ref
ref=
"fileError"
/>
</logger>
<!--
<logger name="com.mortals.xhx.module">
<logger
name=
"com.mortals.xhx.module"
>
<level
value=
"debug"
/>
</logger>
-->
</logger>
</configuration>
\ No newline at end of file
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
View file @
268b09ee
...
...
@@ -26,8 +26,8 @@
<if
test=
"condition.matterName != null and condition.matterName != ''"
>
and a.matterName like #{condition.matterName}
</if>
<if
test=
"condition.source!=null
and condition.source!=''
"
>
and a.source = #{condition.source,jdbcType=
VARCHA
R}
<if
test=
"condition.source!=null"
>
and a.source = #{condition.source,jdbcType=
INTEGE
R}
</if>
</trim>
</trim>
...
...
@@ -58,8 +58,8 @@
<if
test=
"condition.matterName != null and condition.matterName != ''"
>
and a.matterName like #{condition.matterName}
</if>
<if
test=
"condition.source!=null
and condition.source!=''
"
>
and a.source = #{condition.source,jdbcType=
VARCHA
R}
<if
test=
"condition.source!=null"
>
and a.source = #{condition.source,jdbcType=
INTEGE
R}
</if>
</trim>
</trim>
...
...
base-manager/src/test/java/com/mortals/httpclient/dept/DeptController.http
View file @
268b09ee
...
...
@@ -62,9 +62,10 @@ POST {{baseUrl}}/dept/getDeptListByBusiness
Content-Type: application/json
{
"siteBusinessIdList":[
9
]
"siteBusinessIdList":[
12
]
}
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
View file @
268b09ee
...
...
@@ -43,8 +43,8 @@ Content-Type: application/json
{
"siteId":
54
,
"
matterName": ""
,
"siteId":
1
,
"
source": 0
,
"page": 1,
"size": 10
}
...
...
base-manager/src/test/java/com/mortals/httpclient/site/SiteBusinessController.http
View file @
268b09ee
...
...
@@ -4,7 +4,7 @@ POST {{baseUrl}}/site/business/list
Content-Type: application/json
{
"idNotList": [11,12,17,18,19,20
,21
],
"idNotList": [11,12,17,18,19,20],
"siteId": 1,
"page":1,
"size":5
...
...
base-manager/src/test/java/com/mortals/httpclient/system/system.http
View file @
268b09ee
...
...
@@ -71,6 +71,14 @@ Content-Type: application/json
}
###testre
POST {{baseUrl}}/test/reDepts
Content-Type: application/json
{}
###短信设置编辑
GET {{baseUrl}}/sms/set/edit?id={{SmsSet_id}}
Accept: application/json
...
...
portal-manager-ui/admin/src/api/APIServe.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.9.1. 查询API服务列表
export
function
serviceApiList
(
params
)
{
return
http
.
post
(
"
/zwfw/system/service/api/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/system/service/api/list`
,
params
);
}
// 1.9.2. 查看API服务
export
function
serviceApiInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/system/service/api/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/system/service/api/info`
,
params
);
}
// 1.9.3. 保存更新API服务
export
function
serviceApiSave
(
params
)
{
return
http
.
post
(
"
/zwfw/system/service/api/save
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/system/service/api/save`
,
params
);
}
// 1.9.4. 删除API服务
export
function
serviceApiDelete
(
params
)
{
return
http
.
get
(
"
/zwfw/system/service/api/delete
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/system/service/api/delete`
,
params
);
}
portal-manager-ui/admin/src/api/api.js
View file @
268b09ee
// const BASE_URL = process.env.VUE_APP_API_BASE_URL
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
module
.
exports
=
{
fileCommonupload
:
`/zwfw/file/commonupload`
,
//1.2.4. 上传附件
fileCommonupload
:
`
${
baseURL
}
/zwfw/file/commonupload`
,
//1.2.4. 上传附件
};
portal-manager-ui/admin/src/api/applService.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.10.1. 查询应用服务列表
export
function
serviceList
(
params
)
{
return
http
.
post
(
"
/zwfw/system/service/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/system/service/list`
,
params
);
}
// 1.10.2. 查看应用服务
export
function
serviceInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/system/service/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/system/service/info`
,
params
);
}
// 1.10.3. 保存更新应用服务
export
function
serviceSave
(
params
)
{
return
http
.
post
(
"
/zwfw/system/service/save
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/system/service/save`
,
params
);
}
// 1.10.4. 删除应用服务
export
function
serviceDelete
(
params
)
{
return
http
.
get
(
"
/zwfw/system/service/delete
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/system/service/delete`
,
params
);
}
portal-manager-ui/admin/src/api/area.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.14.1. 查询区域列表
export
function
areaList
(
params
)
{
return
http
.
post
(
"
/zwfw/area/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/area/list`
,
params
);
}
// 1.14.2. 查看区域
export
function
areaInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/area/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/area/info`
,
params
);
}
// 1.14.3. 查看区域子信息
export
function
getListByParentId
(
params
)
{
return
http
.
get
(
"
/zwfw/area/getListByParentId
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/area/getListByParentId`
,
params
);
}
// 1.14.4. 获取所有区域信息
export
function
areaTreeselect
(
params
)
{
return
http
.
post
(
"
/zwfw/area/treeselect
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/area/treeselect`
,
params
);
}
portal-manager-ui/admin/src/api/authorityMis.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.4.1. 查询角色信息列表
export
function
roleList
(
params
)
{
return
http
.
post
(
"
/zwfw/role/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/role/list`
,
params
);
}
// 1.4.2. 查看角色信息
export
function
roleInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/role/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/role/info`
,
params
);
}
// 1.4.3. 保存更新角色信息
export
function
roleSave
(
params
)
{
return
http
.
post
(
"
/zwfw/role/save
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/role/save`
,
params
);
}
// 1.4.4. 删除角色信息
export
function
roleDelete
(
params
)
{
return
http
.
get
(
"
/zwfw/role/delete
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/role/delete`
,
params
);
}
// 1.6.1. 分配菜单到角色
export
function
assignMenuToRole
(
params
)
{
return
http
.
post
(
"
/zwfw/role/auth/assignMenuToRole
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/role/auth/assignMenuToRole`
,
params
);
}
portal-manager-ui/admin/src/api/dataAdmin.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
let
BASEURL
=
process
.
env
.
VUE_APP_API_PHP_URL
// 1.15.1. 获取站点下的数据管理列表
export
function
censusListInterface
(
params
)
{
return
http
.
post
(
"
/zwfw/site/model/census/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/site/model/census/list`
,
params
);
}
//排号机列表数据
export
function
getTaskList
(
params
){
return
http
.
get
(
`
${
BASEURL
}
/admin/take/takelist`
,
params
)
}
//排队办理记录报表接口
export
function
getQueueData
(
params
){
return
http
.
post
(
"
/inter/reportform/quelist
"
,
params
)
return
http
.
post
(
`
${
BASEURL
}
/inter/reportform/quelist`
,
params
)
}
//排号记录详情
export
function
getQueueInfo
(
params
){
return
http
.
post
(
`
${
BASEURL
}
/inter/reportform/queinfo`
,
params
)
}
//业务事项关联
export
function
getBusinessEvent
(
params
){
return
http
.
post
(
`
${
baseURL
}
/basics_api/base/business/matter/list`
,
params
)
}
//查询业务人员信息
export
function
getWorkerInfo
(
params
){
return
http
.
get
(
`
${
baseURL
}
/basics_api/base/workman/info`
,
params
)
}
\ No newline at end of file
portal-manager-ui/admin/src/api/logs.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 查看操作日志列表
export
function
getOperLogList
(
params
)
{
return
http
.
post
(
"
/zwfw/oper/log/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/oper/log/list`
,
params
);
}
// 查看操作日志
export
function
getOperLogInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/oper/log/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/oper/log/info`
,
params
);
}
portal-manager-ui/admin/src/api/menuMgmt.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.7.1. 查询菜单信息业务列表
export
function
menuList
(
params
)
{
return
http
.
post
(
"
/zwfw/menu/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/menu/list`
,
params
);
}
// 1.7.2. 查看菜单信息业务
export
function
menuInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/menu/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/menu/info`
,
params
);
}
// 1.7.3. 保存更新菜单信息业务
export
function
menuSave
(
params
)
{
return
http
.
post
(
"
/zwfw/menu/save
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/menu/save`
,
params
);
}
// 1.7.4. 删除菜单信息业务
export
function
menuDelete
(
params
)
{
return
http
.
get
(
"
/zwfw/menu/delete
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/menu/delete`
,
params
);
}
// 1.7.5. 查询所有可用菜单
export
function
menuFindAll
(
params
)
{
return
http
.
post
(
"
/zwfw/menu/findAll
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/menu/findAll`
,
params
);
}
// 1.3.8 查询菜单权限列表
export
function
menuFindAllTree
(
params
)
{
return
http
.
post
(
"
/zwfw/menu/list/tree
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/menu/list/tree`
,
params
);
}
portal-manager-ui/admin/src/api/siteArrange.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.16.1. 查询站点编排列表
export
function
appsListInterface
(
params
)
{
return
http
.
post
(
"
/zwfw/site/model/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/site/model/list`
,
params
);
}
portal-manager-ui/admin/src/api/user.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.2.1. 登录
export
function
LoginInterface
(
params
)
{
return
http
.
post
(
"
/zwfw/login/login
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/login/login`
,
params
);
}
// 1.2.2. 首页
export
function
loginIndex
(
params
)
{
return
http
.
post
(
"
/zwfw/login/index
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/login/index`
,
params
);
}
// 1.2.3. 登出
export
function
LogoutInterface
(
params
)
{
return
http
.
post
(
"
/zwfw/login/logout
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/login/logout`
,
params
);
}
// 1.2.4. 用户修改密码
export
function
changePassword
(
params
)
{
return
http
.
post
(
"
/zwfw/user/change/password
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/change/password`
,
params
);
}
// 管理员修改密码
export
function
editPassword
(
params
)
{
return
http
.
post
(
"
/zwfw/user/reset/password
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/reset/password`
,
params
);
}
portal-manager-ui/admin/src/api/userManagement.js
View file @
268b09ee
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
// 1.3.1. 查询用户信息业务列表
export
function
userList
(
params
)
{
return
http
.
post
(
"
/zwfw/user/list
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/list`
,
params
);
}
// 1.3.2. 查看用户信息业务
export
function
userInfo
(
params
)
{
return
http
.
get
(
"
/zwfw/user/info
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/user/info`
,
params
);
}
// 1.3.3. 保存更新用户信息业务
export
function
userSave
(
params
)
{
return
http
.
post
(
"
/zwfw/user/save
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/save`
,
params
);
}
// 1.3.4. 删除用户信息业务
export
function
userDelete
(
params
)
{
return
http
.
get
(
"
/zwfw/user/delete
"
,
params
);
return
http
.
get
(
`
${
baseURL
}
/zwfw/user/delete`
,
params
);
}
// 1.3.5. 用户站点授权
export
function
userSiteAuth
(
params
)
{
return
http
.
post
(
"
/zwfw/user/siteAuth
"
,
params
);
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/siteAuth`
,
params
);
}
portal-manager-ui/admin/src/main.js
View file @
268b09ee
...
...
@@ -28,6 +28,9 @@ import * as filters from "@/filters";
Object
.
keys
(
filters
).
forEach
((
key
)
=>
{
Vue
.
filter
(
key
,
filters
[
key
]);
});
//引入字典
import
codeMap
from
"
@/utils/codeMap
"
Vue
.
prototype
.
$codeMap
=
codeMap
Vue
.
prototype
.
$bus
=
new
Vue
();
...
...
portal-manager-ui/admin/src/mixins/table.js
View file @
268b09ee
...
...
@@ -10,7 +10,7 @@ export default {
tablePagination
:
{
current
:
1
,
pageSize
:
10
,
total
:
2
0
,
total
:
0
,
showQuickJumper
:
true
,
//是否可以快速跳转至某页
showSizeChanger
:
true
,
//是否可以改变 pageSize
showTotal
:
(
total
,
range
)
=>
`共
${
total
}
条`
,
...
...
@@ -108,10 +108,8 @@ export default {
// console.log(this.tableSelectedKeys, this.tableSelectedRows);
},
pagTableChange
(
pag
,
filters
)
{
// console.log(pag);
this
.
tablePagination
=
pag
;
this
.
$nextTick
(()
=>
{
});
pagTableChange
(
pagination
)
{
this
.
tablePagination
=
pagination
},
...
...
portal-manager-ui/admin/src/request/request.js
View file @
268b09ee
...
...
@@ -4,7 +4,7 @@ import axios from "axios";
import
{
message
}
from
"
ant-design-vue
"
;
import
Storage
from
"
@/utils/js/Storage
"
;
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_API_BASE_URL
,
//
baseURL: process.env.VUE_APP_API_BASE_URL,
// timeout: 10000
});
service
.
interceptors
.
request
.
use
(
...
...
@@ -18,9 +18,12 @@ service.interceptors.request.use(
"
Content-Type
"
:
"
application/json;charset=utf-8
"
,
};
const
Authorization
=
JSON
.
parse
(
localStorage
.
getItem
(
"
Authorization
"
));
const
siteid
=
JSON
.
parse
(
localStorage
.
getItem
(
"
siteId
"
))
if
(
Authorization
)
{
config
.
headers
.
Authorization
=
Authorization
;
config
.
headers
.
Authtoken
=
Authorization
;
config
.
headers
.
siteid
=
siteid
}
return
config
;
},
...
...
portal-manager-ui/admin/src/utils/codeMap.js
0 → 100644
View file @
268b09ee
export
default
{
//排队叫号字典
"
queueState
"
:{
"
0
"
:
"
排队中
"
,
"
1
"
:
"
办理中
"
,
"
4
"
:
"
接待结束
"
},
"
takeNumWay
"
:{
"
0
"
:
"
现场取号
"
,
"
1
"
:
"
在线取号
"
},
"
politicalStatus
"
:{
"
0
"
:
"
中共党员
"
,
"
1
"
:
"
中共预备党员
"
,
"
2
"
:
"
共青团员
"
,
"
3
"
:
"
普通居民
"
,
"
4
"
:
"
其它
"
}
}
\ No newline at end of file
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/HandlingDetails.vue
View file @
268b09ee
<
template
>
<div
class=
"handling"
ref=
"handling"
>
<a-drawer
:destroyOnClose=
"true"
:title=
"modalInfo.title"
:width=
"modalInfo.width"
:visible=
"modalInfo.visible"
@
close=
"modalClose"
@
getContainer=
"() => $refs.handling"
>
<a-drawer
:destroyOnClose=
"true"
:title=
"modalInfo.title"
:width=
"modalInfo.width"
:visible=
"modalInfo.visible"
@
close=
"modalClose"
@
getContainer=
"() => $refs.handling"
>
<div
class=
"headerInfo"
>
<!-- 头部耗时部分 -->
<p>
<span
v-for=
"item of 3"
>
总耗时:13分15秒
<i
class=
"fa fa-long-arrow-down"
></i
></span>
<span>
总耗时:
{{
dataList
.
alltime
||
"
--
"
}}
<i
v-show=
"dataList.alltime && compareTime(dataList.p_alltime,dataList.alltime)"
class=
"fa fa-long-arrow-down"
></i>
</span>
<span>
等待时间:
{{
dataList
.
waittime
||
"
--
"
}}
<i
v-show=
"dataList.waittime && compareTime(dataList.p_waittime,dataList.waittime)"
class=
"fa fa-long-arrow-down"
></i>
</span>
<span>
办理时间:
{{
dataList
.
bltime
||
"
--
"
}}
<i
v-show=
"dataList.bltime && compareTime(dataList.p_bltime , dataList.bltime)"
class=
"fa fa-long-arrow-down"
></i>
</span>
</p>
<p>
<span>
平均耗时:
{{
dataList
.
p_alltime
}}
</span>
<span>
平均等待时间:
{{
dataList
.
p_waittime
}}
</span>
<span>
平均办理时间:
{{
dataList
.
p_bltime
}}
</span>
</p>
<p><span
v-for=
"item of 3"
>
平均耗时:14分0秒
</span></p>
</div>
<div
class=
"state"
>
接件结束
</div>
<a-steps
direction=
"vertical"
size=
"small"
:current=
"approveLs.length"
class=
"steps_box"
>
<a-step
v-for=
"(item, index) of approveLs"
:key=
"item.id"
:disabled=
"true"
@
click.stop=
"drawerchange(item.id)"
class=
"step_box"
>
<div
:class=
"returnScolor"
>
{{
$codeMap
.
queueState
[
dataList
.
style
]
}}
</div>
<a-steps
direction=
"vertical"
size=
"small"
:current=
"approveLs.length"
class=
"steps_box"
>
<a-step
:disabled=
"true"
class=
"step_box"
>
<div
class=
"icon_box"
slot=
"icon"
></div>
<div
class=
"title_box"
slot=
"title"
>
<span
class=
"title_name"
>
{{
item
.
status
==
1
?
"
办理中
"
:
item
.
status
==
2
?
"
接件结束
"
:
"
排队中
"
}}
</span>
<span
class=
"title_name"
>
排队中
</span>
</div>
<div
class=
"description_box"
slot=
"description"
v-if=
"item.status == 0"
>
<div
class=
"description_box"
slot=
"description"
>
<div
class=
"details"
>
<span
v-for=
"item of 8"
><i
class=
"lable"
>
申报人:
</i>
张三
</span>
<span><i
class=
"lable"
>
申报人:
</i>
{{
dataList
.
people_name
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
取号时间:
</i>
{{
dataList
.
taketime
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
排队编码:
</i>
{{
dataList
.
flownum
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
取号方式:
</i>
{{
$codeMap
.
takeNumWay
[
dataList
.
wy_signin
]
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
注册方式:
</i>
{{
"
--
"
}}
</span>
<span><i
class=
"lable"
>
取号设备:
</i>
{{
dataList
.
take_name
||
"
--
"
}}
</span>
</div>
</div>
<div
class=
"description_box"
slot=
"description"
v-else-if=
"item.status == 1"
>
</a-step>
<a-step
:disabled=
"true"
class=
"step_box"
v-if=
"dataList.style > 0"
>
<div
class=
"icon_box"
slot=
"icon"
></div>
<div
class=
"title_box"
slot=
"title"
>
<span
class=
"title_name"
>
办理中
</span>
</div>
<div
class=
"description_box"
slot=
"description"
>
<div
class=
"details"
>
<span
v-for=
"item of 6"
><i
class=
"lable"
>
办理窗口:
</i>
s003
</span>
<span><i
class=
"lable"
>
办理窗口:
</i>
{{
dataList
.
window_name
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
办理开始时间:
</i>
{{
dataList
.
calltime
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
工作人员:
</i>
{{
dataList
.
workman_name
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
叫号设备:
</i>
{{
dataList
.
window_fromnum
||
"
--
"
}}
</span>
</div>
</div>
<div
class=
"description_box"
slot=
"description"
v-else-if=
"item.status == 2"
>
</a-step>
<a-step
:disabled=
"true"
class=
"step_box"
v-if=
"dataList.style > 1"
>
<div
class=
"icon_box"
slot=
"icon"
></div>
<div
class=
"title_box"
slot=
"title"
>
<span
class=
"title_name"
>
接件结束
</span>
</div>
<div
class=
"description_box"
slot=
"description"
>
<div
class=
"details"
>
<span
v-for=
"item of 2"
><i
class=
"lable"
>
办理结束时间:
</i>
2021-01-15 12:00:00
</span
>
<span><i
class=
"lable"
>
办理结束时间:
</i>
{{
dataList
.
endtime
||
"
--
"
}}
</span>
</div>
</div>
</a-step>
</a-steps>
</a-drawer>
</div>
</div>
</
template
>
<
script
>
import
modal
from
"
../mixins/modal
"
;
export
default
{
mixins
:
[
modal
],
name
:
"
PortalAdminVueHandlingDetails
"
,
data
()
{
return
{
defaultInfoForm
:
{},
modalInfo
:
{
confirmLoading
:
false
,
visible
:
false
,
title
:
'
用户信息
'
,
width
:
'
38%
'
,
},
dataList
:
[],
approveLs
:
[
{
id
:
"
001
"
,
...
...
@@ -99,33 +101,52 @@ export default {
],
};
},
filters
:
{
returnScolor
(
key
)
{
switch
(
key
)
{
computed
:
{
returnScolor
()
{
switch
(
this
.
dataList
.
style
)
{
case
0
:
return
"
state
_colo
1
"
;
return
"
state1
"
;
break
;
case
1
:
return
"
state_colo2
"
;
break
;
case
2
:
return
"
state_colo3
"
;
break
;
case
3
:
return
"
state_colo2
"
;
break
;
case
4
:
return
"
state_colo3
"
;
return
"
state2
"
;
break
;
default
:
return
"
state
_colo
0
"
;
return
"
state0
"
;
break
;
}
},
},
mounted
()
{},
mounted
()
{
},
methods
:
{},
methods
:
{
modalClose
()
{
this
.
modalInfo
.
visible
=
false
;
},
// 比较时间大小
compareTime
(
time1
,
time2
)
{
if
(
this
.
timeToSec
(
time1
)
-
this
.
timeToSec
(
time2
)
>
0
)
{
return
true
;
}
return
false
;
},
// 转换时间为秒
timeToSec
(
time
)
{
if
(
time
!==
null
&&
time
!==
undefined
)
{
var
s
=
""
;
if
(
time
.
includes
(
"
分钟
"
)
&&
time
.
includes
(
"
秒
"
))
{
var
min
=
time
.
split
(
"
分钟
"
)[
0
];
var
sec
=
time
.
split
(
"
分钟
"
)[
1
].
split
(
"
秒
"
)[
0
];
s
=
Number
(
min
*
60
)
+
Number
(
sec
);
return
s
;
}
else
{
sec
=
time
.
split
(
"
秒
"
)[
0
]
return
sec
;
}
}
},
},
};
</
script
>
...
...
@@ -133,9 +154,11 @@ export default {
/deep/.ant-steps-icon {
top: -4px !important;
}
/deep/.ant-drawer-content {
overflow-x: hidden !important;
}
/deep/.icon_box {
margin-top: -20px !important;
display: inline-block;
...
...
@@ -154,11 +177,13 @@ export default {
color: #1d95fd !important;
}
}
.headerInfo {
border-left: 3px solid #0595fd;
background: #e6f5ff;
padding: 5px 15px;
margin-bottom: 20px;
p {
&:first-child {
color: #0037b0;
...
...
@@ -167,15 +192,18 @@ export default {
justify-content: space-between;
padding: 2px 0;
font-size: 16px;
span {
display: inline-block;
width: 32%;
i {
color: #63d7a5 !important;
margin-left: 5px;
}
}
}
&:last-child {
color: #0595fd;
padding: 2px 0;
...
...
@@ -183,6 +211,7 @@ export default {
font-size: 14px;
align-items: center;
justify-content: space-between;
span {
display: inline-block;
width: 32%;
...
...
@@ -195,10 +224,12 @@ export default {
.details {
display: flex;
flex-wrap: wrap;
span {
display: inline-block;
width: 49%;
padding: 4px 0;
.lable {
display: inline-block;
font-style: normal;
...
...
@@ -209,7 +240,7 @@ export default {
}
}
.state {
.state
0
{
position: absolute;
right: 10px;
top: 150px;
...
...
@@ -222,11 +253,45 @@ export default {
display: flex;
justify-content: center;
align-items: center;
color: #BDBAB4;
}
.state1 {
position: absolute;
right: 10px;
top: 150px;
width: 85px;
height: 85px;
border: 5px solid #FCE2D9;
border-radius: 50%;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
display: flex;
justify-content: center;
align-items: center;
color: #f7072f;
}
.state2 {
position: absolute;
right: 10px;
top: 150px;
width: 85px;
height: 85px;
border: 5px solid #D9F1E4;
border-radius: 50%;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
display: flex;
justify-content: center;
align-items: center;
color: #05fd6c;
}
.state_colo0 {
color: #bbb;
}
.state_colo1 {
color: #fac;
}
...
...
@@ -243,15 +308,18 @@ export default {
left: 6px !important;
top: 24px !important;
border-left: 3px dashed #e6f5ff !important;
&::after {
background: none !important;
}
}
/deep/.ant-steps-item {
&
+
.ant-steps-item {
&
+
.ant-steps-item {
margin-top: 25px !important;
}
}
.handling {
.steps_box {
height: 280px !important;
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/businessInfo.vue
View file @
268b09ee
<
template
>
<div
class=
"businessModal"
ref=
"businessModal"
>
<a-modal
:title=
"modalInfo.title"
:width=
"modalInfo.width"
:visible=
"modalInfo.visible"
:confirmLoading=
"modalInfo.confirmLoading"
@
cancel=
"modalClose"
:centered=
"true"
:destroyOnClose=
"true"
:getContainer=
"() => $refs.businessModal"
>
<a-modal
:title=
"modalInfo.title"
width=
"400px"
:visible=
"modalInfo.visible"
:confirmLoading=
"modalInfo.confirmLoading"
@
cancel=
"modalClose"
:centered=
"true"
:destroyOnClose=
"true"
:getContainer=
"() => $refs.businessModal"
>
<div
class=
"content"
>
<h1>
{{
defaultInfoForm
.
yewuming
}}
</h1>
<em
>
关联事项(
{{
defaultInfoForm
.
guanlianshixiang
&&
defaultInfoForm
.
guanlianshixiang
.
length
}}
)
</em
>
<p
v-for=
"(item, index) of defaultInfoForm.guanlianshixiang"
:key=
"index"
>
{{
item
.
shixiangmingcheng
}}
<h1>
{{
title
}}
</h1>
<em>
关联事项(
{{
dataList
.
length
}}
)
</em>
<p>
<!--
{{
item
.
shixiangmingcheng
}}
-->
</p>
<h4>
<span
>
受理次数
<br
/><i>
{{
defaultInfoForm
.
shoulicishu
}}
</i></span
>
<span
>
办结次数
<br
/><i>
{{
defaultInfoForm
.
banjiecishu
}}
</i></span
>
<span
>
好评率
<br
/><i>
{{
defaultInfoForm
.
haopinglv
}}
</i></span
>
<span>
受理次数
<br
/><i>
12
</i></span>
<span>
办结次数
<br
/><i>
12
</i></span>
<span>
好评率
<br
/><i>
99%
</i></span>
</h4>
</div>
<template
slot=
"footer"
>
<a-button
type=
"primary"
ghost
>
查看业务分析
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"lookDetails"
>
查看业务分析
</a-button>
</
template
>
</a-modal>
</div>
</div>
</template>
<
script
>
...
...
@@ -49,11 +28,18 @@ export default {
mixins
:
[
modal
],
name
:
"
PortalAdminVueBusinessInfo
"
,
data
()
{
return
{};
return
{
title
:
''
,
dataList
:
[]
};
},
mounted
()
{},
methods
:
{},
mounted
()
{
},
methods
:
{
lookDetails
()
{
this
.
$message
.
warning
(
'
暂未开放
'
);
},
},
};
</
script
>
...
...
@@ -65,6 +51,7 @@ export default {
color: #139bfd;
padding: 20px;
}
em {
padding: 20px;
font-style: normal;
...
...
@@ -72,6 +59,7 @@ export default {
color: #999;
margin-bottom: 10px;
}
p {
padding: 3px 20px;
font-size: 16px;
...
...
@@ -80,6 +68,7 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
h4 {
margin-top: 10px;
padding: 20px;
...
...
@@ -87,19 +76,23 @@ export default {
justify-content: space-between;
align-items: center;
background: #f3faff;
span {
text-align: center;
i {
color: #0b97fd;
font-style: normal;
}
}
span,
i {
padding: 3px 0;
}
}
}
.ant-modal-body {
padding: 0 !important;
min-height: 300px !important;
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/userInfo.vue
View file @
268b09ee
...
...
@@ -11,7 +11,7 @@
:getContainer=
"() => $refs.userModal"
>
<div
class=
"content"
>
<h1>
{{
defaultInfoForm
.
name
}}
</h1>
<h1>
{{
useInfo
.
name
}}
</h1>
<p>
<span>
{{
defaultInfoForm
.
Gender
}}
</span>
<span>
{{
defaultInfoForm
.
Age
}}
</span>
...
...
@@ -47,7 +47,9 @@ export default {
mixins
:
[
modal
],
name
:
"
PortalAdminVueUserInfo
"
,
data
()
{
return
{};
return
{
useInfo
:[]
};
},
components
:
{
Blockchain
,
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/components/workpeopleInfo.vue
View file @
268b09ee
<
template
>
<div
class=
"workPeopleModal"
ref=
"workPeopleModal"
>
<a-modal
:title=
"modalInfo.title"
:width=
"modalInfo.width"
:visible=
"modalInfo.visible"
:confirmLoading=
"modalInfo.confirmLoading"
@
cancel=
"modalClose"
:centered=
"true"
:destroyOnClose=
"true"
:getContainer=
"() => $refs.workPeopleModal"
>
<a-modal
:title=
"modalInfo.title"
width=
"500px"
:visible=
"modalInfo.visible"
:confirmLoading=
"modalInfo.confirmLoading"
@
cancel=
"modalClose"
:centered=
"true"
:destroyOnClose=
"true"
:getContainer=
"() => $refs.workPeopleModal"
>
<div
class=
"content"
>
<div
class=
"workInfo"
>
<div
class=
"left"
>
<img
src=
"../../../../../assets/images/logo.png
"
alt=
""
/>
<img
:src=
"apis + infoData.photoPath
"
alt=
""
/>
</div>
<div
class=
"right"
>
<h1
class=
"title"
>
刘明洋
</h1>
<h1
class=
"title"
>
{{
infoData
.
name
}}
</h1>
<div
class=
"details"
>
<span
v-for=
"item of 3"
><i
class=
"lable"
>
工号:
</i>
01
</span>
<span
v-for=
"item of 3"
><i
class=
"lable"
>
测试工号:
</i>
01
</span>
<span><i
class=
"lable"
>
工号:
</i>
{{
infoData
.
number
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
所属部门:
</i>
{{
infoData
.
deptName
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
政治面貌:
</i>
{{
$codeMap
.
politicalStatus
[
infoData
.
politicalstatus
]
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
电话:
</i>
{{
infoData
.
phone
||
"
--
"
}}
</span>
<span><i
class=
"lable"
>
星级:
</i>
{{
infoData
.
starlevel
||
"
--
"
}}
</span>
</div>
</div>
</div>
<h2>
<span
>
受理业务
<br
/><i>
{{
defaultInfoForm
.
souliyewu
}}
</i></span
>
<span
>
评价次数
<br
/><i>
{{
defaultInfoForm
.
pingjiacishu
}}
</i></span
>
<span
>
好评率
<br
/><i>
{{
defaultInfoForm
.
haopinglv
}}
</i></span
>
<span>
受理业务
<br
/><i>
{{
"
--
"
}}
</i></span>
<span>
评价次数
<br
/><i>
{{
"
--
"
}}
</i></span>
<span>
好评率
<br
/><i>
{{
"
--
"
}}
</i></span>
</h2>
</div>
<template
slot=
"footer"
>
<a-button
type=
"primary"
ghost
>
查看TA的数据画像
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"openBlockchain"
>
区块链信息
</a-button
>
<a-button
type=
"primary"
ghost
@
click=
"openBlockchain"
>
查看TA的数据画像
</a-button>
<a-button
type=
"primary"
ghost
@
click=
"openBlockchain"
>
区块链信息
</a-button>
</
template
>
</a-modal>
<Blockchain
ref=
"Blockchain"
/>
</div>
</div>
</template>
<
script
>
...
...
@@ -53,16 +41,20 @@ export default {
mixins
:
[
modal
],
name
:
"
PortalAdminVueUserInfo
"
,
data
()
{
return
{};
return
{
infoData
:
[],
apis
:
process
.
env
.
VUE_APP_API_IMG_URL
};
},
components
:
{
Blockchain
,
},
mounted
()
{},
mounted
()
{
},
methods
:
{
openBlockchain
()
{
this
.
$refs
.
Blockchain
.
modalInfo
.
visible
=
true
;
// this.$refs.Blockchain.modalInfo.visible = true;
this
.
$message
.
warning
(
'
暂未开通
'
)
},
},
};
...
...
@@ -72,30 +64,37 @@ export default {
.workPeopleModal {
.content {
.workInfo {
padding: 20px;
//
padding: 20px;
display: flex;
justify-content: space-between;
.left {
width: 100px;
padding: 0 10px;
img {
max-height: 120px;
width: 100%;
}
}
.right {
flex: 1;
.title {
color: #149bfd;
font-size: 17px;
}
.details {
display: flex;
flex-wrap: wrap;
span {
display: inline-block;
width: 49%;
padding: 10px 0;
padding: 2px 0;
.lable {
display: inline-block;
font-style: normal;
...
...
@@ -106,15 +105,20 @@ export default {
}
}
}
h2 {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
padding: 20px;
background: #f3faff;
border-radius: 4px;
span {
font-size: 15px;
text-align: center;
i {
color: #3bacfd;
font-style: normal;
...
...
@@ -122,6 +126,7 @@ export default {
}
}
}
.ant-modal-body {
padding: 0 !important;
min-height: 300px !important;
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/mixins/modal.js
View file @
268b09ee
...
...
@@ -34,13 +34,13 @@ export default {
yewuming
:
'
公安户籍类
'
,
guanlianshixiang
:
[
{
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
事项名称事项名称
'
,
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
'
,
},
{
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
事项名称事项名称
'
,
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
'
,
},
{
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
事项名称事项名称
'
,
shixiangmingcheng
:
'
事项名称事项名称事项名称事项名称
'
,
},
],
shoulicishu
:
"
12546
"
,
...
...
portal-manager-ui/admin/src/views/dataAdmin/components/queueCall/queueRecord.vue
View file @
268b09ee
This diff is collapsed.
Click to expand it.
portal-manager/pom.xml
View file @
268b09ee
...
...
@@ -116,7 +116,7 @@
<profiles.log.level>
INFO
</profiles.log.level>
<profiles.log.path>
/home/mortals/app/logs
</profiles.log.path>
<package.environment>
yibin
</package.environment>
<skipUi>
fals
e
</skipUi>
<skipUi>
tru
e
</skipUi>
</properties>
</profile>
...
...
smart-gateway/src/main/java/com/mortals/xhx/base/framework/filter/AccessLogFilter.java
View file @
268b09ee
...
...
@@ -249,7 +249,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
String
originalResponseContentType
=
exchange
.
getAttribute
(
ServerWebExchangeUtils
.
ORIGINAL_RESPONSE_CONTENT_TYPE_ATTR
);
if
(
ObjectUtil
.
equal
(
this
.
getStatusCode
(),
HttpStatus
.
OK
)
&&
StringUtils
.
isNotBlank
(
originalResponseContentType
))
{
accessLogPdu
.
setRe
quest
Data
(
JSON
.
toJSONString
(
Rest
.
ok
()));
accessLogPdu
.
setRe
sponse
Data
(
JSON
.
toJSONString
(
Rest
.
ok
()));
/* Flux<? extends DataBuffer> fluxBody = Flux.from(body);
return super.writeWith(fluxBody.buffer().map(dataBuffers -> {
// 合并多个流集合,解决返回体分段传输
...
...
@@ -265,7 +265,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
return bufferFactory.wrap(content);
}));*/
}
else
{
accessLogPdu
.
setRe
quest
Data
(
JSON
.
toJSONString
(
Rest
.
fail
()));
accessLogPdu
.
setRe
sponse
Data
(
JSON
.
toJSONString
(
Rest
.
fail
()));
}
}
// if body is not a flux. never got there.
...
...
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