|  |  |  | 
|---|
|  |  |  | //pla.setStatus(GlobleParameter.PLA_STATUS_0); | 
|---|
|  |  |  | pla.setModifyTime(new Date()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 退货人 modify_user,退货备注 create_user,退货标识 transfer | 
|---|
|  |  |  | pla.setModifyUser(user.getUsername()); | 
|---|
|  |  |  | pla.setCreateUser(plaQty.getMemo()); | 
|---|
|  |  |  | pla.setTransfer("退货"); | 
|---|
|  |  |  | pla.setStash(""); // 库区 | 
|---|
|  |  |  | pla.setLocNo(""); // 库位 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | pla.setWeightAnfme(pla.getWeightAnfme() + plaQty.getOrderWeight()); | 
|---|
|  |  |  | pla.setStatus(GlobleParameter.PLA_STATUS_1); | 
|---|
|  |  |  | this.updateById(pla); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SaasUtils.insertLog(0,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(), | 
|---|
|  |  |  | SaasUtils.insertLog(4,pla.getLocNo(),pla.getBrand(),plaQty.getOrderWeight(),user.getUsername(), | 
|---|
|  |  |  | null,pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | 
|---|
|  |  |  | Object status = page.getCondition().get("status"); | 
|---|
|  |  |  | String type = (String) page.getCondition().get("type"); | 
|---|
|  |  |  | String workshop = (String) page.getCondition().get("workshop"); | 
|---|
|  |  |  | String transfer = (String) page.getCondition().get("transfer"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String createTime = create_time == null ? null : create_time.toString(); | 
|---|
|  |  |  | if(!Cools.isEmpty(createTime)){ | 
|---|
|  |  |  | 
|---|
|  |  |  | stime = DateUtils.convert(dates[0]); | 
|---|
|  |  |  | etime = DateUtils.convert(dates[1]); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | plaList=baseMapper.getStockStatisAll(brand == null ? null:brand.toString(), status == null ? null:status.toString(),  stime,etime, type, workshop); | 
|---|
|  |  |  | plaList=baseMapper.getStockStatisAll(brand == null ? null:brand.toString(), status == null ? null:status.toString(),  stime,etime, type, workshop, transfer); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | double weightSum = plaList.stream().mapToDouble(Pla::getWeight).sum(); | 
|---|
|  |  |  |  | 
|---|