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
dae8bffc
Commit
dae8bffc
authored
Jun 26, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
7ccecf10
6b1c92f1
Changes
46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
652 additions
and
370 deletions
+652
-370
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
...in/src/pages/basicset/appmarket/components/DataUpdate.vue
+36
-8
base-manager-ui/admin/src/pages/basicset/appmarket/components/FieldConfig.vue
...n/src/pages/basicset/appmarket/components/FieldConfig.vue
+13
-2
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
...r-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
+26
-24
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddField.vue
...-ui/admin/src/pages/basicset/appmarket/modal/AddField.vue
+17
-2
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs2.vue
.../src/pages/basicset/business/components/businessTabs2.vue
+10
-16
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs3.vue
.../src/pages/basicset/business/components/businessTabs3.vue
+4
-6
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs4.vue
.../src/pages/basicset/business/components/businessTabs4.vue
+3
-3
base-manager-ui/admin/src/pages/basicset/business/group/addprofession.vue
...admin/src/pages/basicset/business/group/addprofession.vue
+3
-1
base-manager-ui/admin/src/pages/basicset/surface/components/ShowBox.vue
...i/admin/src/pages/basicset/surface/components/ShowBox.vue
+1
-1
base-manager-ui/admin/src/pages/basicset/system/System.vue
base-manager-ui/admin/src/pages/basicset/system/System.vue
+2
-2
base-manager-ui/admin/src/pages/basicset/system/dimension/Dimension.vue
...i/admin/src/pages/basicset/system/dimension/Dimension.vue
+4
-0
base-manager-ui/admin/src/pages/basicset/system/parameter/Parameter.vue
...i/admin/src/pages/basicset/system/parameter/Parameter.vue
+1
-0
base-manager-ui/admin/src/pages/basicset/system/resourceManage/Resource.vue
...min/src/pages/basicset/system/resourceManage/Resource.vue
+4
-0
base-manager-ui/admin/src/pages/basicset/system/role/Role.vue
...-manager-ui/admin/src/pages/basicset/system/role/Role.vue
+4
-0
base-manager-ui/admin/src/pages/basicset/system/user/User.vue
...-manager-ui/admin/src/pages/basicset/system/user/User.vue
+29
-3
base-manager-ui/admin/src/pages/basicset/system/user/modal/AddUserRole.vue
...dmin/src/pages/basicset/system/user/modal/AddUserRole.vue
+8
-17
base-manager-ui/admin/src/router/config.js
base-manager-ui/admin/src/router/config.js
+1
-1
base-manager/db/add.sql
base-manager/db/add.sql
+0
-101
base-manager/src/main/bin/deploy.sh
base-manager/src/main/bin/deploy.sh
+1
-1
base-manager/src/main/java/com/mortals/xhx/base/system/user/service/impl/UserServiceImpl.java
...ls/xhx/base/system/user/service/impl/UserServiceImpl.java
+13
-0
base-manager/src/main/java/com/mortals/xhx/base/system/user/web/UserController.java
.../com/mortals/xhx/base/system/user/web/UserController.java
+22
-7
base-manager/src/main/java/com/mortals/xhx/common/utils/MatterDetailHtmlParseUtil.java
...m/mortals/xhx/common/utils/MatterDetailHtmlParseUtil.java
+2
-1
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppInfoTempleteFieldServiceImpl.java
...ule/app/service/impl/AppInfoTempleteFieldServiceImpl.java
+63
-8
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
.../com/mortals/xhx/module/app/web/AppDatasetController.java
+33
-27
base-manager/src/main/java/com/mortals/xhx/module/base/service/BaseAreaService.java
.../com/mortals/xhx/module/base/service/BaseAreaService.java
+17
-9
base-manager/src/main/java/com/mortals/xhx/module/base/service/impl/BaseAreaServiceImpl.java
...als/xhx/module/base/service/impl/BaseAreaServiceImpl.java
+15
-28
base-manager/src/main/java/com/mortals/xhx/module/dept/service/DeptService.java
...java/com/mortals/xhx/module/dept/service/DeptService.java
+3
-0
base-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
...mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
+34
-1
base-manager/src/main/java/com/mortals/xhx/module/matter/model/vo/MatterVo.java
...java/com/mortals/xhx/module/matter/model/vo/MatterVo.java
+5
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/service/MatterExtService.java
...m/mortals/xhx/module/matter/service/MatterExtService.java
+7
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterExtServiceImpl.java
.../xhx/module/matter/service/impl/MatterExtServiceImpl.java
+23
-0
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+116
-34
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterController.java
...a/com/mortals/xhx/module/matter/web/MatterController.java
+24
-5
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
...mortals/xhx/module/site/service/impl/SiteServiceImpl.java
+7
-0
base-manager/src/main/java/com/mortals/xhx/module/window/model/vo/WindowVo.java
...java/com/mortals/xhx/module/window/model/vo/WindowVo.java
+7
-0
base-manager/src/main/resources/bootstrap.yml
base-manager/src/main/resources/bootstrap.yml
+2
-1
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
...nager/src/main/resources/config/mybatis-sqlmap-config.xml
+5
-0
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapper.xml
...src/main/resources/sqlmap/module/app/AppDatasetMapper.xml
+46
-1
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+8
-54
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
...java/com/mortals/httpclient/app/AppDatasetController.http
+11
-4
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
.../java/com/mortals/httpclient/matter/MatterController.http
+5
-1
base-manager/src/test/java/com/mortals/httpclient/window/WindowController.http
.../java/com/mortals/httpclient/window/WindowController.http
+2
-1
portal-manager/src/main/bin/deploy.sh
portal-manager/src/main/bin/deploy.sh
+1
-0
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
.../java/com/mortals/xhx/module/user/web/UserController.java
+4
-0
smart-gateway/src/main/bin/deploy.sh
smart-gateway/src/main/bin/deploy.sh
+1
-0
smart-gateway/src/main/resources/bootstrap.yml
smart-gateway/src/main/resources/bootstrap.yml
+9
-0
No files found.
base-manager-ui/admin/src/pages/basicset/appmarket/components/DataUpdate.vue
View file @
dae8bffc
...
@@ -6,11 +6,11 @@
...
@@ -6,11 +6,11 @@
<a-button
type=
"primary"
@
click=
"handleAdd"
>
新增
</a-button>
<a-button
type=
"primary"
@
click=
"handleAdd"
>
新增
</a-button>
<a-button
type=
"danger"
@
click=
"handleDelAll"
>
批量删除
</a-button>
<a-button
type=
"danger"
@
click=
"handleDelAll"
>
批量删除
</a-button>
</a-space>
</a-space>
<div
class=
"search-box"
>
<div
class=
"search-box"
v-if=
"searchTemplate.length"
>
<a-input-group
compact
>
<a-input-group
compact
>
<a-select
style=
"min-width: 100px"
v-model=
"fieldCode"
>
<a-select
style=
"min-width: 100px"
v-model=
"fieldCode"
>
<a-select-option
<a-select-option
v-for=
"v in
app
Template"
v-for=
"v in
search
Template"
:key=
"v.id"
:key=
"v.id"
:value=
"v.fieldCode"
:value=
"v.fieldCode"
>
>
...
@@ -153,7 +153,9 @@ export default {
...
@@ -153,7 +153,9 @@ export default {
previewVisible
:
false
,
previewVisible
:
false
,
previewData
:
{},
// 预览信息
previewData
:
{},
// 预览信息
appTemplate
:
[],
// 字段模板列表
appTemplate
:
[],
// 字段模板列表
searchTemplate
:
[],
//关联搜索字段模板列表
selectedRowKeys
:
[],
selectedRowKeys
:
[],
orConditionList
:
[],
};
};
},
},
computed
:
{
computed
:
{
...
@@ -190,14 +192,25 @@ export default {
...
@@ -190,14 +192,25 @@ export default {
return
{
return
{
title
:
v
.
fieldName
,
title
:
v
.
fieldName
,
dataIndex
:
v
.
fieldCode
,
dataIndex
:
v
.
fieldCode
,
customRender
:
(
text
,
record
)
=>
{
let
row
=
record
.
appInfoFieldList
.
find
(
(
item
)
=>
item
.
fieldCode
==
v
.
fieldCode
);
if
(
row
&&
row
.
fieldTypeValue
&&
!
row
.
serviceApiParams
)
{
let
fieldTypeValue
=
JSON
.
parse
(
row
.
fieldTypeValue
);
return
fieldTypeValue
[
text
];
}
else
{
return
text
;
}
},
};
};
}
}
});
});
return
[
index
,
...
arr
,
action
];
return
[
index
,
...
arr
,
action
];
},
},
},
},
created
()
{
async
created
()
{
this
.
getTempleteList
();
await
this
.
getTempleteList
();
this
.
getDatasetList
();
this
.
getDatasetList
();
},
},
methods
:
{
methods
:
{
...
@@ -210,11 +223,15 @@ export default {
...
@@ -210,11 +223,15 @@ export default {
});
});
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
let
{
data
}
=
res
.
data
.
data
;
let
{
data
}
=
res
.
data
.
data
;
this
.
appTemplate
=
data
.
sort
((
a
,
b
)
=>
{
let
arr
=
data
.
sort
((
a
,
b
)
=>
{
return
a
.
fieldOrderNo
-
b
.
fieldOrderNo
;
return
a
.
fieldOrderNo
-
b
.
fieldOrderNo
;
});
});
if
(
this
.
appTemplate
.
length
)
{
this
.
appTemplate
=
arr
;
this
.
fieldCode
=
this
.
appTemplate
[
0
].
fieldCode
;
this
.
searchTemplate
=
data
.
filter
((
v
)
=>
{
return
v
.
defaultValue
==
1
;
});
if
(
this
.
searchTemplate
.
length
)
{
this
.
fieldCode
=
this
.
searchTemplate
[
0
].
fieldCode
;
}
}
}
}
},
},
...
@@ -227,6 +244,16 @@ export default {
...
@@ -227,6 +244,16 @@ export default {
appId
:
this
.
appId
,
appId
:
this
.
appId
,
fieldCode
:
this
.
fieldCode
,
fieldCode
:
this
.
fieldCode
,
fieldValue
:
`%
${
this
.
searchVal
}
%`
,
fieldValue
:
`%
${
this
.
searchVal
}
%`
,
// orConditionList: [
// {
// fieldCode: this.fieldCode,
// fieldValue: `%${this.searchVal}%`,
// },
// {
// fieldCode: "top",
// fieldValue: `%%`,
// },
// ],
});
});
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
===
1
)
{
if
(
res
.
data
.
code
===
1
)
{
...
@@ -275,7 +302,8 @@ export default {
...
@@ -275,7 +302,8 @@ export default {
// 编辑
// 编辑
handleEdit
(
row
)
{
handleEdit
(
row
)
{
this
.
title
=
"
编辑
"
;
this
.
title
=
"
编辑
"
;
this
.
$refs
.
AddData
.
onEdit
(
row
);
let
data
=
this
.
$_
.
cloneDeep
(
row
);
this
.
$refs
.
AddData
.
onEdit
(
data
);
this
.
AddVisible
=
true
;
this
.
AddVisible
=
true
;
},
},
// 选择
// 选择
...
...
base-manager-ui/admin/src/pages/basicset/appmarket/components/FieldConfig.vue
View file @
dae8bffc
...
@@ -120,6 +120,18 @@ export default {
...
@@ -120,6 +120,18 @@ export default {
title
:
"
允许为空
"
,
title
:
"
允许为空
"
,
scopedSlots
:
{
customRender
:
"
fieldNull
"
},
scopedSlots
:
{
customRender
:
"
fieldNull
"
},
},
},
{
title
:
"
关联搜索
"
,
dataIndex
:
"
defaultValue
"
,
customRender
:
(
text
)
=>
{
return
<
a
-
tag
>
{
text
==
1
?
"
是
"
:
"
否
"
}
<
/a-tag>
;
},
},
{
title
:
"
默认值
"
,
dataIndex
:
"
fieldValue
"
,
},
{
{
title
:
"
操作
"
,
title
:
"
操作
"
,
width
:
"
110px
"
,
width
:
"
110px
"
,
...
@@ -239,5 +251,4 @@ export default {
...
@@ -239,5 +251,4 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
></
style
>
</
style
>
\ No newline at end of file
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddData.vue
View file @
dae8bffc
...
@@ -363,7 +363,7 @@ export default {
...
@@ -363,7 +363,7 @@ export default {
if
(
v
.
id
)
{
if
(
v
.
id
)
{
delete
v
.
id
;
delete
v
.
id
;
}
}
v
.
fieldValue
=
undefined
;
// v.fieldValue = v.fieldValue ??
undefined;
if
(
v
.
fieldType
==
"
upload
"
)
{
if
(
v
.
fieldType
==
"
upload
"
)
{
v
.
fileList
=
[];
v
.
fileList
=
[];
}
}
...
@@ -396,30 +396,32 @@ export default {
...
@@ -396,30 +396,32 @@ export default {
},
},
// 编辑
// 编辑
onEdit
(
data
)
{
onEdit
(
data
)
{
data
.
appInfoFieldList
.
forEach
((
v
)
=>
{
setTimeout
(()
=>
{
if
(
v
.
fieldType
==
"
upload
"
)
{
data
.
appInfoFieldList
.
forEach
((
v
)
=>
{
if
(
v
.
fieldValue
)
{
if
(
v
.
fieldType
==
"
upload
"
)
{
let
arr
=
v
.
fieldValue
.
split
(
"
,
"
);
if
(
v
.
fieldValue
)
{
v
.
fileList
=
arr
.
map
((
v
,
i
)
=>
{
let
arr
=
v
.
fieldValue
.
split
(
"
,
"
);
return
{
v
.
fileList
=
arr
.
map
((
v
,
i
)
=>
{
uid
:
i
,
return
{
name
:
v
,
uid
:
i
,
status
:
"
done
"
,
name
:
v
,
url
:
v
,
status
:
"
done
"
,
};
url
:
v
,
});
};
}
else
{
});
v
.
fileList
=
[];
}
else
{
}
v
.
fileList
=
[];
}
else
if
(
v
.
fieldType
==
"
checkbox
"
)
{
}
if
(
v
.
fieldValue
)
{
}
else
if
(
v
.
fieldType
==
"
checkbox
"
)
{
v
.
checkbox
=
v
.
fieldValue
.
split
(
"
,
"
);
if
(
v
.
fieldValue
)
{
}
else
{
v
.
checkbox
=
v
.
fieldValue
.
split
(
"
,
"
);
v
.
checkbox
=
[];
}
else
{
v
.
checkbox
=
[];
}
}
}
}
}
);
})
;
this
.
form
=
{
...
data
}
;
this
.
form
=
{
...
data
}
;
},
10
)
;
},
},
// 更改文件名称
// 更改文件名称
...
...
base-manager-ui/admin/src/pages/basicset/appmarket/modal/AddField.vue
View file @
dae8bffc
...
@@ -137,6 +137,15 @@
...
@@ -137,6 +137,15 @@
<a-radio
:value=
"1"
>
是
</a-radio>
<a-radio
:value=
"1"
>
是
</a-radio>
</a-radio-group>
</a-radio-group>
</a-form-model-item>
</a-form-model-item>
<a-form-model-item
label=
"关联搜索"
prop=
"defaultValue"
>
<a-radio-group
v-model=
"form.defaultValue"
>
<a-radio
value=
"0"
>
否
</a-radio>
<a-radio
value=
"1"
>
是
</a-radio>
</a-radio-group>
</a-form-model-item>
<a-form-model-item
label=
"默认值"
prop=
"fieldValue"
>
<a-input
v-model=
"form.fieldValue"
placeholder=
"请输入默认值"
/>
</a-form-model-item>
<a-form-model-item
label=
"排序"
prop=
"fieldOrderNo"
>
<a-form-model-item
label=
"排序"
prop=
"fieldOrderNo"
>
<a-input-number
v-model=
"form.fieldOrderNo"
:min=
"0"
/>
<a-input-number
v-model=
"form.fieldOrderNo"
:min=
"0"
/>
</a-form-model-item>
</a-form-model-item>
...
@@ -151,7 +160,9 @@
...
@@ -151,7 +160,9 @@
</a-form-model>
</a-form-model>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<a-button
@
click=
"handleReset"
>
重置
</a-button>
<a-button
@
click=
"handleReset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
>
确定
</a-button>
<a-button
type=
"primary"
@
click=
"handleOk"
:loading=
"loading"
>
确定
</a-button
>
</div>
</div>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -221,6 +232,7 @@ export default {
...
@@ -221,6 +232,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
fieldTypeItem
,
fieldTypeItem
,
fieldType
:
[
fieldType
:
[
{
{
...
@@ -245,7 +257,8 @@ export default {
...
@@ -245,7 +257,8 @@ export default {
isList
:
0
,
//字段是否列表显示(0.否,1.是)
isList
:
0
,
//字段是否列表显示(0.否,1.是)
fieldOrderNo
:
99
,
// 排序号
fieldOrderNo
:
99
,
// 排序号
fieldTypeValue
:
""
,
// 字段类型值
fieldTypeValue
:
""
,
// 字段类型值
defaultValue
:
""
,
// 字段默认值
defaultValue
:
"
1
"
,
// 字段默认值(用作关联搜索)
fieldValue
:
""
,
// 字段值
serviceApi
:
""
,
// 动态数据接口
serviceApi
:
""
,
// 动态数据接口
serviceApiParams
:
""
,
// 动态数据参数配置
serviceApiParams
:
""
,
// 动态数据参数配置
remark
:
""
,
//
remark
:
""
,
//
...
@@ -307,6 +320,7 @@ export default {
...
@@ -307,6 +320,7 @@ export default {
handleOk
()
{
handleOk
()
{
this
.
$refs
.
form
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
form
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
;
let
bol
=
this
.
templeteList
.
some
((
v
)
=>
v
.
fieldType
==
"
table
"
);
let
bol
=
this
.
templeteList
.
some
((
v
)
=>
v
.
fieldType
==
"
table
"
);
if
(
bol
&&
!
this
.
form
.
id
&&
this
.
form
.
fieldType
==
"
table
"
)
{
if
(
bol
&&
!
this
.
form
.
id
&&
this
.
form
.
fieldType
==
"
table
"
)
{
this
.
$message
.
warn
(
"
只能存在一个表格
"
);
this
.
$message
.
warn
(
"
只能存在一个表格
"
);
...
@@ -333,6 +347,7 @@ export default {
...
@@ -333,6 +347,7 @@ export default {
?
JSON
.
stringify
(
apiParamsObj
)
?
JSON
.
stringify
(
apiParamsObj
)
:
""
,
:
""
,
});
});
this
.
loading
=
false
;
let
{
code
,
msg
}
=
res
.
data
;
let
{
code
,
msg
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
msg
);
this
.
$message
.
success
(
msg
);
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs2.vue
View file @
dae8bffc
...
@@ -13,10 +13,9 @@
...
@@ -13,10 +13,9 @@
style=
"width: 120px"
style=
"width: 120px"
v-model=
"leftSource"
v-model=
"leftSource"
class=
"select-department"
class=
"select-department"
placeholder=
"
事项
来源"
placeholder=
"
全部
来源"
:allowClear=
"true"
:allowClear=
"true"
>
>
<a-select-option
value=
""
>
全部来源
</a-select-option>
<a-select-option
:value=
"0"
>
一体化添加
</a-select-option>
<a-select-option
:value=
"0"
>
一体化添加
</a-select-option>
<a-select-option
:value=
"1"
>
手动添加
</a-select-option>
<a-select-option
:value=
"1"
>
手动添加
</a-select-option>
</a-select>
</a-select>
...
@@ -25,13 +24,10 @@
...
@@ -25,13 +24,10 @@
style=
"min-width: 120px"
style=
"min-width: 120px"
v-model=
"leftDept"
v-model=
"leftDept"
class=
"select-department"
class=
"select-department"
placeholder=
"
部门搜索
"
placeholder=
"
全部部门
"
optionFilterProp=
"label"
optionFilterProp=
"label"
:allowClear=
"true"
:allowClear=
"true"
>
>
<a-select-option
value=
""
label=
"全部部门"
>
全部部门
</a-select-option>
<a-select-option
<a-select-option
v-for=
"v in deptList"
v-for=
"v in deptList"
:key=
"v.id"
:key=
"v.id"
...
@@ -149,23 +145,21 @@
...
@@ -149,23 +145,21 @@
style=
"width: 120px"
style=
"width: 120px"
v-model=
"rightSource"
v-model=
"rightSource"
class=
"select-department"
class=
"select-department"
placeholder=
"事项来源"
placeholder=
"全部来源"
allowClear
>
>
<a-select-option
value=
""
>
全部来源
</a-select-option>
<a-select-option
:value=
"0"
>
一体化事项
</a-select-option>
<a-select-option
:value=
"0"
>
一体化事项
</a-select-option>
<a-select-option
:value=
"1"
>
自建事项
</a-select-option>
<a-select-option
:value=
"1"
>
自建事项
</a-select-option>
</a-select>
</a-select>
<a-select
<a-select
showSearch
showSearch
allowClear
style=
"min-width: 120px"
style=
"min-width: 120px"
v-model=
"rightDept"
v-model=
"rightDept"
class=
"select-department"
class=
"select-department"
placeholder=
"
部门搜索
"
placeholder=
"
全部部门
"
optionFilterProp=
"label"
optionFilterProp=
"label"
>
>
<a-select-option
value=
""
label=
"全部部门"
>
全部部门
</a-select-option>
<a-select-option
<a-select-option
v-for=
"v in deptList"
v-for=
"v in deptList"
:key=
"v.id"
:key=
"v.id"
...
@@ -358,10 +352,10 @@ export default {
...
@@ -358,10 +352,10 @@ export default {
rightColumns
,
rightColumns
,
leftLoading
:
false
,
leftLoading
:
false
,
rightLoading
:
false
,
rightLoading
:
false
,
leftSource
:
""
,
// 左边来源
leftSource
:
undefined
,
// 左边来源
leftDept
:
""
,
// 左边部门搜索
leftDept
:
undefined
,
// 左边部门搜索
rightDept
:
""
,
// 右边部门搜索
rightDept
:
undefined
,
// 右边部门搜索
rightSource
:
""
,
// 右边来源
rightSource
:
undefined
,
// 右边来源
selectedRowKeys
:
[],
selectedRowKeys
:
[],
matterSiteData
:
[],
// 站点事项
matterSiteData
:
[],
// 站点事项
matterDataList
:
[],
//事项列表数据
matterDataList
:
[],
//事项列表数据
...
...
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs3.vue
View file @
dae8bffc
...
@@ -75,12 +75,10 @@
...
@@ -75,12 +75,10 @@
style=
"min-width: 120px"
style=
"min-width: 120px"
v-model=
"deptSearch"
v-model=
"deptSearch"
class=
"select-department"
class=
"select-department"
placeholder=
"
部门搜索
"
placeholder=
"
全部部门
"
optionFilterProp=
"label"
optionFilterProp=
"label"
allowClear
>
>
<a-select-option
value=
""
label=
"全部部门"
>
全部部门
</a-select-option>
<a-select-option
<a-select-option
v-for=
"v in deptList"
v-for=
"v in deptList"
:key=
"v.id"
:key=
"v.id"
...
@@ -352,7 +350,7 @@ export default {
...
@@ -352,7 +350,7 @@ export default {
Leftloading
:
false
,
Leftloading
:
false
,
rightloading
:
false
,
rightloading
:
false
,
leftSearchVal
:
""
,
// 左边搜索
leftSearchVal
:
""
,
// 左边搜索
deptSearch
:
""
,
// 右边
deptSearch
:
undefined
,
// 右边
rightSearchVal
:
""
,
// 右边搜索
rightSearchVal
:
""
,
// 右边搜索
SiteBusinessData
:
[],
// 站点业务
SiteBusinessData
:
[],
// 站点业务
SiteMatterData
:
[],
//站点事项
SiteMatterData
:
[],
//站点事项
...
@@ -852,4 +850,4 @@ export default {
...
@@ -852,4 +850,4 @@ export default {
.site-business {
.site-business {
margin-bottom: 0px !important;
margin-bottom: 0px !important;
}
}
</
style
>
</
style
>
\ No newline at end of file
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs4.vue
View file @
dae8bffc
<
template
>
<
template
>
<div
class=
"basicset-tab4"
>
<div
class=
"basicset-tab4"
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
class=
"header"
>
<div
class=
"header"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
allowClear
allowClear
v-model=
"dept"
v-model=
"dept"
class=
"select-department"
class=
"select-department"
placeholder=
"
部门搜索
"
placeholder=
"
全部部门
"
optionFilterProp=
"label"
optionFilterProp=
"label"
>
>
<a-select-option
<a-select-option
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
allowClear
allowClear
v-model=
"source"
v-model=
"source"
class=
"select-department"
class=
"select-department"
placeholder=
"
事项
来源"
placeholder=
"
全部
来源"
>
>
<a-select-option
:value=
"0"
>
一体化添加
</a-select-option>
<a-select-option
:value=
"0"
>
一体化添加
</a-select-option>
<a-select-option
:value=
"1"
>
手动添加
</a-select-option>
<a-select-option
:value=
"1"
>
手动添加
</a-select-option>
...
...
base-manager-ui/admin/src/pages/basicset/business/group/addprofession.vue
View file @
dae8bffc
...
@@ -181,6 +181,7 @@ export default {
...
@@ -181,6 +181,7 @@ export default {
// 确定
// 确定
handleOk
()
{
handleOk
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
console
.
log
(
this
.
form
.
parentId
);
if
(
valid
)
{
if
(
valid
)
{
this
.
confirmLoading
=
true
;
this
.
confirmLoading
=
true
;
let
res
=
await
saveBusiness
({
let
res
=
await
saveBusiness
({
...
@@ -190,8 +191,9 @@ export default {
...
@@ -190,8 +191,9 @@ export default {
let
{
code
,
msg
,
data
}
=
res
.
data
;
let
{
code
,
msg
,
data
}
=
res
.
data
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
if
(
!
this
.
form
.
id
)
{
if
(
!
this
.
form
.
id
)
{
let
businessId
=
data
.
id
?
data
.
id
:
data
.
entity
.
id
;
let
result
=
await
addInBusiness
({
let
result
=
await
addInBusiness
({
businessIds
:
String
(
data
.
entity
.
i
d
),
businessIds
:
String
(
businessI
d
),
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
});
});
if
(
result
.
data
.
code
===
1
)
{
if
(
result
.
data
.
code
===
1
)
{
...
...
base-manager-ui/admin/src/pages/basicset/surface/components/ShowBox.vue
View file @
dae8bffc
...
@@ -199,7 +199,7 @@ export default {
...
@@ -199,7 +199,7 @@ export default {
}
}
}
}
.show-skin {
.show-skin {
margin-bottom:
2
0px;
margin-bottom:
1
0px;
-transform: scale(0.9);
-transform: scale(0.9);
img {
img {
width: 100%;
width: 100%;
...
...
base-manager-ui/admin/src/pages/basicset/system/System.vue
View file @
dae8bffc
<
template
>
<
template
>
<div
class=
"system flex flexc"
>
<div
class=
"system flex flexc"
>
<a-tabs
:activeKey=
"activeKey"
@
change=
"changeRouter"
>
<a-tabs
:activeKey=
"activeKey"
@
change=
"changeRouter"
>
<a-tab-pane
key=
"/system/user"
>
<
!--
<
a-tab-pane
key=
"/system/user"
>
<span
slot=
"tab"
>
<span
slot=
"tab"
>
<a-icon
type=
"user"
/>
<a-icon
type=
"user"
/>
用户管理
用户管理
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<a-icon
type=
"deployment-unit"
/>
<a-icon
type=
"deployment-unit"
/>
维度管理
维度管理
</span>
</span>
</a-tab-pane>
</a-tab-pane>
-->
<a-tab-pane
key=
"/system/parameter"
>
<a-tab-pane
key=
"/system/parameter"
>
<span
slot=
"tab"
>
<span
slot=
"tab"
>
<a-icon
type=
"container"
/>
<a-icon
type=
"container"
/>
...
...
base-manager-ui/admin/src/pages/basicset/system/dimension/Dimension.vue
View file @
dae8bffc
...
@@ -156,6 +156,10 @@ export default {
...
@@ -156,6 +156,10 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
this
.
current
-=
1
;
this
.
getDimensionList
();
}
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
this
.
total
=
total
;
this
.
dict
=
dict
;
this
.
dict
=
dict
;
...
...
base-manager-ui/admin/src/pages/basicset/system/parameter/Parameter.vue
View file @
dae8bffc
...
@@ -213,6 +213,7 @@ export default {
...
@@ -213,6 +213,7 @@ export default {
this
.
dict
=
dict
;
this
.
dict
=
dict
;
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
this
.
current
-=
1
;
this
.
current
-=
1
;
this
.
getSystemParameterList
();
}
}
this
.
total
=
total
;
this
.
total
=
total
;
this
.
tableData
=
data
;
this
.
tableData
=
data
;
...
...
base-manager-ui/admin/src/pages/basicset/system/resourceManage/Resource.vue
View file @
dae8bffc
...
@@ -166,6 +166,10 @@ export default {
...
@@ -166,6 +166,10 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
this
.
current
-=
1
;
this
.
getResourceList
();
}
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
this
.
total
=
total
;
this
.
dict
=
dict
;
this
.
dict
=
dict
;
...
...
base-manager-ui/admin/src/pages/basicset/system/role/Role.vue
View file @
dae8bffc
...
@@ -141,6 +141,10 @@ export default {
...
@@ -141,6 +141,10 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
let
{
data
,
total
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
this
.
current
-=
1
;
this
.
getRoleList
();
}
this
.
tableData
=
data
;
this
.
tableData
=
data
;
this
.
total
=
total
;
this
.
total
=
total
;
}
}
...
...
base-manager-ui/admin/src/pages/basicset/system/user/User.vue
View file @
dae8bffc
...
@@ -64,13 +64,14 @@
...
@@ -64,13 +64,14 @@
<AddUserRole
<AddUserRole
ref=
"AddUserRole"
ref=
"AddUserRole"
:addVisible.sync=
"addVisible"
:addVisible.sync=
"addVisible"
:roleList=
"roleList"
@
addSuccess=
"getUserList"
@
addSuccess=
"getUserList"
></AddUserRole>
></AddUserRole>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getUserList
}
from
"
@/services/system
"
;
import
{
getUserList
,
getRoleList
}
from
"
@/services/system
"
;
import
{
pageSizeOptions
}
from
"
@/config/pageConfig.js
"
;
import
{
pageSizeOptions
}
from
"
@/config/pageConfig.js
"
;
import
AddUserRole
from
"
./modal/AddUserRole.vue
"
;
import
AddUserRole
from
"
./modal/AddUserRole.vue
"
;
import
{
mapState
}
from
"
vuex
"
;
import
{
mapState
}
from
"
vuex
"
;
...
@@ -98,8 +99,15 @@ export default {
...
@@ -98,8 +99,15 @@ export default {
title
:
"
所属角色
"
,
title
:
"
所属角色
"
,
dataIndex
:
"
roleIds
"
,
dataIndex
:
"
roleIds
"
,
customRender
:
(
text
)
=>
{
customRender
:
(
text
)
=>
{
if
(
text
&&
this
.
dict
.
roleIds
)
{
if
(
text
&&
this
.
roleList
.
length
)
{
return
<
a
-
tag
>
{
this
.
dict
.
roleIds
[
text
]}
<
/a-tag>
;
let
obj
=
{};
this
.
roleList
.
forEach
((
v
)
=>
{
obj
[
v
.
id
]
=
v
.
name
;
});
let
roleIds
=
text
.
split
(
"
,
"
);
return
roleIds
.
map
((
v
)
=>
{
return
<
a
-
tag
>
{
obj
[
v
]}
<
/a-tag>
;
});
}
}
},
},
},
},
...
@@ -130,6 +138,7 @@ export default {
...
@@ -130,6 +138,7 @@ export default {
realName
:
""
,
realName
:
""
,
},
},
tableData
:
[],
tableData
:
[],
roleList
:
[],
// 角色列表
selectedRowKeys
:
[],
selectedRowKeys
:
[],
dict
:
{},
// 字典
dict
:
{},
// 字典
addVisible
:
false
,
addVisible
:
false
,
...
@@ -141,9 +150,22 @@ export default {
...
@@ -141,9 +150,22 @@ export default {
...
mapState
(
"
site
"
,
[
"
userInfo
"
]),
...
mapState
(
"
site
"
,
[
"
userInfo
"
]),
},
},
created
()
{
created
()
{
this
.
getRoleList
();
this
.
getUserList
();
this
.
getUserList
();
},
},
methods
:
{
methods
:
{
// 获取角色列表
async
getRoleList
()
{
let
res
=
await
getRoleList
({
page
:
1
,
size
:
-
1
,
});
if
(
res
.
data
.
code
==
1
)
{
let
{
data
}
=
res
.
data
.
data
;
this
.
roleList
=
data
;
}
},
// 获取用户列表
// 获取用户列表
async
getUserList
()
{
async
getUserList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -155,6 +177,10 @@ export default {
...
@@ -155,6 +177,10 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
data
.
code
==
1
)
{
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
let
{
data
,
total
,
dict
}
=
res
.
data
.
data
;
if
(
!
data
.
length
&&
this
.
current
>
1
)
{
this
.
current
-=
1
;
this
.
getUserList
();
}
let
{
name
}
=
this
.
userInfo
;
let
{
name
}
=
this
.
userInfo
;
if
(
this
.
loginNames
.
includes
(
name
))
{
if
(
this
.
loginNames
.
includes
(
name
))
{
this
.
tableData
=
data
;
this
.
tableData
=
data
;
...
...
base-manager-ui/admin/src/pages/basicset/system/user/modal/AddUserRole.vue
View file @
dae8bffc
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getRoleList
,
saveUser
}
from
"
@/services/system
"
;
import
{
saveUser
}
from
"
@/services/system
"
;
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -48,6 +48,11 @@ export default {
...
@@ -48,6 +48,11 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
roleList
:
{
required
:
true
,
type
:
Array
,
default
:
()
=>
[],
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -55,7 +60,6 @@ export default {
...
@@ -55,7 +60,6 @@ export default {
form
:
{
form
:
{
roleIds
:
[],
roleIds
:
[],
},
},
roleList
:
[],
rules
:
{
rules
:
{
roleIds
:
[{
required
:
true
,
message
:
"
请选择角色
"
,
trigger
:
"
change
"
}],
roleIds
:
[{
required
:
true
,
message
:
"
请选择角色
"
,
trigger
:
"
change
"
}],
},
},
...
@@ -71,21 +75,8 @@ export default {
...
@@ -71,21 +75,8 @@ export default {
},
},
},
},
},
},
created
()
{
created
()
{},
this
.
getRoleList
();
},
methods
:
{
methods
:
{
// 获取角色列表
async
getRoleList
()
{
let
res
=
await
getRoleList
({
page
:
1
,
size
:
-
1
,
});
if
(
res
.
data
.
code
==
1
)
{
let
{
data
}
=
res
.
data
.
data
;
this
.
roleList
=
data
;
}
},
// 新增
// 新增
onAdd
()
{
onAdd
()
{
Object
.
assign
(
this
.
form
,
this
.
$options
.
data
().
form
);
Object
.
assign
(
this
.
form
,
this
.
$options
.
data
().
form
);
...
@@ -96,7 +87,7 @@ export default {
...
@@ -96,7 +87,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
form
=
{
...
row
};
this
.
form
=
{
...
row
};
if
(
this
.
form
.
roleIds
)
{
if
(
this
.
form
.
roleIds
)
{
this
.
form
.
roleIds
=
this
.
form
.
roleIds
.
split
(
"
,
"
);
this
.
form
.
roleIds
=
this
.
form
.
roleIds
.
split
(
"
,
"
)
.
map
(
Number
)
;
}
else
{
}
else
{
this
.
form
.
roleIds
=
[];
this
.
form
.
roleIds
=
[];
}
}
...
...
base-manager-ui/admin/src/router/config.js
View file @
dae8bffc
...
@@ -306,7 +306,7 @@ const options = {
...
@@ -306,7 +306,7 @@ const options = {
meta
:
{
meta
:
{
icon
:
"
global
"
,
icon
:
"
global
"
,
},
},
redirect
:
"
system/
us
er
"
,
redirect
:
"
system/
paramet
er
"
,
children
:
[
children
:
[
{
{
path
:
"
user
"
,
path
:
"
user
"
,
...
...
base-manager/db/add.sql
View file @
dae8bffc
...
@@ -244,107 +244,6 @@ UPDATE mortals_sys_skin_base SET imageResolution="1280x1280" WHERE imageResoluti
...
@@ -244,107 +244,6 @@ UPDATE mortals_sys_skin_base SET imageResolution="1280x1280" WHERE imageResoluti
ALTER
TABLE
mortals_sys_site_matter
ADD
COLUMN
`hallCheckIn`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'大厅事项入驻(0.否,1.是)'
AFTER
agentPost
;
ALTER
TABLE
mortals_sys_site_matter
ADD
COLUMN
`hallCheckIn`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'大厅事项入驻(0.否,1.是)'
AFTER
agentPost
;
-- ----------------------------
2024
-
04
-
08
-- ----------------------------
-- ----------------------------
-- 排号汇总表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_ph_queue`
;
CREATE
TABLE
mortals_xhx_ph_queue
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'序号,主键,自增长'
,
`ordernumber`
varchar
(
64
)
NOT
NULL
COMMENT
'预约编号,为空现场取号'
,
`style`
char
(
8
)
NOT
NULL
DEFAULT
'未叫号'
COMMENT
'叫号状态 (未叫号,叫号中,完成)'
,
`business`
varchar
(
128
)
NOT
NULL
COMMENT
'业务名'
,
`window_name`
varchar
(
128
)
NOT
NULL
COMMENT
'窗口名'
,
`window_fromnum`
varchar
(
128
)
NOT
NULL
COMMENT
'窗口编号'
,
`flownum`
varchar
(
64
)
NOT
NULL
COMMENT
'流水编号,当天的第xxx号'
,
`formernum`
varchar
(
32
)
NOT
NULL
COMMENT
'呼叫转移号'
,
`people_idcard`
varchar
(
64
)
NOT
NULL
COMMENT
'身份证号'
,
`people_name`
varchar
(
64
)
NOT
NULL
COMMENT
'姓名'
,
`people_sex`
char
(
6
)
NOT
NULL
COMMENT
'性别'
,
`people_phone`
varchar
(
20
)
NOT
NULL
COMMENT
'手机号'
,
`workman_name`
varchar
(
32
)
NOT
NULL
COMMENT
'工作人员姓名'
,
`workman_number`
varchar
(
20
)
NOT
NULL
COMMENT
'工作人员工号'
,
`taketime`
datetime
COMMENT
'取号时间'
,
`calltime`
datetime
COMMENT
'叫号时间'
,
`endtime`
datetime
COMMENT
'结束时间'
,
`wait_time`
int
(
9
)
NOT
NULL
DEFAULT
'0'
COMMENT
'等待时间,单位s'
,
`handle_time`
int
(
9
)
NOT
NULL
DEFAULT
'0'
COMMENT
'办理时间,单位s'
,
`device_name`
varchar
(
128
)
NOT
NULL
COMMENT
'取号设备名'
,
`call_name`
varchar
(
128
)
NOT
NULL
COMMENT
'呼叫设备'
,
`matter_name`
varchar
(
256
)
NOT
NULL
COMMENT
'事项名'
,
`queueid`
varchar
(
128
)
NOT
NULL
COMMENT
'排号队列ID,唯一'
,
`wy_signin`
varchar
(
16
)
NOT
NULL
DEFAULT
'现场取号'
COMMENT
'取号方式 (现场取号,微信取号)'
,
`section_name`
varchar
(
128
)
NOT
NULL
COMMENT
'部门名称'
,
`hall_name`
varchar
(
128
)
NOT
NULL
COMMENT
'大厅名称'
,
`device_type`
varchar
(
32
)
NOT
NULL
DEFAULT
'排号机'
COMMENT
'取号设备类型'
,
`site_id`
bigint
(
20
)
NOT
NULL
DEFAULT
'0'
COMMENT
'站点Id'
,
`site_code`
varchar
(
128
)
NOT
NULL
COMMENT
'站点编码'
,
`site_name`
varchar
(
128
)
COMMENT
'站点名称'
,
`ext_num`
varchar
(
128
)
NOT
NULL
COMMENT
'扩展编号'
,
`create_user_id`
bigint
(
20
)
COMMENT
'创建用户'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
,
KEY
`style`
(
`style`
)
USING
BTREE
,
KEY
`business`
(
`business`
)
USING
BTREE
,
KEY
`window_fromnum`
(
`window_fromnum`
)
USING
BTREE
,
KEY
`people_idcard`
(
`people_idcard`
)
USING
BTREE
,
KEY
`people_phone`
(
`people_phone`
)
USING
BTREE
,
KEY
`workman_number`
(
`workman_number`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'排号汇总'
;
-- ----------------------------
-- 评价汇总表
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mortals_xhx_pj_evaluate`
;
CREATE
TABLE
mortals_xhx_pj_evaluate
(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'序号,主键,自增长'
,
`people_idcard`
varchar
(
64
)
NOT
NULL
COMMENT
'评价人身份证号'
,
`people_name`
varchar
(
64
)
NOT
NULL
COMMENT
'评价人姓名'
,
`people_sex`
char
(
6
)
NOT
NULL
COMMENT
'评价人性别'
,
`people_phone`
varchar
(
20
)
NOT
NULL
COMMENT
'评价人手机号'
,
`pj_option`
varchar
(
32
)
NOT
NULL
COMMENT
'评价选项(非常满意,满意,基本满意,不满意,非常不满意)'
,
`content_tag`
varchar
(
255
)
NOT
NULL
COMMENT
'评价标签'
,
`pic_url`
varchar
(
128
)
NOT
NULL
COMMENT
'评价人图片地址'
,
`section_name`
varchar
(
128
)
NOT
NULL
COMMENT
'部门'
,
`hall_name`
varchar
(
128
)
NOT
NULL
COMMENT
'大厅'
,
`pj_source`
varchar
(
20
)
NOT
NULL
COMMENT
'评价来源 (安卓,导视机,微信)'
,
`opinion`
varchar
(
512
)
COMMENT
'手输意见'
,
`window_name`
varchar
(
128
)
NOT
NULL
COMMENT
'窗口名'
,
`window_fromnum`
varchar
(
128
)
NOT
NULL
COMMENT
'窗口编号'
,
`flounum`
varchar
(
20
)
COMMENT
'排号编号'
,
`pjxt`
varchar
(
32
)
DEFAULT
'窗口评价'
COMMENT
'窗口评价(自助服务终端,背靠背评价,微官网)'
,
`workman_name`
varchar
(
32
)
NOT
NULL
COMMENT
'工作人员姓名'
,
`workman_number`
varchar
(
20
)
NOT
NULL
COMMENT
'工作人员工号'
,
`devicenum`
varchar
(
64
)
COMMENT
'评价器mac'
,
`evaluatestatus`
varchar
(
32
)
DEFAULT
'等待评价'
COMMENT
'评价状态(等待评价,完成,截图有误,用户截图签名超时,用户评价超时,收到图片等待签名'
,
`evaluatetype`
char
(
8
)
DEFAULT
'截图'
COMMENT
'截图还是评价 (截图,评价)'
,
`photobefor`
varchar
(
256
)
NOT
NULL
COMMENT
'截图地址'
,
`photoautograph`
varchar
(
256
)
COMMENT
'签字图片'
,
`picture`
varchar
(
256
)
NOT
NULL
COMMENT
'抓拍评价人照片'
,
`process`
varchar
(
256
)
NOT
NULL
COMMENT
'音频视频地址'
,
`eyevaluate`
varchar
(
16
)
DEFAULT
'未标记'
COMMENT
'评价标记(未标记,标记非恶意差评,标记恶意差评)'
,
`pj_type`
varchar
(
16
)
NOT
NULL
DEFAULT
'窗口评价'
COMMENT
'评价指向 (窗口评价,部门评价,排号评价)'
,
`pj_time`
datetime
COMMENT
'评价时间'
,
`site_id`
bigint
(
20
)
DEFAULT
'0'
COMMENT
'站点Id'
,
`site_code`
varchar
(
128
)
COMMENT
'站点编码'
,
`site_name`
varchar
(
128
)
COMMENT
'站点名称'
,
`ext_num`
varchar
(
128
)
COMMENT
'扩展编号'
,
`create_user_id`
bigint
(
20
)
COMMENT
'创建用户'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
)
,
KEY
`people_idcard`
(
`people_idcard`
)
USING
BTREE
,
KEY
`people_phone`
(
`people_phone`
)
USING
BTREE
,
KEY
`pj_option`
(
`pj_option`
)
USING
BTREE
,
KEY
`pj_source`
(
`pj_source`
)
USING
BTREE
,
KEY
`site_id`
(
`site_id`
)
USING
BTREE
,
KEY
`site_code`
(
`site_code`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'评价汇总'
;
ALTER
TABLE
mortals_sys_dept
ADD
COLUMN
`inNum`
int
(
9
)
DEFAULT
'0'
COMMENT
'入驻事项数量'
AFTER
updateTime
;
ALTER
TABLE
mortals_sys_dept
ADD
COLUMN
`inNum`
int
(
9
)
DEFAULT
'0'
COMMENT
'入驻事项数量'
AFTER
updateTime
;
...
...
base-manager/src/main/bin/deploy.sh
View file @
dae8bffc
...
@@ -58,6 +58,7 @@ build_service() {
...
@@ -58,6 +58,7 @@ build_service() {
echo
"[Service]"
>>
${
SERVICE
}
echo
"[Service]"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"ExecStartPre=-/bin/sleep 5s"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
...
@@ -82,7 +83,6 @@ start_service() {
...
@@ -82,7 +83,6 @@ start_service() {
project_deploy
()
{
project_deploy
()
{
writelog
"
${
PROJECT_NAME
}
_deploy"
writelog
"
${
PROJECT_NAME
}
_deploy"
systemctl stop
${
PROJECT_NAME
}
systemctl stop
${
PROJECT_NAME
}
sleep
5
clear_deploy
${
PROJECT_SERVICE
}
${
PROJECT_EXECPATH
}
clear_deploy
${
PROJECT_SERVICE
}
${
PROJECT_EXECPATH
}
writelog
"
${
PROJECT_NAME
}
_clear_finish"
writelog
"
${
PROJECT_NAME
}
_clear_finish"
tar
-zvxf
./
${
PROJECT_FILENAME
}
-C
${
PUBLISH_PATH
}
tar
-zvxf
./
${
PROJECT_FILENAME
}
-C
${
PUBLISH_PATH
}
...
...
base-manager/src/main/java/com/mortals/xhx/base/system/user/service/impl/UserServiceImpl.java
View file @
dae8bffc
...
@@ -27,6 +27,7 @@ import com.mortals.xhx.base.system.menu.model.MenuEntity;
...
@@ -27,6 +27,7 @@ import com.mortals.xhx.base.system.menu.model.MenuEntity;
import
com.mortals.xhx.base.system.menu.service.MenuService
;
import
com.mortals.xhx.base.system.menu.service.MenuService
;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.model.ResourceEntity
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.resource.service.ResourceService
;
import
com.mortals.xhx.base.system.role.model.RoleUserEntity
;
import
com.mortals.xhx.base.system.role.model.RoleUserQuery
;
import
com.mortals.xhx.base.system.role.model.RoleUserQuery
;
import
com.mortals.xhx.base.system.role.service.RoleUserService
;
import
com.mortals.xhx.base.system.role.service.RoleUserService
;
import
com.mortals.xhx.base.system.user.dao.UserDao
;
import
com.mortals.xhx.base.system.user.dao.UserDao
;
...
@@ -273,6 +274,18 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
...
@@ -273,6 +274,18 @@ public class UserServiceImpl extends AbstractCRUDCacheServiceImpl<UserDao, UserE
return
super
.
find
(
params
,
pageInfo
,
null
);
return
super
.
find
(
params
,
pageInfo
,
null
);
}
}
@Override
protected
void
findAfter
(
UserEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
UserEntity
>
list
)
throws
AppException
{
list
.
stream
().
peek
(
item
->
{
RoleUserQuery
roleUserQuery
=
new
RoleUserQuery
();
roleUserQuery
.
setUserId
(
item
.
getId
());
String
roleIds
=
roleUserService
.
find
(
roleUserQuery
).
stream
().
map
(
RoleUserEntity:
:
getRoleId
).
map
(
String:
:
valueOf
).
collect
(
Collectors
.
joining
(
","
));
item
.
setRoleIds
(
roleIds
);
}).
count
();
super
.
findAfter
(
params
,
pageInfo
,
context
,
list
);
}
@Override
@Override
public
UserEntity
createUser
(
IUser
currUser
,
Long
customerId
,
String
customerName
,
String
loginName
,
String
password
,
public
UserEntity
createUser
(
IUser
currUser
,
Long
customerId
,
String
customerName
,
String
loginName
,
String
password
,
String
userName
,
String
mobile
)
throws
AppException
{
String
userName
,
String
mobile
)
throws
AppException
{
...
...
base-manager/src/main/java/com/mortals/xhx/base/system/user/web/UserController.java
View file @
dae8bffc
...
@@ -11,6 +11,11 @@ import com.mortals.framework.model.Context;
...
@@ -11,6 +11,11 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonMappingController
;
import
com.mortals.framework.web.BaseCRUDJsonMappingController
;
import
com.mortals.xhx.base.framework.annotation.Operlog
;
import
com.mortals.xhx.base.framework.annotation.Operlog
;
import
com.mortals.xhx.base.system.role.model.RoleQuery
;
import
com.mortals.xhx.base.system.role.model.RoleUserEntity
;
import
com.mortals.xhx.base.system.role.model.RoleUserQuery
;
import
com.mortals.xhx.base.system.role.service.RoleService
;
import
com.mortals.xhx.base.system.role.service.RoleUserService
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
com.mortals.xhx.common.code.UserStatus
;
import
com.mortals.xhx.common.code.UserStatus
;
...
@@ -26,6 +31,7 @@ import javax.servlet.http.HttpServletResponse;
...
@@ -26,6 +31,7 @@ import javax.servlet.http.HttpServletResponse;
import
java.util.Base64
;
import
java.util.Base64
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
/**
* 用户信息
* 用户信息
...
@@ -37,6 +43,12 @@ import java.util.Map;
...
@@ -37,6 +43,12 @@ import java.util.Map;
@RequestMapping
(
"user"
)
@RequestMapping
(
"user"
)
public
class
UserController
extends
BaseCRUDJsonBodyMappingController
<
UserService
,
UserEntity
,
Long
>
{
public
class
UserController
extends
BaseCRUDJsonBodyMappingController
<
UserService
,
UserEntity
,
Long
>
{
@Autowired
private
RoleService
roleService
;
@Autowired
private
RoleUserService
roleUserService
;
public
UserController
()
{
public
UserController
()
{
super
.
setModuleDesc
(
"用户信息"
);
super
.
setModuleDesc
(
"用户信息"
);
}
}
...
@@ -46,6 +58,8 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
...
@@ -46,6 +58,8 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
Map
<
String
,
Object
>
statsus
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
statsus
=
new
HashMap
<
String
,
Object
>();
statsus
.
put
(
"userType"
,
IBaseEnum
.
getEnumMap
(
UserType
.
class
));
statsus
.
put
(
"userType"
,
IBaseEnum
.
getEnumMap
(
UserType
.
class
));
statsus
.
put
(
"status"
,
UserStatus
.
getEnumMap
());
statsus
.
put
(
"status"
,
UserStatus
.
getEnumMap
());
this
.
addDict
(
model
,
"roleIds"
,
roleService
.
find
(
new
RoleQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getName
())));
model
.
put
(
KEY_RESULT_DICT
,
statsus
);
model
.
put
(
KEY_RESULT_DICT
,
statsus
);
}
}
...
@@ -59,14 +73,15 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
...
@@ -59,14 +73,15 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
}
}
}
}
/* @Override
protected void saveBefore(UserEntity entity, Map<String, Object> model, Context context) throws AppException {
if (!ObjectUtils.isEmpty(entity.getLoginName())&&service.existUser(entity.getLoginName(), entity.getId())) {
throw new AppException("登录名已存在!");
}
super.saveBefore(entity, model, context);
}*/
@Override
protected
int
editAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
UserEntity
entity
,
Context
context
)
throws
AppException
{
RoleUserQuery
roleUserQuery
=
new
RoleUserQuery
();
roleUserQuery
.
setUserId
(
entity
.
getId
());
String
roleIds
=
roleUserService
.
find
(
roleUserQuery
).
stream
().
map
(
RoleUserEntity:
:
getRoleId
).
map
(
String:
:
valueOf
).
collect
(
Collectors
.
joining
(
","
));
entity
.
setRoleIds
(
roleIds
);
return
super
.
editAfter
(
id
,
model
,
entity
,
context
);
}
@RequestMapping
(
value
=
"change/password"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"change/password"
,
method
=
RequestMethod
.
POST
)
@Operlog
(
msg
=
"密码修改成功!"
)
@Operlog
(
msg
=
"密码修改成功!"
)
...
...
base-manager/src/main/java/com/mortals/xhx/common/utils/MatterDetailHtmlParseUtil.java
View file @
dae8bffc
...
@@ -464,7 +464,8 @@ public class MatterDetailHtmlParseUtil {
...
@@ -464,7 +464,8 @@ public class MatterDetailHtmlParseUtil {
// String url = "http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=511A0151400000-511500000000-000-511501-7-1-00&taskType=1&deptCode=511501-7";
// String url = "http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=511A0151400000-511500000000-000-511501-7-1-00&taskType=1&deptCode=511501-7";
// String url = "http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=511A0000400004-511500000000-000-1151120000870212XU-1-00&taskType=1&deptCode=3922757070285361152";
// String url = "http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=511A0000400004-511500000000-000-1151120000870212XU-1-00&taskType=1&deptCode=3922757070285361152";
String
url
=
"http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=512036008003-511500000000-000-11511200MB1503849K-1-00&taskType=20&deptCode=3907787168696946688"
;
// String url = "http://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=512036008003-511500000000-000-11511200MB1503849K-1-00&taskType=20&deptCode=3907787168696946688";
String
url
=
"https://www.sczwfw.gov.cn/jiq/front/transition/ywTransToDetail?areaCode=511500000000&itemCode=511A0101600004-511500000000-000-11511200008702584B-1-00&taskType=1&deptCode=511501-7"
;
Document
dom
=
MatterDetailHtmlParseUtil
.
getDomByHtml
(
url
);
Document
dom
=
MatterDetailHtmlParseUtil
.
getDomByHtml
(
url
);
Map
<
String
,
String
>
baseInfoMap
=
MatterDetailHtmlParseUtil
.
getbaseInfoMapByHtml
(
dom
);
Map
<
String
,
String
>
baseInfoMap
=
MatterDetailHtmlParseUtil
.
getbaseInfoMapByHtml
(
dom
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/app/service/impl/AppInfoTempleteFieldServiceImpl.java
View file @
dae8bffc
package
com.mortals.xhx.module.app.service.impl
;
package
com.mortals.xhx.module.app.service.impl
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.module.app.model.*
;
import
com.mortals.xhx.module.app.service.AppDatasetService
;
import
com.mortals.xhx.module.app.service.AppInfoFieldService
;
import
com.mortals.xhx.module.app.service.AppService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.xhx.module.app.dao.AppInfoTempleteFieldDao
;
import
com.mortals.xhx.module.app.dao.AppInfoTempleteFieldDao
;
import
com.mortals.xhx.module.app.model.AppInfoTempleteFieldEntity
;
import
com.mortals.xhx.module.app.service.AppInfoTempleteFieldService
;
import
com.mortals.xhx.module.app.service.AppInfoTempleteFieldService
;
import
org.springframework.util.ObjectUtils
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* AppInfoTempleteFieldService
* AppInfoTempleteFieldService
* 自助终端应用模板信息字段 service实现
* 自助终端应用模板信息字段 service实现
*
*
* @author zxfei
* @author zxfei
* @date 2022-11-28
* @date 2022-11-28
*/
*/
@Service
(
"appInfoTempleteFieldService"
)
@Service
(
"appInfoTempleteFieldService"
)
public
class
AppInfoTempleteFieldServiceImpl
extends
AbstractCRUDServiceImpl
<
AppInfoTempleteFieldDao
,
AppInfoTempleteFieldEntity
,
Long
>
implements
AppInfoTempleteFieldService
{
public
class
AppInfoTempleteFieldServiceImpl
extends
AbstractCRUDServiceImpl
<
AppInfoTempleteFieldDao
,
AppInfoTempleteFieldEntity
,
Long
>
implements
AppInfoTempleteFieldService
{
@Autowired
private
AppService
appService
;
@Autowired
private
AppDatasetService
appDatasetService
;
@Autowired
private
AppInfoFieldService
appInfoFieldService
;
/**
* @param entity
* @param context
* @throws AppException
*/
@Override
protected
void
saveAfter
(
AppInfoTempleteFieldEntity
entity
,
Context
context
)
throws
AppException
{
//同步添加已有模板数据
AppDatasetQuery
appDatasetQuery
=
new
AppDatasetQuery
();
appDatasetQuery
.
setAppId
(
entity
.
getAppId
());
List
<
AppDatasetEntity
>
appDatasetEntities
=
appDatasetService
.
find
(
appDatasetQuery
,
context
);
// 判断该数据集 是否已经存在 没存在 再添加
ArrayList
<
AppInfoFieldEntity
>
fieldSaveList
=
new
ArrayList
<>();
for
(
AppDatasetEntity
appDatasetEntity
:
appDatasetEntities
)
{
AppInfoFieldQuery
appInfoFieldQuery
=
new
AppInfoFieldQuery
();
appInfoFieldQuery
.
setDatasetId
(
appDatasetEntity
.
getId
());
appInfoFieldQuery
.
setFieldCode
(
entity
.
getFieldCode
());
appInfoFieldQuery
.
setFieldType
(
entity
.
getFieldType
());
AppInfoFieldEntity
appInfoFieldEntity
=
appInfoFieldService
.
selectOne
(
appInfoFieldQuery
,
context
);
if
(
ObjectUtils
.
isEmpty
(
appInfoFieldEntity
))
{
AppInfoFieldEntity
fieldEntity
=
new
AppInfoFieldEntity
();
fieldEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
entity
,
fieldEntity
,
BeanUtil
.
getNullPropertyNames
(
entity
));
fieldEntity
.
setDatasetId
(
appDatasetEntity
.
getId
());
fieldEntity
.
setId
(
null
);
fieldSaveList
.
add
(
fieldEntity
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
fieldSaveList
))
{
appInfoFieldService
.
save
(
fieldSaveList
,
context
);
}
super
.
saveAfter
(
entity
,
context
);
}
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
View file @
dae8bffc
...
@@ -49,14 +49,11 @@ import static com.mortals.framework.ap.SysConstains.*;
...
@@ -49,14 +49,11 @@ import static com.mortals.framework.ap.SysConstains.*;
@RequestMapping
(
"app/dataset"
)
@RequestMapping
(
"app/dataset"
)
public
class
AppDatasetController
extends
BaseCRUDJsonBodyMappingController
<
AppDatasetService
,
AppDatasetEntity
,
Long
>
{
public
class
AppDatasetController
extends
BaseCRUDJsonBodyMappingController
<
AppDatasetService
,
AppDatasetEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
public
AppDatasetController
()
{
public
AppDatasetController
()
{
super
.
setModuleDesc
(
"自助终端应用数据集"
);
super
.
setModuleDesc
(
"自助终端应用数据集"
);
}
}
/**
/**
* @param query
* @param query
* @return
* @return
...
@@ -75,38 +72,46 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
...
@@ -75,38 +72,46 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
@Override
@Override
protected
void
doListBefore
(
AppDatasetEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
protected
void
doListBefore
(
AppDatasetEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
query
.
getOrConditionList
())
||
!
ObjectUtils
.
isEmpty
(
query
.
getAndConditionList
()))
{
if
(!
ObjectUtils
.
isEmpty
(
query
.
getOrConditionList
())
||
!
ObjectUtils
.
isEmpty
(
query
.
getAndConditionList
()))
{
AppDatasetQuery
appDatasetQuery
=
new
AppDatasetQuery
();
AppDatasetQuery
appDatasetQuery
=
new
AppDatasetQuery
();
if
(!
ObjectUtils
.
isEmpty
(
query
.
getOrConditionList
())){
if
(!
ObjectUtils
.
isEmpty
(
query
.
getAndConditionList
()))
{
appDatasetQuery
.
setOrConditionList
(
query
.
getOrConditionList
());
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getAndConditionList
())){
appDatasetQuery
.
setOrConditionList
(
query
.
getAndConditionList
());
appDatasetQuery
.
setOrConditionList
(
query
.
getAndConditionList
());
}
}
appDatasetQuery
.
setAppId
(
query
.
getAppId
());
if
(!
ObjectUtils
.
isEmpty
(
query
.
getOrConditionList
()))
{
appDatasetQuery
.
setOrConditionList
(
query
.
getOrConditionList
());
PageInfo
pageInfo
=
this
.
buildPageInfo
(
query
);
appDatasetQuery
.
setAppId
(
query
.
getAppId
());
Result
<
AppInfoFieldEntity
>
customResult
=
this
.
service
.
findCustomList
(
appDatasetQuery
,
pageInfo
,
context
);
appDatasetQuery
.
setOrderCols
(
query
.
getOrderCols
());
//根据查询条件的数量去除数量不足的结果
PageInfo
pageInfo
=
this
.
buildPageInfo
(
query
);
int
count
=
query
.
getOrConditionList
().
size
();
Result
<
AppInfoFieldEntity
>
customResult
=
this
.
service
.
findCustomList
(
appDatasetQuery
,
pageInfo
,
context
);
List
<
Long
>
datasetIdList
=
customResult
.
getList
().
stream
().
map
(
item
->
item
.
getDatasetId
()).
collect
(
Collectors
.
toList
());
//根据查询条件的数量去除数量不足的结果
Map
<
Long
,
Long
>
collect
=
datasetIdList
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
,
Collectors
.
counting
()));
int
count
=
query
.
getOrConditionList
().
size
();
List
<
Long
>
dataSets
=
collect
.
entrySet
().
stream
().
map
(
entrySet
->
{
List
<
Long
>
datasetIdList
=
customResult
.
getList
().
stream
().
map
(
item
->
item
.
getDatasetId
()).
collect
(
Collectors
.
toList
());
if
(
entrySet
.
getValue
()
==
count
)
{
Map
<
Long
,
Long
>
collect
=
datasetIdList
.
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
,
Collectors
.
counting
()));
return
entrySet
.
getKey
();
List
<
Long
>
dataSets
=
collect
.
entrySet
().
stream
().
map
(
entrySet
->
{
if
(
entrySet
.
getValue
()
==
count
)
{
return
entrySet
.
getKey
();
}
else
{
return
null
;
}
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
dataSets
))
{
//排序-
List
<
Long
>
orderList
=
new
ArrayList
<>();
for
(
Long
dataId
:
datasetIdList
)
{
if
(
dataSets
.
contains
(
dataId
)){
orderList
.
add
(
dataId
);
}
}
query
.
setIdList
(
orderList
);
}
else
{
}
else
{
return
null
;
query
.
setIdList
(
ListUtil
.
toList
(
0L
))
;
}
}
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
query
.
setOrConditionList
(
null
);
if
(!
ObjectUtils
.
isEmpty
(
dataSets
))
{
query
.
setIdList
(
dataSets
);
}
else
{
query
.
setIdList
(
ListUtil
.
toList
(
0L
));
}
}
query
.
setOrConditionList
(
null
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
query
.
getFieldCode
())
||
!
ObjectUtils
.
isEmpty
(
query
.
getFieldName
()))
{
if
(!
ObjectUtils
.
isEmpty
(
query
.
getFieldCode
())
||
!
ObjectUtils
.
isEmpty
(
query
.
getFieldName
()))
{
...
@@ -122,6 +127,7 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
...
@@ -122,6 +127,7 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
List
<
Long
>
datasetIdList
=
customResult
.
getList
().
stream
().
map
(
item
->
item
.
getDatasetId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
datasetIdList
=
customResult
.
getList
().
stream
().
map
(
item
->
item
.
getDatasetId
()).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
datasetIdList
))
{
if
(!
ObjectUtils
.
isEmpty
(
datasetIdList
))
{
query
.
setIdList
(
datasetIdList
);
query
.
setIdList
(
datasetIdList
);
//query.setOrderColList();
}
else
{
}
else
{
query
.
setIdList
(
ListUtil
.
toList
(
0L
));
query
.
setIdList
(
ListUtil
.
toList
(
0L
));
}
}
...
...
base-manager/src/main/java/com/mortals/xhx/module/base/service/BaseAreaService.java
View file @
dae8bffc
package
com.mortals.xhx.module.base.service
;
package
com.mortals.xhx.module.base.service
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.base.model.BaseAreaEntity
;
import
com.mortals.xhx.module.base.model.BaseAreaEntity
;
import
java.util.List
;
/**
/**
* BaseAreaService
* BaseAreaService
*
* <p>
* 区域 service接口
* 区域 service接口
*
*
* @author zxfei
* @author zxfei
* @date 2022-11-22
* @date 2022-11-22
*/
*/
public
interface
BaseAreaService
extends
ICRUDService
<
BaseAreaEntity
,
Long
>
{
public
interface
BaseAreaService
extends
ICRUDService
<
BaseAreaEntity
,
Long
>
{
/**
/**
* 根据顶点名称生成子节点
* 根据顶点名称生成子节点
* @param baseAreaEntity
*
* @param baseAreaEntity
* @param context
* @param context
*/
*/
Rest
<
String
>
genSubAreaByRootName
(
BaseAreaEntity
baseAreaEntity
,
Context
context
);
Rest
<
String
>
genSubAreaByRootName
(
BaseAreaEntity
baseAreaEntity
,
Context
context
);
Rest
<
List
<
String
>>
getSubAreaByRootName
(
BaseAreaEntity
baseAreaEntity
,
Context
context
);
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/base/service/impl/BaseAreaServiceImpl.java
View file @
dae8bffc
...
@@ -69,37 +69,24 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba
...
@@ -69,37 +69,24 @@ public class BaseAreaServiceImpl extends AbstractCRUDServiceImpl<BaseAreaDao, Ba
return
Rest
.
ok
(
"初始化区域数据成功!"
);
return
Rest
.
ok
(
"初始化区域数据成功!"
);
}
}
/**
/**
* 递归列表
* @param baseAreaEntity
* @param context
* @return
*/
*/
private
void
recursionFn
(
List
<
BaseAreaEntity
>
list
,
BaseAreaEntity
t
)
{
@Override
// 得到子节点列表
public
Rest
<
List
<
String
>>
getSubAreaByRootName
(
BaseAreaEntity
baseAreaEntity
,
Context
context
)
{
List
<
BaseAreaEntity
>
childList
=
getChildList
(
list
,
t
);
t
.
setChildren
(
childList
);
for
(
BaseAreaEntity
tChild
:
childList
)
{
if
(
hasChild
(
list
,
tChild
))
{
recursionFn
(
list
,
tChild
);
}
}
}
/**
String
areaCode
=
baseAreaEntity
.
getAreaCode
();
* 得到子节点列表
String
matchCode
=
areaCode
.
replaceAll
(
"(0)+$"
,
""
);
*/
matchCode
=
AreaMatchCodeUtil
.
getMatchCode
(
matchCode
,
baseAreaEntity
.
getAreaLevel
());
private
List
<
BaseAreaEntity
>
getChildList
(
List
<
BaseAreaEntity
>
list
,
BaseAreaEntity
t
)
{
BaseAreaQuery
baseAreaQuery
=
new
BaseAreaQuery
();
return
list
.
stream
().
map
(
item
->
{
baseAreaQuery
.
setAreaCode
(
matchCode
+
"%"
);
if
(!
ObjectUtils
.
isEmpty
(
item
.
getPid
())
&&
item
.
getPid
()
==
t
.
getIid
())
{
List
<
BaseAreaEntity
>
baseAreaEntityList
=
this
.
find
(
baseAreaQuery
);
return
item
;
List
<
String
>
areaCodeList
=
baseAreaEntityList
.
stream
().
map
(
i
->
i
.
getAreaCode
()).
collect
(
Collectors
.
toList
());
}
return
null
;
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
}
/**
* 判断是否有子节点
return
Rest
.
ok
(
areaCodeList
);
*/
private
boolean
hasChild
(
List
<
BaseAreaEntity
>
list
,
BaseAreaEntity
t
)
{
return
getChildList
(
list
,
t
).
size
()
>
0
?
true
:
false
;
}
}
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/dept/service/DeptService.java
View file @
dae8bffc
...
@@ -41,6 +41,9 @@ public interface DeptService extends ICRUDCacheService<DeptEntity, Long> {
...
@@ -41,6 +41,9 @@ public interface DeptService extends ICRUDCacheService<DeptEntity, Long> {
Rest
<
String
>
syncDeptBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
Rest
<
String
>
syncDeptBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
Rest
<
List
<
DeptEntity
>>
getDeptByWeb
(
String
areaCode
,
Context
context
);
Rest
<
Map
<
String
,
List
<
DeptVo
>>>
getBusinessByDept
(
DeptQuery
deptQuery
,
Context
context
);
Rest
<
Map
<
String
,
List
<
DeptVo
>>>
getBusinessByDept
(
DeptQuery
deptQuery
,
Context
context
);
...
...
base-manager/src/main/java/com/mortals/xhx/module/dept/service/impl/DeptServiceImpl.java
View file @
dae8bffc
...
@@ -88,7 +88,7 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
...
@@ -88,7 +88,7 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
protected
void
updateBefore
(
DeptEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
updateBefore
(
DeptEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateBefore
(
entity
,
context
);
super
.
updateBefore
(
entity
,
context
);
DeptEntity
beforeEntity
=
this
.
get
(
entity
.
getId
(),
context
);
DeptEntity
beforeEntity
=
this
.
get
(
entity
.
getId
(),
context
);
if
(!
beforeEntity
.
getDeptNumber
().
equals
(
entity
.
getDeptNumber
()))
{
if
(!
beforeEntity
.
getDeptNumber
().
equals
(
entity
.
getDeptNumber
()))
{
DeptEntity
extCache
=
this
.
getExtCache
(
entity
.
getDeptNumber
());
DeptEntity
extCache
=
this
.
getExtCache
(
entity
.
getDeptNumber
());
if
(!
ObjectUtils
.
isEmpty
(
extCache
))
{
if
(!
ObjectUtils
.
isEmpty
(
extCache
))
{
throw
new
AppException
(
"部门编码重复!deptCode:"
+
extCache
.
getDeptNumber
());
throw
new
AppException
(
"部门编码重复!deptCode:"
+
extCache
.
getDeptNumber
());
...
@@ -156,6 +156,39 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
...
@@ -156,6 +156,39 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
return
Rest
.
ok
(
"当前站点同步添加部门成功!"
);
return
Rest
.
ok
(
"当前站点同步添加部门成功!"
);
}
}
/**
* @param areaCode
* @param context
* @return
*/
@Override
public
Rest
<
List
<
DeptEntity
>>
getDeptByWeb
(
String
areaCode
,
Context
context
)
{
String
url
=
GlobalSysInfo
.
getParamValue
(
Constant
.
GOV_DEPT_URL
,
"http://www.sczwfw.gov.cn/jiq/front/channel/deptSwitch"
);
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"areaCode"
,
areaCode
);
Rest
<
Map
<
String
,
String
>>
rest
=
MatterHtmlParseUtil
.
syncDeptBySiteId
(
params
,
url
);
ArrayList
<
DeptEntity
>
deptEntities
=
new
ArrayList
<>();
if
(
rest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
()
&&
rest
.
getData
().
keySet
().
size
()
>
0
)
{
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
();
DeptEntity
deptEntity
=
new
DeptEntity
();
deptEntity
.
initAttrValue
();
deptEntity
.
setDeptNumber
(
deptCode
);
deptEntity
.
setName
(
deptName
);
deptEntity
.
setSort
(
sortN
);
deptEntity
.
setSource
(
SourceEnum
.
政务网
.
getValue
());
deptEntities
.
add
(
deptEntity
);
sortN
++;
}
}
else
{
return
Rest
.
fail
(
deptEntities
);
}
return
Rest
.
ok
(
deptEntities
);
}
@Override
@Override
public
Rest
<
Map
<
String
,
List
<
DeptVo
>>>
getBusinessByDept
(
DeptQuery
deptQuery
,
Context
context
)
{
public
Rest
<
Map
<
String
,
List
<
DeptVo
>>>
getBusinessByDept
(
DeptQuery
deptQuery
,
Context
context
)
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/matter/model/vo/MatterVo.java
View file @
dae8bffc
...
@@ -22,6 +22,11 @@ public class MatterVo extends BaseEntityLong {
...
@@ -22,6 +22,11 @@ public class MatterVo extends BaseEntityLong {
private
List
<
String
>
eventTypeShowNotList
;
private
List
<
String
>
eventTypeShowNotList
;
private
Integer
isSub
;
private
String
genFilePath
;
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/matter/service/MatterExtService.java
View file @
dae8bffc
...
@@ -2,9 +2,12 @@ package com.mortals.xhx.module.matter.service;
...
@@ -2,9 +2,12 @@ package com.mortals.xhx.module.matter.service;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.framework.service.ICRUDService
;
import
com.mortals.xhx.module.matter.model.MatterEntity
;
import
com.mortals.xhx.module.matter.model.MatterExtEntity
;
import
com.mortals.xhx.module.matter.model.MatterExtEntity
;
import
com.mortals.xhx.module.site.model.SiteEntity
;
import
com.mortals.xhx.module.site.model.SiteEntity
;
import
java.util.List
;
/**
/**
* MatterExtService
* MatterExtService
*
*
...
@@ -31,4 +34,8 @@ public interface MatterExtService extends ICRUDService<MatterExtEntity,Long>{
...
@@ -31,4 +34,8 @@ public interface MatterExtService extends ICRUDService<MatterExtEntity,Long>{
*/
*/
Rest
<
String
>
syncDelMatterBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
Rest
<
String
>
syncDelMatterBySiteId
(
SiteEntity
siteEntity
,
Context
context
);
Rest
<
List
<
MatterEntity
>>
getWebMatterListByAreaCode
(
String
Code
,
Context
context
);
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterExtServiceImpl.java
View file @
dae8bffc
...
@@ -273,5 +273,28 @@ public class MatterExtServiceImpl extends AbstractCRUDServiceImpl<MatterExtDao,
...
@@ -273,5 +273,28 @@ public class MatterExtServiceImpl extends AbstractCRUDServiceImpl<MatterExtDao,
return
Rest
.
ok
(
"同步删除成功!"
);
return
Rest
.
ok
(
"同步删除成功!"
);
}
}
/**
* @param Code
* @param context
* @return
*/
@Override
public
Rest
<
List
<
MatterEntity
>>
getWebMatterListByAreaCode
(
String
areaCode
,
Context
context
)
{
List
<
DeptEntity
>
deptEntities
=
deptService
.
getDeptByWeb
(
areaCode
,
context
).
getData
();
List
<
MatterEntity
>
govMatterList
=
deptEntities
.
parallelStream
().
flatMap
(
deptEntity
->
{
HashMap
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"areaCode"
,
areaCode
);
params
.
put
(
"dxType"
,
"6"
);
params
.
put
(
"deptCode"
,
deptEntity
.
getDeptNumber
());
params
.
put
(
"searchtext"
,
""
);
params
.
put
(
"taskType"
,
""
);
List
<
MatterEntity
>
deptMatterList
=
this
.
getMatters
(
params
,
context
);
return
deptMatterList
.
stream
();
}).
collect
(
Collectors
.
toList
());
return
Rest
.
ok
(
govMatterList
);
}
}
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
dae8bffc
This diff is collapsed.
Click to expand it.
base-manager/src/main/java/com/mortals/xhx/module/matter/web/MatterController.java
View file @
dae8bffc
...
@@ -14,6 +14,9 @@ import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
...
@@ -14,6 +14,9 @@ import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import
com.mortals.xhx.base.framework.config.InterceptorConfig
;
import
com.mortals.xhx.base.framework.config.InterceptorConfig
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.JointInfoShowEnum
;
import
com.mortals.xhx.common.code.JointInfoShowEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.module.base.model.BaseAreaEntity
;
import
com.mortals.xhx.module.base.service.BaseAreaService
;
import
com.mortals.xhx.module.matter.model.MatterEntity
;
import
com.mortals.xhx.module.matter.model.MatterEntity
;
import
com.mortals.xhx.module.matter.model.MatterQuery
;
import
com.mortals.xhx.module.matter.model.MatterQuery
;
import
com.mortals.xhx.module.matter.service.MatterService
;
import
com.mortals.xhx.module.matter.service.MatterService
;
...
@@ -29,6 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -29,6 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -53,6 +57,8 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
...
@@ -53,6 +57,8 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
private
SiteThemeService
siteThemeService
;
private
SiteThemeService
siteThemeService
;
@Autowired
@Autowired
private
MatterService
matterService
;
private
MatterService
matterService
;
@Autowired
private
BaseAreaService
baseAreaService
;
public
MatterController
()
{
public
MatterController
()
{
super
.
setModuleDesc
(
"基础事项"
);
super
.
setModuleDesc
(
"基础事项"
);
...
@@ -203,10 +209,10 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
...
@@ -203,10 +209,10 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
int
code
=
VALUE_RESULT_SUCCESS
;
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
try
{
/* Runnable runnable = new Runnable() {
/* Runnable runnable = new Runnable() {
*//**
*//**
*
*
*//*
*//*
@Override
@Override
public void run() {
public void run() {
matterService.genMatterTxt(query, getContext());
matterService.genMatterTxt(query, getContext());
...
@@ -239,7 +245,20 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
...
@@ -239,7 +245,20 @@ public class MatterController extends BaseCRUDJsonBodyMappingController<MatterSe
int
code
=
VALUE_RESULT_SUCCESS
;
int
code
=
VALUE_RESULT_SUCCESS
;
try
{
try
{
this
.
service
.
genMatterMarkdown
(
query
,
getContext
());
if
(!
ObjectUtils
.
isEmpty
(
query
.
getIsSub
())
&&
YesNoEnum
.
YES
.
getValue
()
==
query
.
getIsSub
())
{
BaseAreaEntity
baseAreaEntity
=
new
BaseAreaEntity
();
baseAreaEntity
.
setAreaCode
(
query
.
getAreaCode
());
List
<
String
>
subAreaCodeList
=
baseAreaService
.
getSubAreaByRootName
(
baseAreaEntity
,
context
).
getData
();
for
(
String
subAreaCode
:
subAreaCodeList
)
{
MatterQuery
matterEntity
=
new
MatterQuery
();
matterEntity
.
setAreaCode
(
subAreaCode
);
matterEntity
.
setGenFilePath
(
query
.
getGenFilePath
());
this
.
service
.
genMatterMarkdown
(
matterEntity
,
getContext
());
}
}
else
{
this
.
service
.
genMatterMarkdown
(
query
,
getContext
());
}
model
.
put
(
MESSAGE_INFO
,
busiDesc
+
"成功"
);
model
.
put
(
MESSAGE_INFO
,
busiDesc
+
"成功"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/site/service/impl/SiteServiceImpl.java
View file @
dae8bffc
...
@@ -179,6 +179,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
...
@@ -179,6 +179,7 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
workmanEntityCondition
.
setSiteName
(
oldSite
.
getSiteName
());
workmanEntityCondition
.
setSiteName
(
oldSite
.
getSiteName
());
workmanService
.
updateBatch
(
workmanEntity
,
workmanEntityCondition
,
context
);
workmanService
.
updateBatch
(
workmanEntity
,
workmanEntityCondition
,
context
);
}
}
@Override
@Override
...
@@ -376,6 +377,12 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
...
@@ -376,6 +377,12 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
Rest
<
Void
>
rest1
=
deviceFeign
.
refreshMessage
(
devicePdu
);
Rest
<
Void
>
rest1
=
deviceFeign
.
refreshMessage
(
devicePdu
);
log
.
info
(
"调用刷新结果:{}"
,
JSON
.
toJSONString
(
rest1
));
log
.
info
(
"调用刷新结果:{}"
,
JSON
.
toJSONString
(
rest1
));
refresh
=
false
;
refresh
=
false
;
//刷新站点树
cacheService
.
del
(
USER_SITE_TREE
);
this
.
updateAllSiteTree
(
context
);
}
}
}
}
...
...
base-manager/src/main/java/com/mortals/xhx/module/window/model/vo/WindowVo.java
View file @
dae8bffc
...
@@ -34,4 +34,11 @@ public class WindowVo extends BaseEntityLong {
...
@@ -34,4 +34,11 @@ public class WindowVo extends BaseEntityLong {
/** 序号,主键,自增长排除列表 */
/** 序号,主键,自增长排除列表 */
private
List
<
Long
>
idNotList
;
private
List
<
Long
>
idNotList
;
/** 开始 创建时间 */
private
String
createTimeStart
;
/** 结束 创建时间 */
private
String
createTimeEnd
;
}
}
\ No newline at end of file
base-manager/src/main/resources/bootstrap.yml
View file @
dae8bffc
...
@@ -45,4 +45,5 @@ application:
...
@@ -45,4 +45,5 @@ application:
auth
:
auth
:
unloginUrl
:
/refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/padsign/*,/terminal/*,/resource/list,/api/asset/*,/api/*,/flow/*,/uploads/*,/project/file/*,/file/*,/assessment/*
unloginUrl
:
/refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/padsign/*,/terminal/*,/resource/list,/api/asset/*,/api/*,/flow/*,/uploads/*,/project/file/*,/file/*,/assessment/*
uncheckUrl
:
/refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/padsign/*,/terminal/*,/resource/list,/api/asset/*,/api/*,/flow/*,/uploads/*,/project/file/*,/file/*,/assessment/*
uncheckUrl
:
/refresh,/error,/login/login,/login/index,/login/logout,/securitycode/createCode,/file/common/*,/test*,/padsign/*,/terminal/*,/resource/list,/api/asset/*,/api/*,/flow/*,/uploads/*,/project/file/*,/file/*,/assessment/*
dm
:
enable
:
true
base-manager/src/main/resources/config/mybatis-sqlmap-config.xml
View file @
dae8bffc
...
@@ -21,5 +21,10 @@
...
@@ -21,5 +21,10 @@
<property
name=
"enableExecutorTime"
value=
"false"
/>
<property
name=
"enableExecutorTime"
value=
"false"
/>
<property
name=
"showSql"
value=
"false"
/>
<property
name=
"showSql"
value=
"false"
/>
</plugin>
</plugin>
<!-- <plugin interceptor="com.mortals.framework.thirty.dm.DmTransInterceptor">
</plugin>-->
</plugins>
</plugins>
</configuration>
</configuration>
\ No newline at end of file
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapper.xml
View file @
dae8bffc
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
(#{appId},#{createTime},#{updateUserId},#{updateTime})
(#{appId},#{createTime},#{updateUserId},#{updateTime})
</insert>
</insert>
<!-- 批量新增 -->
<!-- 批量新增 -->
<insert
id=
"insertBatch"
parameterType=
"paramDto"
>
<insert
id=
"insertBatch"
parameterType=
"paramDto"
>
insert into mortals_sys_app_dataset
insert into mortals_sys_app_dataset
...
@@ -375,14 +376,56 @@
...
@@ -375,14 +376,56 @@
<sql
id=
"_orderCols_"
>
<sql
id=
"_orderCols_"
>
<if
test=
"orderColList != null and !orderColList.isEmpty()"
>
<if
test=
"orderColList != null and !orderColList.isEmpty()"
>
order by
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('appIdList') and conditionParamRef.appIdList.size() > 0"
>
field(a.appId,
<foreach
collection=
"conditionParamRef.appIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0"
>
field(a.updateUserId,
<foreach
collection=
"conditionParamRef.updateUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<trim
suffixOverrides=
","
suffix=
""
>
<foreach
collection=
"orderColList"
open=
""
close=
""
index=
"index"
item=
"item"
separator=
","
>
<foreach
collection=
"orderColList"
open=
""
close=
""
index=
"index"
item=
"item"
separator=
","
>
${item.colName} ${item.sortKind}
a.
${item.colName} ${item.sortKind}
</foreach>
</foreach>
</trim>
</trim>
</if>
</if>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('appIdList') and conditionParamRef.appIdList.size() > 0"
>
field(a.appId,
<foreach
collection=
"conditionParamRef.appIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0"
>
field(a.updateUserId,
<foreach
collection=
"conditionParamRef.updateUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<trim
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
<if
test=
"orderCol.containsKey('id')"
>
a.id
a.id
...
@@ -411,6 +454,8 @@
...
@@ -411,6 +454,8 @@
</if>
</if>
</trim>
</trim>
</if>
</if>
</sql>
</sql>
<sql
id=
"_group_by_"
>
<sql
id=
"_group_by_"
>
<if
test=
"groupList != null and !groupList.isEmpty()"
>
<if
test=
"groupList != null and !groupList.isEmpty()"
>
...
...
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
dae8bffc
...
@@ -15,18 +15,7 @@
...
@@ -15,18 +15,7 @@
<if
test=
"condition.appId!=null and condition.appId!=''"
>
<if
test=
"condition.appId!=null and condition.appId!=''"
>
and a.appId = #{condition.appId,jdbcType=VARCHAR}
and a.appId = #{condition.appId,jdbcType=VARCHAR}
</if>
</if>
<include
refid=
"_second_condition_"
/>
<include
refid=
"_second_condition_"
/>
<!-- <if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
and b.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>-->
</trim>
</trim>
</trim>
</trim>
</select>
</select>
...
@@ -45,54 +34,19 @@
...
@@ -45,54 +34,19 @@
and a.appId = #{condition.appId,jdbcType=VARCHAR}
and a.appId = #{condition.appId,jdbcType=VARCHAR}
</if>
</if>
<include
refid=
"_second_condition_"
/>
<include
refid=
"_second_condition_"
/>
<!-- <if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
and b.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>-->
</trim>
</trim>
</trim>
</trim>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
order by
IF
( `fieldCode` = 'top', '0', '1' ),
`fieldValue` DESC,
IF
( `fieldType` = 'date', '0', '1' ),
`fieldValue` DESC;
CASE
WHEN fieldType = 'date' THEN STR_TO_DATE(fieldValue, '%Y-%m-%d')
ELSE NULL
END
<trim
prefix=
","
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
a.id
<if
test=
'orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('appId')"
>
a.appId
<if
test=
'orderCol.appId != null and "DESC".equalsIgnoreCase(orderCol.appId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('createTime')"
>
a.createTime
<if
test=
'orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateUserId')"
>
a.updateUserId
<if
test=
'orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateTime')"
>
a.updateTime
<if
test=
'orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'
>
DESC
</if>
,
</if>
</trim>
</if>
</select>
</select>
<!-- 条件映射 -->
<!-- 条件映射 -->
...
...
base-manager/src/test/java/com/mortals/httpclient/app/AppDatasetController.http
View file @
dae8bffc
...
@@ -19,7 +19,10 @@ Content-Type: application/json
...
@@ -19,7 +19,10 @@ Content-Type: application/json
{
{
"page": 1,
"page": 1,
"size": 10
"size": 10,
"appId": 226,
"fieldCode": "top",
"fieldValue": "%%"
}
}
###自助终端应用数据集列表1
###自助终端应用数据集列表1
...
@@ -32,17 +35,21 @@ Content-Type: application/json
...
@@ -32,17 +35,21 @@ Content-Type: application/json
{
{
"fieldName": "部门",
"fieldName": "部门",
"fieldValue": "市公安局"
"fieldValue": "市公安局"
},{
},
{
"fieldName": "员工姓名",
"fieldName": "员工姓名",
"fieldValue": "%黄%"
"fieldValue": "%黄%"
},
},
{
{
"fieldValueList": ["员工姓名"]
"fieldValueList": [
"员工姓名"
]
}
}
],
],
"page": 1,
"page": 1,
"size": 10
"size": 10
}
}
...
...
base-manager/src/test/java/com/mortals/httpclient/matter/MatterController.http
View file @
dae8bffc
...
@@ -37,7 +37,11 @@ Content-Type: application/json
...
@@ -37,7 +37,11 @@ Content-Type: application/json
POST {{baseUrl}}/matter/genMatterMarkdown
POST {{baseUrl}}/matter/genMatterMarkdown
Content-Type: application/json
Content-Type: application/json
{}
{"areaCode": "510100000000",
"genFilePath": "/home/md/",
"isSub": 1
}
###基础事项列表
###基础事项列表
...
...
base-manager/src/test/java/com/mortals/httpclient/window/WindowController.http
View file @
dae8bffc
###站点部门窗口列表
###站点部门窗口列表
POST
http://112.19.80.237:11078/base/window/
list
POST
{{baseUrl}}/window/inter
list
Content-Type: application/json
Content-Type: application/json
{
{
...
@@ -8,6 +8,7 @@ Content-Type: application/json
...
@@ -8,6 +8,7 @@ Content-Type: application/json
"page":1,
"page":1,
"size":10,
"size":10,
"name": "",
"name": "",
"createTimeStart": "2024-01-01",
"fromnum": "1E%"
"fromnum": "1E%"
}
}
...
...
portal-manager/src/main/bin/deploy.sh
View file @
dae8bffc
...
@@ -65,6 +65,7 @@ build_service() {
...
@@ -65,6 +65,7 @@ build_service() {
echo
"[Service]"
>>
${
SERVICE
}
echo
"[Service]"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"ExecStartPre=-/bin/sleep 5s"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
...
...
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
View file @
dae8bffc
...
@@ -157,11 +157,13 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
...
@@ -157,11 +157,13 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
public
String
changePassword
(
@RequestBody
UserEntity
entity
)
{
public
String
changePassword
(
@RequestBody
UserEntity
entity
)
{
JSONObject
ret
=
new
JSONObject
();
JSONObject
ret
=
new
JSONObject
();
try
{
try
{
String
busiDesc
=
this
.
getModuleDesc
()
+
"密码修改"
;
String
oldPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getOldPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
String
oldPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getOldPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
String
newPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getNewPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
String
newPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getNewPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
entity
.
setOldPwd
(
oldPwd
);
entity
.
setOldPwd
(
oldPwd
);
entity
.
setNewPwd
(
newPwd
);
entity
.
setNewPwd
(
newPwd
);
service
.
updateUserPwd
(
super
.
getCurUser
().
getLoginName
(),
entity
.
getOldPwd
(),
entity
.
getNewPwd
());
service
.
updateUserPwd
(
super
.
getCurUser
().
getLoginName
(),
entity
.
getOldPwd
(),
entity
.
getNewPwd
());
recordSysLog
(
request
,
busiDesc
+
"【成功】"
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
ret
.
put
(
KEY_RESULT_MSG
,
"密码修改成功!"
);
ret
.
put
(
KEY_RESULT_MSG
,
"密码修改成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -285,11 +287,13 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
...
@@ -285,11 +287,13 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
public
String
resetPassword
(
@RequestBody
UserEntity
entity
)
{
public
String
resetPassword
(
@RequestBody
UserEntity
entity
)
{
JSONObject
ret
=
new
JSONObject
();
JSONObject
ret
=
new
JSONObject
();
try
{
try
{
String
busiDesc
=
this
.
getModuleDesc
()
+
"密码重置"
;
String
newPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getNewPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
String
newPwd
=
LoginAESUtil
.
decrypt
(
entity
.
getNewPwd
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
entity
.
setNewPwd
(
newPwd
);
entity
.
setNewPwd
(
newPwd
);
String
loginName
=
LoginAESUtil
.
decrypt
(
entity
.
getLoginName
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
String
loginName
=
LoginAESUtil
.
decrypt
(
entity
.
getLoginName
(),
AES_KEY
,
AES_IV
,
LoginAESUtil
.
AES_CBC
);
entity
.
setLoginName
(
loginName
);
entity
.
setLoginName
(
loginName
);
service
.
resetUserPwd
(
entity
.
getLoginName
(),
entity
.
getNewPwd
(),
this
.
getContext
());
service
.
resetUserPwd
(
entity
.
getLoginName
(),
entity
.
getNewPwd
(),
this
.
getContext
());
recordSysLog
(
request
,
busiDesc
+
"【成功】"
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
ret
.
put
(
KEY_RESULT_CODE
,
VALUE_RESULT_SUCCESS
);
ret
.
put
(
KEY_RESULT_MSG
,
"密码修改成功!"
);
ret
.
put
(
KEY_RESULT_MSG
,
"密码修改成功!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
smart-gateway/src/main/bin/deploy.sh
View file @
dae8bffc
...
@@ -51,6 +51,7 @@ build_service() {
...
@@ -51,6 +51,7 @@ build_service() {
echo
"[Service]"
>>
${
SERVICE
}
echo
"[Service]"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Environment=
\"
JAVA_HOME=
$JAVA_HOME
\"
"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"Type=forking"
>>
${
SERVICE
}
echo
"ExecStartPre=-/bin/sleep 5s"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStart=
${
EXECPATH
}
/bin/start.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"ExecStop=
${
EXECPATH
}
/bin/shutdown.sh"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
echo
"PrivateTmp=true"
>>
${
SERVICE
}
...
...
smart-gateway/src/main/resources/bootstrap.yml
View file @
dae8bffc
...
@@ -152,6 +152,15 @@ spring:
...
@@ -152,6 +152,15 @@ spring:
metadata
:
metadata
:
response-timeout
:
200000
response-timeout
:
200000
connect-timeout
:
200000
connect-timeout
:
200000
# 报表系统
-
id
:
bill-manager
#uri: http://192.168.0.98:21080
uri
:
lb://bill-manager
predicates
:
-
Path=/bill/**
metadata
:
response-timeout
:
200000
connect-timeout
:
200000
nacos
:
nacos
:
# Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
# Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类
discovery
:
discovery
:
...
...
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