Commit 25a7ab5f authored by hubaoshan's avatar hubaoshan

1.4

parent 1d3fa39d
package org.rcisoft.bus.wmsgoods.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
......@@ -92,7 +93,9 @@ public class WmsGoods extends CyIdIncreEntity<WmsGoods> {
@Excel(name = "商品名称", orderNum = "9", width = 20)
private String goodsDictName;
@TableField(exist = false)
private Integer inCounts;
@TableField(exist = false)
private Integer outCounts;
}
......@@ -106,6 +106,7 @@ public class WmsGoodsApply extends CyIdIncreEntity<WmsGoodsApply> {
@Excel(name = "出库", orderNum = "17", width = 20)
private String outGoods;
private String goodsNumber;
private Integer businessId;
}
......@@ -96,8 +96,10 @@ public class WmsGoodsApplyServiceImpl extends ServiceImpl<WmsGoodsApplyRepositor
WmsGoodsLog log = new WmsGoodsLog();
log.setGoodsName(box.getGoodsName());
log.setGoodsCode(box.getGoodsCode());
baseMapper.queryWmsGoodsApplys(wmsGoodsApply);
log.setApplyId(baseMapper.queryWmsGoodsApplys(wmsGoodsApply).get(0).getBusinessId());
WmsGoodsApply wmsGoodsApplyId=new WmsGoodsApply();
wmsGoodsApplyId.setAppCode(addwmsGoodsApply.getAppCode());
List<WmsGoodsApply> wmsGoodsApplyList= baseMapper.queryWmsGoodsApplys(wmsGoodsApplyId);
log.setApplyId(wmsGoodsApplyList.get(0).getBusinessId());
log.setGoodsCounts(box.getInCounts());
log.setIoType("0");
assert wmsgoodsStock != null;
......
......@@ -154,7 +154,6 @@ public class WmsGoodsLogServiceImpl extends ServiceImpl<WmsGoodsLogRepository, W
for (WmsGoodsLog log : addLogList.getBoxList()) {
WmsGoodsLog wmsGoodsLog = new WmsGoodsLog();
BeanUtils.copyProperties(log, wmsGoodsLog);
wmsGoodsLog.setApplyId(log.getBusinessId());
wmsGoodsLogs.add(wmsGoodsLog);
}
baseMapper.batchPersist(wmsGoodsLogs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment