From 8b7258c9427882bb1798f1502eaa35184c6e374e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:29:18 +0800
Subject: [PATCH] 短信指定楼栋发送
---
src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java b/src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java
index 5b3dea5..4aa0477 100644
--- a/src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java
+++ b/src/main/java/org/springblade/modules/checkInRecords/controller/CheckInRecordsController.java
@@ -23,12 +23,18 @@
import lombok.AllArgsConstructor;
import javax.validation.Valid;
+import org.springblade.common.utils.SpringUtils;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
+import org.springblade.modules.grid.entity.GridEntity;
+import org.springblade.modules.grid.entity.GridPatrolRecordEntity;
+import org.springblade.modules.grid.service.IGridService;
+import org.springblade.modules.police.entity.PoliceAffairsGridEntity;
+import org.springblade.modules.police.service.IPoliceAffairsGridService;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.checkInRecords.entity.CheckInRecordsEntity;
@@ -36,6 +42,8 @@
import org.springblade.modules.checkInRecords.wrapper.CheckInRecordsWrapper;
import org.springblade.modules.checkInRecords.service.ICheckInRecordsService;
import org.springblade.core.boot.ctrl.BladeController;
+
+import java.util.List;
/**
* 打卡记录表 控制器
@@ -90,8 +98,7 @@
@ApiOperationSupport(order = 4)
@ApiOperation(value = "新增", notes = "传入checkInRecords")
public R save(@Valid @RequestBody CheckInRecordsEntity checkInRecords) {
- checkInRecords.setCreateUserId(AuthUtil.getUserId());
- return R.status(checkInRecordsService.save(checkInRecords));
+ return R.status(checkInRecordsService.saveCheckInRecords(checkInRecords));
}
/**
--
Gitblit v1.9.3