| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.Mat; |
| | | import com.zy.asrs.entity.MatPrint; |
| | | import com.zy.asrs.entity.OrderDetl; |
| | | import com.zy.asrs.entity.dto.OrderDetlWithSum; |
| | | import com.zy.asrs.entity.result.KeyValueVo; |
| | | import com.zy.asrs.service.LocDetlService; |
| | |
| | | if (mat == null) { |
| | | return R.ok(); |
| | | } |
| | | OrderDetlWithSum orderDetl = new OrderDetlWithSum(); |
| | | // OrderDetlWithSum orderDetl = new OrderDetlWithSum(); |
| | | OrderDetl orderDetl = new OrderDetl(); |
| | | orderDetl.sync(mat); |
| | | orderDetl.setAnfme(0.0D); |
| | | orderDetl.setSum(locDetlService.selectSumByMatnr(mat.getMatnr())); |
| | | // orderDetl.setSum(locDetlService.selectSumByMatnr(mat.getMatnr())); |
| | | return R.ok().add(orderDetl); |
| | | } |
| | | |
| | |
| | | List<KeyValueVo> valueVos = new ArrayList<>(); |
| | | for (Mat mat : mats) { |
| | | KeyValueVo vo = new KeyValueVo(); |
| | | vo.setName(mat.getMatnr() + " - " + mat.getMaktx()); |
| | | vo.setName(mat.getSpecs() + "-" + mat.getMaktx() + " - " + mat.getMatnr()); |
| | | vo.setValue(mat.getMatnr()); |
| | | valueVos.add(vo); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocDetlService; |
| | | import com.zy.asrs.service.OrderDetlService; |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 库存汇总数量 |
| | | */ |
| | | @TableField(exist=false) |
| | | private Double sum; |
| | | |
| | | public OrderDetl() {} |
| | | |
| | | public OrderDetl(Long orderId, String orderNo, Double anfme, Double qty, String matnr, String maktx, String batch, String specs, String model, String color, String brand, String unit, Double price, String sku, Double units, String barcode, String origin, String manu, String manuDate, String itemNum, Double safeQty, Double weight, Double length, Double volume, String threeCode, String supp, String suppCode, Integer beBatch, String deadTime, Integer deadWarn, Integer source, Integer inspect, Integer danger, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) { |
| | |
| | | Synchro.Copy(source, this); |
| | | } |
| | | |
| | | public Double getSum(){ |
| | | LocDetlService service = SpringUtils.getBean(LocDetlService.class); |
| | | if (!Cools.isEmpty(this.getMatnr())) { |
| | | return service.selectSumByMatnr(this.getMatnr()); |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | } |