|
@@ -2,7 +2,7 @@ package com.project.zcustom.service.logistics.impl;
|
|
|
|
|
|
import com.project.zcustom.domain.addional.LargeAssetDirs;
|
|
|
import com.project.zcustom.domain.addional.LargeLogistics;
|
|
|
-import com.project.zcustom.mapper.logistics.PlatLogisticsMapper;
|
|
|
+import com.project.zcustom.mapper.logistics.PlatAssetMapper;
|
|
|
import com.project.zcustom.service.logistics.ILargePlatAssetService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -17,13 +17,14 @@ import java.util.Map;
|
|
|
public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
|
|
|
@Autowired
|
|
|
- private PlatLogisticsMapper platLogisticsMapper;
|
|
|
+ private PlatAssetMapper platAssetMapper;
|
|
|
+
|
|
|
public LargeLogistics getBuildingAssetRate(String appOrg){
|
|
|
LargeLogistics largeLogistics = new LargeLogistics();
|
|
|
- List<LargeAssetDirs> list1 = platLogisticsMapper.getBuildingAssetRate(appOrg);
|
|
|
+ List<LargeAssetDirs> list1 = platAssetMapper.getBuildingAssetRate(appOrg);
|
|
|
if (list1.size() > 0){
|
|
|
largeLogistics.setBuildingAssetList(list1);
|
|
|
- largeLogistics.setBuildingAssetNum(platLogisticsMapper.getBuildingAssetNum(appOrg));
|
|
|
+ largeLogistics.setBuildingAssetNum(platAssetMapper.getBuildingAssetNum(appOrg));
|
|
|
}
|
|
|
else {
|
|
|
largeLogistics.setBuildingAssetNum(0L);
|
|
@@ -63,10 +64,10 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
|
|
|
public LargeLogistics getServiceAssetRate(String appOrg){
|
|
|
LargeLogistics largeLogistics = new LargeLogistics();
|
|
|
- List<LargeAssetDirs> list1 = platLogisticsMapper.getServiceAssetRate(appOrg);
|
|
|
+ List<LargeAssetDirs> list1 = platAssetMapper.getServiceAssetRate(appOrg);
|
|
|
if (list1.size() > 0){
|
|
|
largeLogistics.setServiceAssetList(list1);
|
|
|
- largeLogistics.setServiceAssetNum(platLogisticsMapper.getServiceAssetNum(appOrg));
|
|
|
+ largeLogistics.setServiceAssetNum(platAssetMapper.getServiceAssetNum(appOrg));
|
|
|
}
|
|
|
else {
|
|
|
largeLogistics.setServiceAssetNum(0L);
|
|
@@ -87,10 +88,10 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
|
|
|
public LargeLogistics getOfficeAssetRate(String appOrg){
|
|
|
LargeLogistics largeLogistics = new LargeLogistics();
|
|
|
- List<LargeAssetDirs> list1 = platLogisticsMapper.getOfficeAssetRate(appOrg);
|
|
|
+ List<LargeAssetDirs> list1 = platAssetMapper.getOfficeAssetRate(appOrg);
|
|
|
if (list1.size() > 0){
|
|
|
largeLogistics.setOfficeAssetList(list1);
|
|
|
- largeLogistics.setOfficeAssetNum(platLogisticsMapper.getOfficeAssetNum(appOrg));
|
|
|
+ largeLogistics.setOfficeAssetNum(platAssetMapper.getOfficeAssetNum(appOrg));
|
|
|
}
|
|
|
else {
|
|
|
largeLogistics.setOfficeAssetNum(0L);
|
|
@@ -113,7 +114,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public LargeLogistics getStockAssetNum(String appOrg){
|
|
|
- LargeLogistics largeLogistics = platLogisticsMapper.getStockAssetNum(appOrg);
|
|
|
+ LargeLogistics largeLogistics = platAssetMapper.getStockAssetNum(appOrg);
|
|
|
if (largeLogistics == null){
|
|
|
largeLogistics = new LargeLogistics();
|
|
|
largeLogistics.setStockBuildingAssetNum(0L);
|
|
@@ -124,7 +125,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public LargeLogistics getNewAssetNum(String appOrg){
|
|
|
- LargeLogistics largeLogistics = platLogisticsMapper.getNewAssetNum(appOrg);
|
|
|
+ LargeLogistics largeLogistics = platAssetMapper.getNewAssetNum(appOrg);
|
|
|
if (largeLogistics == null){
|
|
|
largeLogistics = new LargeLogistics();
|
|
|
largeLogistics.setNewBuildingAssetNum(0L);
|
|
@@ -135,7 +136,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public LargeLogistics getScrapAssetNum(String appOrg){
|
|
|
- LargeLogistics largeLogistics = platLogisticsMapper.getScrapAssetNum(appOrg);
|
|
|
+ LargeLogistics largeLogistics = platAssetMapper.getScrapAssetNum(appOrg);
|
|
|
if (largeLogistics == null){
|
|
|
largeLogistics = new LargeLogistics();
|
|
|
largeLogistics.setScrapBuildingAssetNum(0L);
|
|
@@ -146,7 +147,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getCodedAndLabelRate(String appOrg){
|
|
|
- Map<String, Object> map = platLogisticsMapper.getCodedAndLabelRate(appOrg);
|
|
|
+ Map<String, Object> map = platAssetMapper.getCodedAndLabelRate(appOrg);
|
|
|
if (map == null) {
|
|
|
map = new HashMap<>();
|
|
|
map.put("labelRate", 0);
|
|
@@ -156,7 +157,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public LargeLogistics getMainlyRate(String appOrg){
|
|
|
- LargeLogistics largeLogistics = platLogisticsMapper.getMainlyRate(appOrg);
|
|
|
+ LargeLogistics largeLogistics = platAssetMapper.getMainlyRate(appOrg);
|
|
|
if (largeLogistics == null) {
|
|
|
largeLogistics = new LargeLogistics();
|
|
|
largeLogistics.setBuildingAssetNum(0L);
|
|
@@ -171,13 +172,13 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
List<String> list1 = new ArrayList<>();
|
|
|
List<BigDecimal> list2 = new ArrayList<>();
|
|
|
if (flag == 0){
|
|
|
- list = platLogisticsMapper.getSceneRateX();
|
|
|
+ list = platAssetMapper.getSceneRateX();
|
|
|
for (LargeLogistics it : list){
|
|
|
it.setAppName(it.getAppName().substring(2, 4));
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- list = platLogisticsMapper.getSceneRateY();
|
|
|
+ list = platAssetMapper.getSceneRateY();
|
|
|
}
|
|
|
for (LargeLogistics it : list){
|
|
|
list1.add(it.getAppName());
|
|
@@ -190,7 +191,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public LargeLogistics getOperation(String appOrg){
|
|
|
- LargeLogistics largeLogistics = platLogisticsMapper.getOperation(appOrg);
|
|
|
+ LargeLogistics largeLogistics = platAssetMapper.getOperation(appOrg);
|
|
|
if (largeLogistics == null){
|
|
|
largeLogistics = new LargeLogistics();
|
|
|
largeLogistics.setImportantDeviceTypeInspectionExecuteRate(new BigDecimal(0));
|
|
@@ -202,7 +203,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getInspectionSchemeNumX(){
|
|
|
- List<LargeLogistics> list = platLogisticsMapper.getInspectionSchemeNumX();
|
|
|
+ List<LargeLogistics> list = platAssetMapper.getInspectionSchemeNumX();
|
|
|
List<String> list1 = new ArrayList<>();
|
|
|
List<Long> list2 = new ArrayList<>();
|
|
|
for (LargeLogistics it : list){
|
|
@@ -216,7 +217,7 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
}
|
|
|
|
|
|
public Map<String, Object> getInspectionSchemeNumY(){
|
|
|
- List<LargeLogistics> list = platLogisticsMapper.getInspectionSchemeNumY();
|
|
|
+ List<LargeLogistics> list = platAssetMapper.getInspectionSchemeNumY();
|
|
|
List<String> list1 = new ArrayList<>();
|
|
|
List<Long> list2 = new ArrayList<>();
|
|
|
for (LargeLogistics it : list){
|