优化订单中明细的excel导入
This commit is contained in:
@@ -1127,6 +1127,7 @@ public class DepotItemService {
|
||||
for (Map<String, String> detailMap: detailList) {
|
||||
JSONObject item = new JSONObject();
|
||||
String barCode = detailMap.get("barCode");
|
||||
if(StringUtil.isNotEmpty(barCode)) {
|
||||
MaterialVo4Unit m = materialMap.get(barCode);
|
||||
if(m!=null) {
|
||||
item.put("barCode", barCode);
|
||||
@@ -1185,6 +1186,7 @@ public class DepotItemService {
|
||||
String.format(ExceptionConstants.DEPOT_ITEM_BARCODE_IS_NOT_EXIST_MSG, barCode));
|
||||
}
|
||||
}
|
||||
}
|
||||
map.put("rows", arr);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -966,7 +966,7 @@
|
||||
|
||||
<select id="getBillItemByParam" resultType="com.jsh.erp.datasource.entities.MaterialVo4Unit">
|
||||
select m.id, m.name, m.standard, m.model, me.id meId,me.commodity_unit commodityUnit,
|
||||
me.purchase_decimal purchaseDecimal, me.wholesale_decimal wholesaleDecimal, me.bar_code mBarCode
|
||||
me.purchase_decimal purchaseDecimal, me.wholesale_decimal wholesaleDecimal, me.bar_code mBarCode, me.sku
|
||||
from jsh_material m
|
||||
left join jsh_material_extend me on m.id=me.material_id and ifnull(me.delete_Flag,'0') !='1'
|
||||
where 1=1
|
||||
|
||||
Reference in New Issue
Block a user