|
@@ -50,6 +50,7 @@ import org.springblade.manager.utils.FileUtils;
|
|
import org.springblade.manager.vo.*;
|
|
import org.springblade.manager.vo.*;
|
|
import org.springblade.meter.entity.*;
|
|
import org.springblade.meter.entity.*;
|
|
import org.springblade.meter.feign.CertificateItemClient;
|
|
import org.springblade.meter.feign.CertificateItemClient;
|
|
|
|
+import org.springblade.meter.feign.CollectionUtilsClient;
|
|
import org.springblade.meter.feign.IContractInventoryFormClient;
|
|
import org.springblade.meter.feign.IContractInventoryFormClient;
|
|
import org.springblade.meter.feign.MiddleMeterApplyClient;
|
|
import org.springblade.meter.feign.MiddleMeterApplyClient;
|
|
import org.springblade.meter.utils.CollectionUtils;
|
|
import org.springblade.meter.utils.CollectionUtils;
|
|
@@ -144,6 +145,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
private BladeRedis bladeRedis;
|
|
private BladeRedis bladeRedis;
|
|
@Autowired
|
|
@Autowired
|
|
private IContractInventoryFormClient iContractInventoryFormClient;
|
|
private IContractInventoryFormClient iContractInventoryFormClient;
|
|
|
|
+ @Autowired
|
|
|
|
+ private CollectionUtilsClient collectionUtilsClient;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void execute(TableElementConverter tec) {
|
|
public void execute(TableElementConverter tec) {
|
|
@@ -3110,7 +3113,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
m11.setNowMoney(m3.getNowMoney());
|
|
m11.setNowMoney(m3.getNowMoney());
|
|
if(ObjectUtil.isNotEmpty(m3.getNowEndMoney())){
|
|
if(ObjectUtil.isNotEmpty(m3.getNowEndMoney())){
|
|
m11.setNowEndMoney(m3.getNowEndMoney());
|
|
m11.setNowEndMoney(m3.getNowEndMoney());
|
|
- m11.setNowEndC(m3.getNowC());
|
|
|
|
|
|
+ m11.setNowEndC(m3.getNowEndC());
|
|
}
|
|
}
|
|
values.add(m11);
|
|
values.add(m11);
|
|
|
|
|
|
@@ -3126,7 +3129,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
m13.setBeforeEndMoney(new BigDecimal(s));
|
|
m13.setBeforeEndMoney(new BigDecimal(s));
|
|
}
|
|
}
|
|
m13.setNowMoney(new BigDecimal(redisTemplate.opsForValue().get(MeasurementStorage.CUR_END_RESERVE_MONEY + redisId)));
|
|
m13.setNowMoney(new BigDecimal(redisTemplate.opsForValue().get(MeasurementStorage.CUR_END_RESERVE_MONEY + redisId)));
|
|
- m13.setNowEndMoney(new BigDecimal(redisTemplate.opsForValue().get(MeasurementStorage.CUR_END_RESERVE_MONEY_SUM +redisId)));
|
|
|
|
|
|
+ m13.setNowEndMoney(new BigDecimal(redisTemplate.opsForValue().get(MeasurementStorage.CUR_END_RESERVE_MONEY_SUM +redisId)));
|
|
values.add(m13);
|
|
values.add(m13);
|
|
|
|
|
|
MonthlyReportVo m14 = new MonthlyReportVo();
|
|
MonthlyReportVo m14 = new MonthlyReportVo();
|
|
@@ -3354,7 +3357,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
ReportResult reportResult = new ReportResult();
|
|
ReportResult reportResult = new ReportResult();
|
|
String suffix=SnowFlakeUtil.getId()+".pdf";
|
|
String suffix=SnowFlakeUtil.getId()+".pdf";
|
|
- String localImgUrl="D://web//pdf//"+suffix;
|
|
|
|
|
|
+ String fileUrl= FileUtils.getSysLocalFileUrl();
|
|
|
|
+ String localImgUrl=fileUrl+suffix;
|
|
if(list1.size()>0){
|
|
if(list1.size()>0){
|
|
//先根据根据前三个字符排序
|
|
//先根据根据前三个字符排序
|
|
list1.sort(Comparator.comparingInt(MeterInventoryVO1::getFirstThreeCharsAsInt));
|
|
list1.sort(Comparator.comparingInt(MeterInventoryVO1::getFirstThreeCharsAsInt));
|
|
@@ -3487,7 +3491,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
bladeRedis.set("redisId"+redisId+"periodId:"+periodId+"formNum:"+listEntry.getKey()+"nowMoney",totalNowMoney);
|
|
bladeRedis.set("redisId"+redisId+"periodId:"+periodId+"formNum:"+listEntry.getKey()+"nowMoney",totalNowMoney);
|
|
}
|
|
}
|
|
- CollectionUtils.mergePdfPublicMethods(listUrl, localImgUrl);
|
|
|
|
|
|
+ collectionUtilsClient.mergePdfPublicMethods(listUrl, localImgUrl);
|
|
//上传oss
|
|
//上传oss
|
|
BladeFile bladeFile = newIOSSClient.uploadFile(suffix,localImgUrl);
|
|
BladeFile bladeFile = newIOSSClient.uploadFile(suffix,localImgUrl);
|
|
reportResult.setOssPdfUrl(bladeFile.getLink());
|
|
reportResult.setOssPdfUrl(bladeFile.getLink());
|