任务调度计划

This commit is contained in:
小虎 2020-03-05 19:49:47 +08:00
parent 3895d7f4f5
commit 790b3f3e7c
19 changed files with 2502 additions and 36 deletions

View File

@ -0,0 +1,182 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增任务调度')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-duty_schedule-add">
<div class="form-group">
<label class="col-sm-3 control-label is-required">null</label>
<div class="col-sm-8">
<input name="id" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">任务名称:</label>
<div class="col-sm-8">
<input name="jobName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">模型名称,多个用;分割:</label>
<div class="col-sm-8">
<textarea name="modelName" class="form-control" required></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">机型,多个用;分割,为空表示不设限制:</label>
<div class="col-sm-8">
<select name="acType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">飞机号,多个用;分割,为空表示不设限制:</label>
<div class="col-sm-8">
<textarea name="acReg" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">对应版本:</label>
<div class="col-sm-8">
<input name="versionId" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">开始日期,为空表示不设限制:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="startDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">结束日期,为空表示不设限制:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="endDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务描述:</label>
<div class="col-sm-8">
<input name="jobDesc" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">具体任务的执行状态:</label>
<div class="col-sm-8">
<input name="isExcute" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务状态,正常/异常/</label>
<div class="col-sm-8">
<div class="radio-box">
<input type="radio" name="jobStatus" value="">
<label th:for="jobStatus" th:text="未知"></label>
</div>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">执行周期:</label>
<div class="col-sm-8">
<textarea name="excuteFreq" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="createDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="updateDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remarks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">job配置id</label>
<div class="col-sm-8">
<input name="jobConf" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">程序执行状态,-2,定时器停止;-1定时器执行</label>
<div class="col-sm-8">
<div class="radio-box">
<input type="radio" name="executeStatus" value="">
<label th:for="executeStatus" th:text="未知"></label>
</div>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
var prefix = ctx + "arj21/duty_schedule"
$("#form-duty_schedule-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-duty_schedule-add').serialize());
}
}
$("input[name='startDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='endDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updateDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,176 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('任务调度列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<p>任务名称:</p>
<input type="text" name="jobName"/>
</li>
<li>
<p>机型,多个用;分割,为空表示不设限制:</p>
<select name="acType" th:with="type=${@dict.getType('')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<p>对应版本:</p>
<input type="text" name="versionId"/>
</li>
<li class="select-time">
<p>开始日期,为空表示不设限制:</p>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginStartDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endStartDate]"/>
</li>
<li class="select-time">
<p>结束日期,为空表示不设限制:</p>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginEndDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endEndDate]"/>
</li>
<li>
<p>任务描述:</p>
<input type="text" name="jobDesc"/>
</li>
<li>
<p>具体任务的执行状态:</p>
<input type="text" name="isExcute"/>
</li>
<li>
<p>任务状态,正常/异常/</p>
<select name="jobStatus">
<option value="">所有</option>
</select>
</li>
<li class="select-time">
<p>创建时间:</p>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreateDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreateDate]"/>
</li>
<li class="select-time">
<p>更新时间:</p>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUpdateDate]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUpdateDate]"/>
</li>
<li>
<p>备注:</p>
<input type="text" name="remarks"/>
</li>
<li>
<p>job配置id</p>
<input type="text" name="jobConf"/>
</li>
<li>
<p>程序执行状态,-2,定时器停止;-1定时器执行</p>
<select name="executeStatus">
<option value="">所有</option>
</select>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="arj21:duty_schedule:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="arj21:duty_schedule:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="arj21:duty_schedule:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="arj21:duty_schedule:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('arj21:duty_schedule:edit')}]];
var removeFlag = [[${@permission.hasPermi('arj21:duty_schedule:remove')}]];
var prefix = ctx + "arj21/duty_schedule";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "任务调度",
columns: [{
checkbox: true
},
{
field : 'id',
title : 'null'
},
{
field : 'jobName',
title : '任务名称'
},
{
field : 'acType',
title : '机型,多个用;分割,为空表示不设限制'
},
{
field : 'jobDesc',
title : '任务描述'
},
{
field : 'isExcute',
title : '具体任务的执行状态'
},
{
field : 'jobStatus',
title : '任务状态,正常/异常/'
},
{
field : 'createBy',
title : '创建者'
},
{
field : 'createDate',
title : '创建时间'
},
{
field : 'updateDate',
title : '更新时间'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,171 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改任务调度')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-duty_schedule-edit" th:object="${infoDutySchedule}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">任务名称:</label>
<div class="col-sm-8">
<input name="jobName" th:field="*{jobName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">模型名称,多个用;分割:</label>
<div class="col-sm-8">
<textarea name="modelName" class="form-control" required>[[*{modelName}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">机型,多个用;分割,为空表示不设限制:</label>
<div class="col-sm-8">
<select name="acType" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">飞机号,多个用;分割,为空表示不设限制:</label>
<div class="col-sm-8">
<textarea name="acReg" class="form-control">[[*{acReg}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">对应版本:</label>
<div class="col-sm-8">
<input name="versionId" th:field="*{versionId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">开始日期,为空表示不设限制:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="startDate" th:value="${#dates.format(infoDutySchedule.startDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">结束日期,为空表示不设限制:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="endDate" th:value="${#dates.format(infoDutySchedule.endDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务描述:</label>
<div class="col-sm-8">
<input name="jobDesc" th:field="*{jobDesc}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">具体任务的执行状态:</label>
<div class="col-sm-8">
<input name="isExcute" th:field="*{isExcute}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务状态,正常/异常/</label>
<div class="col-sm-8">
<div class="radio-box">
<input type="radio" name="jobStatus" value="">
<label th:for="jobStatus" th:text="未知"></label>
</div>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">执行周期:</label>
<div class="col-sm-8">
<textarea name="excuteFreq" class="form-control">[[*{excuteFreq}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="createDate" th:value="${#dates.format(infoDutySchedule.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="updateDate" th:value="${#dates.format(infoDutySchedule.updateDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remarks" th:field="*{remarks}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">job配置id</label>
<div class="col-sm-8">
<input name="jobConf" th:field="*{jobConf}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">程序执行状态,-2,定时器停止;-1定时器执行</label>
<div class="col-sm-8">
<div class="radio-box">
<input type="radio" name="executeStatus" value="">
<label th:for="executeStatus" th:text="未知"></label>
</div>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
var prefix = ctx + "arj21/duty_schedule";
$("#form-duty_schedule-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-duty_schedule-edit').serialize());
}
}
$("input[name='startDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='endDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updateDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增计算参数')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-parameter_computed-add">
<div class="form-group">
<label class="col-sm-3 control-label">参数主表id</label>
<div class="col-sm-8">
<input name="prmId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">版本id</label>
<div class="col-sm-8">
<select name="infoVersion" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">类型1:参数,2:平滑处理,(通用方法)3:模型:</label>
<div class="col-sm-8">
<select name="infoType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">参数名:</label>
<div class="col-sm-8">
<input name="prmName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">参数描述:</label>
<div class="col-sm-8">
<textarea name="prmDesc" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">null</label>
<div class="col-sm-8">
<input name="prmLanguage" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">脚本代码:</label>
<div class="col-sm-8">
<input name="scriptCode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">脚本代码(python)</label>
<div class="col-sm-8">
<input name="pythonCode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">编译顺序:</label>
<div class="col-sm-8">
<input name="order" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">引用的参数:</label>
<div class="col-sm-8">
<input name="preferenceParams" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">模型需要导出的参数:</label>
<div class="col-sm-8">
<input name="exportParams" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">导出数据起始点:</label>
<div class="col-sm-8">
<input name="exportFrom" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">导出数据结束点:</label>
<div class="col-sm-8">
<input name="exportTo" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="createDate" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="updateDate" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remarks" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text" required>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
var prefix = ctx + "arj21/parameter_computed"
$("#form-parameter_computed-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-parameter_computed-add').serialize());
}
}
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updateDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,148 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改计算参数')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-parameter_computed-edit" th:object="${infoParameterComputed}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">参数主表id</label>
<div class="col-sm-8">
<input name="prmId" th:field="*{prmId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">版本id</label>
<div class="col-sm-8">
<select name="infoVersion" class="form-control m-b">
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">类型1:参数,2:平滑处理,(通用方法)3:模型:</label>
<div class="col-sm-8">
<select name="infoType" class="form-control m-b" required>
<option value="">所有</option>
</select>
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">参数名:</label>
<div class="col-sm-8">
<input name="prmName" th:field="*{prmName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">参数描述:</label>
<div class="col-sm-8">
<textarea name="prmDesc" class="form-control">[[*{prmDesc}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">null</label>
<div class="col-sm-8">
<input name="prmLanguage" th:field="*{prmLanguage}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">脚本代码:</label>
<div class="col-sm-8">
<input name="scriptCode" th:field="*{scriptCode}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">脚本代码(python)</label>
<div class="col-sm-8">
<input name="pythonCode" th:field="*{pythonCode}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">编译顺序:</label>
<div class="col-sm-8">
<input name="order" th:field="*{order}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">引用的参数:</label>
<div class="col-sm-8">
<input name="preferenceParams" th:field="*{preferenceParams}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">模型需要导出的参数:</label>
<div class="col-sm-8">
<input name="exportParams" th:field="*{exportParams}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">导出数据起始点:</label>
<div class="col-sm-8">
<input name="exportFrom" th:field="*{exportFrom}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">导出数据结束点:</label>
<div class="col-sm-8">
<input name="exportTo" th:field="*{exportTo}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="createDate" th:value="${#dates.format(infoParameterComputed.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input name="updateDate" th:value="${#dates.format(infoParameterComputed.updateDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<input name="remarks" th:field="*{remarks}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
var prefix = ctx + "arj21/parameter_computed";
$("#form-parameter_computed-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-parameter_computed-edit').serialize());
}
}
$("input[name='createDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='updateDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,109 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('计算参数列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<p>版本id</p>
<select name="infoVersion" th:with="type=${@dict.getType('')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<p>参数名:</p>
<input type="text" name="prmName"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="arj21:parameter_computed:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="arj21:parameter_computed:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="arj21:parameter_computed:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="arj21:parameter_computed:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('arj21:parameter_computed:edit')}]];
var removeFlag = [[${@permission.hasPermi('arj21:parameter_computed:remove')}]];
var prefix = ctx + "arj21/parameter_computed";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "计算参数",
columns: [{
checkbox: true
},
{
field : 'id',
title : 'null',
visible: false
},
{
field : 'infoVersion',
title : '版本id'
},
{
field : 'prmName',
title : '参数名'
},
{
field : 'prmDesc',
title : '参数描述'
},
{
field : 'order',
title : '编译顺序'
},
{
field : 'updateDate',
title : '更新时间'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head> <head>
<th:block th:include="include :: header('修改资源目录')" /> <th:block th:include="include :: header('淇敼璧勬簮鐩綍')" />
<th:block th:include="include :: datetimepicker-css" /> <th:block th:include="include :: datetimepicker-css" />
</head> </head>
<body class="white-bg"> <body class="white-bg">
@ -9,7 +9,7 @@
<form class="form-horizontal m" id="form-resource-edit" th:object="${infoResource}"> <form class="form-horizontal m" id="form-resource-edit" th:object="${infoResource}">
<input name="id" th:field="*{id}" type="hidden"> <input name="id" th:field="*{id}" type="hidden">
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">父级编号:</label> <label class="col-sm-3 control-label">鐖剁骇缂栧彿锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group"> <div class="input-group">
<input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" /> <input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" />
@ -19,25 +19,25 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">所有父级编号:</label> <label class="col-sm-3 control-label"><EFBFBD>鏈夌埗绾х紪鍙凤細</label>
<div class="col-sm-8"> <div class="col-sm-8">
<textarea name="parentIds" class="form-control" required>[[*{parentIds}]]</textarea> <textarea name="parentIds" class="form-control" required>[[*{parentIds}]]</textarea>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">名称:</label> <label class="col-sm-3 control-label is-required">鍚嶇О<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="name" th:field="*{name}" class="form-control" type="text" required> <input name="name" th:field="*{name}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">排序:</label> <label class="col-sm-3 control-label is-required">鎺掑簭锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="sort" th:field="*{sort}" class="form-control" type="text" required> <input name="sort" th:field="*{sort}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">创建时间:</label> <label class="col-sm-3 control-label">鍒涘缓鏃堕棿锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group date"> <div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
@ -46,7 +46,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">更新时间:</label> <label class="col-sm-3 control-label">鏇存柊鏃堕棿锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group date"> <div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
@ -55,67 +55,67 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">备注信息:</label> <label class="col-sm-3 control-label is-required">澶囨敞淇℃伅锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="remarks" th:field="*{remarks}" class="form-control" type="text" required> <input name="remarks" th:field="*{remarks}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">是否为目录:</label> <label class="col-sm-3 control-label is-required">鏄惁涓虹洰褰曪細</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="isDir" th:field="*{isDir}" class="form-control" type="text" required> <input name="isDir" th:field="*{isDir}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">英文名:</label> <label class="col-sm-3 control-label">鑻辨枃鍚嶏細</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="enName" th:field="*{enName}" class="form-control" type="text"> <input name="enName" th:field="*{enName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">所属用户ID</label> <label class="col-sm-3 control-label"><EFBFBD>灞炵敤鎴稩D锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ownerId" th:field="*{ownerId}" class="form-control" type="text"> <input name="ownerId" th:field="*{ownerId}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">用户组ID</label> <label class="col-sm-3 control-label">鐢ㄦ埛缁処D锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="ownerGrpId" th:field="*{ownerGrpId}" class="form-control" type="text"> <input name="ownerGrpId" th:field="*{ownerGrpId}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">6可读可写:</label> <label class="col-sm-3 control-label is-required">6鍙鍙啓锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="authLevelOwner" th:field="*{authLevelOwner}" class="form-control" type="text" required> <input name="authLevelOwner" th:field="*{authLevelOwner}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">同组者权限(默认有可读权限)</label> <label class="col-sm-3 control-label is-required">鍚岀粍鑰呮潈闄<EFBFBD>(榛樿鏈夊彲璇绘潈闄<E6BD88>)锛<></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="authLevelSameGrp" th:field="*{authLevelSameGrp}" class="form-control" type="text" required> <input name="authLevelSameGrp" th:field="*{authLevelSameGrp}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">其他用户权限:</label> <label class="col-sm-3 control-label is-required">鍏朵粬鐢ㄦ埛鏉冮檺锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="authLevelOther" th:field="*{authLevelOther}" class="form-control" type="text" required> <input name="authLevelOther" th:field="*{authLevelOther}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">免密公钥列表(user_id1@auth_level1;user_id2@auth_level2)</label> <label class="col-sm-3 control-label">鍏嶅瘑鍏挜鍒楄〃(user_id1@auth_level1;user_id2@auth_level2)锛<></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="authKey" th:field="*{authKey}" class="form-control" type="text"> <input name="authKey" th:field="*{authKey}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">hdfs映射路径:</label> <label class="col-sm-3 control-label">hdfs鏄犲皠璺緞锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="mappingPath" th:field="*{mappingPath}" class="form-control" type="text"> <input name="mappingPath" th:field="*{mappingPath}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">检查是否同步的时间:</label> <label class="col-sm-3 control-label"><EFBFBD>鏌ユ槸鍚﹀悓姝ョ殑鏃堕棿锛<EFBFBD></label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group date"> <div class="input-group date">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
@ -124,7 +124,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">资源路径是否有效(-1, 0, 1),0代表未知,-1代表无效1代表有效</label> <label class="col-sm-3 control-label is-required">璧勬簮璺緞鏄惁鏈夋晥(-1, 0, 1),0浠〃鏈煡,-1浠〃鏃犳晥锛<E699A5>1浠〃鏈夋晥锛<E699A5></label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="checkValid" th:field="*{checkValid}" class="form-control" type="text" required> <input name="checkValid" th:field="*{checkValid}" class="form-control" type="text" required>
</div> </div>
@ -163,10 +163,10 @@
autoclose: true autoclose: true
}); });
/*资源目录-新增-选择父部门树*/ /*璧勬簮鐩綍-鏂板-閫夋嫨鐖堕儴闂ㄦ爲*/
function selectResourceTree() { function selectResourceTree() {
var options = { var options = {
title: '资源目录选择', title: '璧勬簮鐩綍閫夋嫨',
width: "380", width: "380",
url: prefix + "/selectResourceTree/" + $("#treeId").val(), url: prefix + "/selectResourceTree/" + $("#treeId").val(),
callBack: doSubmit callBack: doSubmit

View File

@ -0,0 +1,126 @@
package cn.com.infosouth.arj21.controller.parameter;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.com.infosouth.common.annotation.Log;
import cn.com.infosouth.common.enums.BusinessType;
import cn.com.infosouth.arj21.domain.InfoParameterComputed;
import cn.com.infosouth.arj21.service.IInfoParameterComputedService;
import cn.com.infosouth.common.core.controller.BaseController;
import cn.com.infosouth.common.core.domain.AjaxResult;
import cn.com.infosouth.common.utils.poi.ExcelUtil;
import cn.com.infosouth.common.core.page.TableDataInfo;
/**
* 计算参数Controller
*
* @author kxnf
* @date 2020-03-05
*/
@Controller
@RequestMapping("/arj21/parameter_computed")
public class InfoParameterComputedController extends BaseController
{
private String prefix = "arj21/parameter_computed";
@Autowired
private IInfoParameterComputedService infoParameterComputedService;
@RequiresPermissions("arj21:parameter_computed:view")
@GetMapping()
public String parameter_computed()
{
return prefix + "/parameter_computed";
}
/**
* 查询计算参数列表
*/
@RequiresPermissions("arj21:parameter_computed:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(InfoParameterComputed infoParameterComputed)
{
startPage();
List<InfoParameterComputed> list = infoParameterComputedService.selectInfoParameterComputedList(infoParameterComputed);
return getDataTable(list);
}
/**
* 导出计算参数列表
*/
@RequiresPermissions("arj21:parameter_computed:export")
@Log(title = "计算参数", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(InfoParameterComputed infoParameterComputed)
{
List<InfoParameterComputed> list = infoParameterComputedService.selectInfoParameterComputedList(infoParameterComputed);
ExcelUtil<InfoParameterComputed> util = new ExcelUtil<InfoParameterComputed>(InfoParameterComputed.class);
return util.exportExcel(list, "parameter_computed");
}
/**
* 新增计算参数
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存计算参数
*/
@RequiresPermissions("arj21:parameter_computed:add")
@Log(title = "计算参数", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(InfoParameterComputed infoParameterComputed)
{
return toAjax(infoParameterComputedService.insertInfoParameterComputed(infoParameterComputed));
}
/**
* 修改计算参数
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap)
{
InfoParameterComputed infoParameterComputed = infoParameterComputedService.selectInfoParameterComputedById(id);
mmap.put("infoParameterComputed", infoParameterComputed);
return prefix + "/edit";
}
/**
* 修改保存计算参数
*/
@RequiresPermissions("arj21:parameter_computed:edit")
@Log(title = "计算参数", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(InfoParameterComputed infoParameterComputed)
{
return toAjax(infoParameterComputedService.updateInfoParameterComputed(infoParameterComputed));
}
/**
* 删除计算参数
*/
@RequiresPermissions("arj21:parameter_computed:remove")
@Log(title = "计算参数", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(infoParameterComputedService.deleteInfoParameterComputedByIds(ids));
}
}

View File

@ -0,0 +1,126 @@
package cn.com.infosouth.arj21.controller.schedule;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import cn.com.infosouth.common.annotation.Log;
import cn.com.infosouth.common.enums.BusinessType;
import cn.com.infosouth.arj21.domain.InfoDutySchedule;
import cn.com.infosouth.arj21.service.IInfoDutyScheduleService;
import cn.com.infosouth.common.core.controller.BaseController;
import cn.com.infosouth.common.core.domain.AjaxResult;
import cn.com.infosouth.common.utils.poi.ExcelUtil;
import cn.com.infosouth.common.core.page.TableDataInfo;
/**
* 任务调度Controller
*
* @author kxnf
* @date 2020-03-05
*/
@Controller
@RequestMapping("/arj21/duty_schedule")
public class InfoDutyScheduleController extends BaseController
{
private String prefix = "arj21/duty_schedule";
@Autowired
private IInfoDutyScheduleService infoDutyScheduleService;
@RequiresPermissions("arj21:duty_schedule:view")
@GetMapping()
public String duty_schedule()
{
return prefix + "/duty_schedule";
}
/**
* 查询任务调度列表
*/
@RequiresPermissions("arj21:duty_schedule:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(InfoDutySchedule infoDutySchedule)
{
startPage();
List<InfoDutySchedule> list = infoDutyScheduleService.selectInfoDutyScheduleList(infoDutySchedule);
return getDataTable(list);
}
/**
* 导出任务调度列表
*/
@RequiresPermissions("arj21:duty_schedule:export")
@Log(title = "任务调度", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(InfoDutySchedule infoDutySchedule)
{
List<InfoDutySchedule> list = infoDutyScheduleService.selectInfoDutyScheduleList(infoDutySchedule);
ExcelUtil<InfoDutySchedule> util = new ExcelUtil<InfoDutySchedule>(InfoDutySchedule.class);
return util.exportExcel(list, "duty_schedule");
}
/**
* 新增任务调度
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存任务调度
*/
@RequiresPermissions("arj21:duty_schedule:add")
@Log(title = "任务调度", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(InfoDutySchedule infoDutySchedule)
{
return toAjax(infoDutyScheduleService.insertInfoDutySchedule(infoDutySchedule));
}
/**
* 修改任务调度
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") String id, ModelMap mmap)
{
InfoDutySchedule infoDutySchedule = infoDutyScheduleService.selectInfoDutyScheduleById(id);
mmap.put("infoDutySchedule", infoDutySchedule);
return prefix + "/edit";
}
/**
* 修改保存任务调度
*/
@RequiresPermissions("arj21:duty_schedule:edit")
@Log(title = "任务调度", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(InfoDutySchedule infoDutySchedule)
{
return toAjax(infoDutyScheduleService.updateInfoDutySchedule(infoDutySchedule));
}
/**
* 删除任务调度
*/
@RequiresPermissions("arj21:duty_schedule:remove")
@Log(title = "任务调度", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(infoDutyScheduleService.deleteInfoDutyScheduleByIds(ids));
}
}

View File

@ -0,0 +1,277 @@
package cn.com.infosouth.arj21.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.infosouth.common.annotation.Excel;
import cn.com.infosouth.common.core.domain.BaseEntity;
import java.util.Date;
/**
* 任务调度对象 info_duty_schedule
*
* @author kxnf
* @date 2020-03-05
*/
public class InfoDutySchedule extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** null */
private String id;
/** 任务名称 */
@Excel(name = "任务名称")
private String jobName;
/** 模型名称,多个用;分割 */
@Excel(name = "模型名称,多个用;分割")
private String modelName;
/** 机型,多个用;分割,为空表示不设限制 */
@Excel(name = "机型,多个用;分割,为空表示不设限制")
private String acType;
/** 飞机号,多个用;分割,为空表示不设限制 */
@Excel(name = "飞机号,多个用;分割,为空表示不设限制")
private String acReg;
/** 对应版本 */
@Excel(name = "对应版本")
private Long versionId;
/** 开始日期,为空表示不设限制 */
@Excel(name = "开始日期,为空表示不设限制", width = 30, dateFormat = "yyyy-MM-dd")
private Date startDate;
/** 结束日期,为空表示不设限制 */
@Excel(name = "结束日期,为空表示不设限制", width = 30, dateFormat = "yyyy-MM-dd")
private Date endDate;
/** 任务描述 */
@Excel(name = "任务描述")
private String jobDesc;
/** 具体任务的执行状态 */
@Excel(name = "具体任务的执行状态")
private Integer isExcute;
/** 任务状态,正常/异常/ */
@Excel(name = "任务状态,正常/异常/")
private String jobStatus;
/** 执行周期 */
@Excel(name = "执行周期")
private String excuteFreq;
/** 创建时间 */
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date createDate;
/** 更新时间 */
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updateDate;
/** 备注 */
@Excel(name = "备注")
private String remarks;
/** 删除标志 */
private String delFlag;
/** job配置id */
@Excel(name = "job配置id")
private String jobConf;
/** 程序执行状态,-2,定时器停止;-1定时器执行 */
@Excel(name = "程序执行状态,-2,定时器停止;-1定时器执行")
private Integer executeStatus;
public void setId(String id)
{
this.id = id;
}
public String getId()
{
return id;
}
public void setJobName(String jobName)
{
this.jobName = jobName;
}
public String getJobName()
{
return jobName;
}
public void setModelName(String modelName)
{
this.modelName = modelName;
}
public String getModelName()
{
return modelName;
}
public void setAcType(String acType)
{
this.acType = acType;
}
public String getAcType()
{
return acType;
}
public void setAcReg(String acReg)
{
this.acReg = acReg;
}
public String getAcReg()
{
return acReg;
}
public void setVersionId(Long versionId)
{
this.versionId = versionId;
}
public Long getVersionId()
{
return versionId;
}
public void setStartDate(Date startDate)
{
this.startDate = startDate;
}
public Date getStartDate()
{
return startDate;
}
public void setEndDate(Date endDate)
{
this.endDate = endDate;
}
public Date getEndDate()
{
return endDate;
}
public void setJobDesc(String jobDesc)
{
this.jobDesc = jobDesc;
}
public String getJobDesc()
{
return jobDesc;
}
public void setIsExcute(Integer isExcute)
{
this.isExcute = isExcute;
}
public Integer getIsExcute()
{
return isExcute;
}
public void setJobStatus(String jobStatus)
{
this.jobStatus = jobStatus;
}
public String getJobStatus()
{
return jobStatus;
}
public void setExcuteFreq(String excuteFreq)
{
this.excuteFreq = excuteFreq;
}
public String getExcuteFreq()
{
return excuteFreq;
}
public void setCreateDate(Date createDate)
{
this.createDate = createDate;
}
public Date getCreateDate()
{
return createDate;
}
public void setUpdateDate(Date updateDate)
{
this.updateDate = updateDate;
}
public Date getUpdateDate()
{
return updateDate;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
public void setJobConf(String jobConf)
{
this.jobConf = jobConf;
}
public String getJobConf()
{
return jobConf;
}
public void setExecuteStatus(Integer executeStatus)
{
this.executeStatus = executeStatus;
}
public Integer getExecuteStatus()
{
return executeStatus;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("jobName", getJobName())
.append("modelName", getModelName())
.append("acType", getAcType())
.append("acReg", getAcReg())
.append("versionId", getVersionId())
.append("startDate", getStartDate())
.append("endDate", getEndDate())
.append("jobDesc", getJobDesc())
.append("isExcute", getIsExcute())
.append("jobStatus", getJobStatus())
.append("excuteFreq", getExcuteFreq())
.append("createBy", getCreateBy())
.append("createDate", getCreateDate())
.append("updateBy", getUpdateBy())
.append("updateDate", getUpdateDate())
.append("remarks", getRemarks())
.append("delFlag", getDelFlag())
.append("jobConf", getJobConf())
.append("executeStatus", getExecuteStatus())
.toString();
}
}

View File

@ -0,0 +1,266 @@
package cn.com.infosouth.arj21.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.infosouth.common.annotation.Excel;
import cn.com.infosouth.common.core.domain.BaseEntity;
import java.util.Date;
/**
* 计算参数对象 info_parameter_computed
*
* @author kxnf
* @date 2020-03-05
*/
public class InfoParameterComputed extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** null */
private String id;
/** 参数主表id */
private String prmId;
/** 版本id */
@Excel(name = "版本id")
private String infoVersion;
/** 类型1:参数,2:平滑处理,(通用方法)3:模型 */
private Integer infoType;
/** 参数名 */
@Excel(name = "参数名")
private String prmName;
/** 参数描述 */
@Excel(name = "参数描述")
private String prmDesc;
/** null */
private String prmLanguage;
/** 脚本代码 */
private String scriptCode;
/** 脚本代码(python) */
private String pythonCode;
/** 编译顺序 */
@Excel(name = "编译顺序")
private Integer order;
/** 引用的参数 */
private String preferenceParams;
/** 模型需要导出的参数 */
private String exportParams;
/** 导出数据起始点 */
private Integer exportFrom;
/** 导出数据结束点 */
private Integer exportTo;
/** 创建时间 */
private Date createDate;
/** 更新时间 */
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date updateDate;
/** 备注 */
private String remarks;
/** 删除标志 */
private String delFlag;
public void setId(String id)
{
this.id = id;
}
public String getId()
{
return id;
}
public void setPrmId(String prmId)
{
this.prmId = prmId;
}
public String getPrmId()
{
return prmId;
}
public void setInfoVersion(String infoVersion)
{
this.infoVersion = infoVersion;
}
public String getInfoVersion()
{
return infoVersion;
}
public void setInfoType(Integer infoType)
{
this.infoType = infoType;
}
public Integer getInfoType()
{
return infoType;
}
public void setPrmName(String prmName)
{
this.prmName = prmName;
}
public String getPrmName()
{
return prmName;
}
public void setPrmDesc(String prmDesc)
{
this.prmDesc = prmDesc;
}
public String getPrmDesc()
{
return prmDesc;
}
public void setPrmLanguage(String prmLanguage)
{
this.prmLanguage = prmLanguage;
}
public String getPrmLanguage()
{
return prmLanguage;
}
public void setScriptCode(String scriptCode)
{
this.scriptCode = scriptCode;
}
public String getScriptCode()
{
return scriptCode;
}
public void setPythonCode(String pythonCode)
{
this.pythonCode = pythonCode;
}
public String getPythonCode()
{
return pythonCode;
}
public void setOrder(Integer order)
{
this.order = order;
}
public Integer getOrder()
{
return order;
}
public void setPreferenceParams(String preferenceParams)
{
this.preferenceParams = preferenceParams;
}
public String getPreferenceParams()
{
return preferenceParams;
}
public void setExportParams(String exportParams)
{
this.exportParams = exportParams;
}
public String getExportParams()
{
return exportParams;
}
public void setExportFrom(Integer exportFrom)
{
this.exportFrom = exportFrom;
}
public Integer getExportFrom()
{
return exportFrom;
}
public void setExportTo(Integer exportTo)
{
this.exportTo = exportTo;
}
public Integer getExportTo()
{
return exportTo;
}
public void setCreateDate(Date createDate)
{
this.createDate = createDate;
}
public Date getCreateDate()
{
return createDate;
}
public void setUpdateDate(Date updateDate)
{
this.updateDate = updateDate;
}
public Date getUpdateDate()
{
return updateDate;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("prmId", getPrmId())
.append("infoVersion", getInfoVersion())
.append("infoType", getInfoType())
.append("prmName", getPrmName())
.append("prmDesc", getPrmDesc())
.append("prmLanguage", getPrmLanguage())
.append("scriptCode", getScriptCode())
.append("pythonCode", getPythonCode())
.append("order", getOrder())
.append("preferenceParams", getPreferenceParams())
.append("exportParams", getExportParams())
.append("exportFrom", getExportFrom())
.append("exportTo", getExportTo())
.append("createBy", getCreateBy())
.append("createDate", getCreateDate())
.append("updateBy", getUpdateBy())
.append("updateDate", getUpdateDate())
.append("remarks", getRemarks())
.append("delFlag", getDelFlag())
.toString();
}
}

View File

@ -0,0 +1,76 @@
package cn.com.infosouth.arj21.mapper;
import java.util.List;
import java.util.Map;
import cn.com.infosouth.arj21.domain.InfoDutySchedule;
/**
* 任务调度Mapper接口
*
* @author kxnf
* @date 2020-03-05
*/
public interface InfoDutyScheduleMapper
{
/**
* 查询任务调度
*
* @param id 任务调度ID
* @return 任务调度
*/
public InfoDutySchedule selectInfoDutyScheduleById(String id);
/**
* 查询任务调度列表
*
* @param infoDutySchedule 任务调度
* @return 任务调度集合
*/
public List<InfoDutySchedule> selectInfoDutyScheduleList(InfoDutySchedule infoDutySchedule);
/**
* 新增任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
public int insertInfoDutySchedule(InfoDutySchedule infoDutySchedule);
/**
* 修改任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
public int updateInfoDutySchedule(InfoDutySchedule infoDutySchedule);
/**
* 删除任务调度
*
* @param id 任务调度ID
* @return 结果
*/
public int deleteInfoDutyScheduleById(String id);
/**
* 批量删除任务调度
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteInfoDutyScheduleByIds(String[] ids);
/**
* 查找任务列表
* @param static_acType_B737
* @return
*/
public List<Map<String, String>> findInfoDutyScheduleMapList(String static_acType_B737);
/**
* 查找job数量
* @return
*/
public String findJobCount();
}

View File

@ -0,0 +1,61 @@
package cn.com.infosouth.arj21.mapper;
import java.util.List;
import cn.com.infosouth.arj21.domain.InfoParameterComputed;
/**
* 计算参数Mapper接口
*
* @author kxnf
* @date 2020-03-05
*/
public interface InfoParameterComputedMapper
{
/**
* 查询计算参数
*
* @param id 计算参数ID
* @return 计算参数
*/
public InfoParameterComputed selectInfoParameterComputedById(String id);
/**
* 查询计算参数列表
*
* @param infoParameterComputed 计算参数
* @return 计算参数集合
*/
public List<InfoParameterComputed> selectInfoParameterComputedList(InfoParameterComputed infoParameterComputed);
/**
* 新增计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
public int insertInfoParameterComputed(InfoParameterComputed infoParameterComputed);
/**
* 修改计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
public int updateInfoParameterComputed(InfoParameterComputed infoParameterComputed);
/**
* 删除计算参数
*
* @param id 计算参数ID
* @return 结果
*/
public int deleteInfoParameterComputedById(String id);
/**
* 批量删除计算参数
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteInfoParameterComputedByIds(String[] ids);
}

View File

@ -3,14 +3,75 @@ package cn.com.infosouth.arj21.service;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
public interface IInfoDutyScheduleService { import cn.com.infosouth.arj21.domain.InfoDutySchedule;
List<Map<String, String>> findInfoDutyScheduleMapList(String static_acType_B737); /**
* 任务调度Service接口
*
* @author kxnf
* @date 2020-03-05
*/
public interface IInfoDutyScheduleService
{
/**
* 查询任务调度
*
* @param id 任务调度ID
* @return 任务调度
*/
public InfoDutySchedule selectInfoDutyScheduleById(String id);
/**
* 查询任务调度列表
*
* @param infoDutySchedule 任务调度
* @return 任务调度集合
*/
public List<InfoDutySchedule> selectInfoDutyScheduleList(InfoDutySchedule infoDutySchedule);
/**
* 新增任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
public int insertInfoDutySchedule(InfoDutySchedule infoDutySchedule);
/**
* 修改任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
public int updateInfoDutySchedule(InfoDutySchedule infoDutySchedule);
/**
* 批量删除任务调度
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteInfoDutyScheduleByIds(String ids);
/**
* 删除任务调度信息
*
* @param id 任务调度ID
* @return 结果
*/
public int deleteInfoDutyScheduleById(String id);
/**
* 查找调度任务列表
* @param static_acType_B737
* @return
*/
List<Map<String, String>> findInfoDutyScheduleMapList(String static_acType_B737);
/** /**
* 任务数量 * 任务数量
* @return * @return
*/ */
String findJobCount(); String findJobCount();
} }

View File

@ -0,0 +1,61 @@
package cn.com.infosouth.arj21.service;
import java.util.List;
import cn.com.infosouth.arj21.domain.InfoParameterComputed;
/**
* 计算参数Service接口
*
* @author kxnf
* @date 2020-03-05
*/
public interface IInfoParameterComputedService
{
/**
* 查询计算参数
*
* @param id 计算参数ID
* @return 计算参数
*/
public InfoParameterComputed selectInfoParameterComputedById(String id);
/**
* 查询计算参数列表
*
* @param infoParameterComputed 计算参数
* @return 计算参数集合
*/
public List<InfoParameterComputed> selectInfoParameterComputedList(InfoParameterComputed infoParameterComputed);
/**
* 新增计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
public int insertInfoParameterComputed(InfoParameterComputed infoParameterComputed);
/**
* 修改计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
public int updateInfoParameterComputed(InfoParameterComputed infoParameterComputed);
/**
* 批量删除计算参数
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteInfoParameterComputedByIds(String ids);
/**
* 删除计算参数信息
*
* @param id 计算参数ID
* @return 结果
*/
public int deleteInfoParameterComputedById(String id);
}

View File

@ -3,30 +3,104 @@ package cn.com.infosouth.arj21.service.impl;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import cn.com.infosouth.arj21.mapper.InfoDutyScheduleMapper;
import cn.com.infosouth.arj21.domain.InfoDutySchedule;
import cn.com.infosouth.arj21.service.IInfoDutyScheduleService; import cn.com.infosouth.arj21.service.IInfoDutyScheduleService;
import cn.com.infosouth.common.core.text.Convert;
/** /**
* 任务调度管理Service * 任务调度Service业务层处理
* @author zy *
* @version 2018-01-05 * @author kxnf
* @date 2020-03-05
*/ */
@Service @Service
@Transactional(readOnly = true) public class InfoDutyScheduleServiceImpl implements IInfoDutyScheduleService
public class IInfoDutyScheduleServiceImpl implements IInfoDutyScheduleService{ {
@Autowired
private InfoDutyScheduleMapper infoDutyScheduleMapper;
/**
* 查询任务调度
*
* @param id 任务调度ID
* @return 任务调度
*/
@Override
public InfoDutySchedule selectInfoDutyScheduleById(String id)
{
return infoDutyScheduleMapper.selectInfoDutyScheduleById(id);
}
/**
* 查询任务调度列表
*
* @param infoDutySchedule 任务调度
* @return 任务调度
*/
@Override
public List<InfoDutySchedule> selectInfoDutyScheduleList(InfoDutySchedule infoDutySchedule)
{
return infoDutyScheduleMapper.selectInfoDutyScheduleList(infoDutySchedule);
}
/**
* 新增任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
@Override
public int insertInfoDutySchedule(InfoDutySchedule infoDutySchedule)
{
return infoDutyScheduleMapper.insertInfoDutySchedule(infoDutySchedule);
}
/**
* 修改任务调度
*
* @param infoDutySchedule 任务调度
* @return 结果
*/
@Override
public int updateInfoDutySchedule(InfoDutySchedule infoDutySchedule)
{
return infoDutyScheduleMapper.updateInfoDutySchedule(infoDutySchedule);
}
/**
* 删除任务调度对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteInfoDutyScheduleByIds(String ids)
{
return infoDutyScheduleMapper.deleteInfoDutyScheduleByIds(Convert.toStrArray(ids));
}
/**
* 删除任务调度信息
*
* @param id 任务调度ID
* @return 结果
*/
@Override
public int deleteInfoDutyScheduleById(String id)
{
return infoDutyScheduleMapper.deleteInfoDutyScheduleById(id);
}
@Override @Override
public List<Map<String, String>> findInfoDutyScheduleMapList(String static_acType_B737) { public List<Map<String, String>> findInfoDutyScheduleMapList(String static_acType_B737) {
return null; return infoDutyScheduleMapper.findInfoDutyScheduleMapList(static_acType_B737);
} }
@Override @Override
public String findJobCount() { public String findJobCount() {
return null; return infoDutyScheduleMapper.findJobCount();
} }
} }

View File

@ -0,0 +1,94 @@
package cn.com.infosouth.arj21.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.infosouth.arj21.mapper.InfoParameterComputedMapper;
import cn.com.infosouth.arj21.domain.InfoParameterComputed;
import cn.com.infosouth.arj21.service.IInfoParameterComputedService;
import cn.com.infosouth.common.core.text.Convert;
/**
* 计算参数Service业务层处理
*
* @author kxnf
* @date 2020-03-05
*/
@Service
public class InfoParameterComputedServiceImpl implements IInfoParameterComputedService
{
@Autowired
private InfoParameterComputedMapper infoParameterComputedMapper;
/**
* 查询计算参数
*
* @param id 计算参数ID
* @return 计算参数
*/
@Override
public InfoParameterComputed selectInfoParameterComputedById(String id)
{
return infoParameterComputedMapper.selectInfoParameterComputedById(id);
}
/**
* 查询计算参数列表
*
* @param infoParameterComputed 计算参数
* @return 计算参数
*/
@Override
public List<InfoParameterComputed> selectInfoParameterComputedList(InfoParameterComputed infoParameterComputed)
{
return infoParameterComputedMapper.selectInfoParameterComputedList(infoParameterComputed);
}
/**
* 新增计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
@Override
public int insertInfoParameterComputed(InfoParameterComputed infoParameterComputed)
{
return infoParameterComputedMapper.insertInfoParameterComputed(infoParameterComputed);
}
/**
* 修改计算参数
*
* @param infoParameterComputed 计算参数
* @return 结果
*/
@Override
public int updateInfoParameterComputed(InfoParameterComputed infoParameterComputed)
{
return infoParameterComputedMapper.updateInfoParameterComputed(infoParameterComputed);
}
/**
* 删除计算参数对象
*
* @param ids 需要删除的数据ID
* @return 结果
*/
@Override
public int deleteInfoParameterComputedByIds(String ids)
{
return infoParameterComputedMapper.deleteInfoParameterComputedByIds(Convert.toStrArray(ids));
}
/**
* 删除计算参数信息
*
* @param id 计算参数ID
* @return 结果
*/
@Override
public int deleteInfoParameterComputedById(String id)
{
return infoParameterComputedMapper.deleteInfoParameterComputedById(id);
}
}

View File

@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.infosouth.arj21.mapper.InfoDutyScheduleMapper">
<resultMap type="InfoDutySchedule" id="InfoDutyScheduleResult">
<result property="id" column="id" />
<result property="jobName" column="job_name" />
<result property="modelName" column="model_name" />
<result property="acType" column="ac_type" />
<result property="acReg" column="ac_reg" />
<result property="versionId" column="version_id" />
<result property="startDate" column="start_date" />
<result property="endDate" column="end_date" />
<result property="jobDesc" column="job_desc" />
<result property="isExcute" column="is_excute" />
<result property="jobStatus" column="job_status" />
<result property="excuteFreq" column="excute_freq" />
<result property="createBy" column="create_by" />
<result property="createDate" column="create_date" />
<result property="updateBy" column="update_by" />
<result property="updateDate" column="update_date" />
<result property="remarks" column="remarks" />
<result property="delFlag" column="del_flag" />
<result property="jobConf" column="job_conf" />
<result property="executeStatus" column="execute_status" />
</resultMap>
<sql id="selectInfoDutyScheduleVo">
select id, job_name, model_name, ac_type, ac_reg, version_id, start_date, end_date, job_desc, is_excute, job_status, excute_freq, create_by, create_date, update_by, update_date, remarks, del_flag, job_conf, execute_status from info_duty_schedule
</sql>
<select id="selectInfoDutyScheduleList" parameterType="InfoDutySchedule" resultMap="InfoDutyScheduleResult">
<include refid="selectInfoDutyScheduleVo"/>
<where>
<if test="jobName != null and jobName != ''"> and job_name like concat('%', #{jobName}, '%')</if>
<if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if>
<if test="acType != null and acType != ''"> and ac_type = #{acType}</if>
<if test="acReg != null and acReg != ''"> and ac_reg = #{acReg}</if>
<if test="versionId != null "> and version_id = #{versionId}</if>
<if test="startDate != null "> and start_date = #{startDate}</if>
<if test="endDate != null "> and end_date = #{endDate}</if>
<if test="jobDesc != null and jobDesc != ''"> and job_desc = #{jobDesc}</if>
<if test="isExcute != null "> and is_excute = #{isExcute}</if>
<if test="jobStatus != null and jobStatus != ''"> and job_status = #{jobStatus}</if>
<if test="excuteFreq != null and excuteFreq != ''"> and excute_freq = #{excuteFreq}</if>
<if test="createDate != null "> and create_date = #{createDate}</if>
<if test="updateDate != null "> and update_date = #{updateDate}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
<if test="jobConf != null and jobConf != ''"> and job_conf = #{jobConf}</if>
<if test="executeStatus != null "> and execute_status = #{executeStatus}</if>
</where>
</select>
<select id="selectInfoDutyScheduleById" parameterType="String" resultMap="InfoDutyScheduleResult">
<include refid="selectInfoDutyScheduleVo"/>
where id = #{id}
</select>
<insert id="insertInfoDutySchedule" parameterType="InfoDutySchedule">
insert into info_duty_schedule
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="jobName != null and jobName != ''">job_name,</if>
<if test="modelName != null and modelName != ''">model_name,</if>
<if test="acType != null and acType != ''">ac_type,</if>
<if test="acReg != null and acReg != ''">ac_reg,</if>
<if test="versionId != null ">version_id,</if>
<if test="startDate != null ">start_date,</if>
<if test="endDate != null ">end_date,</if>
<if test="jobDesc != null and jobDesc != ''">job_desc,</if>
<if test="isExcute != null ">is_excute,</if>
<if test="jobStatus != null and jobStatus != ''">job_status,</if>
<if test="excuteFreq != null and excuteFreq != ''">excute_freq,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createDate != null ">create_date,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateDate != null ">update_date,</if>
<if test="remarks != null and remarks != ''">remarks,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="jobConf != null and jobConf != ''">job_conf,</if>
<if test="executeStatus != null ">execute_status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="jobName != null and jobName != ''">#{jobName},</if>
<if test="modelName != null and modelName != ''">#{modelName},</if>
<if test="acType != null and acType != ''">#{acType},</if>
<if test="acReg != null and acReg != ''">#{acReg},</if>
<if test="versionId != null ">#{versionId},</if>
<if test="startDate != null ">#{startDate},</if>
<if test="endDate != null ">#{endDate},</if>
<if test="jobDesc != null and jobDesc != ''">#{jobDesc},</if>
<if test="isExcute != null ">#{isExcute},</if>
<if test="jobStatus != null and jobStatus != ''">#{jobStatus},</if>
<if test="excuteFreq != null and excuteFreq != ''">#{excuteFreq},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createDate != null ">#{createDate},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateDate != null ">#{updateDate},</if>
<if test="remarks != null and remarks != ''">#{remarks},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="jobConf != null and jobConf != ''">#{jobConf},</if>
<if test="executeStatus != null ">#{executeStatus},</if>
</trim>
</insert>
<update id="updateInfoDutySchedule" parameterType="InfoDutySchedule">
update info_duty_schedule
<trim prefix="SET" suffixOverrides=",">
<if test="jobName != null and jobName != ''">job_name = #{jobName},</if>
<if test="modelName != null and modelName != ''">model_name = #{modelName},</if>
<if test="acType != null and acType != ''">ac_type = #{acType},</if>
<if test="acReg != null and acReg != ''">ac_reg = #{acReg},</if>
<if test="versionId != null ">version_id = #{versionId},</if>
<if test="startDate != null ">start_date = #{startDate},</if>
<if test="endDate != null ">end_date = #{endDate},</if>
<if test="jobDesc != null and jobDesc != ''">job_desc = #{jobDesc},</if>
<if test="isExcute != null ">is_excute = #{isExcute},</if>
<if test="jobStatus != null and jobStatus != ''">job_status = #{jobStatus},</if>
<if test="excuteFreq != null and excuteFreq != ''">excute_freq = #{excuteFreq},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createDate != null ">create_date = #{createDate},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateDate != null ">update_date = #{updateDate},</if>
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="jobConf != null and jobConf != ''">job_conf = #{jobConf},</if>
<if test="executeStatus != null ">execute_status = #{executeStatus},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInfoDutyScheduleById" parameterType="String">
delete from info_duty_schedule where id = #{id}
</delete>
<delete id="deleteInfoDutyScheduleByIds" parameterType="String">
delete from info_duty_schedule where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<!-- **************查询任务数量************* -->
<select id="findJobCount" resultType="String">
SELECT
count(a.id) as jobCount
FROM info_duty_schedule a
<where>
a.del_flag = 0
</where>
</select>
<!-- 根据机型,查询匹配的任务 -->
<select id="findInfoDutyScheduleMapList" resultType="java.util.Map">
SELECT
a.id AS "id",
a.job_name AS "jobName",
a.ac_type AS "acType"
FROM info_duty_schedule a
<where>
a.del_flag = 0
AND
a.ac_type=#{acType}
</where>
ORDER BY a.create_by,a.update_date DESC
</select>
</mapper>

View File

@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.infosouth.arj21.mapper.InfoParameterComputedMapper">
<resultMap type="InfoParameterComputed" id="InfoParameterComputedResult">
<result property="id" column="id" />
<result property="prmId" column="prm_id" />
<result property="infoVersion" column="info_version" />
<result property="infoType" column="info_type" />
<result property="prmName" column="prm_name" />
<result property="prmDesc" column="prm_desc" />
<result property="prmLanguage" column="prm_language" />
<result property="scriptCode" column="script_code" />
<result property="pythonCode" column="python_code" />
<result property="order" column="order" />
<result property="preferenceParams" column="preference_params" />
<result property="exportParams" column="export_params" />
<result property="exportFrom" column="export_from" />
<result property="exportTo" column="export_to" />
<result property="createBy" column="create_by" />
<result property="createDate" column="create_date" />
<result property="updateBy" column="update_by" />
<result property="updateDate" column="update_date" />
<result property="remarks" column="remarks" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectInfoParameterComputedVo">
select id, prm_id, info_version, info_type, prm_name, prm_desc, prm_language, script_code, python_code, order, preference_params, export_params, export_from, export_to, create_by, create_date, update_by, update_date, remarks, del_flag from info_parameter_computed
</sql>
<select id="selectInfoParameterComputedList" parameterType="InfoParameterComputed" resultMap="InfoParameterComputedResult">
<include refid="selectInfoParameterComputedVo"/>
<where>
<if test="infoVersion != null and infoVersion != ''"> and info_version = #{infoVersion}</if>
<if test="prmName != null and prmName != ''"> and prm_name like concat('%', #{prmName}, '%')</if>
<if test="prmDesc != null and prmDesc != ''"> and prm_desc = #{prmDesc}</if>
</where>
</select>
<select id="selectInfoParameterComputedById" parameterType="String" resultMap="InfoParameterComputedResult">
<include refid="selectInfoParameterComputedVo"/>
where id = #{id}
</select>
<insert id="insertInfoParameterComputed" parameterType="InfoParameterComputed">
insert into info_parameter_computed
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="prmId != null and prmId != ''">prm_id,</if>
<if test="infoVersion != null and infoVersion != ''">info_version,</if>
<if test="infoType != null ">info_type,</if>
<if test="prmName != null and prmName != ''">prm_name,</if>
<if test="prmDesc != null and prmDesc != ''">prm_desc,</if>
<if test="prmLanguage != null and prmLanguage != ''">prm_language,</if>
<if test="scriptCode != null and scriptCode != ''">script_code,</if>
<if test="pythonCode != null and pythonCode != ''">python_code,</if>
<if test="order != null ">order,</if>
<if test="preferenceParams != null and preferenceParams != ''">preference_params,</if>
<if test="exportParams != null and exportParams != ''">export_params,</if>
<if test="exportFrom != null ">export_from,</if>
<if test="exportTo != null ">export_to,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createDate != null ">create_date,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateDate != null ">update_date,</if>
<if test="remarks != null and remarks != ''">remarks,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="prmId != null and prmId != ''">#{prmId},</if>
<if test="infoVersion != null and infoVersion != ''">#{infoVersion},</if>
<if test="infoType != null ">#{infoType},</if>
<if test="prmName != null and prmName != ''">#{prmName},</if>
<if test="prmDesc != null and prmDesc != ''">#{prmDesc},</if>
<if test="prmLanguage != null and prmLanguage != ''">#{prmLanguage},</if>
<if test="scriptCode != null and scriptCode != ''">#{scriptCode},</if>
<if test="pythonCode != null and pythonCode != ''">#{pythonCode},</if>
<if test="order != null ">#{order},</if>
<if test="preferenceParams != null and preferenceParams != ''">#{preferenceParams},</if>
<if test="exportParams != null and exportParams != ''">#{exportParams},</if>
<if test="exportFrom != null ">#{exportFrom},</if>
<if test="exportTo != null ">#{exportTo},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createDate != null ">#{createDate},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateDate != null ">#{updateDate},</if>
<if test="remarks != null and remarks != ''">#{remarks},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateInfoParameterComputed" parameterType="InfoParameterComputed">
update info_parameter_computed
<trim prefix="SET" suffixOverrides=",">
<if test="prmId != null and prmId != ''">prm_id = #{prmId},</if>
<if test="infoVersion != null and infoVersion != ''">info_version = #{infoVersion},</if>
<if test="infoType != null ">info_type = #{infoType},</if>
<if test="prmName != null and prmName != ''">prm_name = #{prmName},</if>
<if test="prmDesc != null and prmDesc != ''">prm_desc = #{prmDesc},</if>
<if test="prmLanguage != null and prmLanguage != ''">prm_language = #{prmLanguage},</if>
<if test="scriptCode != null and scriptCode != ''">script_code = #{scriptCode},</if>
<if test="pythonCode != null and pythonCode != ''">python_code = #{pythonCode},</if>
<if test="order != null ">order = #{order},</if>
<if test="preferenceParams != null and preferenceParams != ''">preference_params = #{preferenceParams},</if>
<if test="exportParams != null and exportParams != ''">export_params = #{exportParams},</if>
<if test="exportFrom != null ">export_from = #{exportFrom},</if>
<if test="exportTo != null ">export_to = #{exportTo},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createDate != null ">create_date = #{createDate},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateDate != null ">update_date = #{updateDate},</if>
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInfoParameterComputedById" parameterType="String">
delete from info_parameter_computed where id = #{id}
</delete>
<delete id="deleteInfoParameterComputedByIds" parameterType="String">
delete from info_parameter_computed where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>