7 changed files with 3251 additions and 0 deletions
@ -0,0 +1,53 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
// 查询进度填报预警管理列表
|
|||
export function listWarningRule(query) { |
|||
return request({ |
|||
url: '/build/warningRule/list', |
|||
method: 'post', |
|||
data: query |
|||
}) |
|||
} |
|||
|
|||
// 查询进度填报预警管理详细
|
|||
export function getWarningRule(id) { |
|||
return request({ |
|||
url: '/build/warningRule/' + id, |
|||
method: 'get' |
|||
}) |
|||
} |
|||
|
|||
// 新增进度填报预警管理
|
|||
export function addWarningRule(data) { |
|||
return request({ |
|||
url: '/build/warningRule', |
|||
method: 'post', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 修改进度填报预警管理
|
|||
export function updateWarningRule(data) { |
|||
return request({ |
|||
url: '/build/warningRule', |
|||
method: 'put', |
|||
data: data |
|||
}) |
|||
} |
|||
|
|||
// 删除进度填报预警管理
|
|||
export function delWarningRule(id) { |
|||
return request({ |
|||
url: '/build/warningRule/' + id, |
|||
method: 'delete' |
|||
}) |
|||
} |
|||
|
|||
// 导出进度填报预警管理
|
|||
export function exportWarningRule(query) { |
|||
return request({ |
|||
url: '/build/warningRule/export', |
|||
method: 'get', |
|||
params: query |
|||
}) |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,513 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<el-tabs v-model="activeName" style="margin-bottom: 20px"> |
|||
<el-tab-pane |
|||
label="设置规则" |
|||
name="regular" |
|||
> |
|||
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch"> |
|||
<el-form-item label="所属项目" prop="projectName"> |
|||
<el-input |
|||
v-model="queryParams.data.projectName" |
|||
placeholder="请输入所属项目" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
slot="append" |
|||
icon="el-icon-search" |
|||
size="small" |
|||
@click="handleQuery" |
|||
></el-button> |
|||
</el-input> |
|||
</el-form-item> |
|||
<el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.data.status" placeholder="请选择状态" clearable size="small"> |
|||
<el-option label="请选择字典生成" value="" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
|
|||
<el-row :gutter="10" class="mb8"> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="primary" |
|||
icon="el-icon-plus" |
|||
size="mini" |
|||
@click="handleAdd" |
|||
v-hasPermi="['build:warningRule:add']" |
|||
>新增</el-button> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="success" |
|||
icon="el-icon-edit" |
|||
size="mini" |
|||
:disabled="single" |
|||
@click="handleUpdate" |
|||
v-hasPermi="['build:warningRule:edit']" |
|||
>修改</el-button> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="danger" |
|||
icon="el-icon-delete" |
|||
size="mini" |
|||
:disabled="multiple" |
|||
@click="handleDelete" |
|||
v-hasPermi="['build:warningRule:remove']" |
|||
>删除</el-button> |
|||
</el-col> |
|||
<el-col :span="1.5"> |
|||
<el-button |
|||
type="warning" |
|||
icon="el-icon-download" |
|||
size="mini" |
|||
@click="handleExport" |
|||
v-hasPermi="['build:warningRule:export']" |
|||
>导出</el-button> |
|||
</el-col> |
|||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|||
</el-row> |
|||
|
|||
<el-table v-loading="loading" :data="warningRuleList" @selection-change="handleSelectionChange"> |
|||
<el-table-column type="selection" width="55" align="center" fixed/> |
|||
<el-table-column label="序号" type="index" width="50" align="center" fixed/> |
|||
|
|||
<el-table-column label="所属项目" align="center" prop="projectName" min-width="120"/> |
|||
<el-table-column label="项目编码" align="center" prop="proCode" min-width="120"/> |
|||
<el-table-column label="项目编号" align="center" prop="proNo" min-width="120"/> |
|||
<el-table-column label="进度要求" align="center" prop="scheduleReq" min-width="120"/> |
|||
<el-table-column label="时间节点" align="center" prop="dateNode" min-width="120"/> |
|||
<el-table-column label="年度" align="center" prop="conYear" min-width="120"/> |
|||
<el-table-column label="约束条件" align="center" prop="conRule" min-width="120"/> |
|||
<el-table-column label="预警描述" align="center" prop="ruleMsg" min-width="120"/> |
|||
<el-table-column label="创建人" align="center" prop="createUid" min-width="120"/> |
|||
<el-table-column label="创建时间" align="center" prop="createTime" min-width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="更新人" align="center" prop="updateUid" min-width="120"/> |
|||
<el-table-column label="更新时间" align="center" prop="updateTime" min-width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center" prop="remark" min-width="120"/> |
|||
<el-table-column label="状态" align="center" prop="status" min-width="120"/> |
|||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right"> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['build:warningRule:edit']" |
|||
>修改</el-button> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['build:warningRule:remove']" |
|||
>删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-tab-pane> |
|||
<el-tab-pane |
|||
label="查看预警" |
|||
name="warning" |
|||
> |
|||
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch"> |
|||
<el-form-item label="所属项目" prop="projectName"> |
|||
<el-input |
|||
v-model="queryParams.data.projectName" |
|||
placeholder="请输入所属项目" |
|||
clearable |
|||
size="small" |
|||
@keyup.enter.native="handleQuery" |
|||
> |
|||
<el-button |
|||
type="primary" |
|||
slot="append" |
|||
icon="el-icon-search" |
|||
size="small" |
|||
@click="handleQuery" |
|||
></el-button> |
|||
</el-input> |
|||
</el-form-item> |
|||
<!-- <el-form-item label="状态" prop="status"> |
|||
<el-select v-model="queryParams.data.status" placeholder="请选择状态" clearable size="small"> |
|||
<el-option label="请选择字典生成" value="" /> |
|||
</el-select> |
|||
</el-form-item> --> |
|||
<el-form-item> |
|||
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
|||
</el-form-item> |
|||
</el-form> |
|||
|
|||
<el-table v-loading="loading" :data="warningRuleList" @selection-change="handleSelectionChange"> |
|||
<el-table-column type="selection" width="55" align="center" fixed/> |
|||
<el-table-column label="序号" type="index" width="50" align="center" fixed/> |
|||
|
|||
<el-table-column label="所属项目" align="center" prop="projectName" min-width="120"/> |
|||
<el-table-column label="项目编码" align="center" prop="proCode" min-width="120"/> |
|||
<el-table-column label="项目编号" align="center" prop="proNo" min-width="120"/> |
|||
<el-table-column label="进度要求" align="center" prop="scheduleReq" min-width="120"/> |
|||
<el-table-column label="时间节点" align="center" prop="dateNode" min-width="120"/> |
|||
<el-table-column label="年度" align="center" prop="conYear" min-width="120"/> |
|||
<el-table-column label="约束条件" align="center" prop="conRule" min-width="120"/> |
|||
<el-table-column label="预警描述" align="center" prop="ruleMsg" min-width="120"/> |
|||
<el-table-column label="创建人" align="center" prop="createUid" min-width="120"/> |
|||
<el-table-column label="创建时间" align="center" prop="createTime" min-width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="更新人" align="center" prop="updateUid" min-width="120"/> |
|||
<el-table-column label="更新时间" align="center" prop="updateTime" min-width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center" prop="remark" min-width="120"/> |
|||
<el-table-column label="状态" align="center" prop="status" min-width="120"/> |
|||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180" fixed="right"> |
|||
<template slot-scope="scope"> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-edit" |
|||
@click="handleUpdate(scope.row)" |
|||
v-hasPermi="['build:warningRule:edit']" |
|||
>修改</el-button> |
|||
<el-button |
|||
size="mini" |
|||
type="text" |
|||
icon="el-icon-delete" |
|||
@click="handleDelete(scope.row)" |
|||
v-hasPermi="['build:warningRule:remove']" |
|||
>删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
|
|||
|
|||
|
|||
<pagination |
|||
v-show="total>0" |
|||
:total="total" |
|||
:page.sync="queryParams.pageNum" |
|||
:limit.sync="queryParams.pageSize" |
|||
@pagination="getList" |
|||
/> |
|||
|
|||
<!-- 添加或修改进度填报预警管理对话框 --> |
|||
<el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body :close-on-click-modal="false"> |
|||
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|||
<el-form-item label="所属项目" prop="projectName"> |
|||
<el-input v-model="form.projectName" placeholder="请输入所属项目" /> |
|||
</el-form-item> |
|||
<el-form-item label="项目编码" prop="proCode"> |
|||
<el-input v-model="form.proCode" placeholder="请输入项目编码" /> |
|||
</el-form-item> |
|||
<el-form-item label="项目编号" prop="proNo"> |
|||
<el-input v-model="form.proNo" placeholder="请输入项目编号" /> |
|||
</el-form-item> |
|||
<el-form-item label="进度要求" prop="scheduleReq"> |
|||
<el-input v-model="form.scheduleReq" placeholder="请输入进度要求" /> |
|||
</el-form-item> |
|||
<el-form-item label="时间节点" prop="dateNode"> |
|||
<el-input v-model="form.dateNode" placeholder="请输入时间节点" /> |
|||
</el-form-item> |
|||
<el-form-item label="年度" prop="conYear"> |
|||
<el-input v-model="form.conYear" placeholder="请输入年度" /> |
|||
</el-form-item> |
|||
<el-form-item label="约束条件" prop="conRule"> |
|||
<el-input v-model="form.conRule" placeholder="请输入约束条件" /> |
|||
</el-form-item> |
|||
<el-form-item label="预警描述" prop="ruleMsg"> |
|||
<el-input v-model="form.ruleMsg" placeholder="请输入预警描述" /> |
|||
</el-form-item> |
|||
<el-form-item label="创建人" prop="createUid"> |
|||
<el-input v-model="form.createUid" placeholder="请输入创建人" /> |
|||
</el-form-item> |
|||
<el-form-item label="更新人" prop="updateUid"> |
|||
<el-input v-model="form.updateUid" placeholder="请输入更新人" /> |
|||
</el-form-item> |
|||
<el-form-item label="备注" prop="remark"> |
|||
<el-input v-model="form.remark" placeholder="请输入备注" /> |
|||
</el-form-item> |
|||
<el-form-item label="状态"> |
|||
<el-radio-group v-model="form.status"> |
|||
<el-radio label="1">请选择字典生成</el-radio> |
|||
</el-radio-group> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button type="primary" @click="submitForm">确 定</el-button> |
|||
<el-button @click="cancel">取 消</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { listWarningRule, getWarningRule, delWarningRule, addWarningRule, updateWarningRule, exportWarningRule } from "@/api/build/warningRule"; |
|||
import { watch } from "less"; |
|||
|
|||
export default { |
|||
name: "WarningRule", |
|||
data() { |
|||
return { |
|||
// 遮罩层 |
|||
loading: true, |
|||
// 选中数组 |
|||
ids: [], |
|||
// 非单个禁用 |
|||
single: true, |
|||
// 非多个禁用 |
|||
multiple: true, |
|||
// 显示搜索条件 |
|||
showSearch: true, |
|||
// 总条数 |
|||
total: 0, |
|||
// 进度填报预警管理表格数据 |
|||
warningRuleList: [], |
|||
// 弹出层标题 |
|||
title: "", |
|||
// 是否显示弹出层 |
|||
open: false, |
|||
// 查询参数 |
|||
queryParams: { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
ids:null, |
|||
data:{ |
|||
projectName: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
scheduleReq: null, |
|||
dateNode: null, |
|||
conYear: null, |
|||
conRule: null, |
|||
ruleMsg: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
status: null |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sortBy: "desc", |
|||
}, |
|||
}, |
|||
// 表单参数 |
|||
form: {}, |
|||
// 表单校验 |
|||
rules: { |
|||
}, |
|||
activeName: 'regular' |
|||
}; |
|||
}, |
|||
watch: { |
|||
activeName(newVal) { |
|||
if (newVal === 'warning') { |
|||
this.queryParams.data.status = 1 |
|||
} else { |
|||
this.queryParams.data.status = null |
|||
} |
|||
this.getList() |
|||
} |
|||
}, |
|||
created() { |
|||
this.getList(); |
|||
}, |
|||
methods: { |
|||
/** 查询进度填报预警管理列表 */ |
|||
getList() { |
|||
this.loading = true; |
|||
listWarningRule(this.queryParams).then(response => { |
|||
this.warningRuleList = response.records; |
|||
this.total = response.total; |
|||
this.loading = false; |
|||
}); |
|||
}, |
|||
// 取消按钮 |
|||
cancel() { |
|||
this.open = false; |
|||
this.reset(); |
|||
}, |
|||
// 表单重置 |
|||
reset() { |
|||
this.form = { |
|||
id: null, |
|||
projectName: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
scheduleReq: null, |
|||
dateNode: null, |
|||
conYear: null, |
|||
conRule: null, |
|||
ruleMsg: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
remark: null, |
|||
status: "0" |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
// 查询表单重置 |
|||
resetQueryForm() { |
|||
this.queryParams = { |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
data:{ |
|||
id: null, |
|||
projectName: null, |
|||
proCode: null, |
|||
proNo: null, |
|||
scheduleReq: null, |
|||
dateNode: null, |
|||
conYear: null, |
|||
conRule: null, |
|||
ruleMsg: null, |
|||
createUid: null, |
|||
createTime: null, |
|||
updateUid: null, |
|||
updateTime: null, |
|||
remark: null, |
|||
status: "0" |
|||
}, |
|||
// 排序方式 |
|||
params: { |
|||
// 按哪个字段排序 |
|||
orderBy: "create_time", |
|||
// desc降序,升序asc |
|||
sortBy: "desc", |
|||
}, |
|||
}; |
|||
this.resetForm("form"); |
|||
}, |
|||
/** 搜索按钮操作 */ |
|||
handleQuery() { |
|||
this.queryParams.pageNum = 1; |
|||
this.getList(); |
|||
}, |
|||
/** 重置按钮操作 */ |
|||
resetQuery() { |
|||
this.resetQueryForm(); |
|||
this.handleQuery(); |
|||
}, |
|||
// 多选框选中数据 |
|||
handleSelectionChange(selection) { |
|||
this.ids = selection.map(item => item.id) |
|||
this.single = selection.length!==1 |
|||
this.multiple = !selection.length |
|||
}, |
|||
/** 新增按钮操作 */ |
|||
handleAdd() { |
|||
this.reset(); |
|||
this.open = true; |
|||
this.title = "添加进度填报预警管理"; |
|||
}, |
|||
/** 修改按钮操作 */ |
|||
handleUpdate(row) { |
|||
this.reset(); |
|||
const id = row.id || this.ids |
|||
getWarningRule(id).then(response => { |
|||
this.form = response.data; |
|||
this.open = true; |
|||
this.title = "修改进度填报预警管理"; |
|||
}); |
|||
}, |
|||
/** 提交按钮 */ |
|||
submitForm() { |
|||
this.$refs["form"].validate(valid => { |
|||
if (valid) { |
|||
if (this.form.id != null) { |
|||
updateWarningRule(this.form).then(response => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("修改成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} else { |
|||
addWarningRule(this.form).then(response => { |
|||
if (response.code === 200) { |
|||
this.msgSuccess("新增成功"); |
|||
this.open = false; |
|||
this.getList(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}); |
|||
}, |
|||
/** 删除按钮操作 */ |
|||
handleDelete(row) { |
|||
const ids = row.id || this.ids; |
|||
if(ids){ |
|||
this.$confirm("是否删除选中的数据?", "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning" |
|||
}).then(function() { |
|||
return delWarningRule(ids); |
|||
}).then(() => { |
|||
this.getList(); |
|||
this.msgSuccess("删除成功"); |
|||
}).catch(function() {}); |
|||
}else{ |
|||
this.$message.warning("请选择要删除的数据!!"); |
|||
} |
|||
|
|||
}, |
|||
/** 导出按钮操作 */ |
|||
handleExport() { |
|||
const queryParams = this.queryParams; |
|||
let message = "是否确认导出所有的数据项?"; |
|||
if(this.ids){ |
|||
message = "是否确认导出选中的数据项?"; |
|||
queryParams.ids = this.ids; |
|||
} |
|||
this.$confirm(message, "警告", { |
|||
confirmButtonText: "确定", |
|||
cancelButtonText: "取消", |
|||
type: "warning" |
|||
}).then(function() { |
|||
return exportWarningRule(queryParams); |
|||
}).then(response => { |
|||
this.downloadFile(response, true, response.msg); |
|||
// this.download(response.msg); |
|||
}).catch(function() {}); |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "@/assets/css/dialog.scss"; |
|||
//::v-deep { |
|||
// .el-dialog { |
|||
// margin-top: 10vh !important; |
|||
// } |
|||
//} |
|||
</style> |
@ -0,0 +1,114 @@ |
|||
package com.kms.build.controller; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
|
|||
import com.jianwei.common.core.controller.BaseController; |
|||
import com.jianwei.common.core.domain.SearchParam; |
|||
import com.jianwei.common.utils.poi.ExcelUtil; |
|||
import com.kms.common.utils.BaseEntityUtils; |
|||
|
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.jianwei.common.mybaitsplus.BeanToWrapper; |
|||
|
|||
import com.jianwei.common.annotation.Log; |
|||
import com.jianwei.common.core.domain.AjaxResult; |
|||
import com.jianwei.common.enums.BusinessType; |
|||
import com.kms.build.domain.BsSgcJsjdBuiProgressRule; |
|||
import com.kms.build.service.BsSgcJsjdBuiProgressRuleService; |
|||
|
|||
|
|||
/** |
|||
* 进度填报预警管理Controller |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/build/warningRule") |
|||
@Api(tags = "进度填报预警管理") |
|||
public class BsSgcJsjdBuiProgressRuleController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private BsSgcJsjdBuiProgressRuleService bsSgcJsjdBuiProgressRuleService; |
|||
|
|||
/** |
|||
* 查询进度填报预警管理列表 |
|||
*/ |
|||
@PostMapping("/list") |
|||
@ApiOperation("进度填报预警管理列表") |
|||
public IPage list(@RequestBody SearchParam<BsSgcJsjdBuiProgressRule> sp) |
|||
{ |
|||
return bsSgcJsjdBuiProgressRuleService.selectPage(sp); |
|||
} |
|||
|
|||
/** |
|||
* 导出进度填报预警管理列表 |
|||
*/ |
|||
@Log(title = "进度填报预警管理导出", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
@ApiOperation("进度填报预警管理导出") |
|||
public AjaxResult export(@RequestBody BsSgcJsjdBuiProgressRule bsSgcJsjdBuiProgressRule) |
|||
{ |
|||
List<BsSgcJsjdBuiProgressRule> list = bsSgcJsjdBuiProgressRuleService.listByIds(bsSgcJsjdBuiProgressRule.getIds()); |
|||
ExcelUtil<BsSgcJsjdBuiProgressRule> util = new ExcelUtil<>(BsSgcJsjdBuiProgressRule.class); |
|||
return util.exportExcel(list, "warningRule"); |
|||
} |
|||
|
|||
/** |
|||
* 获取进度填报预警管理详细信息 |
|||
*/ |
|||
@ApiOperation(" 进度填报预警管理详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) |
|||
{ |
|||
return AjaxResult.success(bsSgcJsjdBuiProgressRuleService.getById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增进度填报预警管理 |
|||
*/ |
|||
@Log(title = "进度填报预警管理新增", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
@ApiOperation("进度填报预警管理新增") |
|||
public AjaxResult add(@RequestBody BsSgcJsjdBuiProgressRule bsSgcJsjdBuiProgressRule) |
|||
{ |
|||
BaseEntityUtils.preInsert(bsSgcJsjdBuiProgressRule); |
|||
return toAjax(bsSgcJsjdBuiProgressRuleService.save(bsSgcJsjdBuiProgressRule)); |
|||
} |
|||
|
|||
/** |
|||
* 修改进度填报预警管理 |
|||
*/ |
|||
@ApiOperation("进度填报预警管理修改") |
|||
@Log(title = "进度填报预警管理修改", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody BsSgcJsjdBuiProgressRule bsSgcJsjdBuiProgressRule) |
|||
{ |
|||
return toAjax(bsSgcJsjdBuiProgressRuleService.updateById(bsSgcJsjdBuiProgressRule)); |
|||
} |
|||
|
|||
/** |
|||
* 删除进度填报预警管理 |
|||
*/ |
|||
@ApiOperation("进度填报预警管理删除") |
|||
@Log(title = "进度填报预警管理删除", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public AjaxResult remove(@PathVariable String[] ids) |
|||
{ |
|||
return toAjax(bsSgcJsjdBuiProgressRuleService.removeByIds(Arrays.asList(ids))); |
|||
} |
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.kms.build.domain; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.jianwei.common.annotation.Excel; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
|
|||
import com.jianwei.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 进度填报预警管理对象 bs_sgc_jsjd_bui_progress_rule |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@TableName("bs_sgc_jsjd_bui_progress_rule") |
|||
@Data |
|||
@ApiModel("进度填报预警管理") |
|||
public class BsSgcJsjdBuiProgressRule extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 所属项目 */ |
|||
@Excel(name = "所属项目") |
|||
@ApiModelProperty("所属项目") |
|||
private String projectName; |
|||
|
|||
/** 项目编码 */ |
|||
@Excel(name = "项目编码") |
|||
@ApiModelProperty("项目编码") |
|||
private String proCode; |
|||
|
|||
/** 项目编号 */ |
|||
@Excel(name = "项目编号") |
|||
@ApiModelProperty("项目编号") |
|||
private String proNo; |
|||
|
|||
/** 进度要求 */ |
|||
@Excel(name = "进度要求") |
|||
@ApiModelProperty("进度要求") |
|||
private String scheduleReq; |
|||
|
|||
/** 时间节点 */ |
|||
@Excel(name = "时间节点") |
|||
@ApiModelProperty("时间节点") |
|||
private String dateNode; |
|||
|
|||
/** 年度 */ |
|||
@Excel(name = "年度") |
|||
@ApiModelProperty("年度") |
|||
private String conYear; |
|||
|
|||
/** 约束条件 */ |
|||
@Excel(name = "约束条件") |
|||
@ApiModelProperty("约束条件") |
|||
private String conRule; |
|||
|
|||
/** 预警描述 */ |
|||
@Excel(name = "预警描述") |
|||
@ApiModelProperty("预警描述") |
|||
private String ruleMsg; |
|||
|
|||
/** 创建人 */ |
|||
@Excel(name = "创建人") |
|||
@ApiModelProperty("创建人") |
|||
private String createUid; |
|||
|
|||
/** 更新人 */ |
|||
@Excel(name = "更新人") |
|||
@ApiModelProperty("更新人") |
|||
private String updateUid; |
|||
|
|||
/** 状态(0:没有预警,1:预警 */ |
|||
@Excel(name = "状态", readConverterExp = "状态(0:没有预警,1:预警") |
|||
@ApiModelProperty("状态") |
|||
private String status; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.kms.build.mapper; |
|||
|
|||
import org.springframework.stereotype.Repository; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.build.domain.BsSgcJsjdBuiProgressRule; |
|||
|
|||
/** |
|||
* 进度填报预警管理Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@Repository |
|||
public interface BsSgcJsjdBuiProgressRuleMapper extends BaseMapper<BsSgcJsjdBuiProgressRule> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.build.service; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
import com.jianwei.common.core.service.BaseService; |
|||
import com.kms.build.mapper.BsSgcJsjdBuiProgressRuleMapper; |
|||
import com.kms.build.domain.BsSgcJsjdBuiProgressRule; |
|||
|
|||
/** |
|||
* 进度填报预警管理Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2025-03-11 |
|||
*/ |
|||
@Service |
|||
public class BsSgcJsjdBuiProgressRuleService extends BaseService<BsSgcJsjdBuiProgressRuleMapper, BsSgcJsjdBuiProgressRule>{ |
|||
|
|||
} |
Loading…
Reference in new issue