|
@@ -107,7 +107,7 @@ public class FillAttendanceServiceImpl implements FillAttendanceService {
|
|
|
fillAttendance0.setStatus("0");
|
|
|
fillAttendance0.setUpdateTime(new Date());
|
|
|
fillAttendanceDAO.update(fillAttendance0);
|
|
|
- if (photoFile != null) {
|
|
|
+ if (StringUtils.isNotBlank(photoFile)) {
|
|
|
FillAttendanceFiles fillAttendanceFiles = fillAttendanceFilesDAO.findByFillAttendanceId(fillAttendance0.getId());
|
|
|
if (fillAttendanceFiles != null){
|
|
|
fillAttendanceFiles.setFileUrl(photoFile);
|
|
@@ -148,7 +148,7 @@ public class FillAttendanceServiceImpl implements FillAttendanceService {
|
|
|
fillAttendance.setCreateTime(new Date());
|
|
|
fillAttendance.setDelFlag(false);
|
|
|
fillAttendanceDAO.insert(fillAttendance);
|
|
|
- if (photoFile != null) {
|
|
|
+ if (StringUtils.isNotBlank(photoFile)) {
|
|
|
FillAttendanceFiles fillAttendanceFiles = new FillAttendanceFiles();
|
|
|
fillAttendanceFiles.setId(UUID.randomUUID().toString());
|
|
|
fillAttendanceFiles.setFillAttendanceId(fillAttendance.getId());
|