Commit bd4e685a authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents a3c61810 27d6a162
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
:empty-text="emptytxt ? emptytxt : emptyText" :empty-text="emptytxt ? emptytxt : emptyText"
border border
style="width: 100%" style="width: 100%"
height="570" height="530"
> >
<el-table-column <el-table-column
v-for="column in columns" v-for="column in columns"
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
size="mini" size="mini"
@click="$emit('edit', row)" @click="$emit('edit', row)"
title="编辑" title="编辑"
style="margin-left: 0;margin-right: 5px"
>编辑</el-button >编辑</el-button
> >
<span>&nbsp;</span>
<el-button <el-button
v-if="!noView" v-if="!noView"
type="text" type="text"
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
size="mini" size="mini"
@click="$emit('view', row)" @click="$emit('view', row)"
title="查看" title="查看"
style="margin-left: 0;margin-right: 5px"
>查看</el-button >查看</el-button
> >
<span>&nbsp;</span>
<el-switch <el-switch
v-if="switchBtn" v-if="switchBtn"
v-model="row.check" v-model="row.check"
@change="$emit('view', row)" @change="$emit('view', row)"
title="核查" title="核查"
:active-value="true" :active-value="true"
style="margin-left: 0;margin-right: 5px"
:inactive-value="false" :inactive-value="false"
></el-switch> ></el-switch>
<span>&nbsp;</span>
<el-button <el-button
v-if="reCheck" v-if="reCheck"
type="text" type="text"
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
size="mini" size="mini"
@click="$emit('edit', row)" @click="$emit('edit', row)"
title="核查" title="核查"
style="margin-left: 0;margin-right: 5px"
>核查</el-button >核查</el-button
> >
<span>&nbsp;</span>
<el-button <el-button
v-if="chuli" v-if="chuli"
type="text" type="text"
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
size="mini" size="mini"
@click="$emit('edit', row)" @click="$emit('edit', row)"
title="处理" title="处理"
style="margin-left: 0;margin-right: 5px"
>处理</el-button >处理</el-button
> >
<span>&nbsp;</span>
<Confirm @confirm="$emit('del', row.id)" message="确定要删除该条记录吗?"> <Confirm @confirm="$emit('del', row.id)" message="确定要删除该条记录吗?">
<el-button <el-button
v-if="!noDel" v-if="!noDel"
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
icon="el-icon-delete" icon="el-icon-delete"
size="mini" size="mini"
title="删除" title="删除"
style="margin-left: 0;margin-right: 5px"
>删除</el-button >删除</el-button
> >
</Confirm> </Confirm>
......
...@@ -255,6 +255,7 @@ export default { ...@@ -255,6 +255,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -262,6 +262,7 @@ export default { ...@@ -262,6 +262,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -262,6 +262,7 @@ export default { ...@@ -262,6 +262,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -250,6 +250,7 @@ export default { ...@@ -250,6 +250,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -258,6 +258,7 @@ export default { ...@@ -258,6 +258,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -259,6 +259,7 @@ export default { ...@@ -259,6 +259,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.checkStatus == 1 ? ( return row.checkStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -507,6 +507,9 @@ export default { ...@@ -507,6 +507,9 @@ export default {
], ],
createTime: [{ required: true, message: "请选择创建时间" }], createTime: [{ required: true, message: "请选择创建时间" }],
}, },
urls: {
saveUrl: "/perform/attend/appeal/audit",
},
}; };
}, },
...@@ -521,7 +524,6 @@ export default { ...@@ -521,7 +524,6 @@ export default {
formatterDate, formatterDate,
// 下载附件 // 下载附件
hanldeDownloadFile(val) { hanldeDownloadFile(val) {
console.log(val);
downloadFile(val.filePath, val.fileName); downloadFile(val.filePath, val.fileName);
}, },
picMatter(val) { picMatter(val) {
...@@ -617,10 +619,20 @@ export default { ...@@ -617,10 +619,20 @@ export default {
view(row) { view(row) {
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
this.urls.currUrl = "perform/attend/appeal/view"; // this.urls.currUrl = "perform/attend/appeal/view";
this.getData(); // this.getData();
this.$get("/perform/attend/appeal/view", { id: row.id }).then((res) => {
if (res.code == 1) {
this.form = res.data.entity;
this.dict = res.data.dict;
} else {
this.reset();
}
this.form.view = "查看"; this.form.view = "查看";
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.open = true;
});
this.title = "绩效记录申诉信息详细"; this.title = "绩效记录申诉信息详细";
}, },
/**取消按钮 */ /**取消按钮 */
......
...@@ -13,8 +13,17 @@ ...@@ -13,8 +13,17 @@
<div class="content"> <div class="content">
<div class="search_box"> <div class="search_box">
<div class="search"> <div class="search">
<el-select v-model="dateValue" placeholder="请选择" style="margin: 0 10px;"> <el-select
<el-option v-for="item in optionsMonths" :key="item.value" :label="item.label" :value="item.value"> v-model="dateValue"
placeholder="请选择"
style="margin: 0 10px;"
>
<el-option
v-for="item in optionsMonths"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option> </el-option>
</el-select> </el-select>
<el-button type="primary" @click="getChartsData">搜索</el-button> <el-button type="primary" @click="getChartsData">搜索</el-button>
...@@ -23,17 +32,32 @@ ...@@ -23,17 +32,32 @@
<div class="data_box"> <div class="data_box">
<div class="top"> <div class="top">
<div class="box"> <div class="box">
<bar-charts :title="'申诉次数部门排名TOP20'" :id="'dept_20'" :legendName="'申诉次数'" <bar-charts
:styleObj="{ width: '800px', height: '360px' }" :chartsData="depChartsData" /> :title="'申诉次数部门排名TOP20'"
:id="'dept_20'"
:legendName="'申诉次数'"
:styleObj="{ width: '800px', height: '360px' }"
:chartsData="depChartsData"
/>
</div> </div>
<div class="box"> <div class="box">
<bar-charts :title="'申诉次数个人排名TOP20'" :id="'person_20'" :legendName="'申诉次数'" <bar-charts
:styleObj="{ width: '800px', height: '360px' }" :chartsData="personChartsData" /> :title="'申诉次数个人排名TOP20'"
:id="'person_20'"
:legendName="'申诉次数'"
:styleObj="{ width: '800px', height: '360px' }"
:chartsData="personChartsData"
/>
</div> </div>
</div> </div>
<div class="down"> <div class="down">
<bar-charts :title="'申诉次数规则排名TOP20'" :id="'rule_20'" :legendName="'申诉次数'" <bar-charts
:styleObj="{ width: '1800px', height: '320px' }" :chartsData="depChartsData" /> :title="'申诉次数规则排名TOP20'"
:id="'rule_20'"
:legendName="'申诉次数'"
:styleObj="{ width: '1800px', height: '320px' }"
:chartsData="depChartsData"
/>
</div> </div>
</div> </div>
</div> </div>
...@@ -81,18 +105,27 @@ export default { ...@@ -81,18 +105,27 @@ export default {
: this.getChartsData(); : this.getChartsData();
}, },
getChartsData() { getChartsData() {
this.$post('/perform/attend/appeal/stat', { appealTimeStart: this.dateValue, statType: 1 }).then(res => { this.$post("/perform/attend/appeal/stat", {
console.log(res) appealTimeStart: this.dateValue,
this.depChartsData = res.data statType: 1,
}) }).then((res) => {
this.$post('/perform/attend/appeal/stat', { appealTimeStart: this.dateValue, statType: 2 }).then(res => { console.log(res);
console.log(res) this.depChartsData = res.data;
this.personChartsData = res.data });
}) this.$post("/perform/attend/appeal/stat", {
this.$post('/perform/attend/appeal/stat', { appealTimeStart: this.dateValue, statType: 3 }).then(res => { appealTimeStart: this.dateValue,
console.log(res) statType: 2,
this.ruleChartsData = res.data }).then((res) => {
}) console.log(res);
this.personChartsData = res.data;
});
this.$post("/perform/attend/appeal/stat", {
appealTimeStart: this.dateValue,
statType: 3,
}).then((res) => {
console.log(res);
this.ruleChartsData = res.data;
});
}, },
renderTable(tableData) { renderTable(tableData) {
return ( return (
...@@ -171,10 +204,19 @@ export default { ...@@ -171,10 +204,19 @@ export default {
{ label: "所属部门", prop: "deptName" }, { label: "所属部门", prop: "deptName" },
{ label: "违规类型", prop: "irregularOtherType" }, {
label: "违规类型",
prop: "irregularType",
formatter: this.formatter,
},
{ label: "绩效规则", prop: "ruleId", formatter: this.formatter }, { label: "绩效规则", prop: "ruleId", formatter: this.formatter },
{ label: "加分/扣分方式", prop: "subAddType", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subAddType",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -225,7 +267,6 @@ export default { ...@@ -225,7 +267,6 @@ export default {
onDel={this.toDel} onDel={this.toDel}
/> />
) : ( ) : (
<table-buttons <table-buttons
noAdd noAdd
noDel noDel
...@@ -293,7 +334,7 @@ export default { ...@@ -293,7 +334,7 @@ export default {
label: "12月", label: "12月",
}, },
], ],
dateValue: '2023-07-01 00:00:00', dateValue: "2023-07-01 00:00:00",
}; };
}, },
}; };
......
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
{ label: "异常结果", prop: "errorResult" }, { label: "异常结果", prop: "errorResult" },
/* /*
{ {
label: "图片凭证", label: "图片凭证",
prop: "filePaths", prop: "filePaths",
...@@ -232,10 +232,13 @@ export default { ...@@ -232,10 +232,13 @@ export default {
formatter: this.formatterPic, formatter: this.formatterPic,
}, },
{ label: "绩效规则", prop: "ruleNme" }, { label: "绩效规则", prop: "ruleNme" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -256,6 +259,7 @@ export default { ...@@ -256,6 +259,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -232,7 +232,11 @@ export default { ...@@ -232,7 +232,11 @@ export default {
{ label: "绩效规则", prop: "ruleNme" }, { label: "绩效规则", prop: "ruleNme" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -253,6 +257,7 @@ export default { ...@@ -253,6 +257,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -232,7 +232,11 @@ export default { ...@@ -232,7 +232,11 @@ export default {
}, },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -252,7 +256,8 @@ export default { ...@@ -252,7 +256,8 @@ export default {
{ {
label: "操作", label: "操作",
width: 240, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -219,7 +219,11 @@ export default { ...@@ -219,7 +219,11 @@ export default {
}, },
{ label: "绩效规则", prop: "ruleName" }, { label: "绩效规则", prop: "ruleName" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -239,7 +243,8 @@ export default { ...@@ -239,7 +243,8 @@ export default {
{ {
label: "操作", label: "操作",
width: 240, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -248,7 +248,8 @@ export default { ...@@ -248,7 +248,8 @@ export default {
{ {
label: "操作", label: "操作",
width: 240, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -230,7 +230,11 @@ export default { ...@@ -230,7 +230,11 @@ export default {
{ label: "绩效规则", prop: "ruleNme" }, { label: "绩效规则", prop: "ruleNme" },
{ label: "加分/扣分方式", prop: "subMethod", formatter: this.formatter }, {
label: "加分/扣分方式",
prop: "subMethod",
formatter: this.formatter,
},
{ {
label: "加分/扣分时间", label: "加分/扣分时间",
...@@ -251,6 +255,7 @@ export default { ...@@ -251,6 +255,7 @@ export default {
{ {
label: "操作", label: "操作",
width: 200, width: 200,
fixed: "right",
formatter: (row) => { formatter: (row) => {
return row.processStatus == 1 ? ( return row.processStatus == 1 ? (
<table-buttons <table-buttons
......
...@@ -40,14 +40,12 @@ ...@@ -40,14 +40,12 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
:title="userDeptDialog.title" :title="userDeptDialog.title"
:visible.sync="userDeptDialog.open" :visible.sync="userDeptDialog.open"
width="60%" width="60%"
append-to-body append-to-body
> >
<div class="mytree"> <div class="mytree">
<el-tree <el-tree
ref="bomTree" ref="bomTree"
...@@ -95,7 +93,7 @@ export default { ...@@ -95,7 +93,7 @@ export default {
this.tableData.loading = false; this.tableData.loading = false;
}, },
renderContent: function (h, { node, data, store }) { renderContent: function(h, { node, data, store }) {
return ( return (
<span> <span>
<i style="font-size:16px;color:#409EFF" class={data.icon}></i> <i style="font-size:16px;color:#409EFF" class={data.icon}></i>
...@@ -128,18 +126,17 @@ export default { ...@@ -128,18 +126,17 @@ export default {
// }); // });
}, },
userDeptConfirm(row) { userDeptConfirm(row) {
if(Object.keys(this.node).length === 0){ if (Object.keys(this.node).length === 0) {
this.$message.error("请选择一个部门!"); this.$message.error("请选择一个部门!");
return; return;
} }
this.userDeptDialog.data['deptId']=this.node.id; this.userDeptDialog.data["deptId"] = this.node.id;
this.userDeptDialog.data['deptName']=this.node.label; this.userDeptDialog.data["deptName"] = this.node.label;
this.$post("/user/save", this.userDeptDialog.data).then((res) => { this.$post("/user/save", this.userDeptDialog.data).then((res) => {
if (res && res.code == 1) { if (res && res.code == 1) {
this.userDeptDialog.data = {}; this.userDeptDialog.data = {};
this.node=null; this.node = null;
this.$message.success("分配部门成功!"); this.$message.success("分配部门成功!");
this.getData(); this.getData();
} }
...@@ -148,7 +145,6 @@ export default { ...@@ -148,7 +145,6 @@ export default {
}); });
}, },
// 获取角色列表与当前用户角色列表 // 获取角色列表与当前用户角色列表
userRoleConfirm(row) { userRoleConfirm(row) {
let data = this.userRoleDialog.data; let data = this.userRoleDialog.data;
...@@ -182,7 +178,6 @@ export default { ...@@ -182,7 +178,6 @@ export default {
this.tableData.loading = false; this.tableData.loading = false;
}, },
async distributeDept(row) { async distributeDept(row) {
console.log("分配部门"); console.log("分配部门");
try { try {
...@@ -193,9 +188,8 @@ export default { ...@@ -193,9 +188,8 @@ export default {
parentId: 0, parentId: 0,
}).then(({ data }) => { }).then(({ data }) => {
this.data = data.result; this.data = data.result;
this.node={} this.node = {};
console.log("data",this.data) console.log("data", this.data);
}); });
this.userDeptDialog.open = true; this.userDeptDialog.open = true;
}); });
...@@ -218,8 +212,8 @@ export default { ...@@ -218,8 +212,8 @@ export default {
getRoleUsers(id) { getRoleUsers(id) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$post("/role/user/list", { this.$post("/role/user/list", {
"userId": id, userId: id,
"size": -1, size: -1,
}) })
.then(({ data }) => { .then(({ data }) => {
const result = data.data const result = data.data
...@@ -247,7 +241,7 @@ export default { ...@@ -247,7 +241,7 @@ export default {
return { return {
allRoles: {}, allRoles: {},
nodeData: {}, nodeData: {},
node:{}, node: {},
data: [], data: [],
tree: [], tree: [],
roles: [], roles: [],
...@@ -276,10 +270,10 @@ export default { ...@@ -276,10 +270,10 @@ export default {
visible: false, visible: false,
}, },
config: { config: {
isshowTabPane:true, isshowTabPane: true,
columns: [ columns: [
{ type: "selection",reserveSelection:true, width: 60 }, { type: "selection", reserveSelection: true, width: 60 },
{ type: "index", label: "序号",align:"center", width: 50 }, { type: "index", label: "序号", align: "center", width: 50 },
{ {
prop: "loginName", prop: "loginName",
label: "登录名称", label: "登录名称",
...@@ -353,7 +347,7 @@ export default { ...@@ -353,7 +347,7 @@ export default {
> >
分配部门 分配部门
</el-button> </el-button>
<span> </span> <span> </span>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
...@@ -362,7 +356,6 @@ export default { ...@@ -362,7 +356,6 @@ export default {
> >
修改密码 修改密码
</el-button> </el-button>
</div> </div>
); );
}, },
...@@ -464,7 +457,5 @@ export default { ...@@ -464,7 +457,5 @@ export default {
top: 12px; top: 12px;
width: 24px; width: 24px;
} }
} }
</style> </style>
...@@ -155,6 +155,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -155,6 +155,7 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
if (CollectionUtils.isNotEmpty(summaryVoList)) { if (CollectionUtils.isNotEmpty(summaryVoList)) {
for (StaffCheckSummaryVo vo : summaryVoList) { for (StaffCheckSummaryVo vo : summaryVoList) {
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setAttendScore(vo.getSumScore()); staffPerformSummaryEntity.setAttendScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -163,20 +164,20 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -163,20 +164,20 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if (temp != null) { if (temp != null) {
if (temp.getReviewScore() == null) { if (temp.getReviewScore() != null) {
staffPerformSummaryEntity.setReviewScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(temp.getReviewScore());
} }
if (temp.getOtherScore() == null) { if (temp.getOtherScore() != null) {
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(temp.getOtherScore());
} }
if (temp.getGoworkScore() == null) { if (temp.getGoworkScore() != null) {
staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(temp.getGoworkScore());
} }
if (temp.getEffectScore() == null) { if (temp.getEffectScore() != null) {
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(temp.getEffectScore());
} }
if (temp.getComplainScore() == null) { if (temp.getComplainScore() != null) {
staffPerformSummaryEntity.setComplainScore(new BigDecimal(0)); staffPerformSummaryEntity.setComplainScore(temp.getComplainScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -157,6 +157,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -157,6 +157,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if(CollectionUtils.isNotEmpty(summaryVoList)){ if(CollectionUtils.isNotEmpty(summaryVoList)){
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setComplainScore(vo.getSumScore()); staffPerformSummaryEntity.setComplainScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -165,20 +166,20 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -165,20 +166,20 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getAttendScore()==null){ if(temp.getAttendScore()!=null){
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(temp.getAttendScore());
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()!=null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(temp.getOtherScore());
} }
if(temp.getGoworkScore()==null){ if(temp.getGoworkScore()!=null){
staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(temp.getGoworkScore());
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()!=null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(temp.getEffectScore());
} }
if(temp.getReviewScore()==null){ if(temp.getReviewScore()!=null){
staffPerformSummaryEntity.setReviewScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(temp.getReviewScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -157,6 +157,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE ...@@ -157,6 +157,7 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
if(CollectionUtils.isNotEmpty(summaryVoList)){ if(CollectionUtils.isNotEmpty(summaryVoList)){
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setEffectScore(vo.getSumScore()); staffPerformSummaryEntity.setEffectScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -165,20 +166,20 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE ...@@ -165,20 +166,20 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getReviewScore()==null){ if(temp.getReviewScore()!=null){
staffPerformSummaryEntity.setReviewScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(temp.getReviewScore());
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()!=null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(temp.getOtherScore());
} }
if(temp.getGoworkScore()==null){ if(temp.getGoworkScore()!=null){
staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(temp.getGoworkScore());
} }
if(temp.getAttendScore()==null){ if(temp.getAttendScore()!=null){
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(temp.getAttendScore());
} }
if (temp.getComplainScore() == null) { if (temp.getComplainScore() != null) {
staffPerformSummaryEntity.setComplainScore(new BigDecimal(0)); staffPerformSummaryEntity.setComplainScore(temp.getComplainScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -156,6 +156,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -156,6 +156,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
if(CollectionUtils.isNotEmpty(summaryVoList)){ if(CollectionUtils.isNotEmpty(summaryVoList)){
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setGoworkScore(vo.getSumScore()); staffPerformSummaryEntity.setGoworkScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -164,20 +165,20 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -164,20 +165,20 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getReviewScore()==null){ if(temp.getReviewScore()!=null){
staffPerformSummaryEntity.setReviewScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(temp.getReviewScore());
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()!=null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(temp.getOtherScore());
} }
if(temp.getAttendScore()==null){ if(temp.getAttendScore()!=null){
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(temp.getAttendScore());
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()!=null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(temp.getEffectScore());
} }
if (temp.getComplainScore() == null) { if (temp.getComplainScore() != null) {
staffPerformSummaryEntity.setComplainScore(new BigDecimal(0)); staffPerformSummaryEntity.setComplainScore(temp.getComplainScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -162,6 +162,7 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -162,6 +162,7 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
if (CollectionUtils.isNotEmpty(summaryVoList)) { if (CollectionUtils.isNotEmpty(summaryVoList)) {
for (StaffCheckSummaryVo vo : summaryVoList) { for (StaffCheckSummaryVo vo : summaryVoList) {
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setOtherScore(vo.getSumScore()); staffPerformSummaryEntity.setOtherScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -170,20 +171,20 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -170,20 +171,20 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if (temp != null) { if (temp != null) {
if (temp.getReviewScore() == null) { if (temp.getReviewScore() != null) {
staffPerformSummaryEntity.setReviewScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(temp.getReviewScore());
} }
if (temp.getAttendScore() == null) { if (temp.getAttendScore() != null) {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(temp.getAttendScore());
} }
if (temp.getGoworkScore() == null) { if (temp.getGoworkScore() != null) {
staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(temp.getGoworkScore());
} }
if (temp.getEffectScore() == null) { if (temp.getEffectScore() != null) {
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(temp.getEffectScore());
} }
if (temp.getComplainScore() == null) { if (temp.getComplainScore() != null) {
staffPerformSummaryEntity.setComplainScore(new BigDecimal(0)); staffPerformSummaryEntity.setComplainScore(temp.getComplainScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -162,6 +162,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -162,6 +162,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
if (CollectionUtils.isNotEmpty(summaryVoList)) { if (CollectionUtils.isNotEmpty(summaryVoList)) {
for (StaffCheckSummaryVo vo : summaryVoList) { for (StaffCheckSummaryVo vo : summaryVoList) {
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setReviewScore(vo.getSumScore()); staffPerformSummaryEntity.setReviewScore(vo.getSumScore());
StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery(); StaffPerformSummaryQuery summaryQuery = new StaffPerformSummaryQuery();
...@@ -170,20 +171,20 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -170,20 +171,20 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if (temp != null) { if (temp != null) {
if (temp.getAttendScore() == null) { if (temp.getAttendScore() != null) {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(temp.getAttendScore());
} }
if (temp.getOtherScore() == null) { if (temp.getOtherScore() != null) {
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(temp.getOtherScore());
} }
if (temp.getGoworkScore() == null) { if (temp.getGoworkScore() != null) {
staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(temp.getGoworkScore());
} }
if (temp.getEffectScore() == null) { if (temp.getEffectScore() != null) {
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(temp.getEffectScore());
} }
if (temp.getComplainScore() == null) { if (temp.getComplainScore() != null) {
staffPerformSummaryEntity.setComplainScore(new BigDecimal(0)); staffPerformSummaryEntity.setComplainScore(temp.getComplainScore());
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore()); erro = erro.add(staffPerformSummaryEntity.getReviewScore());
......
...@@ -110,15 +110,30 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba ...@@ -110,15 +110,30 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
PageInfo pageInfo = this.buildPageInfo(query); PageInfo pageInfo = this.buildPageInfo(query);
Result<FeedbackStaffInfoVo> result = this.getService().getFeedbackStaffList(query, pageInfo); Result<FeedbackStaffInfoVo> result = this.getService().getFeedbackStaffList(query, pageInfo);
if (CollectionUtils.isNotEmpty(result.getList())) { if (CollectionUtils.isNotEmpty(result.getList())) {
Map<Integer, List<FeedbackStaffInfoVo>> groupMap = result.getList().stream().collect(Collectors.groupingBy(FeedbackStaffInfoVo::getBackStatus)); // Map<Integer, List<FeedbackStaffInfoVo>> groupMap = result.getList().stream().collect(Collectors.groupingBy(FeedbackStaffInfoVo::getBackStatus));
if (groupMap.containsKey(1)) { // if (groupMap.containsKey(1)) {
model.put("feedBack", groupMap.get(1).size()); // model.put("feedBack", groupMap.get(1).size());
} else { // } else {
// model.put("feedBack", 0);
// }
// if (groupMap.containsKey(0)) {
// model.put("notBack", groupMap.get(0).size());
// } else {
// model.put("notBack", 0);
// }
query.setBackStatus(1);
PageInfo noPageInfo = new PageInfo(-1);
Result<FeedbackStaffInfoVo> feedBack = this.getService().getFeedbackStaffList(query, noPageInfo);
query.setBackStatus(0);
Result<FeedbackStaffInfoVo> notBack = this.getService().getFeedbackStaffList(query, noPageInfo);
if(CollectionUtils.isNotEmpty(feedBack.getList())){
model.put("feedBack", feedBack.getList().size());
}else {
model.put("feedBack", 0); model.put("feedBack", 0);
} }
if (groupMap.containsKey(0)) { if(CollectionUtils.isNotEmpty(notBack.getList())){
model.put("notBack", groupMap.get(0).size()); model.put("notBack", notBack.getList().size());
} else { }else {
model.put("notBack", 0); model.put("notBack", 0);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment