| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasProcessProceduresService; |
| | | import com.zy.asrs.service.BasQualityTestingService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | 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; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("asr_loc_detl") |
| | | @Accessors(chain = true) |
| | | @ExcelIgnoreUnannotated |
| | | public class LocDetl implements Serializable { |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value= "差异数量") |
| | | @TableField("diff_qty") |
| | | private String diffQty = ""; |
| | | private BigDecimal diffQty = BigDecimal.ZERO; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value= "账面数量") |
| | | @TableField("book_qty") |
| | | private BigDecimal bookQty = BigDecimal.ZERO; |
| | | // private BigDecimal bookQty = Cools.isEmpty(anfme)? BigDecimal.ZERO : new BigDecimal(anfme.toString()); |
| | | |
| | | |
| | | public BigDecimal getBookQty() { |
| | | |
| | | 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); |
| | | } |
| | | |
| | | public String getLocNo$(){ |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | |
| | | } |
| | | } |
| | | |
| | | public String getTag$() { |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr)); |
| | | if (Cools.isEmpty(order)){ |
| | | return null; |
| | | } |
| | | return order.getTagId$(); |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |