| | |
| | | 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列表 |
| | | */ |
| | |
| | | { |
| | | return toAjax(apsStandardProcessRouteLineService.deleteApsStandardProcessRouteLineByIds(ids)); |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/getStandardTime") |
| | | public AjaxResult getStandardTime(@RequestBody ApsStandardProcessRouteLine apsStandardProcessRouteLine) |
| | | { |
| | | BigDecimal standardTime = mapper.selectTotalStandTime(apsStandardProcessRouteLine.getRouteId()).getStandardTime(); |
| | | return toAjax(standardTime.intValue()); |
| | | } |
| | | } |