| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | DepFormScrapped depFormScrapped = new DepFormScrapped(lWhFormScrappedId); |
| | | depFormScrapped = goodsBaseService.get(depFormScrapped); |
| | | // 状态 1=待报废;2=已报废 |
| | | if (depFormScrapped == null || depFormScrapped.getStates() != 1) { |
| | | if (Objects.isNull(depFormScrapped) || depFormScrapped.getStates() != 1) { |
| | | return ResponseValue.error("请检查报废单"); |
| | | } |
| | | |