| | |
| | | |
| | | private Double anfme; |
| | | |
| | | private String bomCode; |
| | | |
| | | private String threeCode; |
| | | |
| | | public DetlDto() { |
| | | } |
| | | |
| | |
| | | this.matnr = matnr; |
| | | this.batch = batch; |
| | | this.anfme = anfme; |
| | | } |
| | | |
| | | public DetlDto(String matnr, String batch,String bomCode,String threeCode) { |
| | | this.matnr = matnr; |
| | | this.batch = batch; |
| | | this.bomCode = bomCode; |
| | | this.threeCode = threeCode; |
| | | } |
| | | |
| | | |
| | |
| | | return false; |
| | | } |
| | | |
| | | public static boolean has2(List<DetlDto> detlDtos, DetlDto detlDto) { |
| | | for (DetlDto dto : detlDtos) { |
| | | if (dto.getMatnr().equals(detlDto.getMatnr()) |
| | | && Cools.eq(dto.getBatch(), detlDto.getBatch()) |
| | | && Cools.eq(dto.getBomCode(), detlDto.getBomCode()) |
| | | && Cools.eq(dto.getThreeCode(), detlDto.getThreeCode()) |
| | | ) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch) { |
| | | if (Cools.isEmpty(matnr)) { |
| | | return null; |