| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | | /** |
| | | * 打卡记录表 控制器 |
| | |
| | | @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)); |
| | | } |
| | | |
| | | /** |