| | |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | |
| | | |
| | | @Data |
| | | @TableName("asr_loc_detl") |
| | | @Accessors(chain = true) |
| | | @ExcelIgnoreUnannotated |
| | | public class LocDetl implements Serializable { |
| | | |
| | |
| | | |
| | | |
| | | public BigDecimal getBookQty() { |
| | | if (diffQty.compareTo(BigDecimal.ZERO) == 0 || diffQty.compareTo(BigDecimal.ZERO) > 0) { |
| | | return new BigDecimal(anfme.toString()); |
| | | |
| | | if (diffQty.compareTo(BigDecimal.ZERO) == 0 ) { |
| | | return BigDecimal.ZERO; |
| | | } |
| | | if ( diffQty.compareTo(BigDecimal.ZERO) > 0) { |
| | | return new BigDecimal(anfme.toString()); |
| | | } |
| | | return new BigDecimal(anfme.toString()).subtract(diffQty); |
| | | } |