修改代碼生成器模板,盡量少報錯;另外增加version、actype、aircraft的管理目錄
This commit is contained in:
parent
fe2585274d
commit
7d1c6986ce
|
|
@ -0,0 +1,132 @@
|
|||
<!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>
|
||||
<select name="acTpye" 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>参数版本id:</p>
|
||||
<input type="text" name="versionId"/>
|
||||
</li>
|
||||
<li>
|
||||
<p>备注:</p>
|
||||
<input type="text" name="remarks"/>
|
||||
</li>
|
||||
<li>
|
||||
<p>机型的编号,自定义。用于查询后方便识记机型:</p>
|
||||
<select name="acTypeNo" 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>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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:actype_manage:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="arj21:actype_manage:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="arj21:actype_manage:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="arj21:actype_manage: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:actype_manage:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('arj21:actype_manage:remove')}]];
|
||||
var prefix = ctx + "arj21/actype_manage";
|
||||
|
||||
$(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 : 'acTpye',
|
||||
title : '机型'
|
||||
},
|
||||
{
|
||||
field : 'csvHeaderIndex',
|
||||
title : 'csv列头对应index(弃用,改用info_version表中对应字段)'
|
||||
},
|
||||
{
|
||||
field : 'csvContentIndex',
|
||||
title : 'csv内容开始行对应index(弃用,改用info_version表中对应字段)'
|
||||
},
|
||||
{
|
||||
field : 'versionId',
|
||||
title : '参数版本id'
|
||||
},
|
||||
{
|
||||
field : 'createDate',
|
||||
title : '创建时间'
|
||||
},
|
||||
{
|
||||
field : 'updateDate',
|
||||
title : '更新时间'
|
||||
},
|
||||
{
|
||||
field : 'remarks',
|
||||
title : '备注'
|
||||
},
|
||||
{
|
||||
field : 'acTypeNo',
|
||||
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>
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
<!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-actype_manage-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">机型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="acTpye" 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">csv列头对应index(弃用,改用info_version表中对应字段):</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvHeaderIndex" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv内容开始行对应index(弃用,改用info_version表中对应字段):</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvContentIndex" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">参数版本id:</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="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 is-required">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remarks" 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="delFlag" 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">
|
||||
<select name="acTypeNo" 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>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "arj21/actype_manage"
|
||||
$("#form-actype_manage-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-actype_manage-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>
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
<!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-actype_manage-edit" th:object="${infoAcType}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">机型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="acTpye" 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">csv列头对应index(弃用,改用info_version表中对应字段):</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvHeaderIndex" th:field="*{csvHeaderIndex}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv内容开始行对应index(弃用,改用info_version表中对应字段):</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvContentIndex" th:field="*{csvContentIndex}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">参数版本id:</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="createDate" th:value="${#dates.format(infoAcType.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(infoAcType.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 is-required">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remarks" th:field="*{remarks}" 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">
|
||||
<select name="acTypeNo" 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>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "arj21/actype_manage";
|
||||
$("#form-actype_manage-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-actype_manage-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>
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<!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-aircraft_manage-add">
|
||||
<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 is-required">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remarks" 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="delFlag" 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">
|
||||
<select name="acReg" 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">机型编号,info_ac_type.id:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="infoAcTypeId" 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">默认上传目录, info_resource.id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="uploadDirId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">null:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="aircompanyid" 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>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "arj21/aircraft_manage"
|
||||
$("#form-aircraft_manage-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-aircraft_manage-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>
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
<!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>
|
||||
<select name="acReg" 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>机型编号,info_ac_type.id:</p>
|
||||
<select name="infoAcTypeId" 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>null:</p>
|
||||
<select name="aircompanyid" 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>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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:aircraft_manage:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="arj21:aircraft_manage:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="arj21:aircraft_manage:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="arj21:aircraft_manage: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:aircraft_manage:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('arj21:aircraft_manage:remove')}]];
|
||||
var prefix = ctx + "arj21/aircraft_manage";
|
||||
|
||||
$(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 : 'createDate',
|
||||
title : '创建时间'
|
||||
},
|
||||
{
|
||||
field : 'updateDate',
|
||||
title : '更新时间'
|
||||
},
|
||||
{
|
||||
field : 'remarks',
|
||||
title : '备注'
|
||||
},
|
||||
{
|
||||
field : 'acReg',
|
||||
title : '飞机号'
|
||||
},
|
||||
{
|
||||
field : 'infoAcTypeId',
|
||||
title : '机型编号,info_ac_type.id'
|
||||
},
|
||||
{
|
||||
field : 'uploadDirId',
|
||||
title : '默认上传目录, info_resource.id'
|
||||
},
|
||||
{
|
||||
field : 'aircompanyid',
|
||||
title : 'null'
|
||||
},
|
||||
{
|
||||
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>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<!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-aircraft_manage-edit" th:object="${infoAircraft}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<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(infoAircraft.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(infoAircraft.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 is-required">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="remarks" th:field="*{remarks}" 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">
|
||||
<select name="acReg" 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">机型编号,info_ac_type.id:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="infoAcTypeId" 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">默认上传目录, info_resource.id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="uploadDirId" th:field="*{uploadDirId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">null:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="aircompanyid" 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>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "arj21/aircraft_manage";
|
||||
$("#form-aircraft_manage-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-aircraft_manage-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>
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<!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-version_manage-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本名:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="verName" 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="verDesc" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv列头对应index:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvHeaderIndex" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv内容开始行对应index:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvContentIndex" 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="scriptLanguage" 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="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/version_manage"
|
||||
$("#form-version_manage-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-version_manage-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>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<!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-version_manage-edit" th:object="${infoVersion}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">版本名:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="verName" 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="verDesc" th:field="*{verDesc}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv列头对应index:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvHeaderIndex" th:field="*{csvHeaderIndex}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">csv内容开始行对应index:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="csvContentIndex" th:field="*{csvContentIndex}" 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="scriptLanguage" th:field="*{scriptLanguage}" 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="createDate" th:value="${#dates.format(infoVersion.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(infoVersion.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/version_manage";
|
||||
$("#form-version_manage-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-version_manage-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>
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
<!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>
|
||||
<select name="verName" 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="verDesc"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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:version_manage:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="arj21:version_manage:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="arj21:version_manage:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="arj21:version_manage: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:version_manage:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('arj21:version_manage:remove')}]];
|
||||
var prefix = ctx + "arj21/version_manage";
|
||||
|
||||
$(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 : 'verName',
|
||||
title : '版本名'
|
||||
},
|
||||
{
|
||||
field : 'verDesc',
|
||||
title : '版本描述'
|
||||
},
|
||||
{
|
||||
field : 'csvHeaderIndex',
|
||||
title : 'csv列头对应index'
|
||||
},
|
||||
{
|
||||
field : 'csvContentIndex',
|
||||
title : 'csv内容开始行对应index'
|
||||
},
|
||||
{
|
||||
field : 'scriptLanguage',
|
||||
title : '脚本语言'
|
||||
},
|
||||
{
|
||||
field : 'createDate',
|
||||
title : '创建时间'
|
||||
},
|
||||
{
|
||||
field : 'updateDate',
|
||||
title : '更新时间'
|
||||
},
|
||||
{
|
||||
field : 'remarks',
|
||||
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>
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package cn.com.infosouth.arj21.controller.actypemanage;
|
||||
|
||||
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.InfoAcType;
|
||||
import cn.com.infosouth.arj21.service.IInfoAcTypeService;
|
||||
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/actype_manage")
|
||||
public class InfoAcTypeController extends BaseController
|
||||
{
|
||||
private String prefix = "arj21/actype_manage";
|
||||
|
||||
@Autowired
|
||||
private IInfoAcTypeService infoAcTypeService;
|
||||
|
||||
@RequiresPermissions("arj21:actype_manage:view")
|
||||
@GetMapping()
|
||||
public String actype_manage()
|
||||
{
|
||||
return prefix + "/actype_manage";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询机型列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:actype_manage:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(InfoAcType infoAcType)
|
||||
{
|
||||
startPage();
|
||||
List<InfoAcType> list = infoAcTypeService.selectInfoAcTypeList(infoAcType);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出机型列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:actype_manage:export")
|
||||
@Log(title = "机型", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(InfoAcType infoAcType)
|
||||
{
|
||||
List<InfoAcType> list = infoAcTypeService.selectInfoAcTypeList(infoAcType);
|
||||
ExcelUtil<InfoAcType> util = new ExcelUtil<InfoAcType>(InfoAcType.class);
|
||||
return util.exportExcel(list, "actype_manage");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增机型
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存机型
|
||||
*/
|
||||
@RequiresPermissions("arj21:actype_manage:add")
|
||||
@Log(title = "机型", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(InfoAcType infoAcType)
|
||||
{
|
||||
return toAjax(infoAcTypeService.insertInfoAcType(infoAcType));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改机型
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
InfoAcType infoAcType = infoAcTypeService.selectInfoAcTypeById(id);
|
||||
mmap.put("infoAcType", infoAcType);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存机型
|
||||
*/
|
||||
@RequiresPermissions("arj21:actype_manage:edit")
|
||||
@Log(title = "机型", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(InfoAcType infoAcType)
|
||||
{
|
||||
return toAjax(infoAcTypeService.updateInfoAcType(infoAcType));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除机型
|
||||
*/
|
||||
@RequiresPermissions("arj21:actype_manage:remove")
|
||||
@Log(title = "机型", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(infoAcTypeService.deleteInfoAcTypeByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package cn.com.infosouth.arj21.controller.aircraftmanage;
|
||||
|
||||
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.InfoAircraft;
|
||||
import cn.com.infosouth.arj21.service.IInfoAircraftService;
|
||||
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/aircraft_manage")
|
||||
public class InfoAircraftController extends BaseController
|
||||
{
|
||||
private String prefix = "arj21/aircraft_manage";
|
||||
|
||||
@Autowired
|
||||
private IInfoAircraftService infoAircraftService;
|
||||
|
||||
@RequiresPermissions("arj21:aircraft_manage:view")
|
||||
@GetMapping()
|
||||
public String aircraft_manage()
|
||||
{
|
||||
return prefix + "/aircraft_manage";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询飞机列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:aircraft_manage:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(InfoAircraft infoAircraft)
|
||||
{
|
||||
startPage();
|
||||
List<InfoAircraft> list = infoAircraftService.selectInfoAircraftList(infoAircraft);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出飞机列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:aircraft_manage:export")
|
||||
@Log(title = "飞机", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(InfoAircraft infoAircraft)
|
||||
{
|
||||
List<InfoAircraft> list = infoAircraftService.selectInfoAircraftList(infoAircraft);
|
||||
ExcelUtil<InfoAircraft> util = new ExcelUtil<InfoAircraft>(InfoAircraft.class);
|
||||
return util.exportExcel(list, "aircraft_manage");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增飞机
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存飞机
|
||||
*/
|
||||
@RequiresPermissions("arj21:aircraft_manage:add")
|
||||
@Log(title = "飞机", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(InfoAircraft infoAircraft)
|
||||
{
|
||||
return toAjax(infoAircraftService.insertInfoAircraft(infoAircraft));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改飞机
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") String id, ModelMap mmap)
|
||||
{
|
||||
InfoAircraft infoAircraft = infoAircraftService.selectInfoAircraftById(id);
|
||||
mmap.put("infoAircraft", infoAircraft);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存飞机
|
||||
*/
|
||||
@RequiresPermissions("arj21:aircraft_manage:edit")
|
||||
@Log(title = "飞机", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(InfoAircraft infoAircraft)
|
||||
{
|
||||
return toAjax(infoAircraftService.updateInfoAircraft(infoAircraft));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除飞机
|
||||
*/
|
||||
@RequiresPermissions("arj21:aircraft_manage:remove")
|
||||
@Log(title = "飞机", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(infoAircraftService.deleteInfoAircraftByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package cn.com.infosouth.arj21.controller.versionmanage;
|
||||
|
||||
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.InfoVersion;
|
||||
import cn.com.infosouth.arj21.service.IInfoVersionService;
|
||||
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/version_manage")
|
||||
public class InfoVersionController extends BaseController
|
||||
{
|
||||
private String prefix = "arj21/version_manage";
|
||||
|
||||
@Autowired
|
||||
private IInfoVersionService infoVersionService;
|
||||
|
||||
@RequiresPermissions("arj21:version_manage:view")
|
||||
@GetMapping()
|
||||
public String version_manage()
|
||||
{
|
||||
return prefix + "/version_manage";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询参数版本列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:version_manage:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(InfoVersion infoVersion)
|
||||
{
|
||||
startPage();
|
||||
List<InfoVersion> list = infoVersionService.selectInfoVersionList(infoVersion);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出参数版本列表
|
||||
*/
|
||||
@RequiresPermissions("arj21:version_manage:export")
|
||||
@Log(title = "参数版本", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(InfoVersion infoVersion)
|
||||
{
|
||||
List<InfoVersion> list = infoVersionService.selectInfoVersionList(infoVersion);
|
||||
ExcelUtil<InfoVersion> util = new ExcelUtil<InfoVersion>(InfoVersion.class);
|
||||
return util.exportExcel(list, "version_manage");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增参数版本
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存参数版本
|
||||
*/
|
||||
@RequiresPermissions("arj21:version_manage:add")
|
||||
@Log(title = "参数版本", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(InfoVersion infoVersion)
|
||||
{
|
||||
return toAjax(infoVersionService.insertInfoVersion(infoVersion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改参数版本
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
InfoVersion infoVersion = infoVersionService.selectInfoVersionById(id);
|
||||
mmap.put("infoVersion", infoVersion);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存参数版本
|
||||
*/
|
||||
@RequiresPermissions("arj21:version_manage:edit")
|
||||
@Log(title = "参数版本", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(InfoVersion infoVersion)
|
||||
{
|
||||
return toAjax(infoVersionService.updateInfoVersion(infoVersion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除参数版本
|
||||
*/
|
||||
@RequiresPermissions("arj21:version_manage:remove")
|
||||
@Log(title = "参数版本", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(infoVersionService.deleteInfoVersionByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,165 @@
|
|||
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_ac_type
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public class InfoAcType extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private String id;
|
||||
|
||||
/** 机型 */
|
||||
@Excel(name = "机型")
|
||||
private String acTpye;
|
||||
|
||||
/** csv列头对应index(弃用,改用info_version表中对应字段) */
|
||||
@Excel(name = "csv列头对应index(弃用,改用info_version表中对应字段)")
|
||||
private Long csvHeaderIndex;
|
||||
|
||||
/** csv内容开始行对应index(弃用,改用info_version表中对应字段) */
|
||||
@Excel(name = "csv内容开始行对应index(弃用,改用info_version表中对应字段)")
|
||||
private Long csvContentIndex;
|
||||
|
||||
/** 参数版本id */
|
||||
@Excel(name = "参数版本id")
|
||||
private Long versionId;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
|
||||
/** 机型的编号,自定义。用于查询后方便识记机型 */
|
||||
@Excel(name = "机型的编号,自定义。用于查询后方便识记机型")
|
||||
private String acTypeNo;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setAcTpye(String acTpye)
|
||||
{
|
||||
this.acTpye = acTpye;
|
||||
}
|
||||
|
||||
public String getAcTpye()
|
||||
{
|
||||
return acTpye;
|
||||
}
|
||||
public void setCsvHeaderIndex(Long csvHeaderIndex)
|
||||
{
|
||||
this.csvHeaderIndex = csvHeaderIndex;
|
||||
}
|
||||
|
||||
public Long getCsvHeaderIndex()
|
||||
{
|
||||
return csvHeaderIndex;
|
||||
}
|
||||
public void setCsvContentIndex(Long csvContentIndex)
|
||||
{
|
||||
this.csvContentIndex = csvContentIndex;
|
||||
}
|
||||
|
||||
public Long getCsvContentIndex()
|
||||
{
|
||||
return csvContentIndex;
|
||||
}
|
||||
public void setVersionId(Long versionId)
|
||||
{
|
||||
this.versionId = versionId;
|
||||
}
|
||||
|
||||
public Long getVersionId()
|
||||
{
|
||||
return versionId;
|
||||
}
|
||||
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 setAcTypeNo(String acTypeNo)
|
||||
{
|
||||
this.acTypeNo = acTypeNo;
|
||||
}
|
||||
|
||||
public String getAcTypeNo()
|
||||
{
|
||||
return acTypeNo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("acTpye", getAcTpye())
|
||||
.append("csvHeaderIndex", getCsvHeaderIndex())
|
||||
.append("csvContentIndex", getCsvContentIndex())
|
||||
.append("versionId", getVersionId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateDate", getUpdateDate())
|
||||
.append("remarks", getRemarks())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("acTypeNo", getAcTypeNo())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,151 @@
|
|||
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_aircraft
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public class InfoAircraft extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private String id;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
|
||||
/** 飞机号 */
|
||||
@Excel(name = "飞机号")
|
||||
private String acReg;
|
||||
|
||||
/** 机型编号,info_ac_type.id */
|
||||
@Excel(name = "机型编号,info_ac_type.id")
|
||||
private String infoAcTypeId;
|
||||
|
||||
/** 默认上传目录, info_resource.id */
|
||||
@Excel(name = "默认上传目录, info_resource.id")
|
||||
private String uploadDirId;
|
||||
|
||||
/** null */
|
||||
@Excel(name = "null")
|
||||
private String aircompanyid;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
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 setAcReg(String acReg)
|
||||
{
|
||||
this.acReg = acReg;
|
||||
}
|
||||
|
||||
public String getAcReg()
|
||||
{
|
||||
return acReg;
|
||||
}
|
||||
public void setInfoAcTypeId(String infoAcTypeId)
|
||||
{
|
||||
this.infoAcTypeId = infoAcTypeId;
|
||||
}
|
||||
|
||||
public String getInfoAcTypeId()
|
||||
{
|
||||
return infoAcTypeId;
|
||||
}
|
||||
public void setUploadDirId(String uploadDirId)
|
||||
{
|
||||
this.uploadDirId = uploadDirId;
|
||||
}
|
||||
|
||||
public String getUploadDirId()
|
||||
{
|
||||
return uploadDirId;
|
||||
}
|
||||
public void setAircompanyid(String aircompanyid)
|
||||
{
|
||||
this.aircompanyid = aircompanyid;
|
||||
}
|
||||
|
||||
public String getAircompanyid()
|
||||
{
|
||||
return aircompanyid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateDate", getUpdateDate())
|
||||
.append("remarks", getRemarks())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("acReg", getAcReg())
|
||||
.append("infoAcTypeId", getInfoAcTypeId())
|
||||
.append("uploadDirId", getUploadDirId())
|
||||
.append("aircompanyid", getAircompanyid())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,165 @@
|
|||
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_version
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public class InfoVersion extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** null */
|
||||
private Long id;
|
||||
|
||||
/** 版本名 */
|
||||
@Excel(name = "版本名")
|
||||
private String verName;
|
||||
|
||||
/** 版本描述 */
|
||||
@Excel(name = "版本描述")
|
||||
private String verDesc;
|
||||
|
||||
/** csv列头对应index */
|
||||
@Excel(name = "csv列头对应index")
|
||||
private Long csvHeaderIndex;
|
||||
|
||||
/** csv内容开始行对应index */
|
||||
@Excel(name = "csv内容开始行对应index")
|
||||
private Long csvContentIndex;
|
||||
|
||||
/** 脚本语言 */
|
||||
@Excel(name = "脚本语言")
|
||||
private String scriptLanguage;
|
||||
|
||||
/** 创建时间 */
|
||||
@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;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setVerName(String verName)
|
||||
{
|
||||
this.verName = verName;
|
||||
}
|
||||
|
||||
public String getVerName()
|
||||
{
|
||||
return verName;
|
||||
}
|
||||
public void setVerDesc(String verDesc)
|
||||
{
|
||||
this.verDesc = verDesc;
|
||||
}
|
||||
|
||||
public String getVerDesc()
|
||||
{
|
||||
return verDesc;
|
||||
}
|
||||
public void setCsvHeaderIndex(Long csvHeaderIndex)
|
||||
{
|
||||
this.csvHeaderIndex = csvHeaderIndex;
|
||||
}
|
||||
|
||||
public Long getCsvHeaderIndex()
|
||||
{
|
||||
return csvHeaderIndex;
|
||||
}
|
||||
public void setCsvContentIndex(Long csvContentIndex)
|
||||
{
|
||||
this.csvContentIndex = csvContentIndex;
|
||||
}
|
||||
|
||||
public Long getCsvContentIndex()
|
||||
{
|
||||
return csvContentIndex;
|
||||
}
|
||||
public void setScriptLanguage(String scriptLanguage)
|
||||
{
|
||||
this.scriptLanguage = scriptLanguage;
|
||||
}
|
||||
|
||||
public String getScriptLanguage()
|
||||
{
|
||||
return scriptLanguage;
|
||||
}
|
||||
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("verName", getVerName())
|
||||
.append("verDesc", getVerDesc())
|
||||
.append("csvHeaderIndex", getCsvHeaderIndex())
|
||||
.append("csvContentIndex", getCsvContentIndex())
|
||||
.append("scriptLanguage", getScriptLanguage())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateDate", getUpdateDate())
|
||||
.append("remarks", getRemarks())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoAcType;
|
||||
|
||||
/**
|
||||
* 机型Mapper接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface InfoAcTypeMapper
|
||||
{
|
||||
/**
|
||||
* 查询机型
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 机型
|
||||
*/
|
||||
public InfoAcType selectInfoAcTypeById(String id);
|
||||
|
||||
/**
|
||||
* 查询机型列表
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 机型集合
|
||||
*/
|
||||
public List<InfoAcType> selectInfoAcTypeList(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 新增机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoAcType(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 修改机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoAcType(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 删除机型
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAcTypeById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除机型
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAcTypeByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoAircraft;
|
||||
|
||||
/**
|
||||
* 飞机Mapper接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface InfoAircraftMapper
|
||||
{
|
||||
/**
|
||||
* 查询飞机
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 飞机
|
||||
*/
|
||||
public InfoAircraft selectInfoAircraftById(String id);
|
||||
|
||||
/**
|
||||
* 查询飞机列表
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 飞机集合
|
||||
*/
|
||||
public List<InfoAircraft> selectInfoAircraftList(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 新增飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoAircraft(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 修改飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoAircraft(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 删除飞机
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAircraftById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除飞机
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAircraftByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoVersion;
|
||||
|
||||
/**
|
||||
* 参数版本Mapper接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface InfoVersionMapper
|
||||
{
|
||||
/**
|
||||
* 查询参数版本
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 参数版本
|
||||
*/
|
||||
public InfoVersion selectInfoVersionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询参数版本列表
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 参数版本集合
|
||||
*/
|
||||
public List<InfoVersion> selectInfoVersionList(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 新增参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoVersion(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 修改参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoVersion(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 删除参数版本
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoVersionById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除参数版本
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoVersionByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.service;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoAcType;
|
||||
|
||||
/**
|
||||
* 机型Service接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface IInfoAcTypeService
|
||||
{
|
||||
/**
|
||||
* 查询机型
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 机型
|
||||
*/
|
||||
public InfoAcType selectInfoAcTypeById(String id);
|
||||
|
||||
/**
|
||||
* 查询机型列表
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 机型集合
|
||||
*/
|
||||
public List<InfoAcType> selectInfoAcTypeList(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 新增机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoAcType(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 修改机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoAcType(InfoAcType infoAcType);
|
||||
|
||||
/**
|
||||
* 批量删除机型
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAcTypeByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除机型信息
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAcTypeById(String id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.service;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoAircraft;
|
||||
|
||||
/**
|
||||
* 飞机Service接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface IInfoAircraftService
|
||||
{
|
||||
/**
|
||||
* 查询飞机
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 飞机
|
||||
*/
|
||||
public InfoAircraft selectInfoAircraftById(String id);
|
||||
|
||||
/**
|
||||
* 查询飞机列表
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 飞机集合
|
||||
*/
|
||||
public List<InfoAircraft> selectInfoAircraftList(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 新增飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoAircraft(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 修改飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoAircraft(InfoAircraft infoAircraft);
|
||||
|
||||
/**
|
||||
* 批量删除飞机
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAircraftByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除飞机信息
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoAircraftById(String id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package cn.com.infosouth.arj21.service;
|
||||
|
||||
import java.util.List;
|
||||
import cn.com.infosouth.arj21.domain.InfoVersion;
|
||||
|
||||
/**
|
||||
* 参数版本Service接口
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
public interface IInfoVersionService
|
||||
{
|
||||
/**
|
||||
* 查询参数版本
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 参数版本
|
||||
*/
|
||||
public InfoVersion selectInfoVersionById(Long id);
|
||||
|
||||
/**
|
||||
* 查询参数版本列表
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 参数版本集合
|
||||
*/
|
||||
public List<InfoVersion> selectInfoVersionList(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 新增参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertInfoVersion(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 修改参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateInfoVersion(InfoVersion infoVersion);
|
||||
|
||||
/**
|
||||
* 批量删除参数版本
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoVersionByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除参数版本信息
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInfoVersionById(Long id);
|
||||
}
|
||||
|
|
@ -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.InfoAcTypeMapper;
|
||||
import cn.com.infosouth.arj21.domain.InfoAcType;
|
||||
import cn.com.infosouth.arj21.service.IInfoAcTypeService;
|
||||
import cn.com.infosouth.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 机型Service业务层处理
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
@Service
|
||||
public class InfoAcTypeServiceImpl implements IInfoAcTypeService
|
||||
{
|
||||
@Autowired
|
||||
private InfoAcTypeMapper infoAcTypeMapper;
|
||||
|
||||
/**
|
||||
* 查询机型
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 机型
|
||||
*/
|
||||
@Override
|
||||
public InfoAcType selectInfoAcTypeById(String id)
|
||||
{
|
||||
return infoAcTypeMapper.selectInfoAcTypeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询机型列表
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 机型
|
||||
*/
|
||||
@Override
|
||||
public List<InfoAcType> selectInfoAcTypeList(InfoAcType infoAcType)
|
||||
{
|
||||
return infoAcTypeMapper.selectInfoAcTypeList(infoAcType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInfoAcType(InfoAcType infoAcType)
|
||||
{
|
||||
return infoAcTypeMapper.insertInfoAcType(infoAcType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改机型
|
||||
*
|
||||
* @param infoAcType 机型
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInfoAcType(InfoAcType infoAcType)
|
||||
{
|
||||
return infoAcTypeMapper.updateInfoAcType(infoAcType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除机型对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoAcTypeByIds(String ids)
|
||||
{
|
||||
return infoAcTypeMapper.deleteInfoAcTypeByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除机型信息
|
||||
*
|
||||
* @param id 机型ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoAcTypeById(String id)
|
||||
{
|
||||
return infoAcTypeMapper.deleteInfoAcTypeById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -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.InfoAircraftMapper;
|
||||
import cn.com.infosouth.arj21.domain.InfoAircraft;
|
||||
import cn.com.infosouth.arj21.service.IInfoAircraftService;
|
||||
import cn.com.infosouth.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 飞机Service业务层处理
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
@Service
|
||||
public class InfoAircraftServiceImpl implements IInfoAircraftService
|
||||
{
|
||||
@Autowired
|
||||
private InfoAircraftMapper infoAircraftMapper;
|
||||
|
||||
/**
|
||||
* 查询飞机
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 飞机
|
||||
*/
|
||||
@Override
|
||||
public InfoAircraft selectInfoAircraftById(String id)
|
||||
{
|
||||
return infoAircraftMapper.selectInfoAircraftById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询飞机列表
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 飞机
|
||||
*/
|
||||
@Override
|
||||
public List<InfoAircraft> selectInfoAircraftList(InfoAircraft infoAircraft)
|
||||
{
|
||||
return infoAircraftMapper.selectInfoAircraftList(infoAircraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInfoAircraft(InfoAircraft infoAircraft)
|
||||
{
|
||||
return infoAircraftMapper.insertInfoAircraft(infoAircraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改飞机
|
||||
*
|
||||
* @param infoAircraft 飞机
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInfoAircraft(InfoAircraft infoAircraft)
|
||||
{
|
||||
return infoAircraftMapper.updateInfoAircraft(infoAircraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除飞机对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoAircraftByIds(String ids)
|
||||
{
|
||||
return infoAircraftMapper.deleteInfoAircraftByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除飞机信息
|
||||
*
|
||||
* @param id 飞机ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoAircraftById(String id)
|
||||
{
|
||||
return infoAircraftMapper.deleteInfoAircraftById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -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.InfoVersionMapper;
|
||||
import cn.com.infosouth.arj21.domain.InfoVersion;
|
||||
import cn.com.infosouth.arj21.service.IInfoVersionService;
|
||||
import cn.com.infosouth.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 参数版本Service业务层处理
|
||||
*
|
||||
* @author kxnf
|
||||
* @date 2020-03-05
|
||||
*/
|
||||
@Service
|
||||
public class InfoVersionServiceImpl implements IInfoVersionService
|
||||
{
|
||||
@Autowired
|
||||
private InfoVersionMapper infoVersionMapper;
|
||||
|
||||
/**
|
||||
* 查询参数版本
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 参数版本
|
||||
*/
|
||||
@Override
|
||||
public InfoVersion selectInfoVersionById(Long id)
|
||||
{
|
||||
return infoVersionMapper.selectInfoVersionById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询参数版本列表
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 参数版本
|
||||
*/
|
||||
@Override
|
||||
public List<InfoVersion> selectInfoVersionList(InfoVersion infoVersion)
|
||||
{
|
||||
return infoVersionMapper.selectInfoVersionList(infoVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertInfoVersion(InfoVersion infoVersion)
|
||||
{
|
||||
return infoVersionMapper.insertInfoVersion(infoVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改参数版本
|
||||
*
|
||||
* @param infoVersion 参数版本
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateInfoVersion(InfoVersion infoVersion)
|
||||
{
|
||||
return infoVersionMapper.updateInfoVersion(infoVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除参数版本对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoVersionByIds(String ids)
|
||||
{
|
||||
return infoVersionMapper.deleteInfoVersionByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除参数版本信息
|
||||
*
|
||||
* @param id 参数版本ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteInfoVersionById(Long id)
|
||||
{
|
||||
return infoVersionMapper.deleteInfoVersionById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?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.InfoAcTypeMapper">
|
||||
|
||||
<resultMap type="InfoAcType" id="InfoAcTypeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="acTpye" column="ac_tpye" />
|
||||
<result property="csvHeaderIndex" column="csv_header_index" />
|
||||
<result property="csvContentIndex" column="csv_content_index" />
|
||||
<result property="versionId" column="version_id" />
|
||||
<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="acTypeNo" column="ac_type_no" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectInfoAcTypeVo">
|
||||
select id, ac_tpye, csv_header_index, csv_content_index, version_id, create_by, create_date, update_by, update_date, remarks, del_flag, ac_type_no from info_ac_type
|
||||
</sql>
|
||||
|
||||
<select id="selectInfoAcTypeList" parameterType="InfoAcType" resultMap="InfoAcTypeResult">
|
||||
<include refid="selectInfoAcTypeVo"/>
|
||||
<where>
|
||||
<if test="acTpye != null and acTpye != ''"> and ac_tpye like concat('%', #{acTpye}, '%')</if>
|
||||
<if test="versionId != null "> and version_id = #{versionId}</if>
|
||||
<if test="remarks != null and remarks != ''"> and remarks like concat('%', #{remarks}, '%')</if>
|
||||
<if test="acTypeNo != null and acTypeNo != ''"> and ac_type_no like concat('%', #{acTypeNo}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectInfoAcTypeById" parameterType="String" resultMap="InfoAcTypeResult">
|
||||
<include refid="selectInfoAcTypeVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertInfoAcType" parameterType="InfoAcType">
|
||||
insert into info_ac_type
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="acTpye != null and acTpye != ''">ac_tpye,</if>
|
||||
<if test="csvHeaderIndex != null ">csv_header_index,</if>
|
||||
<if test="csvContentIndex != null ">csv_content_index,</if>
|
||||
<if test="versionId != null ">version_id,</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="acTypeNo != null and acTypeNo != ''">ac_type_no,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="acTpye != null and acTpye != ''">#{acTpye},</if>
|
||||
<if test="csvHeaderIndex != null ">#{csvHeaderIndex},</if>
|
||||
<if test="csvContentIndex != null ">#{csvContentIndex},</if>
|
||||
<if test="versionId != null ">#{versionId},</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="acTypeNo != null and acTypeNo != ''">#{acTypeNo},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateInfoAcType" parameterType="InfoAcType">
|
||||
update info_ac_type
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="acTpye != null and acTpye != ''">ac_tpye = #{acTpye},</if>
|
||||
<if test="csvHeaderIndex != null ">csv_header_index = #{csvHeaderIndex},</if>
|
||||
<if test="csvContentIndex != null ">csv_content_index = #{csvContentIndex},</if>
|
||||
<if test="versionId != null ">version_id = #{versionId},</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="acTypeNo != null and acTypeNo != ''">ac_type_no = #{acTypeNo},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteInfoAcTypeById" parameterType="String">
|
||||
delete from info_ac_type where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInfoAcTypeByIds" parameterType="String">
|
||||
delete from info_ac_type where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
<?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.InfoAircraftMapper">
|
||||
|
||||
<resultMap type="InfoAircraft" id="InfoAircraftResult">
|
||||
<result property="id" column="id" />
|
||||
<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="acReg" column="ac_reg" />
|
||||
<result property="infoAcTypeId" column="info_ac_type_id" />
|
||||
<result property="uploadDirId" column="upload_dir_id" />
|
||||
<result property="aircompanyid" column="airCompanyId" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectInfoAircraftVo">
|
||||
select id, create_by, create_date, update_by, update_date, remarks, del_flag, ac_reg, info_ac_type_id, upload_dir_id, airCompanyId from info_aircraft
|
||||
</sql>
|
||||
|
||||
<select id="selectInfoAircraftList" parameterType="InfoAircraft" resultMap="InfoAircraftResult">
|
||||
<include refid="selectInfoAircraftVo"/>
|
||||
<where>
|
||||
<if test="acReg != null and acReg != ''"> and ac_reg = #{acReg}</if>
|
||||
<if test="infoAcTypeId != null and infoAcTypeId != ''"> and info_ac_type_id = #{infoAcTypeId}</if>
|
||||
<if test="aircompanyid != null and aircompanyid != ''"> and airCompanyId = #{aircompanyid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectInfoAircraftById" parameterType="String" resultMap="InfoAircraftResult">
|
||||
<include refid="selectInfoAircraftVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertInfoAircraft" parameterType="InfoAircraft">
|
||||
insert into info_aircraft
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</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="acReg != null and acReg != ''">ac_reg,</if>
|
||||
<if test="infoAcTypeId != null and infoAcTypeId != ''">info_ac_type_id,</if>
|
||||
<if test="uploadDirId != null and uploadDirId != ''">upload_dir_id,</if>
|
||||
<if test="aircompanyid != null and aircompanyid != ''">airCompanyId,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</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="acReg != null and acReg != ''">#{acReg},</if>
|
||||
<if test="infoAcTypeId != null and infoAcTypeId != ''">#{infoAcTypeId},</if>
|
||||
<if test="uploadDirId != null and uploadDirId != ''">#{uploadDirId},</if>
|
||||
<if test="aircompanyid != null and aircompanyid != ''">#{aircompanyid},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateInfoAircraft" parameterType="InfoAircraft">
|
||||
update info_aircraft
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<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="acReg != null and acReg != ''">ac_reg = #{acReg},</if>
|
||||
<if test="infoAcTypeId != null and infoAcTypeId != ''">info_ac_type_id = #{infoAcTypeId},</if>
|
||||
<if test="uploadDirId != null and uploadDirId != ''">upload_dir_id = #{uploadDirId},</if>
|
||||
<if test="aircompanyid != null and aircompanyid != ''">airCompanyId = #{aircompanyid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteInfoAircraftById" parameterType="String">
|
||||
delete from info_aircraft where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInfoAircraftByIds" parameterType="String">
|
||||
delete from info_aircraft where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
<?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.InfoVersionMapper">
|
||||
|
||||
<resultMap type="InfoVersion" id="InfoVersionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="verName" column="ver_name" />
|
||||
<result property="verDesc" column="ver_desc" />
|
||||
<result property="csvHeaderIndex" column="csv_header_index" />
|
||||
<result property="csvContentIndex" column="csv_content_index" />
|
||||
<result property="scriptLanguage" column="script_language" />
|
||||
<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="selectInfoVersionVo">
|
||||
select id, ver_name, ver_desc, csv_header_index, csv_content_index, script_language, create_by, create_date, update_by, update_date, remarks, del_flag from info_version
|
||||
</sql>
|
||||
|
||||
<select id="selectInfoVersionList" parameterType="InfoVersion" resultMap="InfoVersionResult">
|
||||
<include refid="selectInfoVersionVo"/>
|
||||
<where>
|
||||
<if test="verName != null and verName != ''"> and ver_name like concat('%', #{verName}, '%')</if>
|
||||
<if test="verDesc != null and verDesc != ''"> and ver_desc like concat('%', #{verDesc}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectInfoVersionById" parameterType="Long" resultMap="InfoVersionResult">
|
||||
<include refid="selectInfoVersionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertInfoVersion" parameterType="InfoVersion" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into info_version
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="verName != null and verName != ''">ver_name,</if>
|
||||
<if test="verDesc != null and verDesc != ''">ver_desc,</if>
|
||||
<if test="csvHeaderIndex != null ">csv_header_index,</if>
|
||||
<if test="csvContentIndex != null ">csv_content_index,</if>
|
||||
<if test="scriptLanguage != null and scriptLanguage != ''">script_language,</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="verName != null and verName != ''">#{verName},</if>
|
||||
<if test="verDesc != null and verDesc != ''">#{verDesc},</if>
|
||||
<if test="csvHeaderIndex != null ">#{csvHeaderIndex},</if>
|
||||
<if test="csvContentIndex != null ">#{csvContentIndex},</if>
|
||||
<if test="scriptLanguage != null and scriptLanguage != ''">#{scriptLanguage},</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="updateInfoVersion" parameterType="InfoVersion">
|
||||
update info_version
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="verName != null and verName != ''">ver_name = #{verName},</if>
|
||||
<if test="verDesc != null and verDesc != ''">ver_desc = #{verDesc},</if>
|
||||
<if test="csvHeaderIndex != null ">csv_header_index = #{csvHeaderIndex},</if>
|
||||
<if test="csvContentIndex != null ">csv_content_index = #{csvContentIndex},</if>
|
||||
<if test="scriptLanguage != null and scriptLanguage != ''">script_language = #{scriptLanguage},</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="deleteInfoVersionById" parameterType="Long">
|
||||
delete from info_version where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInfoVersionByIds" parameterType="String">
|
||||
delete from info_version where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -10,18 +10,18 @@ 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 Log;
|
||||
import BusinessType;
|
||||
import cn.com.infosouth.common.annotation.Log;
|
||||
import cn.com.infosouth.common.enums.BusinessType;
|
||||
import ${packageName}.domain.${ClassName};
|
||||
import ${packageName}.service.I${ClassName}Service;
|
||||
import BaseController;
|
||||
import AjaxResult;
|
||||
import ExcelUtil;
|
||||
import cn.com.infosouth.common.core.controller.BaseController;
|
||||
import cn.com.infosouth.common.core.domain.AjaxResult;
|
||||
import cn.com.infosouth.common.utils.poi.ExcelUtil;
|
||||
#if($table.crud)
|
||||
import TableDataInfo;
|
||||
import cn.com.infosouth.common.core.page.TableDataInfo;
|
||||
#elseif($table.tree)
|
||||
import StringUtils;
|
||||
import Ztree;
|
||||
import cn.com.infosouth.common.utils.StringUtils;
|
||||
import cn.com.infosouth.common.core.domain.Ztree;
|
||||
#end
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ package ${packageName}.domain;
|
|||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import Excel;
|
||||
import cn.com.infosouth.common.annotation.Excel;
|
||||
#if($table.crud)
|
||||
import BaseEntity;
|
||||
import cn.com.infosouth.common.core.domain.BaseEntity;
|
||||
#elseif($table.tree)
|
||||
import TreeEntity;
|
||||
import cn.com.infosouth.common.core.domain.TreeEntity;
|
||||
#end
|
||||
#foreach ($import in $importList)
|
||||
import ${import};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package ${packageName}.service;
|
|||
import java.util.List;
|
||||
import ${packageName}.domain.${ClassName};
|
||||
#if($table.tree)
|
||||
import Ztree;
|
||||
import cn.com.infosouth.common.core.domain.Ztree;
|
||||
#end
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ package ${packageName}.service.impl;
|
|||
import java.util.List;
|
||||
#if($table.tree)
|
||||
import java.util.ArrayList;
|
||||
import Ztree;
|
||||
import cn.com.infosouth.common.core.domain.Ztree;
|
||||
#end
|
||||
#foreach ($column in $columns)
|
||||
#if($column.javaField == 'createTime' || $column.javaField == 'updateTime')
|
||||
import DateUtils;
|
||||
import cn.com.infosouth.common.utils.DateUtils;
|
||||
#break
|
||||
#end
|
||||
#end
|
||||
|
|
@ -16,7 +16,7 @@ import org.springframework.stereotype.Service;
|
|||
import ${packageName}.mapper.${ClassName}Mapper;
|
||||
import ${packageName}.domain.${ClassName};
|
||||
import ${packageName}.service.I${ClassName}Service;
|
||||
import Convert;
|
||||
import cn.com.infosouth.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* ${functionName}Service业务层处理
|
||||
|
|
|
|||
Loading…
Reference in New Issue