Commit 7724f5df by 胡懿

新增根据货品明细id和二维码id查询二维码和货品明细对象的接口

parent ca72e344
...@@ -212,7 +212,9 @@ public class GoodsService extends CrudService<GoodsMapper, Goods> { ...@@ -212,7 +212,9 @@ public class GoodsService extends CrudService<GoodsMapper, Goods> {
public QrCode getGIAndQCByTwoId(String goodsInfoId, String qrCodeId) { public QrCode getGIAndQCByTwoId(String goodsInfoId, String qrCodeId) {
GoodsInfo goodsInfo = goodsInfoMapper.get(new GoodsInfo(goodsInfoId)); GoodsInfo goodsInfo = goodsInfoMapper.get(new GoodsInfo(goodsInfoId));
QrCode qrCode = qrCodeMapper.get(new QrCode(qrCodeId)); QrCode qrCode = qrCodeMapper.get(new QrCode(qrCodeId));
if (null != qrCode) {
qrCode.setGoodsInfo(goodsInfo); qrCode.setGoodsInfo(goodsInfo);
}
return qrCode; return qrCode;
} }
} }
\ No newline at end of file
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