|
@@ -1,5 +1,6 @@
|
|
|
package com.project.zcustom.service.logistics.impl;
|
|
|
|
|
|
+import com.project.zcustom.controller.core.Constants;
|
|
|
import com.project.zcustom.domain.addional.LargeAssetDirs;
|
|
|
import com.project.zcustom.domain.addional.LargeLogistics;
|
|
|
import com.project.zcustom.mapper.logistics.PlatAssetMapper;
|
|
@@ -174,14 +175,18 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
if (flag == 0){
|
|
|
list = platAssetMapper.getSceneRateX();
|
|
|
for (LargeLogistics it : list){
|
|
|
- it.setAppName(it.getAppName().substring(6, 8));
|
|
|
+ it.setAppName(it.getAppName().substring(2, 4));
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
list = platAssetMapper.getSceneRateY();
|
|
|
}
|
|
|
for (LargeLogistics it : list){
|
|
|
- list1.add(it.getAppName());
|
|
|
+ if (Constants.SGS.equals(it.getAppName())) {
|
|
|
+ list1.add(Constants.SGS_BB);
|
|
|
+ }else {
|
|
|
+ list1.add(it.getAppName());
|
|
|
+ }
|
|
|
if (it.getSceneRate() == null){
|
|
|
list2.add(BigDecimal.valueOf(0));
|
|
|
}
|
|
@@ -212,7 +217,11 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
List<String> list1 = new ArrayList<>();
|
|
|
List<Long> list2 = new ArrayList<>();
|
|
|
for (LargeLogistics it : list){
|
|
|
- list1.add(it.getAppName().substring(6, 8));
|
|
|
+ if (Constants.SGS.equals(it.getAppName())) {
|
|
|
+ list1.add(Constants.SGS_BB);
|
|
|
+ }else {
|
|
|
+ list1.add(it.getAppName());
|
|
|
+ }
|
|
|
if (it.getInspectionSchemeNum() == null){
|
|
|
list2.add(0L);
|
|
|
}
|
|
@@ -231,7 +240,11 @@ public class LargePlatAssetServiceImpl implements ILargePlatAssetService {
|
|
|
List<String> list1 = new ArrayList<>();
|
|
|
List<Long> list2 = new ArrayList<>();
|
|
|
for (LargeLogistics it : list){
|
|
|
- list1.add(it.getAppName());
|
|
|
+ if (Constants.SGS.equals(it.getAppName())) {
|
|
|
+ list1.add(Constants.SGS_BB);
|
|
|
+ }else {
|
|
|
+ list1.add(it.getAppName());
|
|
|
+ }
|
|
|
if (it.getInspectionSchemeNum() == null){
|
|
|
list2.add(0L);
|
|
|
}
|