¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.mdc.entity.MdcEquipmentPunch; |
| | | import org.jeecg.modules.mdc.service.IMdcEquipmentPunchService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: mdc_equipment_punch |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-06-09 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags = "ä¸ä¸çæå¡è®°å½è¡¨") |
| | | @RestController |
| | | @RequestMapping("/mdcEquipmentPunch") |
| | | @Slf4j |
| | | public class MdcEquipmentPunchController extends JeecgController<MdcEquipmentPunch, IMdcEquipmentPunchService> { |
| | | @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()); |
| | | } |
| | | |
| | | /** |
| | | * ä¸çæå¡ |
| | | * |
| | | * @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); |
| | | } |
| | | |
| | | } |