|
@@ -3,13 +3,16 @@ package com.sooka.sponest.data.housingconstruction.service.impl;
|
|
|
import com.ruoyi.common.datascope.annotation.DataScopeMutiDept;
|
|
|
import com.sooka.sponest.data.base.service.impl.BaseServiceImpl;
|
|
|
import com.sooka.sponest.data.housingconstruction.domain.*;
|
|
|
+import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionEnterpriseMapper;
|
|
|
+import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionRealnameuserMapper;
|
|
|
import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionViewMapper;
|
|
|
import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionViewService;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* 车辆数据Service业务层处理
|
|
@@ -22,6 +25,12 @@ public class CenterdataTHousingconstructionViewServiceImpl extends BaseServiceIm
|
|
|
@Autowired
|
|
|
private CenterdataTHousingconstructionViewMapper centerdataTHousingconstructionViewMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CenterdataTHousingconstructionRealnameuserMapper centerdataTHousingconstructionRealnameuserMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CenterdataTHousingconstructionEnterpriseMapper centerdataTHousingconstructionEnterpriseMapper;
|
|
|
+
|
|
|
/*
|
|
|
* 液化气罐总数
|
|
|
*
|
|
@@ -190,4 +199,58 @@ public class CenterdataTHousingconstructionViewServiceImpl extends BaseServiceIm
|
|
|
setSookaDataBase(steelcylinder);
|
|
|
return centerdataTHousingconstructionViewMapper.getJoinHouseUserList(steelcylinder);
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 入库记录
|
|
|
+ *
|
|
|
+ * @author 韩福成
|
|
|
+ * @date 2024/8/5 上午8:58
|
|
|
+ */
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
+ @Override
|
|
|
+ public List<Map<String,Object>> getGassourceList(CenterdataTHousingconstructionSteelcylinder steelcylinder) {
|
|
|
+ setSookaDataBase(steelcylinder);
|
|
|
+ return centerdataTHousingconstructionViewMapper.getGassourceList(steelcylinder);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 资源落点
|
|
|
+ *
|
|
|
+ * @author 韩福成
|
|
|
+ * @date 2024/8/5 上午9:15
|
|
|
+ */
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
+ @Override
|
|
|
+ public List<Map<String,Object>> getResourcePoint(CenterdataTHousingconstructionStoragetank storagetank) {
|
|
|
+ setSookaDataBase(storagetank);
|
|
|
+ List<Map<String,Object>> mapList = new ArrayList<Map<String,Object>>();
|
|
|
+ switch (storagetank.getState()){
|
|
|
+ case "1":
|
|
|
+ //钢瓶
|
|
|
+ CenterdataTHousingconstructionSteelcylinder steelcylinder = new CenterdataTHousingconstructionSteelcylinder();
|
|
|
+ setSookaDataBase(steelcylinder);
|
|
|
+ steelcylinder.setEnterpriseId(storagetank.getEnterpriseId());
|
|
|
+ mapList = centerdataTHousingconstructionViewMapper.getSteelcylinderPointList(steelcylinder);
|
|
|
+ break;
|
|
|
+ case "2":
|
|
|
+ //用户
|
|
|
+ CenterdataTHousingconstructionRealnameuser realnameuser = new CenterdataTHousingconstructionRealnameuser();
|
|
|
+ setSookaDataBase(realnameuser);
|
|
|
+ realnameuser.setEnterpriseId(storagetank.getEnterpriseId());
|
|
|
+ mapList = centerdataTHousingconstructionRealnameuserMapper.getRealnameuserList(realnameuser);
|
|
|
+ case "3":
|
|
|
+ //车辆
|
|
|
+ // mapList = centerdataTHousingconstructionViewMapper.getResourcePoint(storagetank);
|
|
|
+ case "4":
|
|
|
+ //厂站
|
|
|
+ CenterdataTHousingconstructionEnterprise enterprise = new CenterdataTHousingconstructionEnterprise();
|
|
|
+ setSookaDataBase(enterprise);
|
|
|
+ enterprise.setId(storagetank.getEnterpriseId());
|
|
|
+ mapList = centerdataTHousingconstructionEnterpriseMapper.getEnterpriseList(enterprise);
|
|
|
+ case "5":
|
|
|
+ //配送员
|
|
|
+ // mapList = centerdataTHousingconstructionViewMapper.getResourcePoint(storagetank);
|
|
|
+ }
|
|
|
+ return mapList;
|
|
|
+ }
|
|
|
}
|