package com.mes.rawglasstask.controller; import com.mes.rawglasstask.entity.RawGlassStorageTask; import com.mes.rawglasstask.service.RawGlassStorageTaskService; import com.mes.utils.Result; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** *
* 前端控制器 *
* * @author wf * @since 2024-09-10 */ @RestController @RequestMapping("/raw_glass_storage_task") public class RawGlassStorageTaskController { @Autowired private RawGlassStorageTaskService rwService; //这里是你定义调用的service,这个是报工的 @ApiOperation("原片仓储数据查询") @PostMapping("/selectRawglasstask") public Result selectDamage(@RequestBody RawGlassStorageTask rw) { return Result.build(200,"查询成功", rwService.selectTasking(rw)); } }