Commit 6a82e9cb authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 1d81de1f bcd12e4b
...@@ -25,7 +25,16 @@ export default { ...@@ -25,7 +25,16 @@ export default {
data.attachmentPathList && data.attachmentPathList.length > 0 data.attachmentPathList && data.attachmentPathList.length > 0
? (data.attachmentPath = data.attachmentPathList[0].url) ? (data.attachmentPath = data.attachmentPathList[0].url)
: (data.attachmentPath = ""); : (data.attachmentPath = "");
if (data.leavePerson == 0 || data.leavePerson) {
if (this.dict.staffList) {
data.leavePerson = this.dict.staffList[this.form.leavePerson];
for (let key in this.dict.staffList) {
if (this.dict.staffList[key] == data.leavePerson) {
data.leavePersonId = Number(key);
}
}
}
}
return data; return data;
}, },
// 提交表单的后置处理, 会阻断默认的回退行为 // 提交表单的后置处理, 会阻断默认的回退行为
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:empty-text="emptytxt ? emptytxt : emptyText" :empty-text="emptytxt ? emptytxt : emptyText"
border border
:height="height"
style="width: 100%" style="width: 100%"
> >
<template v-for="column in columns"> <template v-for="column in columns">
...@@ -113,6 +114,10 @@ export default { ...@@ -113,6 +114,10 @@ export default {
required: false, required: false,
default: () => [], default: () => [],
}, },
height: {
type: String,
required: false,
},
}, },
computed: { computed: {
emptyText() { emptyText() {
......
...@@ -200,6 +200,7 @@ ...@@ -200,6 +200,7 @@
:handleSelectableMethod="config.methods.handleSelectableMethod" :handleSelectableMethod="config.methods.handleSelectableMethod"
:handleSelectionChange="config.methods.handleSelectionChange" :handleSelectionChange="config.methods.handleSelectionChange"
:handleRowClick="config.methods.handleRowClick" :handleRowClick="config.methods.handleRowClick"
:height="config.height"
:handleCellClick="config.methods.handleCellClick" :handleCellClick="config.methods.handleCellClick"
/> />
......
<template> <template>
<!-- 弹出框表单 --> <!-- 弹出框表单 -->
<el-drawer :title="title" :visible.sync="open" :direction="direction" size="60%"> <el-drawer
:title="title"
:visible.sync="open"
:direction="direction"
size="60%"
>
<div style="padding:15px"> <div style="padding:15px">
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <el-row>
...@@ -13,44 +18,142 @@ ...@@ -13,44 +18,142 @@
:maxLength="10" :maxLength="10"
:disabled="pageInfo.type == 'view'" :disabled="pageInfo.type == 'view'"
/> --> /> -->
<Field label="请假人" prop="leavePerson" type="select" filterable remote v-model="form.leavePerson" <Field
placeholder="请输入请假人" :remote-method="remoteMethod" :maxLength="10" :enumData="staffList" label="请假人"
:disabled="pageInfo.type == 'view'" /> prop="leavePerson"
<Field label="所属部门" prop="deptId" v-model="form.deptId" type="select" placeholder="请选择所属部门" type="select"
:enumData="dict.deptId" :disabled="pageInfo.type == 'view'" /> filterable
remote
v-model="form.leavePerson"
placeholder="请输入请假人"
@change="changeStaff(form.leavePerson)"
:remote-method="remoteMethod"
:maxLength="10"
:enumData="dict.staffList"
:disabled="pageInfo.type == 'view'"
/>
<Field
label="所属部门"
prop="deptId"
v-model="form.deptId"
type="select"
placeholder="请选择所属部门"
:enumData="dict.deptId"
:disabled="true"
/>
<!-- <Field label="所属部门" prop="deptName" v-model="form.deptName" type="textarea" placeholder="请输入所属部门"/> --> <!-- <Field label="所属部门" prop="deptName" v-model="form.deptName" type="textarea" placeholder="请输入所属部门"/> -->
<Field label="电话号码" prop="phoneNumber" v-model="form.phoneNumber" placeholder="请输入电话号码" :maxLength="11" <Field
:disabled="pageInfo.type == 'view'" /> label="电话号码"
<Field label="请假类型" prop="leaveType" v-model="form.leaveType" type="select" :enumData="dict.leaveType" prop="phoneNumber"
placeholder="请选择请假类型" :disabled="pageInfo.type == 'view'" /> v-model="form.phoneNumber"
placeholder="请输入电话号码"
:maxLength="11"
:disabled="pageInfo.type == 'view'"
/>
<Field
label="请假类型"
prop="leaveType"
v-model="form.leaveType"
type="select"
:enumData="dict.leaveType"
placeholder="请选择请假类型"
:disabled="pageInfo.type == 'view'"
/>
<Field label="开始时间" prop="startTime" v-model="form.startTime" type="datetime" @change="changedate" <Field
:disabled="pageInfo.type == 'view'" /> label="开始时间"
<Field label="结束时间" prop="endTime" v-model="form.endTime" type="datetime" @change="changedate" prop="startTime"
:disabled="pageInfo.type == 'view'" /> v-model="form.startTime"
type="datetime"
@change="changedate"
:disabled="pageInfo.type == 'view'"
/>
<Field
label="结束时间"
prop="endTime"
v-model="form.endTime"
type="datetime"
@change="changedate"
:disabled="pageInfo.type == 'view'"
/>
<Field label="时长(单位:小时)" disabled prop="duration" v-model="form.duration / 60 / 60" placeholder="请输入时长(秒)" <Field
:maxLength="4" /> label="时长(单位:小时)"
<Field label="请假事由" prop="reason" v-model="form.reason" type="textarea" placeholder="请输入请假事由" disabled
:disabled="pageInfo.type == 'view'" /> prop="duration"
<Field label="审核结果" prop="auditResult" v-model="form.auditResult" type="radioCol" :enumData="dict.auditResult" v-model="form.duration / 60 / 60"
placeholder="请选择审核结果" :disabled="pageInfo.type == 'view'" style="width: 100%;" /> placeholder="请输入时长(秒)"
:maxLength="4"
/>
<Field
label="请假事由"
prop="reason"
v-model="form.reason"
type="textarea"
placeholder="请输入请假事由"
:disabled="pageInfo.type == 'view'"
/>
<Field
label="审核结果"
prop="auditResult"
v-model="form.auditResult"
type="radioCol"
:enumData="dict.auditResult"
placeholder="请选择审核结果"
:disabled="pageInfo.type == 'view'"
style="width: 100%;"
/>
<Field label="审批负责人" prop="approverId" type="select" v-model="form.approverId" placeholder="请选择审批负责人" <Field
:enumData="dict.approverId" :disabled="pageInfo.type == 'view'" /> label="审批负责人"
<Field label="申请时间" prop="createTime" v-model="form.createTime" type="datetime" disabled /> prop="approverId"
<Field label="审核说明" prop="auditDesc" type="textarea" v-model="form.auditDesc" placeholder="请输入审核说明" type="select"
:disabled="pageInfo.type == 'view'" style="width: 100%;" /> v-model="form.approverId"
placeholder="请选择审批负责人"
:enumData="dict.approverId"
:disabled="pageInfo.type == 'view'"
/>
<Field
label="申请时间"
prop="createTime"
v-model="form.createTime"
type="datetime"
disabled
/>
<Field
label="审核说明"
prop="auditDesc"
type="textarea"
v-model="form.auditDesc"
placeholder="请输入审核说明"
:disabled="pageInfo.type == 'view'"
style="width: 100%;"
/>
</el-row> </el-row>
<!-- <Field label="审批负责人" prop="approver" v-model="form.approver" placeholder="请输入审批负责人"/> --> <!-- <Field label="审批负责人" prop="approver" v-model="form.approver" placeholder="请输入审批负责人"/> -->
<!-- <Field label="附件" prop="attachment" v-model="form.attachment" type="textarea" placeholder="请输入附件"/> --> <!-- <Field label="附件" prop="attachment" v-model="form.attachment" type="textarea" placeholder="请输入附件"/> -->
<Field label="备注" prop="remark" v-model="form.remark" type="textarea" placeholder="请输入备注" <Field
:disabled="pageInfo.type == 'view'" style="width: 100%;" /> label="备注"
prop="remark"
v-model="form.remark"
type="textarea"
placeholder="请输入备注"
:disabled="pageInfo.type == 'view'"
style="width: 100%;"
/>
<el-form-item label="附件路径" prop="attachmentPathList"> <el-form-item label="附件路径" prop="attachmentPathList">
<FileUpload @input="uploadFn" :value="form.attachmentPathList" :fileNumber="1" <FileUpload
:pageInfoType="pageInfo.type" /> @input="uploadFn"
:value="form.attachmentPathList"
:fileNumber="1"
:pageInfoType="pageInfo.type"
/>
</el-form-item> </el-form-item>
<form-buttons @submit="submitForm" noCancelBtn v-if="pageInfo.type !== 'view'" /> <form-buttons
@submit="submitForm"
noCancelBtn
v-if="pageInfo.type !== 'view'"
/>
</el-form> </el-form>
</div> </div>
</el-drawer> </el-drawer>
...@@ -74,7 +177,7 @@ export default { ...@@ -74,7 +177,7 @@ export default {
loading: true, loading: true,
// 弹出层标题 // 弹出层标题
title: "请假记录信息", title: "请假记录信息",
staffList: {}, staffList: [],
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
direction: "rtl", direction: "rtl",
...@@ -126,9 +229,7 @@ export default { ...@@ -126,9 +229,7 @@ export default {
trigger: "change", trigger: "change",
}, },
], ],
duration: [ duration: [{ required: true, message: "请输入时长", trigger: "blur" }],
{ required: true, message: "请输入时长", trigger: "blur" },
],
// reason: [ // reason: [
// { required: true, message: "请输入请假理由", trigger: "blur" }, // { required: true, message: "请输入请假理由", trigger: "blur" },
// ], // ],
...@@ -155,20 +256,28 @@ export default { ...@@ -155,20 +256,28 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.remoteMethod() this.remoteMethod();
}, },
methods: { methods: {
changeStaff(val) {
let person = this.staffList.filter((v) => v.id == val);
console.log(person);
console.log(this.form);
this.form.deptId = person ? person[0].deptId : "";
},
async remoteMethod() { async remoteMethod() {
await this.$post(`/staff/list`, { await this.$post(`/staff/list`, {
page: 1, page: 1,
size: -1, size: -1,
}).then((res) => { }).then((res) => {
let data = res.data.data let data = res.data.data;
let obj = {} let obj = {};
for (let key in data) { for (let key in data) {
obj[key] = data[key].name obj[data[key].id] = data[key].name;
} }
this.staffList = obj this.dict.staffList = obj;
console.log(obj);
this.staffList = res.data.data;
}); });
}, },
// beforeSubmit() { // beforeSubmit() {
...@@ -245,9 +354,7 @@ export default { ...@@ -245,9 +354,7 @@ export default {
}, },
changedate(val) { changedate(val) {
if (this.form.startTime && this.form.endTime) { if (this.form.startTime && this.form.endTime) {
if ( if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) {
this.form.endTime.valueOf() > this.form.startTime.valueOf()
) {
// this.form.duration = getSec(this.form.startTime, this.form.endTime); // this.form.duration = getSec(this.form.startTime, this.form.endTime);
this.$post("/attendance/getTimeCount", { this.$post("/attendance/getTimeCount", {
startTime: this.form.startTime, startTime: this.form.startTime,
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
{{ item.label }} {{ item.label }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="mt20" style="text-align:right"> <div class="mt20" style="text-align: right">
<el-button @click="handleCancel(1)">取消</el-button> <el-button @click="handleCancel(1)">取消</el-button>
<el-button type="primary" @click="handleSubmit(1)">确定</el-button> <el-button type="primary" @click="handleSubmit(1)">确定</el-button>
</div> </div>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
{{ item.label }} {{ item.label }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="mt20" style="text-align:right"> <div class="mt20" style="text-align: right">
<el-button @click="handleCancel(2)">取消</el-button> <el-button @click="handleCancel(2)">取消</el-button>
<el-button type="primary" @click="handleSubmit(2)">确定</el-button> <el-button type="primary" @click="handleSubmit(2)">确定</el-button>
</div> </div>
...@@ -102,9 +102,7 @@ ...@@ -102,9 +102,7 @@
<div>打卡记录汇总</div> <div>打卡记录汇总</div>
<el-button type="text">导出成功</el-button> <el-button type="text">导出成功</el-button>
</div> </div>
<div class="times"> <div class="times">导出时间:2020-08-13</div>
导出时间:2020-08-13
</div>
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
...@@ -197,10 +195,15 @@ export default { ...@@ -197,10 +195,15 @@ export default {
</el-tag> </el-tag>
) )
) : ( ) : (
"-" "正常"
); );
} else { } else {
return "-"; if (currentTime < timestampToTime(new Date(), 3)) {
return "正常";
} else {
return "--";
}
// return "正常";
} }
}, },
restTable() { restTable() {
...@@ -226,7 +229,11 @@ export default { ...@@ -226,7 +229,11 @@ export default {
) { ) {
return this.handleArr(row.attendanceStaffStatEntities, item); return this.handleArr(row.attendanceStaffStatEntities, item);
} else { } else {
return "-"; if (item < timestampToTime(new Date(), 3)) {
return "正常";
} else {
return "--";
}
} }
}, },
}; };
...@@ -386,6 +393,7 @@ export default { ...@@ -386,6 +393,7 @@ export default {
config: { config: {
showType: "tableSelect", showType: "tableSelect",
isshowTabPane: true, isshowTabPane: true,
height: "680px",
search: [ search: [
{ {
name: "salaId", name: "salaId",
...@@ -445,6 +453,7 @@ export default { ...@@ -445,6 +453,7 @@ export default {
prop: "windowCategory", prop: "windowCategory",
fixed: "left", fixed: "left",
width: 100, width: 100,
formatter: this.formatter,
show: true, show: true,
}, },
...@@ -455,8 +464,18 @@ export default { ...@@ -455,8 +464,18 @@ export default {
width: 100, width: 100,
show: true, show: true,
}, },
{ label: "大厅", prop: "salaName", show: true }, {
{ label: "部门", prop: "deptName", show: true }, label: "大厅",
prop: "salaName",
formatter: this.formatter,
show: true,
},
{
label: "部门",
prop: "deptName",
formatter: this.formatter,
show: true,
},
{ {
label: "应到", label: "应到",
prop: "workDays", prop: "workDays",
......
...@@ -7,10 +7,12 @@ import com.mortals.framework.service.ITask; ...@@ -7,10 +7,12 @@ import com.mortals.framework.service.ITask;
import com.mortals.framework.service.ITaskExcuteService; import com.mortals.framework.service.ITaskExcuteService;
import com.mortals.framework.util.DateUtils; import com.mortals.framework.util.DateUtils;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.module.attendance.model.AttendanceRecordErrorQuery; import com.mortals.xhx.module.attendance.model.AttendanceRecordErrorQuery;
import com.mortals.xhx.module.attendance.model.vo.AttendanceSummaryQuery; import com.mortals.xhx.module.attendance.model.vo.AttendanceSummaryQuery;
import com.mortals.xhx.module.attendance.service.AttendanceRecordErrorService; import com.mortals.xhx.module.attendance.service.AttendanceRecordErrorService;
import com.mortals.xhx.module.attendance.service.AttendanceStatService; import com.mortals.xhx.module.attendance.service.AttendanceStatService;
import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -19,6 +21,7 @@ import java.util.Calendar; ...@@ -19,6 +21,7 @@ import java.util.Calendar;
import java.util.Date; import java.util.Date;
import static com.mortals.xhx.common.key.RedisKey.KEY_ATTENDANCE_STAT_CACHE; import static com.mortals.xhx.common.key.RedisKey.KEY_ATTENDANCE_STAT_CACHE;
import static com.mortals.xhx.common.key.RedisKey.KEY_CHECK_SUMMARY_CACHE;
/** /**
* 考勤汇总 * 考勤汇总
...@@ -58,7 +61,16 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService { ...@@ -58,7 +61,16 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
attendanceRecordErrorService.doReprocess(errorQuery, null); attendanceRecordErrorService.doReprocess(errorQuery, null);
log.info("统计添加前一天考勤中绩效异常记录结束"); log.info("统计添加前一天考勤中绩效异常记录结束");
try {
log.info("汇总当天绩效分数开始");
StaffCheckSummaryQuery summaryQuery = new StaffCheckSummaryQuery();
summaryQuery.setCheckTimeStart(DateUtils.getCurrStrDate());
summaryQuery.setCheckTimeEnd(summaryQuery.getCheckTimeStart());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
log.info("汇总当天绩效分数结束");
} catch (Exception e) {
log.error("汇总当天绩效分数出错", e);
}
} }
@Override @Override
......
...@@ -3,6 +3,9 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -3,6 +3,9 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity; import com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity;
import com.mortals.xhx.module.window.model.WindowWorkmanPerformEntity;
import lombok.Data; import lombok.Data;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -19,5 +22,5 @@ public class CheckWindowWorkmanPerformVo extends BaseEntityLong { ...@@ -19,5 +22,5 @@ public class CheckWindowWorkmanPerformVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */ /** 序号,主键,自增长列表 */
private List <Long> idList; private List <Long> idList;
private List<WindowWorkmanPerformDetailEntity> windowWorkmanPerformDetailList;
} }
\ No newline at end of file
...@@ -144,19 +144,19 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -144,19 +144,19 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
try { // try {
if(!entity.getErrorTime().after(new Date())) { // if(!entity.getErrorTime().after(new Date())) {
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.考勤绩效.getValue()); // query.setCheckType(CheckTypeEnum.考勤绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
} // }
//summaryCheck(query); // //summaryCheck(query);
} catch (Exception e) { // } catch (Exception e) {
log.error("汇总已审核的核查记录出错", e); // log.error("汇总已审核的核查记录出错", e);
} // }
} }
@Override @Override
......
...@@ -137,17 +137,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -137,17 +137,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
try { // try {
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.评价绩效.getValue()); // query.setCheckType(CheckTypeEnum.评价绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//summaryCheck(query); // //summaryCheck(query);
} catch (Exception e) { // } catch (Exception e) {
log.error("汇总已审核的核查记录出错", e); // log.error("汇总已审核的核查记录出错", e);
} // }
} }
@Override @Override
......
...@@ -132,17 +132,17 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE ...@@ -132,17 +132,17 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
// log.error("新增绩效异常信息核查状态出错", e); // log.error("新增绩效异常信息核查状态出错", e);
// } // }
try{ // try{
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.效能绩效.getValue()); // query.setCheckType(CheckTypeEnum.效能绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//summaryCheck(query); // //summaryCheck(query);
}catch (Exception e){ // }catch (Exception e){
log.error("汇总已审核的核查记录出错",e); // log.error("汇总已审核的核查记录出错",e);
} // }
} }
@Override @Override
......
...@@ -133,17 +133,17 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -133,17 +133,17 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
try{ // try{
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.办件绩效.getValue()); // query.setCheckType(CheckTypeEnum.办件绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//summaryCheck(query); // //summaryCheck(query);
}catch (Exception e){ // }catch (Exception e){
log.error("汇总已审核的核查记录出错",e); // log.error("汇总已审核的核查记录出错",e);
} // }
} }
@Override @Override
......
...@@ -134,17 +134,17 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -134,17 +134,17 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
try { // try {
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.其它绩效.getValue()); // query.setCheckType(CheckTypeEnum.其它绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//summaryCheck(query); // //summaryCheck(query);
} catch (Exception e) { // } catch (Exception e) {
log.error("汇总已审核的核查记录出错", e); // log.error("汇总已审核的核查记录出错", e);
} // }
} }
@Override @Override
......
...@@ -136,17 +136,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -136,17 +136,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
try { // try {
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery(); // StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
query.setStaffId(entity.getStaffId()); // query.setStaffId(entity.getStaffId());
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime())); // query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
query.setCheckTimeEnd(query.getCheckTimeStart()); // query.setCheckTimeEnd(query.getCheckTimeStart());
query.setCheckType(CheckTypeEnum.评价绩效.getValue()); // query.setCheckType(CheckTypeEnum.评价绩效.getValue());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); // cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//summaryCheck(query); // //summaryCheck(query);
} catch (Exception e) { // } catch (Exception e) {
log.error("汇总已审核的核查记录出错", e); // log.error("汇总已审核的核查记录出错", e);
} // }
} }
@Override @Override
......
...@@ -20,6 +20,8 @@ import com.mortals.xhx.module.dept.model.DeptPerformStatQuery; ...@@ -20,6 +20,8 @@ import com.mortals.xhx.module.dept.model.DeptPerformStatQuery;
import com.mortals.xhx.module.staff.model.*; import com.mortals.xhx.module.staff.model.*;
import com.mortals.xhx.module.staff.service.StaffPerformSummaryService; import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
import com.mortals.xhx.module.staff.service.StaffService; import com.mortals.xhx.module.staff.service.StaffService;
import com.mortals.xhx.module.window.service.WindowWorkmanPerformDetailService;
import com.mortals.xhx.module.window.service.WindowWorkmanPerformService;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -61,6 +63,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -61,6 +63,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
private ICacheService cacheService; private ICacheService cacheService;
@Autowired @Autowired
private StaffService staffService; private StaffService staffService;
@Autowired
private WindowWorkmanPerformDetailService windowWorkmanPerformDetailService;
@Override @Override
public void examine(CheckWindowWorkmanPerformEntity entity, Context context) throws AppException { public void examine(CheckWindowWorkmanPerformEntity entity, Context context) throws AppException {
...@@ -71,6 +75,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -71,6 +75,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
if (temp == null) { if (temp == null) {
throw new AppException("核查记录ID不正确"); throw new AppException("核查记录ID不正确");
} }
if(CollectionUtils.isNotEmpty(entity.getWindowWorkmanPerformDetailList())){
windowWorkmanPerformDetailService.update(entity.getWindowWorkmanPerformDetailList(),context);
}
if (context != null && context.getUser() != null) { if (context != null && context.getUser() != null) {
IUser user = context.getUser(); IUser user = context.getUser();
entity.setUpdateUserId(user.getId()); entity.setUpdateUserId(user.getId());
......
...@@ -271,6 +271,64 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf ...@@ -271,6 +271,64 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
} }
} }
} }
}else {
if (PerformTypeEnum.考勤绩效.getValue().equals(appealEntity.getPerformType())) {
CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkAttendRecordService.examine(checkEntity,context);
}
}
} else if (PerformTypeEnum.评价差评绩效.getValue().equals(appealEntity.getPerformType())) {
CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkReviewRecordService.examine(checkEntity,context);
}
}
} else if (PerformTypeEnum.评价投诉绩效.getValue().equals(appealEntity.getPerformType())) {
CheckComplainRecordEntity checkEntity = checkComplainRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkComplainRecordService.examine(checkEntity,context);
}
}
} else if (PerformTypeEnum.办件绩效.getValue().equals(appealEntity.getPerformType())) {
CheckGoworkRecordEntity checkEntity = checkGoworkRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkGoworkRecordService.examine(checkEntity,context);
}
}
} else if (PerformTypeEnum.效能绩效.getValue().equals(appealEntity.getPerformType())) {
CheckEffectRecordEntity checkEntity = checkEffectRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkEffectRecordService.examine(checkEntity,context);
}
}
} else if (PerformTypeEnum.其它绩效.getValue().equals(appealEntity.getPerformType())) {
CheckOtherRecordEntity checkEntity = checkOtherRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkOtherRecordService.examine(checkEntity,context);
}
}
}
} }
//更新绩效异常信息核查状态 //更新绩效异常信息核查状态
try { try {
......
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