| | |
| | | import com.aps.common.log.enums.BusinessType; |
| | | import com.aps.common.security.annotation.RequiresPermissions; |
| | | import com.aps.core.domain.ApsStandardProcessRouteLine; |
| | | import com.aps.core.mapper.ApsStandardProcessRouteLineMapper; |
| | | import com.aps.core.service.IApsStandardProcessRouteLineService; |
| | | import jakarta.annotation.Resource; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private IApsStandardProcessRouteLineService apsStandardProcessRouteLineService; |
| | | |
| | | @Resource |
| | | private ApsStandardProcessRouteLineMapper mapper; |
| | | /** |
| | | * 查询标准工艺路线Line列表 |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:list") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:list") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | | { |
| | |
| | | /** |
| | | * 导出标准工艺路线Line列表 |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:export") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:export") |
| | | @Log(title = "标准工艺路线Line", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | |
| | | /** |
| | | * 获取标准工艺路线Line详细信息 |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:query") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:query") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | /** |
| | | * 新增标准工艺路线Line |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:add") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:add") |
| | | @Log(title = "标准工艺路线Line", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | |
| | | /** |
| | | * 修改标准工艺路线Line |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:edit") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:edit") |
| | | @Log(title = "标准工艺路线Line", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | |
| | | /** |
| | | * 删除标准工艺路线Line |
| | | */ |
| | | @RequiresPermissions("ApsStandardProcessRouteLine:ApsStandardProcessRouteLine:remove") |
| | | @RequiresPermissions("Aps:ApsStandardProcessRouteLine:remove") |
| | | @Log(title = "标准工艺路线Line", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(apsStandardProcessRouteLineService.deleteApsStandardProcessRouteLineByIds(ids)); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/getStandardTime") |
| | | public AjaxResult getStandardTime(@RequestBody ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | | { |
| | | BigDecimal standardTime = mapper.selectTotalStandTime(apsStandardProcessRouteLine.getRouteId()).getStandardTime(); |
| | | return toAjax(standardTime.intValue()); |
| | | } |
| | | } |