IUpdate update = HqlUpdate.create("AttendanceOriginal");
if (ReplenishHour.Type.IN.equals(entity.getType())) {
update.set("replenishHourCheckin", entity.getReplenishHourTime());
} else if (ReplenishHour.Type.OUT.equals(entity.getType())) {
update.set("replenishHourCheckout", entity.getReplenishHourTime());
} else {
return 0;
}
update.where("staffCode", entity.getStaffCode())
.where("attendanceDate", entity.getReplenishHourDate());
return executeUpdate(update);
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交