update code
parent
752daf1d28
commit
cfb7c312bc
|
@ -0,0 +1 @@
|
||||||
|
mvn clean package -Dmaven.test.skip=true
|
|
@ -0,0 +1,14 @@
|
||||||
|
@echo off
|
||||||
|
echo.
|
||||||
|
echo [信息] 运行Web工程。
|
||||||
|
echo.
|
||||||
|
|
||||||
|
cd %~dp0
|
||||||
|
cd ../ruoyi-admin/target
|
||||||
|
|
||||||
|
set JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
|
java -jar %JAVA_OPTS% ruoyi-admin.jar
|
||||||
|
|
||||||
|
cd bin
|
||||||
|
pause
|
6
pom.xml
6
pom.xml
|
@ -194,6 +194,12 @@
|
||||||
<version>3.4.0</version>
|
<version>3.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
<version>1.18.30</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
|
|
|
@ -49,12 +49,12 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
#url: jdbc:mysql://62.234.3.186:3306/yanzhu_jh?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
url: jdbc:mysql://62.234.3.186:3306/yanzhu_jh_test?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
#password: Sxyanzhu@cf123
|
password: Sxyanzhu@cf123
|
||||||
url: jdbc:mysql://192.168.126.19:3306/yanzhu_jh_test2024?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
#url: jdbc:mysql://192.168.126.19:3306/yanzhu_jh_test2024?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8
|
||||||
#username: root
|
#username: root
|
||||||
password: hadoopspring123
|
#password: hadoopspring123
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询劳资管理列表
|
||||||
|
export function listUnitpay(query) {
|
||||||
|
return request({
|
||||||
|
url: '/project/unitpay/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询劳资管理详细
|
||||||
|
export function getUnitpay(id) {
|
||||||
|
return request({
|
||||||
|
url: '/project/unitpay/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增劳资管理
|
||||||
|
export function addUnitpay(data) {
|
||||||
|
return request({
|
||||||
|
url: '/project/unitpay',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改劳资管理
|
||||||
|
export function updateUnitpay(data) {
|
||||||
|
return request({
|
||||||
|
url: '/project/unitpay',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除劳资管理
|
||||||
|
export function delUnitpay(id) {
|
||||||
|
return request({
|
||||||
|
url: '/project/unitpay/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
|
@ -0,0 +1,374 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="配置ID" prop="cfgId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.cfgId"
|
||||||
|
placeholder="请输入配置ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组ID" prop="groupId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.groupId"
|
||||||
|
placeholder="请输入班组ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组名称" prop="groupName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.groupName"
|
||||||
|
placeholder="请输入班组名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种编码" prop="workTypeCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.workTypeCode"
|
||||||
|
placeholder="请输入工种编码"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种" prop="workTypeName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.workTypeName"
|
||||||
|
placeholder="请输入工种"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工资" prop="unitPay">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.unitPay"
|
||||||
|
placeholder="请输入工资"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="isDel">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.isDel"
|
||||||
|
placeholder="请输入${comment}"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" 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"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['project:unitpay:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['project:unitpay:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['project:unitpay:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['project:unitpay:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="unitpayList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="id" />
|
||||||
|
<el-table-column label="配置ID" align="center" prop="cfgId" />
|
||||||
|
<el-table-column label="班组ID" align="center" prop="groupId" />
|
||||||
|
<el-table-column label="班组名称" align="center" prop="groupName" />
|
||||||
|
<el-table-column label="工种编码" align="center" prop="workTypeCode" />
|
||||||
|
<el-table-column label="工种" align="center" prop="workTypeName" />
|
||||||
|
<el-table-column label="工资" align="center" prop="unitPay" />
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="isDel" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['project:unitpay:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['project:unitpay:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<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="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="配置ID" prop="cfgId">
|
||||||
|
<el-input v-model="form.cfgId" placeholder="请输入配置ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组ID" prop="groupId">
|
||||||
|
<el-input v-model="form.groupId" placeholder="请输入班组ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组名称" prop="groupName">
|
||||||
|
<el-input v-model="form.groupName" placeholder="请输入班组名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种编码" prop="workTypeCode">
|
||||||
|
<el-input v-model="form.workTypeCode" placeholder="请输入工种编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种" prop="workTypeName">
|
||||||
|
<el-input v-model="form.workTypeName" placeholder="请输入工种" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工资" prop="unitPay">
|
||||||
|
<el-input v-model="form.unitPay" placeholder="请输入工资" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="isDel">
|
||||||
|
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
|
||||||
|
</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 { listUnitpay, getUnitpay, delUnitpay, addUnitpay, updateUnitpay } from "@/api/project/unitpay";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Unitpay",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 劳资管理表格数据
|
||||||
|
unitpayList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
cfgId: null,
|
||||||
|
groupId: null,
|
||||||
|
groupName: null,
|
||||||
|
workTypeCode: null,
|
||||||
|
workTypeName: null,
|
||||||
|
unitPay: null,
|
||||||
|
isDel: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
cfgId: [
|
||||||
|
{ required: true, message: "配置ID不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
groupId: [
|
||||||
|
{ required: true, message: "班组ID不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
groupName: [
|
||||||
|
{ required: true, message: "班组名称不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
workTypeCode: [
|
||||||
|
{ required: true, message: "工种编码不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
workTypeName: [
|
||||||
|
{ required: true, message: "工种不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
unitPay: [
|
||||||
|
{ required: true, message: "工资不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
remark: [
|
||||||
|
{ required: true, message: "备注不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
isDel: [
|
||||||
|
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
createBy: [
|
||||||
|
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
createTime: [
|
||||||
|
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
updateBy: [
|
||||||
|
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
updateTime: [
|
||||||
|
{ required: true, message: "$comment不能为空", trigger: "blur" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询劳资管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listUnitpay(this.queryParams).then(response => {
|
||||||
|
this.unitpayList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
cfgId: null,
|
||||||
|
groupId: null,
|
||||||
|
groupName: null,
|
||||||
|
workTypeCode: null,
|
||||||
|
workTypeName: null,
|
||||||
|
unitPay: null,
|
||||||
|
remark: null,
|
||||||
|
isDel: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
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
|
||||||
|
getUnitpay(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) {
|
||||||
|
updateUnitpay(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addUnitpay(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal.confirm('是否确认删除劳资管理编号为"' + ids + '"的数据项?').then(function() {
|
||||||
|
return delUnitpay(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('project/unitpay/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `unitpay_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -0,0 +1,104 @@
|
||||||
|
package com.yanzhu.jh.project.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
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.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.yanzhu.jh.project.domain.SurProjectAttendanceUnitpay;
|
||||||
|
import com.yanzhu.jh.project.service.ISurProjectAttendanceUnitpayService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 劳资管理Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2024-11-10
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/project/unitpay")
|
||||||
|
public class SurProjectAttendanceUnitpayController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISurProjectAttendanceUnitpayService surProjectAttendanceUnitpayService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询劳资管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SurProjectAttendanceUnitpay> list = surProjectAttendanceUnitpayService.selectSurProjectAttendanceUnitpayList(surProjectAttendanceUnitpay);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出劳资管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:export')")
|
||||||
|
@Log(title = "劳资管理", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
List<SurProjectAttendanceUnitpay> list = surProjectAttendanceUnitpayService.selectSurProjectAttendanceUnitpayList(surProjectAttendanceUnitpay);
|
||||||
|
ExcelUtil<SurProjectAttendanceUnitpay> util = new ExcelUtil<SurProjectAttendanceUnitpay>(SurProjectAttendanceUnitpay.class);
|
||||||
|
util.exportExcel(response, list, "劳资管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取劳资管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(surProjectAttendanceUnitpayService.selectSurProjectAttendanceUnitpayById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增劳资管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:add')")
|
||||||
|
@Log(title = "劳资管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
return toAjax(surProjectAttendanceUnitpayService.insertSurProjectAttendanceUnitpay(surProjectAttendanceUnitpay));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改劳资管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:edit')")
|
||||||
|
@Log(title = "劳资管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
return toAjax(surProjectAttendanceUnitpayService.updateSurProjectAttendanceUnitpay(surProjectAttendanceUnitpay));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除劳资管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('project:unitpay:remove')")
|
||||||
|
@Log(title = "劳资管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(surProjectAttendanceUnitpayService.deleteSurProjectAttendanceUnitpayByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,140 @@
|
||||||
|
package com.yanzhu.jh.project.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 劳资管理对象 sur_project_attendance_unitpay
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2024-11-10
|
||||||
|
*/
|
||||||
|
public class SurProjectAttendanceUnitpay extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 配置ID */
|
||||||
|
@Excel(name = "配置ID")
|
||||||
|
private Long cfgId;
|
||||||
|
|
||||||
|
/** 班组ID */
|
||||||
|
@Excel(name = "班组ID")
|
||||||
|
private String groupId;
|
||||||
|
|
||||||
|
/** 班组名称 */
|
||||||
|
@Excel(name = "班组名称")
|
||||||
|
private String groupName;
|
||||||
|
|
||||||
|
/** 工种编码 */
|
||||||
|
@Excel(name = "工种编码")
|
||||||
|
private String workTypeCode;
|
||||||
|
|
||||||
|
/** 工种 */
|
||||||
|
@Excel(name = "工种")
|
||||||
|
private String workTypeName;
|
||||||
|
|
||||||
|
/** 工资 */
|
||||||
|
@Excel(name = "工资")
|
||||||
|
private Long unitPay;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long isDel;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setCfgId(Long cfgId)
|
||||||
|
{
|
||||||
|
this.cfgId = cfgId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getCfgId()
|
||||||
|
{
|
||||||
|
return cfgId;
|
||||||
|
}
|
||||||
|
public void setGroupId(String groupId)
|
||||||
|
{
|
||||||
|
this.groupId = groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupId()
|
||||||
|
{
|
||||||
|
return groupId;
|
||||||
|
}
|
||||||
|
public void setGroupName(String groupName)
|
||||||
|
{
|
||||||
|
this.groupName = groupName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupName()
|
||||||
|
{
|
||||||
|
return groupName;
|
||||||
|
}
|
||||||
|
public void setWorkTypeCode(String workTypeCode)
|
||||||
|
{
|
||||||
|
this.workTypeCode = workTypeCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWorkTypeCode()
|
||||||
|
{
|
||||||
|
return workTypeCode;
|
||||||
|
}
|
||||||
|
public void setWorkTypeName(String workTypeName)
|
||||||
|
{
|
||||||
|
this.workTypeName = workTypeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getWorkTypeName()
|
||||||
|
{
|
||||||
|
return workTypeName;
|
||||||
|
}
|
||||||
|
public void setUnitPay(Long unitPay)
|
||||||
|
{
|
||||||
|
this.unitPay = unitPay;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUnitPay()
|
||||||
|
{
|
||||||
|
return unitPay;
|
||||||
|
}
|
||||||
|
public void setIsDel(Long isDel)
|
||||||
|
{
|
||||||
|
this.isDel = isDel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getIsDel()
|
||||||
|
{
|
||||||
|
return isDel;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("cfgId", getCfgId())
|
||||||
|
.append("groupId", getGroupId())
|
||||||
|
.append("groupName", getGroupName())
|
||||||
|
.append("workTypeCode", getWorkTypeCode())
|
||||||
|
.append("workTypeName", getWorkTypeName())
|
||||||
|
.append("unitPay", getUnitPay())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("isDel", getIsDel())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.yanzhu.jh.project.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.yanzhu.jh.project.domain.SurProjectAttendanceUnitpay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 劳资管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2024-11-10
|
||||||
|
*/
|
||||||
|
public interface SurProjectAttendanceUnitpayMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询劳资管理
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 劳资管理
|
||||||
|
*/
|
||||||
|
public SurProjectAttendanceUnitpay selectSurProjectAttendanceUnitpayById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询劳资管理列表
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 劳资管理集合
|
||||||
|
*/
|
||||||
|
public List<SurProjectAttendanceUnitpay> selectSurProjectAttendanceUnitpayList(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除劳资管理
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSurProjectAttendanceUnitpayById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除劳资管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSurProjectAttendanceUnitpayByIds(Long[] ids);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.yanzhu.jh.project.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.yanzhu.jh.project.domain.SurProjectAttendanceUnitpay;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 劳资管理Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2024-11-10
|
||||||
|
*/
|
||||||
|
public interface ISurProjectAttendanceUnitpayService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询劳资管理
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 劳资管理
|
||||||
|
*/
|
||||||
|
public SurProjectAttendanceUnitpay selectSurProjectAttendanceUnitpayById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询劳资管理列表
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 劳资管理集合
|
||||||
|
*/
|
||||||
|
public List<SurProjectAttendanceUnitpay> selectSurProjectAttendanceUnitpayList(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除劳资管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的劳资管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSurProjectAttendanceUnitpayByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除劳资管理信息
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSurProjectAttendanceUnitpayById(Long id);
|
||||||
|
}
|
|
@ -0,0 +1,98 @@
|
||||||
|
package com.yanzhu.jh.project.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yanzhu.jh.project.mapper.SurProjectAttendanceUnitpayMapper;
|
||||||
|
import com.yanzhu.jh.project.domain.SurProjectAttendanceUnitpay;
|
||||||
|
import com.yanzhu.jh.project.service.ISurProjectAttendanceUnitpayService;
|
||||||
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
|
/**
|
||||||
|
* 劳资管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2024-11-10
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SurProjectAttendanceUnitpayServiceImpl implements ISurProjectAttendanceUnitpayService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SurProjectAttendanceUnitpayMapper surProjectAttendanceUnitpayMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询劳资管理
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 劳资管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SurProjectAttendanceUnitpay selectSurProjectAttendanceUnitpayById(Long id)
|
||||||
|
{
|
||||||
|
return surProjectAttendanceUnitpayMapper.selectSurProjectAttendanceUnitpayById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询劳资管理列表
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 劳资管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SurProjectAttendanceUnitpay> selectSurProjectAttendanceUnitpayList(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
return surProjectAttendanceUnitpayMapper.selectSurProjectAttendanceUnitpayList(surProjectAttendanceUnitpay);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
surProjectAttendanceUnitpay.setCreateBy(SecurityUtils.getUsername());
|
||||||
|
surProjectAttendanceUnitpay.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return surProjectAttendanceUnitpayMapper.insertSurProjectAttendanceUnitpay(surProjectAttendanceUnitpay);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改劳资管理
|
||||||
|
*
|
||||||
|
* @param surProjectAttendanceUnitpay 劳资管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSurProjectAttendanceUnitpay(SurProjectAttendanceUnitpay surProjectAttendanceUnitpay)
|
||||||
|
{
|
||||||
|
surProjectAttendanceUnitpay.setUpdateBy(SecurityUtils.getUsername());
|
||||||
|
surProjectAttendanceUnitpay.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return surProjectAttendanceUnitpayMapper.updateSurProjectAttendanceUnitpay(surProjectAttendanceUnitpay);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除劳资管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的劳资管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSurProjectAttendanceUnitpayByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return surProjectAttendanceUnitpayMapper.deleteSurProjectAttendanceUnitpayByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除劳资管理信息
|
||||||
|
*
|
||||||
|
* @param id 劳资管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSurProjectAttendanceUnitpayById(Long id)
|
||||||
|
{
|
||||||
|
return surProjectAttendanceUnitpayMapper.deleteSurProjectAttendanceUnitpayById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,106 @@
|
||||||
|
<?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="com.yanzhu.jh.project.mapper.SurProjectAttendanceUnitpayMapper">
|
||||||
|
|
||||||
|
<resultMap type="SurProjectAttendanceUnitpay" id="SurProjectAttendanceUnitpayResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="cfgId" column="cfgId" />
|
||||||
|
<result property="groupId" column="groupId" />
|
||||||
|
<result property="groupName" column="groupName" />
|
||||||
|
<result property="workTypeCode" column="workTypeCode" />
|
||||||
|
<result property="workTypeName" column="workTypeName" />
|
||||||
|
<result property="unitPay" column="unitPay" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="isDel" column="is_del" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSurProjectAttendanceUnitpayVo">
|
||||||
|
select id, cfgId, groupId, groupName, workTypeCode, workTypeName, unitPay, remark, is_del, create_by, create_time, update_by, update_time from sur_project_attendance_unitpay
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSurProjectAttendanceUnitpayList" parameterType="SurProjectAttendanceUnitpay" resultMap="SurProjectAttendanceUnitpayResult">
|
||||||
|
<include refid="selectSurProjectAttendanceUnitpayVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="cfgId != null "> and cfgId = #{cfgId}</if>
|
||||||
|
<if test="groupId != null and groupId != ''"> and groupId = #{groupId}</if>
|
||||||
|
<if test="groupName != null and groupName != ''"> and groupName like concat('%', #{groupName}, '%')</if>
|
||||||
|
<if test="workTypeCode != null and workTypeCode != ''"> and workTypeCode = #{workTypeCode}</if>
|
||||||
|
<if test="workTypeName != null and workTypeName != ''"> and workTypeName like concat('%', #{workTypeName}, '%')</if>
|
||||||
|
<if test="unitPay != null "> and unitPay = #{unitPay}</if>
|
||||||
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSurProjectAttendanceUnitpayById" parameterType="Long" resultMap="SurProjectAttendanceUnitpayResult">
|
||||||
|
<include refid="selectSurProjectAttendanceUnitpayVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSurProjectAttendanceUnitpay" parameterType="SurProjectAttendanceUnitpay" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into sur_project_attendance_unitpay
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="cfgId != null">cfgId,</if>
|
||||||
|
<if test="groupId != null and groupId != ''">groupId,</if>
|
||||||
|
<if test="groupName != null and groupName != ''">groupName,</if>
|
||||||
|
<if test="workTypeCode != null and workTypeCode != ''">workTypeCode,</if>
|
||||||
|
<if test="workTypeName != null and workTypeName != ''">workTypeName,</if>
|
||||||
|
<if test="unitPay != null">unitPay,</if>
|
||||||
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="isDel != null">is_del,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="cfgId != null">#{cfgId},</if>
|
||||||
|
<if test="groupId != null and groupId != ''">#{groupId},</if>
|
||||||
|
<if test="groupName != null and groupName != ''">#{groupName},</if>
|
||||||
|
<if test="workTypeCode != null and workTypeCode != ''">#{workTypeCode},</if>
|
||||||
|
<if test="workTypeName != null and workTypeName != ''">#{workTypeName},</if>
|
||||||
|
<if test="unitPay != null">#{unitPay},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="isDel != null">#{isDel},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSurProjectAttendanceUnitpay" parameterType="SurProjectAttendanceUnitpay">
|
||||||
|
update sur_project_attendance_unitpay
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="cfgId != null">cfgId = #{cfgId},</if>
|
||||||
|
<if test="groupId != null and groupId != ''">groupId = #{groupId},</if>
|
||||||
|
<if test="groupName != null and groupName != ''">groupName = #{groupName},</if>
|
||||||
|
<if test="workTypeCode != null and workTypeCode != ''">workTypeCode = #{workTypeCode},</if>
|
||||||
|
<if test="workTypeName != null and workTypeName != ''">workTypeName = #{workTypeName},</if>
|
||||||
|
<if test="unitPay != null">unitPay = #{unitPay},</if>
|
||||||
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
|
<if test="isDel != null">is_del = #{isDel},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSurProjectAttendanceUnitpayById" parameterType="Long">
|
||||||
|
delete from sur_project_attendance_unitpay where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSurProjectAttendanceUnitpayByIds" parameterType="String">
|
||||||
|
delete from sur_project_attendance_unitpay where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue