Commit 7a4da1e7 by 胡懿

二维码findlist增加根据货品信息查询

parent e309c2c4
......@@ -22,7 +22,6 @@ public class QrCode extends DataEntity<QrCode> {
private String code; // 物资编码
private String url; // 二维码存储路径
private String state; // 物资状态码 (0:未入库,1:已入库未入账,2:已入账未下账,3:下账)
private List<String> modelList; // 查询时使用的属性
public QrCode() {
super();
......@@ -67,11 +66,4 @@ public class QrCode extends DataEntity<QrCode> {
this.state = state;
}
public List<String> getModelList() {
return modelList;
}
public void setModelList(List<String> modelList) {
this.modelList = modelList;
}
}
\ No newline at end of file
......@@ -37,7 +37,7 @@ public class QrCodeService extends CrudService<QrCodeMapper, QrCode> {
GoodsInfo goodsInfo = qrCode.getGoodsInfo();
if (null != goodsInfo) {
if (StringUtils.isNotBlank(goodsInfo.getModel())) {
qrCode.setModelList(IKSegmenter.splitStr(goodsInfo.getModel(), false));
goodsInfo.setModelList(IKSegmenter.splitStr(goodsInfo.getModel(), false));
}
}
return super.findPage(page, qrCode);
......
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