|
@@ -171,7 +171,7 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
if (signInTime == null || signInTime == 0) {
|
|
if (signInTime == null || signInTime == 0) {
|
|
signInInfo.setStatus(DingStatusEnum.NO_SIGN);
|
|
signInInfo.setStatus(DingStatusEnum.NO_SIGN);
|
|
} else {
|
|
} else {
|
|
- if (Objects.equals(sopNo, dingSopNo)) {
|
|
|
|
|
|
+ if (isCoordinator || Objects.equals(sopNo, dingSopNo)) {
|
|
signInInfo.setStatus(DingStatusEnum.SIGN);
|
|
signInInfo.setStatus(DingStatusEnum.SIGN);
|
|
} else {
|
|
} else {
|
|
signInInfo.setStatus(DingStatusEnum.OTHER);
|
|
signInInfo.setStatus(DingStatusEnum.OTHER);
|
|
@@ -192,7 +192,7 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
if (signOutTime == null || signOutTime == 0) {
|
|
if (signOutTime == null || signOutTime == 0) {
|
|
signOutInfo.setStatus(DingStatusEnum.NO_SIGN);
|
|
signOutInfo.setStatus(DingStatusEnum.NO_SIGN);
|
|
} else {
|
|
} else {
|
|
- if (Objects.equals(sopNo, dingSopNo)) {
|
|
|
|
|
|
+ if (isCoordinator || Objects.equals(sopNo, dingSopNo)) {
|
|
signOutInfo.setStatus(DingStatusEnum.SIGN);
|
|
signOutInfo.setStatus(DingStatusEnum.SIGN);
|
|
} else {
|
|
} else {
|
|
signOutInfo.setStatus(DingStatusEnum.OTHER);
|
|
signOutInfo.setStatus(DingStatusEnum.OTHER);
|
|
@@ -598,7 +598,7 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
@Override
|
|
@Override
|
|
public DateFormDto buildSignDateFormBySop(String sopNo) {
|
|
public DateFormDto buildSignDateFormBySop(String sopNo) {
|
|
DateFormDto result = new DateFormDto();
|
|
DateFormDto result = new DateFormDto();
|
|
- List<String> dateList = new ArrayList<>();
|
|
|
|
|
|
+ List<String> dateList;
|
|
long currentTime = System.currentTimeMillis();
|
|
long currentTime = System.currentTimeMillis();
|
|
if (sopNo != null && sopNo.length() > 0) {
|
|
if (sopNo != null && sopNo.length() > 0) {
|
|
TFFlowApprove tfFlowApprove = this.findFlowApproveBySopNo(sopNo);
|
|
TFFlowApprove tfFlowApprove = this.findFlowApproveBySopNo(sopNo);
|
|
@@ -618,8 +618,6 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
dateList = DateDisposeUtils.getDaysBetween(createTime, currentTime, SystemConstant.DEFAULT_DATE_YMD_S_PATTERN);
|
|
dateList = DateDisposeUtils.getDaysBetween(createTime, currentTime, SystemConstant.DEFAULT_DATE_YMD_S_PATTERN);
|
|
result.setSopIsEnd(false);
|
|
result.setSopIsEnd(false);
|
|
}
|
|
}
|
|
- dateList.sort(Collections.reverseOrder());
|
|
|
|
- result.setDateFormList(dateList);
|
|
|
|
} else {
|
|
} else {
|
|
// 区协固定打卡时间
|
|
// 区协固定打卡时间
|
|
RegionCoordinatorDingTimeDto dingTimeDto = this.findRegionCoordinatorDingTime();
|
|
RegionCoordinatorDingTimeDto dingTimeDto = this.findRegionCoordinatorDingTime();
|
|
@@ -630,8 +628,9 @@ public class TBDingServiceImpl extends ServiceImpl<TBDingMapper, TBDing> impleme
|
|
Long endTime = dingTimeDto.getEndTime();
|
|
Long endTime = dingTimeDto.getEndTime();
|
|
dateList = DateDisposeUtils.getDaysBetween(startTime, Math.min(currentTime, endTime),
|
|
dateList = DateDisposeUtils.getDaysBetween(startTime, Math.min(currentTime, endTime),
|
|
SystemConstant.DEFAULT_DATE_YMD_S_PATTERN);
|
|
SystemConstant.DEFAULT_DATE_YMD_S_PATTERN);
|
|
- result.setDateFormList(dateList);
|
|
|
|
}
|
|
}
|
|
|
|
+ dateList.sort(Collections.reverseOrder());
|
|
|
|
+ result.setDateFormList(dateList);
|
|
if (CollectionUtils.isNotEmpty(dateList)) {
|
|
if (CollectionUtils.isNotEmpty(dateList)) {
|
|
result.setEndDate(dateList.get(0));
|
|
result.setEndDate(dateList.get(0));
|
|
}
|
|
}
|