Commit e0520f8b by ilal Committed by chenzg

提交

parent 5a8e2151
...@@ -2326,6 +2326,8 @@ public class ClockInController { ...@@ -2326,6 +2326,8 @@ public class ClockInController {
String now = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); String now = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
String nowtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
KqglMainKqz attgro = kqglmainkqzmapper.getAttendanceGroupInformationByUserid(userBean.getEmpNum(),userBean.getOrgCode()); //考勤组信息 KqglMainKqz attgro = kqglmainkqzmapper.getAttendanceGroupInformationByUserid(userBean.getEmpNum(),userBean.getOrgCode()); //考勤组信息
if(attgro != null) { if(attgro != null) {
...@@ -2486,14 +2488,16 @@ public class ClockInController { ...@@ -2486,14 +2488,16 @@ public class ClockInController {
KqglAssoBcsz shif = KqglAssoBcsz.builder().build().selectOne(new QueryWrapper<KqglAssoBcsz>().lambda().eq(KqglAssoBcsz::getId, ash.getId())); KqglAssoBcsz shif = KqglAssoBcsz.builder().build().selectOne(new QueryWrapper<KqglAssoBcsz>().lambda().eq(KqglAssoBcsz::getId, ash.getId()));
if(shif.getIsXbdk() == 1 && (ash.getSort())%2 == 0) { if(shif.getIsXbdk() == 1 && (ash.getSort())%2 == 0) {
if(dkjl.getDktime() == null) { Timestamp tt = Timestamp.valueOf(ClockInTool.stampToDate(String.valueOf(ash.getTime())));
if(dkjl.getDktime() == null && b.after(tt)) {
KqglAssoDkjl dkjl_ = KqglAssoDkjl.builder().build(); KqglAssoDkjl dkjl_ = KqglAssoDkjl.builder().build();
dkjl_.setDktime(ash.getTime()); dkjl_.setDktime(ash.getTime());
dkjl_.setStatus(1); dkjl_.setStatus(1);
dkjl_.setSort(ash.getSort()); dkjl_.setSort(ash.getSort());
dkjl_.setId(999); dkjl_.setId(999);
BeanUtil.copyProperties(dkjl_, dkjl); BeanUtil.copyProperties(dkjl_, dkjl);
}else { }else if(dkjl.getDktime() != null){
dkjl.setStatus(1); dkjl.setStatus(1);
} }
} }
......
...@@ -119,7 +119,7 @@ public class SpmkServiceImpl implements SpmkService{ ...@@ -119,7 +119,7 @@ public class SpmkServiceImpl implements SpmkService{
.selectOne(new QueryWrapper<SpmkApproveExecuteRecord>().lambda().select(SpmkApproveExecuteRecord::getId).eq(SpmkApproveExecuteRecord::getApproveSummaryId , sum.getId()) .selectOne(new QueryWrapper<SpmkApproveExecuteRecord>().lambda().select(SpmkApproveExecuteRecord::getId).eq(SpmkApproveExecuteRecord::getApproveSummaryId , sum.getId())
.eq(SpmkApproveExecuteRecord::getSts, 1)); .eq(SpmkApproveExecuteRecord::getSts, 1));
if(exere != null) { if(exere != null) {
exe = SpmkExecutor.builder().build().selectOne(new QueryWrapper<SpmkExecutor>().lambda().eq(SpmkExecutor::getApproveExecuteRecordId, exere.getId())); exe = SpmkExecutor.builder().build().selectOne(new QueryWrapper<SpmkExecutor>().lambda().eq(SpmkExecutor::getApproveExecuteRecordId, exere.getId()).orderByDesc(SpmkExecutor::getId));
} }
if(exe != null) { if(exe != null) {
......
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