zouxuan 1 рік тому
батько
коміт
6d08e98b25

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/dal/dao/GoodsDao.java

@@ -201,5 +201,5 @@ public interface GoodsDao extends BaseDAO<Integer, Goods> {
 
     BigDecimal getOrganCostPrice(@Param("complementGoodsIdList") String complementGoodsIdList);
 
-    List<Goods> exportGoods(@Param("queryInfo") GoodsQueryInfo queryInfo);
+    List<Goods> exportGoods(Map<String, Object> params);
 }

+ 4 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/GoodsServiceImpl.java

@@ -19,6 +19,7 @@ import com.ym.mec.common.service.IdGeneratorService;
 import com.ym.mec.common.service.impl.BaseServiceImpl;
 import com.ym.mec.common.tenant.TenantContextHolder;
 import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
+import com.ym.mec.util.collection.MapUtil;
 import com.ym.mec.util.excel.POIUtil;
 import com.ym.mec.util.ini.IniFileUtil;
 
@@ -71,7 +72,9 @@ public class GoodsServiceImpl extends BaseServiceImpl<Integer, Goods>  implement
 
 	@Override
 	public List<Goods> exportGoods(GoodsQueryInfo queryInfo) {
-		List<Goods> rows = goodsDao.exportGoods(queryInfo);
+		Map<String, Object> params = new HashMap<String, Object>();
+		MapUtil.populateMap(params, queryInfo);
+		List<Goods> rows = goodsDao.exportGoods(params);
 		if (CollectionUtils.isEmpty(rows)) {
 			throw new BizException("没有查询到商品信息");
 		}