| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * @param equipmentId |
| | | * @param validDate |
| | | * @return |
| | | */ |
| | | @Override |
| | | public BigDecimal findTemporarily(String equipmentId, String validDate) { |
| | | BigDecimal result = BigDecimal.ZERO; |
| | | List<MdcProcessQuantityDto> mdcProcessQuantityList = this.baseMapper.findList(equipmentId, validDate); |
| | | if (mdcProcessQuantityList != null && !mdcProcessQuantityList.isEmpty()) { |
| | | for (MdcProcessQuantityDto mdcProcessQuantity : mdcProcessQuantityList) { |
| | | result = result.add(new BigDecimal(mdcProcessQuantity.getProcessQuantity()).multiply(new BigDecimal(mdcProcessQuantity.getDuration()))); |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | } |