| | |
| | | /** |
| | | * @Description: mdc_equipment_punch |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-06-09 |
| | | * @Date: 2025-06-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="上下班打卡记录表") |
| | | @Api(tags = "上下班打卡记录表") |
| | | @RestController |
| | | @RequestMapping("/mdcEquipmentPunch") |
| | | @Slf4j |
| | | public class MdcEquipmentPunchController extends JeecgController<MdcEquipmentPunch, IMdcEquipmentPunchService> { |
| | | @Autowired |
| | | private IMdcEquipmentPunchService mdcEquipmentPunchService; |
| | | @Autowired |
| | | private IMdcEquipmentPunchService mdcEquipmentPunchService; |
| | | |
| | | private static final String msg = "打卡成功!"; |
| | | |
| | | /** |
| | | * 查询当前登录人所负责设备打卡情况 |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="查询当前登录人所负责设备打卡情况", notes="查询当前登录人所负责设备打卡情况") |
| | | @GetMapping(value = "/list") |
| | | public Result<List<MdcEquipmentPunch>> queryList() { |
| | | return Result.OK(mdcEquipmentPunchService.queryList()); |
| | | } |
| | | private static final String msg = "打卡成功!"; |
| | | |
| | | /** |
| | | * 上班打卡 |
| | | * |
| | | * @param mdcEquipmentPunch |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "上班打卡") |
| | | @ApiOperation(value="上班打卡", notes="上班打卡") |
| | | @PostMapping(value = "/workUp") |
| | | public Result<String> workUp(@RequestBody MdcEquipmentPunch mdcEquipmentPunch) { |
| | | mdcEquipmentPunchService.workUp(mdcEquipmentPunch); |
| | | return Result.OK(msg); |
| | | } |
| | | /** |
| | | * 查询当前登录人所负责设备打卡情况 |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询当前登录人所负责设备打卡情况", notes = "查询当前登录人所负责设备打卡情况") |
| | | @GetMapping(value = "/list") |
| | | public Result<List<MdcEquipmentPunch>> queryList() { |
| | | return Result.OK(mdcEquipmentPunchService.queryList()); |
| | | } |
| | | |
| | | /** |
| | | * 下班打卡 |
| | | * |
| | | * @param mdcEquipmentPunch |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "下班打卡") |
| | | @ApiOperation(value="下班打卡", notes="下班打卡") |
| | | @PostMapping(value = "/workDown") |
| | | public Result<String> workDown(@RequestBody MdcEquipmentPunch mdcEquipmentPunch) { |
| | | mdcEquipmentPunchService.workDown(mdcEquipmentPunch); |
| | | return Result.OK(msg); |
| | | } |
| | | /** |
| | | * 上班打卡 |
| | | * |
| | | * @param mdcEquipmentPunch |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "上班打卡") |
| | | @ApiOperation(value = "上班打卡", notes = "上班打卡") |
| | | @PostMapping(value = "/workUp") |
| | | public Result<String> workUp(@RequestBody MdcEquipmentPunch mdcEquipmentPunch) { |
| | | mdcEquipmentPunchService.workUp(mdcEquipmentPunch); |
| | | return Result.OK(msg); |
| | | } |
| | | |
| | | /** |
| | | * 下班打卡 |
| | | * |
| | | * @param mdcEquipmentPunch |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "下班打卡") |
| | | @ApiOperation(value = "下班打卡", notes = "下班打卡") |
| | | @PostMapping(value = "/workDown") |
| | | public Result<String> workDown(@RequestBody MdcEquipmentPunch mdcEquipmentPunch) { |
| | | mdcEquipmentPunchService.workDown(mdcEquipmentPunch); |
| | | return Result.OK(msg); |
| | | } |
| | | |
| | | } |