|
|
@@ -216,6 +216,20 @@ public class ActivityController extends BaseController {
|
|
|
return R.ok(iClockRecordService.querySaleStatisticRecordList(bo));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 将员工在指定活动下的单个打卡记录设为失效
|
|
|
+ */
|
|
|
+ @ApiOperation("设为无效打卡")
|
|
|
+ @Log(title = "活动打卡记录", businessType = BusinessType.UPDATE)
|
|
|
+ @RepeatSubmit()
|
|
|
+ @PostMapping("/clockRecord/updateRecordStatus/{recordId}")
|
|
|
+ public R<Void> updateRecordStatus(
|
|
|
+ @ApiParam("记录id") @NotNull @PathVariable("recordId") Long recordId) {
|
|
|
+ Boolean result = iClockRecordService.updateRecordStatus(recordId);
|
|
|
+ return toAjax(result ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 将员工在指定活动下的所有打卡设为失效
|
|
|
*/
|