| | |
| | | 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.dnc.entity.ProcessSpecVersion; |
| | | import org.jeecg.modules.dnc.entity.WorkStep; |
| | | import org.jeecg.modules.dnc.response.CommonCode; |
| | | import org.jeecg.modules.dnc.response.ResponseResult; |
| | | import org.jeecg.modules.dnc.service.IProcessSpecVersionService; |
| | | import org.jeecg.modules.dnc.service.IWorkStepService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @Autowired |
| | | private IProcessSpecVersionService processSpecVersionService; |
| | | |
| | | /** |
| | | * 根据工艺规程id查询,下级工序工步数量 |
| | | * @param processSpecId |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工艺规程版本表-根据工艺规程id查询,下级工序工步数量") |
| | | @ApiOperation(value = "工艺规程版本表-根据工艺规程id查询,下级工序工步数量", notes = "工艺规程版本表-根据工艺规程id查询,下级工序工步数量") |
| | | @GetMapping("/getWorkStepCountByProcessSpecId/{processSpecId}") |
| | | public Result<?> getWorkStepCountByProcessSpecId(@PathVariable("processSpecId") String processSpecId) { |
| | | return processSpecVersionService.getProcessSpecVersionCount(processSpecId); |
| | | } |
| | | |
| | | @AutoLog(value = "工艺规程版本表-新增工艺规程版本信息") |
| | | @ApiOperation(value = "工艺规程版本表-新增工艺规程版本信息", notes = "工艺规程版本表-新增工艺规程版本信息") |
| | | @PostMapping("/add") |