|
@@ -13,11 +13,15 @@ import com.sooka.sponest.data.digitalagriculture.mapper.CenterdataTFarmCollectiv
|
|
|
import com.sooka.sponest.data.digitalagriculture.service.ICenterdataTFarmCollectiveFarmlandService;
|
|
|
import com.sooka.sponest.data.system.equipment.domain.CenterdataTEquipmentCamera;
|
|
|
import com.sooka.sponest.data.system.equipment.service.ICenterdataTEquipmentCameraService;
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -151,23 +155,10 @@ public class CenterdataTFarmCollectiveFarmlandServiceImpl extends BaseServiceImp
|
|
|
String deptId = null == vo.getDeptId() ? SecurityUtils.getLoginUser().getSysUser().getDeptId().toString() : vo.getDeptId().toString();
|
|
|
vo.setDeptId(Long.valueOf(deptId));
|
|
|
List<Map<String, Object>> busList = centerdataTFarmCollectiveFarmlandMapper.countFarmland(vo);
|
|
|
- List<String> addKeys = Arrays.asList(
|
|
|
- "collectiveFarmland",
|
|
|
- "homeContracting",
|
|
|
- "otherCollectiveFarmland",
|
|
|
- "maneuverableLand",
|
|
|
- "contractedLand",
|
|
|
- "extinctionLand",
|
|
|
- "onlyChildLand",
|
|
|
- "returnableLand",
|
|
|
- "reclaimLang",
|
|
|
- "fourWastelandsLand",
|
|
|
- "schoolLand",
|
|
|
- "villageSchoolLand",
|
|
|
- "waterArea",
|
|
|
- "forestArea",
|
|
|
- "dicallyLand");
|
|
|
- List<Map<String, Object>> deptLevel = deptLevelUtil.getDeptLevel(deptId, busList, addKeys);
|
|
|
- return deptLevel;
|
|
|
+ List<String> addKeys = Arrays.asList("collectiveFarmland", "homeContracting", "otherCollectiveFarmland", "maneuverableLand", "contractedLand", "extinctionLand", "onlyChildLand", "returnableLand", "reclaimLang", "fourWastelandsLand", "schoolLand", "villageSchoolLand", "waterArea", "forestArea", "dicallyLand");
|
|
|
+ List<Map<String, Object>> resultDataList = deptLevelUtil.getDeptLevel(deptId, busList, addKeys);
|
|
|
+ return deptLevelUtil.sumColumnsTotal(resultDataList, addKeys, "deptName");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|