|
@@ -1,15 +1,19 @@
|
|
|
package com.fjhx.service.water.impl;
|
|
|
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.fjhx.base.Condition;
|
|
|
import com.fjhx.entity.water.WaterDetail;
|
|
|
import com.fjhx.entity.water.WaterTag;
|
|
|
import com.fjhx.mapper.water.WaterDetailMapper;
|
|
|
import com.fjhx.params.water.WaterVo;
|
|
|
import com.fjhx.service.water.WaterDetailService;
|
|
|
+import com.fjhx.utils.UserClientUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -46,4 +50,18 @@ public class WaterDetailServiceImpl extends ServiceImpl<WaterDetailMapper, Water
|
|
|
saveBatch(waterDetailList);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<Map<String, Object>> getInQuantityByApplyPurchaseDetailsId(Condition condition) {
|
|
|
+ Long applyPurchaseDetailsId = condition.getLong("applyPurchaseDetailsId");
|
|
|
+ List<Map<String, Object>> list = baseMapper.getInQuantityByApplyPurchaseDetailsId(applyPurchaseDetailsId);
|
|
|
+
|
|
|
+ Map<Long, String> userMap = UserClientUtil.getUserNameMapFunctionLong(list, item -> Convert.toLong(item.get("operUserId")));
|
|
|
+
|
|
|
+ for (Map<String, Object> map : list) {
|
|
|
+ map.put("operUserName", userMap.get(Convert.toLong(map.get("operUserId"))));
|
|
|
+ }
|
|
|
+
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
}
|