| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 控制器 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-03-03 |
| | | * 考勤控制器 |
| | | * @since 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | |
| | | public class AttendanceController extends BladeController { |
| | | |
| | | private final IAttendanceService attendanceService; |
| | | |
| | | // private final IEnclosureService iEnclosureService; |
| | | |
| | | private final IDictBizService iDictBizService; |
| | | |
| | |
| | | IPage<AttendanceVO> pages = attendanceService.selectAttendancePage(Condition.getPage(query), attendance); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | // /** |
| | | // * 保安位置比对 |
| | | // */ |
| | | // @GetMapping("/positionThan") |
| | | // public R positionThan(@Valid Attendance attendance, HttpServletResponse response) { |
| | | // response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | // response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | // response.setHeader("Access-Control-Allow-Credentials", "true"); |
| | | // Enclosure enclosure = new Enclosure(); |
| | | // enclosure.setAnumber(attendance.getNumber()); |
| | | // //查询当前处警人员的电子围栏信息 |
| | | // Boolean onArea = iEnclosureService.isOnArea(attendance.getJd(),attendance.getWd(),enclosure); |
| | | // if (onArea){ |
| | | // return R.data(true); |
| | | // } |
| | | // return R.data(false); |
| | | // } |
| | | |
| | | |
| | | /** |