|
@@ -1,5 +1,6 @@
|
|
|
package com.dk.mdm.service.pur;
|
|
package com.dk.mdm.service.pur;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.dk.common.exception.BaseBusinessException;
|
|
import com.dk.common.exception.BaseBusinessException;
|
|
|
import com.dk.common.infrastructure.annotaiton.Pagination;
|
|
import com.dk.common.infrastructure.annotaiton.Pagination;
|
|
@@ -386,4 +387,21 @@ public class PurchaseService extends BaseService<Purchase> {
|
|
|
return InboundItemVOList;
|
|
return InboundItemVOList;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 采购跟踪
|
|
|
|
|
+ * @author : 常皓宁
|
|
|
|
|
+ * @date : 2024/4/22 10:19
|
|
|
|
|
+ */
|
|
|
|
|
+ public ResponseResultVO<PageList> selectTrackReport(Map<String, Object> param) {
|
|
|
|
|
+ // 获取组合商品
|
|
|
|
|
+ Map<String, Object> map = purchaseMapper.selectTrackReport(param);
|
|
|
|
|
+ JSONObject sku = JSONObject.parseObject(map.get("f_query_pur_for_track").toString());
|
|
|
|
|
+ // 定义返回值
|
|
|
|
|
+ PageList data = new PageList<>();
|
|
|
|
|
+ List dataList = sku.get("data") != null ? JSONObject.parseArray(sku.get("data").toString()).toJavaList(Map.class) : new ArrayList();
|
|
|
|
|
+ // 组装返回值
|
|
|
|
|
+ data.setList(dataList);
|
|
|
|
|
+ return ResponseResultUtil.success(data);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|