parent
086448abc8
commit
ab353dff4c
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 备份目录
|
||||
backup_path="/usr/local/Backup"
|
||||
|
||||
# 备份日期
|
||||
date_str=`date +%Y%m%d`
|
||||
|
||||
# 备份的目录名称
|
||||
backup_path=/usr/local/Backup/base_db_${date_str}
|
||||
|
||||
# 备份的文件名称
|
||||
FILE=${backup_path}.tar.gz
|
||||
|
||||
# 备份
|
||||
rm -rf ${backup_path}
|
||||
mariabackup --backup --target-dir ${backup_path} --databases="base_db mysql" --user root --password DsideaL147258369
|
||||
|
||||
# 压缩目录
|
||||
tar -czf ${FILE} ${backup_path}
|
||||
|
||||
# 删除临时目录
|
||||
rm -rf ${backup_path}
|
||||
|
||||
# 切片
|
||||
split -b 100m -d ${FILE} ${FILE}.
|
||||
|
||||
# 删除原文件
|
||||
rm -rf ${FILE}
|
||||
|
@ -0,0 +1,2 @@
|
||||
|
||||
1
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
ww
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"title": "职务与分管工作",
|
||||
"sheetName": "职务与分管工作",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "级别",
|
||||
"list_column_name": "level_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "单位类型",
|
||||
"list_column_name": "org_type_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "职务名称",
|
||||
"list_column_name": "zhiwu_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "分管工作",
|
||||
"list_column_name": "fenguan",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "县区级单位管理员登录账号",
|
||||
"sheetName": "管理员账号",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "县区管理员登录账号",
|
||||
"sheetName": "管理员账号",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "市直属单位登录账号",
|
||||
"sheetName": "管理员账号",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "市管理员登录账号",
|
||||
"sheetName": "管理员账号",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "家长登录信息",
|
||||
"sheetName": "家长登录信息",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "学生登录信息",
|
||||
"sheetName": "学生登录信息",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "学生姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "县区级单位管理员登录账号",
|
||||
"sheetName": "管理员账号",
|
||||
"titleHeight": 30,
|
||||
"rowHeight": 30,
|
||||
"showNumber": true,
|
||||
"colInfo": [
|
||||
{
|
||||
"show_column_name": "姓名",
|
||||
"list_column_name": "person_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "登录名",
|
||||
"list_column_name": "login_name",
|
||||
"width": 40
|
||||
},
|
||||
{
|
||||
"show_column_name": "原始密码",
|
||||
"list_column_name": "original_pwd",
|
||||
"width": 40
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,9 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyListCreationInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyProtectedMemberInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ExcelImportTemplate.iml" filepath="$PROJECT_DIR$/.idea/ExcelImportTemplate.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="c9117f15-5ada-42d4-a094-bacc4da713a5" name="Changes" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../../../.." />
|
||||
</component>
|
||||
<component name="ProjectId" id="29h7HfV4pVPLtlgAYRGTuSeM70z" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"last_opened_file_path": "D:/dsWork/baseServiceJava/src/main/resource/Py"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="c9117f15-5ada-42d4-a094-bacc4da713a5" name="Changes" comment="" />
|
||||
<created>1653553376213</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1653553376213</updated>
|
||||
<workItem from="1653553377383" duration="14000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
s
|
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.7" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,9 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyListCreationInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
<inspection_tool class="PyProtectedMemberInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/Py.iml" filepath="$PROJECT_DIR$/.idea/Py.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,223 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Awesome-pyecharts</title>
|
||||
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="ac92311eb4e242ad82b430e9c9b2aff8" class="chart-container" style="width:900px; height:500px;"></div>
|
||||
<script>
|
||||
var chart_ac92311eb4e242ad82b430e9c9b2aff8 = echarts.init(
|
||||
document.getElementById('ac92311eb4e242ad82b430e9c9b2aff8'), 'white', {renderer: 'canvas'});
|
||||
var option_ac92311eb4e242ad82b430e9c9b2aff8 = {
|
||||
"animation": true,
|
||||
"animationThreshold": 2000,
|
||||
"animationDuration": 1000,
|
||||
"animationEasing": "cubicOut",
|
||||
"animationDelay": 0,
|
||||
"animationDurationUpdate": 300,
|
||||
"animationEasingUpdate": "cubicOut",
|
||||
"animationDelayUpdate": 0,
|
||||
"color": [
|
||||
"#c23531",
|
||||
"#2f4554",
|
||||
"#61a0a8",
|
||||
"#d48265",
|
||||
"#749f83",
|
||||
"#ca8622",
|
||||
"#bda29a",
|
||||
"#6e7074",
|
||||
"#546570",
|
||||
"#c4ccd3",
|
||||
"#f05b72",
|
||||
"#ef5b9c",
|
||||
"#f47920",
|
||||
"#905a3d",
|
||||
"#fab27b",
|
||||
"#2a5caa",
|
||||
"#444693",
|
||||
"#726930",
|
||||
"#b2d235",
|
||||
"#6d8346",
|
||||
"#ac6767",
|
||||
"#1d953f",
|
||||
"#6950a1",
|
||||
"#918597"
|
||||
],
|
||||
"series": [
|
||||
{
|
||||
"type": "bar",
|
||||
"name": "\u5546\u5bb6A",
|
||||
"legendHoverLink": true,
|
||||
"data": [
|
||||
114,
|
||||
55,
|
||||
27,
|
||||
101,
|
||||
125,
|
||||
27,
|
||||
105
|
||||
],
|
||||
"showBackground": false,
|
||||
"barMinHeight": 0,
|
||||
"barCategoryGap": "20%",
|
||||
"barGap": "30%",
|
||||
"large": false,
|
||||
"largeThreshold": 400,
|
||||
"seriesLayoutBy": "column",
|
||||
"datasetIndex": 0,
|
||||
"clip": true,
|
||||
"zlevel": 0,
|
||||
"z": 2,
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "right",
|
||||
"margin": 8
|
||||
},
|
||||
"rippleEffect": {
|
||||
"show": true,
|
||||
"brushType": "stroke",
|
||||
"scale": 2.5,
|
||||
"period": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "bar",
|
||||
"name": "\u5546\u5bb6B",
|
||||
"legendHoverLink": true,
|
||||
"data": [
|
||||
57,
|
||||
134,
|
||||
137,
|
||||
129,
|
||||
145,
|
||||
60,
|
||||
49
|
||||
],
|
||||
"showBackground": false,
|
||||
"barMinHeight": 0,
|
||||
"barCategoryGap": "20%",
|
||||
"barGap": "30%",
|
||||
"large": false,
|
||||
"largeThreshold": 400,
|
||||
"seriesLayoutBy": "column",
|
||||
"datasetIndex": 0,
|
||||
"clip": true,
|
||||
"zlevel": 0,
|
||||
"z": 2,
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "right",
|
||||
"margin": 8
|
||||
},
|
||||
"rippleEffect": {
|
||||
"show": true,
|
||||
"brushType": "stroke",
|
||||
"scale": 2.5,
|
||||
"period": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
"\u5546\u5bb6A",
|
||||
"\u5546\u5bb6B"
|
||||
],
|
||||
"selected": {
|
||||
"\u5546\u5bb6A": true,
|
||||
"\u5546\u5bb6B": true
|
||||
},
|
||||
"show": true,
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"itemWidth": 25,
|
||||
"itemHeight": 14
|
||||
}
|
||||
],
|
||||
"tooltip": {
|
||||
"show": true,
|
||||
"trigger": "item",
|
||||
"triggerOn": "mousemove|click",
|
||||
"axisPointer": {
|
||||
"type": "line"
|
||||
},
|
||||
"showContent": true,
|
||||
"alwaysShowContent": false,
|
||||
"showDelay": 0,
|
||||
"hideDelay": 100,
|
||||
"textStyle": {
|
||||
"fontSize": 14
|
||||
},
|
||||
"borderWidth": 0,
|
||||
"padding": 5
|
||||
},
|
||||
"xAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"yAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
},
|
||||
"data": [
|
||||
"\u886c\u886b",
|
||||
"\u6bdb\u8863",
|
||||
"\u9886\u5e26",
|
||||
"\u88e4\u5b50",
|
||||
"\u98ce\u8863",
|
||||
"\u9ad8\u8ddf\u978b",
|
||||
"\u889c\u5b50"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": [
|
||||
{
|
||||
"text": "Bar-\u6d4b\u8bd5\u6e32\u67d3\u56fe\u7247",
|
||||
"padding": 5,
|
||||
"itemGap": 10
|
||||
}
|
||||
]
|
||||
};
|
||||
chart_ac92311eb4e242ad82b430e9c9b2aff8.setOption(option_ac92311eb4e242ad82b430e9c9b2aff8);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
After Width: | Height: | Size: 84 KiB |
Binary file not shown.
@ -0,0 +1,25 @@
|
||||
from snapshot_selenium import snapshot as driver
|
||||
|
||||
from pyecharts import options as opts
|
||||
from pyecharts.charts import Bar
|
||||
from pyecharts.render import make_snapshot
|
||||
|
||||
|
||||
def bar_chart() -> Bar:
|
||||
c = (
|
||||
Bar()
|
||||
.add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
|
||||
.add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105])
|
||||
.add_yaxis("商家B", [57, 134, 137, 129, 145, 60, 49])
|
||||
.reversal_axis()
|
||||
.set_series_opts(label_opts=opts.LabelOpts(position="right"))
|
||||
.set_global_opts(title_opts=opts.TitleOpts(title="Bar-测试渲染图片"))
|
||||
)
|
||||
return c
|
||||
|
||||
|
||||
# 输出png文件(用于在ppt中静态展现)
|
||||
make_snapshot(driver, bar_chart().render(), "bar.png")
|
||||
|
||||
# 输出html(用于在ppt中动态展现)
|
||||
bar_chart().render("bar.html")
|
@ -0,0 +1,223 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Awesome-pyecharts</title>
|
||||
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="984c3bcdefe44d48979d74cf3c305590" class="chart-container" style="width:900px; height:500px;"></div>
|
||||
<script>
|
||||
var chart_984c3bcdefe44d48979d74cf3c305590 = echarts.init(
|
||||
document.getElementById('984c3bcdefe44d48979d74cf3c305590'), 'white', {renderer: 'canvas'});
|
||||
var option_984c3bcdefe44d48979d74cf3c305590 = {
|
||||
"animation": true,
|
||||
"animationThreshold": 2000,
|
||||
"animationDuration": 1000,
|
||||
"animationEasing": "cubicOut",
|
||||
"animationDelay": 0,
|
||||
"animationDurationUpdate": 300,
|
||||
"animationEasingUpdate": "cubicOut",
|
||||
"animationDelayUpdate": 0,
|
||||
"color": [
|
||||
"#c23531",
|
||||
"#2f4554",
|
||||
"#61a0a8",
|
||||
"#d48265",
|
||||
"#749f83",
|
||||
"#ca8622",
|
||||
"#bda29a",
|
||||
"#6e7074",
|
||||
"#546570",
|
||||
"#c4ccd3",
|
||||
"#f05b72",
|
||||
"#ef5b9c",
|
||||
"#f47920",
|
||||
"#905a3d",
|
||||
"#fab27b",
|
||||
"#2a5caa",
|
||||
"#444693",
|
||||
"#726930",
|
||||
"#b2d235",
|
||||
"#6d8346",
|
||||
"#ac6767",
|
||||
"#1d953f",
|
||||
"#6950a1",
|
||||
"#918597"
|
||||
],
|
||||
"series": [
|
||||
{
|
||||
"type": "bar",
|
||||
"name": "\u5546\u5bb6A",
|
||||
"legendHoverLink": true,
|
||||
"data": [
|
||||
114,
|
||||
55,
|
||||
27,
|
||||
101,
|
||||
125,
|
||||
27,
|
||||
105
|
||||
],
|
||||
"showBackground": false,
|
||||
"barMinHeight": 0,
|
||||
"barCategoryGap": "20%",
|
||||
"barGap": "30%",
|
||||
"large": false,
|
||||
"largeThreshold": 400,
|
||||
"seriesLayoutBy": "column",
|
||||
"datasetIndex": 0,
|
||||
"clip": true,
|
||||
"zlevel": 0,
|
||||
"z": 2,
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "right",
|
||||
"margin": 8
|
||||
},
|
||||
"rippleEffect": {
|
||||
"show": true,
|
||||
"brushType": "stroke",
|
||||
"scale": 2.5,
|
||||
"period": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "bar",
|
||||
"name": "\u5546\u5bb6B",
|
||||
"legendHoverLink": true,
|
||||
"data": [
|
||||
57,
|
||||
134,
|
||||
137,
|
||||
129,
|
||||
145,
|
||||
60,
|
||||
49
|
||||
],
|
||||
"showBackground": false,
|
||||
"barMinHeight": 0,
|
||||
"barCategoryGap": "20%",
|
||||
"barGap": "30%",
|
||||
"large": false,
|
||||
"largeThreshold": 400,
|
||||
"seriesLayoutBy": "column",
|
||||
"datasetIndex": 0,
|
||||
"clip": true,
|
||||
"zlevel": 0,
|
||||
"z": 2,
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "right",
|
||||
"margin": 8
|
||||
},
|
||||
"rippleEffect": {
|
||||
"show": true,
|
||||
"brushType": "stroke",
|
||||
"scale": 2.5,
|
||||
"period": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
"\u5546\u5bb6A",
|
||||
"\u5546\u5bb6B"
|
||||
],
|
||||
"selected": {
|
||||
"\u5546\u5bb6A": true,
|
||||
"\u5546\u5bb6B": true
|
||||
},
|
||||
"show": true,
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"itemWidth": 25,
|
||||
"itemHeight": 14
|
||||
}
|
||||
],
|
||||
"tooltip": {
|
||||
"show": true,
|
||||
"trigger": "item",
|
||||
"triggerOn": "mousemove|click",
|
||||
"axisPointer": {
|
||||
"type": "line"
|
||||
},
|
||||
"showContent": true,
|
||||
"alwaysShowContent": false,
|
||||
"showDelay": 0,
|
||||
"hideDelay": 100,
|
||||
"textStyle": {
|
||||
"fontSize": 14
|
||||
},
|
||||
"borderWidth": 0,
|
||||
"padding": 5
|
||||
},
|
||||
"xAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"yAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
},
|
||||
"data": [
|
||||
"\u886c\u886b",
|
||||
"\u6bdb\u8863",
|
||||
"\u9886\u5e26",
|
||||
"\u88e4\u5b50",
|
||||
"\u98ce\u8863",
|
||||
"\u9ad8\u8ddf\u978b",
|
||||
"\u889c\u5b50"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": [
|
||||
{
|
||||
"text": "Bar-\u6d4b\u8bd5\u6e32\u67d3\u56fe\u7247",
|
||||
"padding": 5,
|
||||
"itemGap": 10
|
||||
}
|
||||
]
|
||||
};
|
||||
chart_984c3bcdefe44d48979d74cf3c305590.setOption(option_984c3bcdefe44d48979d74cf3c305590);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
# 分类名称
|
||||
# LeiXing = []
|
||||
# 城区
|
||||
# CityArea = []
|
||||
# 镇区
|
||||
# ZhenArea = []
|
||||
|
||||
from pyecharts import options as opts
|
||||
from pyecharts.charts import Bar
|
||||
|
||||
c = (
|
||||
Bar()
|
||||
.add_xaxis(LeiXing)
|
||||
.add_yaxis("城区", CityArea)
|
||||
.add_yaxis("乡镇", ZhenArea)
|
||||
.set_global_opts(title_opts=opts.TitleOpts(title="项目单位情况", subtitle=""))
|
||||
.dump_options()
|
||||
)
|
||||
print(c)
|
Binary file not shown.
@ -0,0 +1,26 @@
|
||||
#namespace("clearDataBase")
|
||||
#sql("clearAll")
|
||||
truncate table t_base_class;
|
||||
truncate table t_base_graduation;
|
||||
truncate table t_base_organization;
|
||||
truncate table t_import_student_by_excel;
|
||||
truncate table t_import_teacher_by_excel;
|
||||
truncate table t_person_duty_charge;
|
||||
truncate table t_sys_account_mount;
|
||||
truncate table t_transfer_apply;
|
||||
truncate table t_sys_loginperson;
|
||||
truncate table t_base_app_visiable;
|
||||
#end
|
||||
|
||||
#sql("set_install_area")
|
||||
update t_base_global set global_value=? where global_code='install_area'
|
||||
#end
|
||||
|
||||
#sql("setPwd")
|
||||
update t_sys_loginperson set original_pwd=?,pwd=?,pwdmd5=? where login_name=?
|
||||
#end
|
||||
|
||||
#sql("getAreaByCityId")
|
||||
select * from t_dm_area where city_id=?
|
||||
#end
|
||||
#end
|
@ -0,0 +1,62 @@
|
||||
-- 应用接入命名空间
|
||||
#namespace("app")
|
||||
-- 根据appid获取app信息
|
||||
#sql("getAppInfoByAppid")
|
||||
select t1.appid,t1.appkey,t1.appname,t1.sort_id,t1.system_type_id,t1.create_time,t1.update_ts,t1.bureau_id,t1.developer,
|
||||
(select t2.org_name from t_base_organization as t2 where t1.bureau_id=t2.org_id) as bureau_name,
|
||||
(select t2.system_type_name from t_dm_integrated_system_type as t2 where t2.system_type_id=t1.system_type_id) as system_type_name,
|
||||
t1.is_system from t_base_app as t1 where appid=?
|
||||
#end
|
||||
|
||||
-- 获取应用系统的列表
|
||||
#sql("getAppList")
|
||||
select t1.appid,t1.appkey,t1.appname,t1.sort_id,t1.system_type_id,t1.create_time,t1.update_ts,bureau_id,developer,
|
||||
is_system,(select t2.system_type_name from t_dm_integrated_system_type as t2 where t2.system_type_id=t1.system_type_id)
|
||||
as system_type_name,
|
||||
(case when (select count(*) as c from t_integrated_system as t2 where t2.appid=t1.appid)>0 then 1 else 0 end)
|
||||
as integrated_exist,
|
||||
(case when (select count(*) as c from t_datashare_publish as t2 where t2.appid=t1.appid)>0 then 1 else 0 end)
|
||||
as publish_exist,
|
||||
(case when (select count(*) as c from t_datashare_subscribe as t2 where t2.appid=t1.appid)>0 then 1 else 0 end)
|
||||
as subscribe_exist,
|
||||
t1.b_use from t_base_app as t1 order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 获取集成系统的系统类型
|
||||
#sql("getIntegratedSystemType")
|
||||
select system_type_id,system_type_name from t_dm_integrated_system_type
|
||||
#end
|
||||
|
||||
-- 通过appid 获取app的info信息
|
||||
#sql("getAppInfo")
|
||||
select appid,appkey,appname,sort_id,system_type_id,create_time,update_ts,bureau_id,developer,is_system from t_base_app
|
||||
where appid=?
|
||||
#end
|
||||
|
||||
-- 设置app为禁用或启用
|
||||
#sql("changeAppStatus")
|
||||
update t_base_app set b_use=ABS(b_use-1) where appid=?
|
||||
#end
|
||||
|
||||
-- 通过appid清空它的发布系统配置
|
||||
#sql("deletePublishByAppid")
|
||||
delete from t_datashare_publish where appid=?
|
||||
#end
|
||||
|
||||
-- 通过appid清空它的订阅系统配置
|
||||
#sql("deleteSubscribeByAppid")
|
||||
delete from t_datashare_subscribe where appid=?
|
||||
#end
|
||||
|
||||
-- 删除一个集成的系统(可视范围表)
|
||||
#sql("deleteVisiableByAppid")
|
||||
delete from t_base_app_visiable where appid=?
|
||||
#end
|
||||
|
||||
--按系统获取系统与可视范围的关系
|
||||
#sql("appid_visible")
|
||||
select t1.id,t1.appid,t1.city_id,t1.area_id,t1.bureau_id,t1.level_id,t1.update_ts,
|
||||
(select t2.org_name from t_base_organization as t2 where t1.bureau_id=t2.org_id) as bureau_name
|
||||
from t_base_app_visiable as t1 where appid=?
|
||||
#end
|
||||
#end
|
@ -0,0 +1,54 @@
|
||||
-- 班级命名空间
|
||||
#namespace("class")
|
||||
|
||||
-- 根据单位号获取下面正常班级的个数
|
||||
#sql("getClassCountByBureauId")
|
||||
select count(1) as c from t_base_class where bureau_id=? and b_use=1
|
||||
#end
|
||||
|
||||
-- 根据单位ID、学段、入学年份获取班级List
|
||||
#sql("getClassListByBureauIdStageIdEntryYear")
|
||||
select class_name from t_base_class where b_use = 1 and bureau_id= ? and stage_id = ? and entry_year = ?
|
||||
order by class_num
|
||||
#end
|
||||
|
||||
-- 获取班级列表
|
||||
#sql("getClassList")
|
||||
select class_id, class_name, ifnull(altas_name,'') as altas_name, entry_year,
|
||||
(select count(1) from t_sys_loginperson t2 where t2.b_use = 1 and identity_id = 6 and t2.s_class_id = t1.class_id)
|
||||
as studentcount, bureau_id
|
||||
from t_base_class t1 where b_use = 1 and bureau_id = #para(0) and stage_id = #para(1)
|
||||
and entry_year =#para(2) order by class_num
|
||||
#end
|
||||
|
||||
-- 获取班级信息
|
||||
#sql("getClassInfoByClassId")
|
||||
select class_name,ifnull(altas_name,'') as altas_name, stage_id,entry_year, bureau_id, city_id, area_id, main_school_id
|
||||
from t_base_class where b_use = 1 and class_id = ?
|
||||
#end
|
||||
|
||||
-- 检查重名班级
|
||||
#sql("checkClassNameExists")
|
||||
select class_id from t_base_class where b_use = 1 and bureau_id = ? and stage_id = ? and entry_year = ?
|
||||
and class_name = ? and class_id <> ?
|
||||
#end
|
||||
|
||||
-- 修改班级名称
|
||||
#sql("updateClassName")
|
||||
update t_base_class set altas_name = ?,operator=?,ip_address=? where class_id = ?
|
||||
#end
|
||||
|
||||
-- 删除班级
|
||||
#sql("deleteClassById")
|
||||
update t_base_class set b_use = 0,operator=?,ip_address=?,class_code=UPPER(UUID()) where class_id = ?
|
||||
#end
|
||||
|
||||
#sql("getStudentCountByClassId")
|
||||
select person_id from t_sys_loginperson where b_use = 1 and identity_id=6 and s_class_id = ?
|
||||
#end
|
||||
|
||||
-- 获取指定单位下有哪些班级名称
|
||||
#sql("getClassName")
|
||||
select class_id,class_name,stage_id from t_base_class where bureau_id=? and b_use=1
|
||||
#end
|
||||
#end
|
@ -0,0 +1,59 @@
|
||||
-- 全局变量命名空间
|
||||
#namespace("global")
|
||||
|
||||
-- 获取全局变量的分类类型
|
||||
#sql("getGlobalType")
|
||||
select global_type_id,global_type_name from t_base_global_type
|
||||
#end
|
||||
|
||||
-- 获取所有分类
|
||||
#sql("getGlobalList")
|
||||
select global_id,global_type_id,global_code,global_value,global_name,sort_id from t_base_global order by sort_id
|
||||
#end
|
||||
|
||||
-- 检查一个globalCode是不是重复
|
||||
#sql("checkGlobalCodeCount")
|
||||
select count(1) as c from t_base_global where global_id!=? and global_code=?
|
||||
#end
|
||||
|
||||
-- 增加一个全局变量设置
|
||||
#sql("addGlobal")
|
||||
insert into t_base_global(global_type_id,global_code,global_value,global_name,sort_id) values(?,?,?,?,?)
|
||||
#end
|
||||
|
||||
-- 修改一个全局变量设置
|
||||
#sql("updateGlobalById")
|
||||
update t_base_global set global_type_id=?,global_code=?,global_value=?,global_name=?,sort_id=? where global_id=?
|
||||
#end
|
||||
|
||||
-- 删除一个全局变量设置
|
||||
#sql("delGlobalById")
|
||||
delete from t_base_global where global_id=?
|
||||
#end
|
||||
|
||||
-- 获取一个全局变量设置
|
||||
#sql("getGlobalById")
|
||||
select global_type_id,global_code,global_value,global_name from t_base_global where global_id=?
|
||||
#end
|
||||
|
||||
-- 传入一组global_code 返回对应的数据
|
||||
#sql("getGlobalByCodes")
|
||||
select global_id,global_type_id,global_code,global_value,global_name from t_base_global where global_code=?
|
||||
#end
|
||||
|
||||
-- 获取area_id通过area_name
|
||||
#sql("getAreaIdByAreaName")
|
||||
select id from t_dm_area as t2 where t2.area_name=? and parent_id=(select id from t_dm_area as t1 where t1.area_name=?)
|
||||
#end
|
||||
#sql("getAreaIdByAreaNameOnlyCityName")
|
||||
select id from t_dm_area as t1 where t1.area_name=?
|
||||
#end
|
||||
-- 保存设置安装地区
|
||||
#sql("saveInstallArea")
|
||||
update t_base_global set global_value=? where global_code='install_area'
|
||||
#end
|
||||
-- 根据全局变量的KEY获取VALUE
|
||||
#sql("getGlobalValueByKey")
|
||||
select ifnull(global_value,'') as global_value from t_base_global where global_code = ?
|
||||
#end
|
||||
#end
|
@ -0,0 +1,23 @@
|
||||
#namespace("graduation")
|
||||
|
||||
-- 获取当前年份是否已处理完毕业
|
||||
#sql("checkCurrentYearIsGraduation")
|
||||
select count(1) as count from t_base_graduation where finish_year=?
|
||||
#end
|
||||
|
||||
-- 获取需要处理的班级个数
|
||||
#sql("getNeedActionClass")
|
||||
select class_id from t_base_class where entry_year+school_length=? and b_use=1 limit ?
|
||||
#end
|
||||
|
||||
-- 修改指定班级下的学生和家长为毕业状态
|
||||
#sql("changeToGraduationByClassId")
|
||||
update t_sys_loginperson set b_use=0,status_code='07' where s_class_id=?
|
||||
#end
|
||||
|
||||
-- 修改班级为毕业状态
|
||||
#sql("changeClassBuse")
|
||||
update t_base_class set b_use=0 where class_id=?
|
||||
#end
|
||||
|
||||
#end
|
@ -0,0 +1,76 @@
|
||||
-- 菜单命名空间
|
||||
#namespace("menu")
|
||||
-- 获取获取异步接口
|
||||
#sql("selectChildAsync")
|
||||
select t1.menu_id,t1.menu_name,t1.parent_id,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id,
|
||||
(select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf
|
||||
from t_base_menu as t1 where parent_id=? order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 获取全部菜单
|
||||
#sql("selectAll")
|
||||
select t1.menu_id as id,t1.menu_name as name,t1.parent_id as pId,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id,
|
||||
(select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf
|
||||
from t_base_menu as t1 order by t1.sort_id
|
||||
#end
|
||||
-- 获取所有不为学校提供的数据
|
||||
#sql("selectNotForSchool")
|
||||
select menu_id from t_base_menu where for_school=0
|
||||
#end
|
||||
-- 获取所有不为单位提供的数据
|
||||
#sql("selectNotForBureau")
|
||||
select menu_id from t_base_menu where for_bureau=0
|
||||
#end
|
||||
|
||||
--删除指定菜单ID
|
||||
#sql("deletePrivilageByMenuId")
|
||||
delete from t_base_menu_privilage where menu_id=?
|
||||
#end
|
||||
|
||||
-- 根据菜单ID返回这个菜单的可用身份
|
||||
#sql("selectIdentityByMenuId")
|
||||
select identity_id from t_base_menu_privilage where menu_id=?
|
||||
#end
|
||||
|
||||
-- 获取指定的节点信息
|
||||
#sql("selectSingle")
|
||||
select t1.menu_id,t1.menu_name,t1.parent_id,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id,t1.for_school,t1.for_bureau,
|
||||
(select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf
|
||||
from t_base_menu as t1 where t1.menu_id=?
|
||||
#end
|
||||
|
||||
-- 通过身份获取有哪些菜单ID
|
||||
#sql("selectMenuByIdentityId")
|
||||
select menu_id from t_base_menu_privilage where identity_id=?
|
||||
union
|
||||
select 1
|
||||
#end
|
||||
|
||||
-- 查询菜单的ids
|
||||
#sql("selectMenuForIds")
|
||||
select t1.menu_id,t1.menu_name,t1.parent_id,t1.sort_id,t1.url,t1.memo,t1.create_time,t1.update_ts,t1.level_id,
|
||||
(select count(1) from t_base_menu as t2 where t1.menu_id=t2.parent_id) as is_leaf
|
||||
from t_base_menu as t1 where t1.menu_id in
|
||||
(
|
||||
#for(x:ids)
|
||||
#(for.index == 0 ? "" : ",") #para(x)
|
||||
#end
|
||||
) order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 删除指定职务+分管工作的所有菜单,准备重新设置
|
||||
#sql("deleteMenuByDutyInCharge")
|
||||
delete from t_base_principalship_menu where duties_id=#(duties_id) and in_charge_id=#(in_charge_id)
|
||||
#end
|
||||
|
||||
-- 获取指定职务+分管工作的所有菜单,用于显示
|
||||
#sql("selectMenuByDutyInCharge")
|
||||
select duties_id,in_charge_id,menu_id from t_base_principalship_menu where duties_id=? and in_charge_id=?
|
||||
#end
|
||||
|
||||
-- 人员根据职务+分管工作可见的菜单
|
||||
#sql("selectMenuByPersonId")
|
||||
select distinct menu_id from t_base_principalship_menu as t1 inner join t_person_duty_charge as t2 on t1.duties_id=t2.`duties_id`
|
||||
and t1.in_charge_id=t2.`in_charge_id` where t2.person_id=? and t2.b_use=1
|
||||
#end
|
||||
#end
|
@ -0,0 +1,67 @@
|
||||
#namespace("student")
|
||||
|
||||
-- 根据学生的ID获取家长的信息
|
||||
#sql("getParentByChildId")
|
||||
select * from t_sys_loginperson where p_child_id=?
|
||||
#end
|
||||
|
||||
-- 获取学生列表
|
||||
#sql("getStudentOrParentList")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
t1.pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = #para(0)
|
||||
AND t1.s_class_id = #para(1) order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 获取学生列表按学生姓名
|
||||
#sql("getStudentOrParentListByPersonName")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = #para(0)
|
||||
AND t1.s_class_id = #para(1)
|
||||
AND t1.person_name LIKE concat('%',#para(2),'%') order by t1.sort_id
|
||||
#end
|
||||
|
||||
|
||||
-- 根据学生ID获取学生信息
|
||||
#sql("getStudentInfoByPersonId")
|
||||
SELECT
|
||||
person_id,
|
||||
person_name,
|
||||
IFNULL(xb, '1') AS xb,
|
||||
IFNULL(mz, '01') AS mz,
|
||||
idcard_code,
|
||||
birthday,
|
||||
zzmm,
|
||||
(case when s_xjh='-1' then '' else s_xjh end) AS xjh,
|
||||
(case when s_xjfh='-1' then '' else s_xjfh end) AS xjfh,
|
||||
s_source AS stu_source,
|
||||
sort_id
|
||||
FROM
|
||||
t_sys_loginperson
|
||||
WHERE
|
||||
b_use = 1
|
||||
AND person_id = ?
|
||||
#end
|
||||
#end
|
@ -0,0 +1,91 @@
|
||||
#namespace("studentYd")
|
||||
|
||||
-- 获取学生状态列表
|
||||
#sql("get_dm_status_student")
|
||||
select status_code,status_name,b_use,change_person_b_use,is_show from t_dm_status_student where b_use=1 and is_show=1
|
||||
#end
|
||||
|
||||
-- 获取学生状态列表ByCode
|
||||
#sql("get_dm_status_student_by_code")
|
||||
select status_code,status_name,b_use,change_person_b_use,is_show from t_dm_status_student where b_use=1 and is_show=1 and status_code=?
|
||||
#end
|
||||
|
||||
-- 修改人员主表的人员状态
|
||||
#sql("updateStudentStatus")
|
||||
update t_sys_loginperson set b_use=?,status_code=?,operator=?,ip_address=? where person_id=?
|
||||
#end
|
||||
|
||||
|
||||
-- 判断一个学生是不是可以申请调转
|
||||
#sql("checkAllowStudentTransferApply")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.b_use=1 and t1.person_id=? order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取学生调动申请列表
|
||||
#sql("getStudentTransferApplyList")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.class_name from t_base_class as t2 where t2.class_id=(select t3.s_class_id from t_sys_loginperson as t3 where t3.person_id=t1.person_id)) as class_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.source_bureau_id=#para(0) and t1.person_name LIKE concat('%',#para(1),'%')
|
||||
and t1.b_use=1 and t1.identity_id=6 order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取学生调动反馈列表
|
||||
#sql("getStudentTransferEchoList")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.class_name from t_base_class as t2 where t2.class_id=(select t3.s_class_id from t_sys_loginperson as t3 where t3.person_id=t1.person_id)) as class_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.target_bureau_id=#para(0)
|
||||
and t1.person_name LIKE concat('%',#para(1),'%') and t1.b_use=1 and t1.identity_id=6
|
||||
order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取指定ID的学生调转申请
|
||||
#sql("getStudentTransferInfoById")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.class_name from t_base_class as t2 where t2.class_id=(select t3.s_class_id from t_sys_loginperson as t3 where t3.person_id=t1.person_id)) as class_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where id=?
|
||||
#end
|
||||
|
||||
-- 删除指定的调转ID
|
||||
#sql("deleteTransferInfoById")
|
||||
update t_transfer_apply set b_use=0,operator=?,ip_address=? where id=?
|
||||
#end
|
||||
|
||||
-- 获取学生调转申请的未读取个数
|
||||
#sql("getNewStudentTransferApplyCount")
|
||||
select count(1) as c from t_transfer_apply where b_use=1 and target_is_read=0 and status_id=1
|
||||
and target_bureau_id=? and identity_id=6
|
||||
#end
|
||||
|
||||
-- 教师调转提醒(收到新的回执)
|
||||
#sql("getNewStudentTransferEchoCount")
|
||||
select count(1) as c from t_transfer_apply where b_use=1 and source_is_read=0 and status_id>1
|
||||
and source_bureau_id=? and identity_id=6
|
||||
#end
|
||||
|
||||
-- 调转的三种状态
|
||||
#sql("getTransferApplyStatus")
|
||||
select apply_status_id,apply_status_name,for_check from t_transfer_apply_status where for_check=1
|
||||
#end
|
||||
|
||||
--判断一个人是不是处于待审核状态
|
||||
#sql("getPersonStatus")
|
||||
select count(*) as c from t_transfer_apply where person_id=? and b_use=1 and status_id=1
|
||||
#end
|
||||
#end
|
@ -0,0 +1,90 @@
|
||||
#namespace("teacher")
|
||||
|
||||
-- 通过部门ID获取教师列表
|
||||
#sql("getTeacherListByOrgId")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
t1.pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = 5
|
||||
AND t1.org_id = #para(0) order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 通过单位ID获取教师列表
|
||||
#sql("getTeacherListByBureauId")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
t1.pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = 5
|
||||
AND t1.bureau_id = #para(0) order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 按教师姓名获取教师列表
|
||||
#sql("getTeacherListByOrgIdPersonName")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
t1.pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = 5
|
||||
AND t1.org_id = #para(0)
|
||||
AND t1.person_name LIKE concat('%',#para(1),'%') order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 按教师姓名,通过单位 获取教师列表
|
||||
#sql("getTeacherListByPersonNameAndBureauId")
|
||||
SELECT
|
||||
t1.person_id,
|
||||
t1.person_name,
|
||||
t1.login_name,
|
||||
IFNULL(t1.xb, '1') AS xb,
|
||||
t1.original_pwd,
|
||||
t1.pwd,
|
||||
(select count(*) as c from t_transfer_apply as t2 where t2.person_id=t1.person_id and t2.status_id=1 and t2.b_use=1)
|
||||
as apply_status
|
||||
FROM
|
||||
t_sys_loginperson as t1
|
||||
WHERE
|
||||
t1.b_use = 1
|
||||
AND t1.identity_id = 5
|
||||
AND t1.bureau_id = #para(0)
|
||||
AND t1.person_name LIKE concat('%',#para(1),'%') order by t1.sort_id
|
||||
#end
|
||||
|
||||
-- 更改人员的部门
|
||||
#sql("changeOrgByPersonIdAndOrgId")
|
||||
update t_sys_loginperson set org_id=?,operator=?,ip_address=? where person_id=?
|
||||
#end
|
||||
|
||||
--删除指定人员的职务与分管工作
|
||||
#sql("deleteDutuesAndChargeByPersonId")
|
||||
update t_person_duty_charge set b_use=0,operator=?,ip_address=? where person_id=?
|
||||
#end
|
||||
#end
|
@ -0,0 +1,88 @@
|
||||
#namespace("teacherYd")
|
||||
|
||||
-- 获取教师状态列表
|
||||
#sql("get_dm_status_teacher")
|
||||
select status_code,status_name,b_use,change_person_b_use,is_show from t_dm_status_teacher where b_use=1 and is_show=1
|
||||
#end
|
||||
|
||||
-- 获取教师状态列表ByCode
|
||||
#sql("get_dm_status_teacher_by_code")
|
||||
select status_code,status_name,b_use,change_person_b_use from t_dm_status_teacher where b_use=1 and is_show=1 and status_code=?
|
||||
#end
|
||||
|
||||
-- 修改人员主表的人员状态
|
||||
#sql("updateTeacherStatus")
|
||||
update t_sys_loginperson set b_use=?,status_code=?,operator=?,ip_address=? where person_id=?
|
||||
#end
|
||||
|
||||
|
||||
-- 判断一个教师是不是可以申请调转
|
||||
#sql("checkAllowTeacherTransferApply")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.b_use=1 and t1.person_id=? order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取教师调动申请列表
|
||||
#sql("getTeacherTransferApplyList")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.source_bureau_id=#para(0) and t1.person_name LIKE concat('%',#para(1),'%')
|
||||
and t1.b_use=1 and t1.identity_id=5 order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取教师调动反馈列表
|
||||
#sql("getTeacherTransferEchoList")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where t1.target_bureau_id=#para(0)
|
||||
and t1.person_name LIKE concat('%',#para(1),'%') and t1.b_use=1 and t1.identity_id=5
|
||||
order by t1.apply_time desc
|
||||
#end
|
||||
|
||||
-- 获取指定ID的教师调转申请
|
||||
#sql("getTeacherTransferInfoById")
|
||||
select t1.id,t1.source_bureau_id,t1.target_bureau_id,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.source_bureau_id) as source_bureau_name,
|
||||
(select t2.org_name from t_base_organization as t2 where t2.org_id=t1.target_bureau_id) as target_bureau_name,
|
||||
t1.identity_id,t1.person_id,t1.person_name,t1.status_id,t1.target_is_read,t1.source_is_read,t1.apply_time,
|
||||
t1.apply_message,t1.echo_time,t1.echo_message,t1.b_use
|
||||
from t_transfer_apply as t1 where id=?
|
||||
#end
|
||||
|
||||
-- 删除指定的调转ID
|
||||
#sql("deleteTransferInfoById")
|
||||
update t_transfer_apply set b_use=0,operator=?,ip_address=? where id=?
|
||||
#end
|
||||
|
||||
-- 获取教师调转申请的未读取个数
|
||||
#sql("getNewTeacherTransferApplyCount")
|
||||
select count(1) as c from t_transfer_apply where b_use=1 and target_is_read=0 and status_id=1 and
|
||||
target_bureau_id=? and identity_id=5
|
||||
#end
|
||||
|
||||
-- 教师调转提醒(收到新的回执)
|
||||
#sql("getNewTeacherTransferEchoCount")
|
||||
select count(1) as c from t_transfer_apply where b_use=1 and source_is_read=0 and status_id>1
|
||||
and source_bureau_id=? and identity_id=5
|
||||
#end
|
||||
|
||||
-- 调转的三种状态
|
||||
#sql("getTransferApplyStatus")
|
||||
select apply_status_id,apply_status_name,for_check from t_transfer_apply_status where for_check=1
|
||||
#end
|
||||
|
||||
--判断一个人是不是处于待审核状态
|
||||
#sql("getPersonStatus")
|
||||
select count(*) as c from t_transfer_apply where person_id=? and b_use=1 and status_id=1
|
||||
#end
|
||||
#end
|
@ -0,0 +1,6 @@
|
||||
-- 应用接入命名空间
|
||||
#namespace("yp")
|
||||
#sql("listView")
|
||||
select * from t_yp_record where length(xb)>0
|
||||
#end
|
||||
#end
|
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /usr/local/tomcat8
|
||||
#
|
||||
rm -rf webapps.tar.gz
|
||||
|
||||
# 打包
|
||||
tar -czf webapps.tar.gz webapps
|
||||
# 准备华为云登录帐号
|
||||
/usr/local/obsutil/obsutil config -i=WAFBGJACKDOQZDH1MKZ1 -k=dlWTUbqgCICaYJG3n0Rot4jXaen2HnfFtMVxiPEo -e=obs.cn-north-1.myhuaweicloud.com
|
||||
# 上传到华为云
|
||||
/usr/local/obsutil/obsutil cp /usr/local/tomcat8/webapps.tar.gz obs://dsideal/HuangHai/webapps.tar.gz
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
date_str=`date +%Y%m%d%H%M%S`
|
||||
cd /home/Backup
|
||||
mysqldump -h localhost -u root --password=DsideaL147258369 -R -E -e --max_allowed_packet=1048576 --net_buffer_length=16384 cczhichengtoupiao | gzip > /home/Backup/cczhichengtoupiao_$date_str.sql.gz
|
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动入口类,该脚本文件用于别的项目时要改这里
|
||||
MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
|
||||
|
||||
# Java 命令行参数,根据需要开启下面的配置,改成自己需要的,注意等号前后不能有空格
|
||||
export JAVA_HOME=/usr/java/jdk
|
||||
export JRE_HOME=${JAVA_HOME}/jre
|
||||
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
|
||||
export PATH=${JAVA_HOME}/bin:$PATH
|
||||
|
||||
#JAVA_OPTS="-Xms1024m -Xmx2048m"
|
||||
JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=5555 -Xms1024m -Xmx2048m"
|
||||
|
||||
# 生成 class path 值
|
||||
CP=.:/usr/local/tomcat8/webapps/FengHuang/WEB-INF/lib/*
|
||||
|
||||
# 运行为后台进程,并且将信息输出到 logback.xml配置的日志文件位置
|
||||
java -Xverify:none ${JAVA_OPTS} -cp ${CP} ${MAIN_CLASS}
|
||||
|
@ -0,0 +1,32 @@
|
||||
_ooOoo_
|
||||
o8888888o
|
||||
88" . "88
|
||||
(| -_- |)
|
||||
O\ = /O
|
||||
____/`---'\____
|
||||
. ' \\| |// `.
|
||||
/ \\||| : |||// \
|
||||
/ _||||| -:- |||||- \
|
||||
| | \\\ - /// | |
|
||||
| \_| ''\---/'' | |
|
||||
\ .-\__ `-` ___/-. /
|
||||
___`. .' /--.--\ `. . __
|
||||
."" '< `.___\_<|>_/___.' >'"".
|
||||
| | : `- \`.;`\ _ /`;.`/ - ` : | |
|
||||
\ \ `-. \_ __\ /__ _/ .-` / /
|
||||
======`-.____`-.___\_____/___.-`____.-'======
|
||||
`=---='
|
||||
|
||||
.............................................
|
||||
佛祖镇楼 BUG辟易
|
||||
佛曰:
|
||||
写字楼里写字间,写字间里程序员;
|
||||
程序人员写程序,又拿程序换酒钱。
|
||||
酒醒只在网上坐,酒醉还来网下眠;
|
||||
酒醉酒醒日复日,网上网下年复年。
|
||||
但愿老死电脑间,不愿鞠躬老板前;
|
||||
奔驰宝马贵者趣,公交自行程序员。
|
||||
别人笑我忒疯癫,我笑自己命太贱;
|
||||
不见满街漂亮妹,哪个归得程序员?
|
||||
|
||||
power by http://patorjk.com/software/taag/
|
@ -0,0 +1,12 @@
|
||||
<License>
|
||||
<Data>
|
||||
<Products>
|
||||
<Product>Aspose.Total for Java</Product>
|
||||
</Products>
|
||||
<EditionType>Enterprise</EditionType>
|
||||
<SubscriptionExpiry>20991231</SubscriptionExpiry>
|
||||
<LicenseExpiry>20991231</LicenseExpiry>
|
||||
<SerialNumber>8bfe198c-7f0c-4ef8-8ff0-acc3237bf0d7</SerialNumber>
|
||||
</Data>
|
||||
<Signature>sNLLKGMUdF0r8O1kKilWAGdgfs2BvJb/2Xp8p5iuDVfZXmhppo+d0Ran1P9TKdjV4ABwAgKXxJ3jcQTqE/2IRfqwnPf8itN8aFZlV3TJPYeD3yWE7IT55Gz6EijUpC7aKeoohTb4w2fpox58wWoF3SNp6sK6jDfiAUGEHYJ9pjU=</Signature>
|
||||
</License>
|
@ -0,0 +1,12 @@
|
||||
log4j.rootLogger=WARN, console
|
||||
log4j.appender.console=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.console.layout.conversionPattern=%5p [%t] (%F:%L) - %m%n
|
||||
|
||||
log4j.appender.mq=org.apache.rocketmq.logappender.log4j.RocketmqLog4jAppender
|
||||
log4j.appender.mq.Topic=TOPIC_MEIWEI_SMS_NOTICE_TEST
|
||||
log4j.appender.mq.Tag=PID_MEIWEI_SMS_RETRY_TIMEOUT
|
||||
log4j.appender.mq.ProducerGroup=meiwei-producer-retry
|
||||
log4j.appender.mq.NameServerAddress=127.0.0.1:9876;127.0.0.1:9877
|
||||
log4j.appender.mq.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.mq.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-4r [%t] (%F:%L) %
|
@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
set APP_BASE_PATH=%~dp0
|
||||
set CP=.;%APP_BASE_PATH%config;%APP_BASE_PATH%..\..\lib\*;
|
||||
set JAVA_OPTS=-Xms1024m -Xmx2048m
|
||||
java -Xverify:none %JAVA_OPTS% -cp %CP% %MAIN_CLASS%
|
||||
pause
|
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动入口类,该脚本文件用于别的项目时要改这里
|
||||
MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
|
||||
|
||||
# Java 命令行参数,根据需要开启下面的配置,改成自己需要的,注意等号前后不能有空格
|
||||
export JAVA_HOME=/usr/java/jdk
|
||||
export JRE_HOME=${JAVA_HOME}/jre
|
||||
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
|
||||
export PATH=${JAVA_HOME}/bin:$PATH
|
||||
|
||||
JAVA_OPTS="-Xms1024m -Xmx2048m"
|
||||
|
||||
# 生成 class path 值
|
||||
CP=.:/usr/local/tomcat8/webapps/FengHuang/WEB-INF/lib/*
|
||||
|
||||
# 运行为后台进程,并且将信息输出到 logback.xml配置的日志文件位置
|
||||
nohup java -Xverify:none ${JAVA_OPTS} -cp ${CP} ${MAIN_CLASS} >> /dev/null 2>&1 &
|
||||
|
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 启动入口类,该脚本文件用于别的项目时要改这里
|
||||
MAIN_CLASS=com.dsideal.FengHuang.Start
|
||||
|
||||
# kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数
|
||||
kill -9 `pgrep -f ${MAIN_CLASS}` 2>/dev/null
|
||||
|
||||
# 以下代码与上述代码等价
|
||||
# kill $(pgrep -f ${MAIN_CLASS}) 2>/dev/null
|
Loading…
Reference in new issue