Commit 3ad2660b authored by 赵啸非's avatar 赵啸非

修改考勤汇总

parent 4e2dc3d1
...@@ -424,26 +424,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> { ...@@ -424,26 +424,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
} else { } else {
performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue()); performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
} }
/*
if (ObjectUtils.isEmpty(appealEntity)) {
performDetailInfo.setAppealStatus(AppealStatusEnum.未申诉.getValue());
} else {
if (ProcessStatusEnum.未处理.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉中.getValue());
} else {
if (AppealResultEnum.通过.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉通过.getValue());
} else if (AppealResultEnum.不通过.getValue() == appealEntity.getProcessStatus()) {
performDetailInfo.setAppealStatus(AppealStatusEnum.申诉拒绝.getValue());
}
}
}*/
PerformRulesEntity rulesEntity = rulesService.getCache(performDetailInfo.getRuleId().toString()); PerformRulesEntity rulesEntity = rulesService.getCache(performDetailInfo.getRuleId().toString());
performDetailInfo.setRuleDesc(rulesEntity == null ? "" : rulesEntity.getContent()); performDetailInfo.setRuleDesc(rulesEntity == null ? "" : rulesEntity.getContent());
rest.setData(performDetailInfo); rest.setData(performDetailInfo);
log.info("rspperformDetailInfo:{}", JSON.toJSONString(performDetailInfo)); log.info("rspperformDetailInfo:{}", JSON.toJSONString(performDetailInfo));
......
...@@ -155,7 +155,7 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService { ...@@ -155,7 +155,7 @@ public class SyncDoorsEventAfterTaskImpl implements ITaskExcuteService {
//单个插入 去掉重复时间段的打卡记录 //单个插入 去掉重复时间段的打卡记录
for (AttendanceRecordHikEntity recordHikEntity : saveRecordList) { for (AttendanceRecordHikEntity recordHikEntity : saveRecordList) {
try { try {
recordHikService.save(recordHikEntity); recordHikService.getDao().insert(recordHikEntity);
} catch (Exception e) { } catch (Exception e) {
log.error("基础考勤数据保存异常", e.getMessage()); log.error("基础考勤数据保存异常", e.getMessage());
} }
......
...@@ -155,7 +155,7 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService { ...@@ -155,7 +155,7 @@ public class SyncDoorsEventTaskImpl implements ITaskExcuteService {
//单个插入 去掉重复时间段的打卡记录 //单个插入 去掉重复时间段的打卡记录
for (AttendanceRecordHikEntity recordHikEntity : saveRecordList) { for (AttendanceRecordHikEntity recordHikEntity : saveRecordList) {
try { try {
recordHikService.save(recordHikEntity); recordHikService.getDao().insert(recordHikEntity);
} catch (Exception e) { } catch (Exception e) {
log.error("基础考勤数据保存异常", e.getMessage()); log.error("基础考勤数据保存异常", e.getMessage());
} }
......
...@@ -181,25 +181,25 @@ public class CheckAttendRecordEntity extends CheckAttendRecordVo { ...@@ -181,25 +181,25 @@ public class CheckAttendRecordEntity extends CheckAttendRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
this.workNum = ""; this.workNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.attendanceGroupId = -1L; this.attendanceGroupId = 0L;
this.attendanceGroupName = ""; this.attendanceGroupName = "";
this.attendanceDate = null; this.attendanceDate = null;
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -233,13 +233,13 @@ public class CheckAttendRecordEntity extends CheckAttendRecordVo { ...@@ -233,13 +233,13 @@ public class CheckAttendRecordEntity extends CheckAttendRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
this.deductPerson = ""; this.deductPerson = "";
this.deductTime = null; this.deductTime = new Date();
this.windowNum = ""; this.windowNum = "";
} }
......
...@@ -171,9 +171,9 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo { ...@@ -171,9 +171,9 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -181,7 +181,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo { ...@@ -181,7 +181,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
...@@ -199,7 +199,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo { ...@@ -199,7 +199,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo {
this.complainDevice = ""; this.complainDevice = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -227,7 +227,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo { ...@@ -227,7 +227,7 @@ public class CheckComplainRecordEntity extends CheckComplainRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -164,9 +164,9 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo { ...@@ -164,9 +164,9 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -174,11 +174,11 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo { ...@@ -174,11 +174,11 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.irregularType = -1; this.irregularType = 1;
this.happenTime = null; this.happenTime = null;
...@@ -188,7 +188,7 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo { ...@@ -188,7 +188,7 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo {
this.snapPath = ""; this.snapPath = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -216,7 +216,7 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo { ...@@ -216,7 +216,7 @@ public class CheckEffectRecordEntity extends CheckEffectRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -166,9 +166,9 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo { ...@@ -166,9 +166,9 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -176,7 +176,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo { ...@@ -176,7 +176,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
...@@ -188,7 +188,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo { ...@@ -188,7 +188,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo {
this.goworkTime = null; this.goworkTime = null;
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -216,7 +216,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo { ...@@ -216,7 +216,7 @@ public class CheckGoworkRecordEntity extends CheckGoworkRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -163,27 +163,27 @@ public class CheckOtherRecordEntity extends CheckOtherRecordVo { ...@@ -163,27 +163,27 @@ public class CheckOtherRecordEntity extends CheckOtherRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
this.workNum = ""; this.workNum = "";
this.deptId = -1L; this.deptId = null;
this.deptName = ""; this.deptName = "";
this.windowNum = ""; this.windowNum = "";
this.irregularOtherType = -1; this.irregularOtherType = 1;
this.happenTime = null; this.happenTime = null;
this.duration = 0; this.duration = 0;
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -213,7 +213,7 @@ public class CheckOtherRecordEntity extends CheckOtherRecordVo { ...@@ -213,7 +213,7 @@ public class CheckOtherRecordEntity extends CheckOtherRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = null;
this.categoryName = ""; this.categoryName = "";
......
...@@ -165,9 +165,9 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo { ...@@ -165,9 +165,9 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.recordId = -1L; this.recordId = 0L;
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -175,11 +175,11 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo { ...@@ -175,11 +175,11 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.reviewResult = -1; this.reviewResult = 1;
this.reviewTime = null; this.reviewTime = null;
...@@ -187,7 +187,7 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo { ...@@ -187,7 +187,7 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo {
this.reviewDevice = ""; this.reviewDevice = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -215,7 +215,7 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo { ...@@ -215,7 +215,7 @@ public class CheckReviewRecordEntity extends CheckReviewRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -144,23 +144,23 @@ public class PerformAttendRecordEntity extends PerformAttendRecordVo { ...@@ -144,23 +144,23 @@ public class PerformAttendRecordEntity extends PerformAttendRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
this.workNum = ""; this.workNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.attendanceGroupId = -1L; this.attendanceGroupId =0L;
this.attendanceGroupName = ""; this.attendanceGroupName = "";
this.attendanceDate = null; this.attendanceDate = null;
this.ruleId = -1L; this.ruleId = 0L;
this.errorTime = null; this.errorTime = null;
...@@ -188,7 +188,7 @@ public class PerformAttendRecordEntity extends PerformAttendRecordVo { ...@@ -188,7 +188,7 @@ public class PerformAttendRecordEntity extends PerformAttendRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -151,7 +151,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo { ...@@ -151,7 +151,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -159,7 +159,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo { ...@@ -159,7 +159,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
...@@ -177,7 +177,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo { ...@@ -177,7 +177,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo {
this.complainDevice = ""; this.complainDevice = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -197,7 +197,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo { ...@@ -197,7 +197,7 @@ public class PerformComplainRecordEntity extends PerformComplainRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -142,7 +142,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo { ...@@ -142,7 +142,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -150,11 +150,11 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo { ...@@ -150,11 +150,11 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.irregularType = -1; this.irregularType = 1;
this.happenTime = null; this.happenTime = null;
...@@ -164,7 +164,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo { ...@@ -164,7 +164,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo {
this.snapPath = ""; this.snapPath = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -184,7 +184,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo { ...@@ -184,7 +184,7 @@ public class PerformEffectRecordEntity extends PerformEffectRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -141,7 +141,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo { ...@@ -141,7 +141,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -149,7 +149,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo { ...@@ -149,7 +149,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
...@@ -161,7 +161,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo { ...@@ -161,7 +161,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo {
this.goworkTime = null; this.goworkTime = null;
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -181,7 +181,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo { ...@@ -181,7 +181,7 @@ public class PerformGoworkRecordEntity extends PerformGoworkRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
...@@ -130,7 +130,7 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo { ...@@ -130,7 +130,7 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -138,17 +138,17 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo { ...@@ -138,17 +138,17 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId =0L;
this.deptName = ""; this.deptName = "";
this.irregularOtherType = -1; this.irregularOtherType = 1;
this.happenTime = null; this.happenTime = null;
this.duration = 0; this.duration = 0;
this.ruleId = -1L; this.ruleId = null;
this.ruleName = ""; this.ruleName = "";
...@@ -170,7 +170,7 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo { ...@@ -170,7 +170,7 @@ public class PerformOtherRecordEntity extends PerformOtherRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = null;
this.categoryName = ""; this.categoryName = "";
......
...@@ -137,7 +137,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo { ...@@ -137,7 +137,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo {
public void initAttrValue(){ public void initAttrValue(){
this.staffId = -1L; this.staffId = 0L;
this.staffName = ""; this.staffName = "";
...@@ -145,11 +145,11 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo { ...@@ -145,11 +145,11 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo {
this.windowNum = ""; this.windowNum = "";
this.deptId = -1L; this.deptId = 0L;
this.deptName = ""; this.deptName = "";
this.reviewResult = -1; this.reviewResult = 1;
this.reviewTime = null; this.reviewTime = null;
...@@ -157,7 +157,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo { ...@@ -157,7 +157,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo {
this.reviewDevice = ""; this.reviewDevice = "";
this.ruleId = -1L; this.ruleId = 0L;
this.ruleName = ""; this.ruleName = "";
...@@ -177,7 +177,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo { ...@@ -177,7 +177,7 @@ public class PerformReviewRecordEntity extends PerformReviewRecordVo {
this.filePaths = ""; this.filePaths = "";
this.categoryId = -1L; this.categoryId = 0L;
this.categoryName = ""; this.categoryName = "";
......
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