Commit 8549a9a3 authored by sherlock's avatar sherlock

formulaExp

parent 5a51fcff
...@@ -212,7 +212,7 @@ public class ReportGeneratorImpl { ...@@ -212,7 +212,7 @@ public class ReportGeneratorImpl {
if (StringUtils.isBlank(resultFormula)) { if (StringUtils.isBlank(resultFormula)) {
resultFormula = null; resultFormula = " ";
} }
cellData.setFormulaExp(resultFormula); cellData.setFormulaExp(resultFormula);
cellData.setCreateBy("Admin"); cellData.setCreateBy("Admin");
......
...@@ -884,7 +884,7 @@ public class ReportServiceImpl { ...@@ -884,7 +884,7 @@ public class ReportServiceImpl {
cellData.setCellTemplateId(Long.parseLong(data.getCellTemplateId())); cellData.setCellTemplateId(Long.parseLong(data.getCellTemplateId()));
cellData.setData(data.getAmount() == null ? null : data.getAmount().toString()); cellData.setData(data.getAmount() == null ? null : data.getAmount().toString());
cellData.setKeyinData(data.getKeyinData()); cellData.setKeyinData(data.getKeyinData());
cellData.setFormulaExp(data.getAmount() == null ? null : data.getAmount().toString()); cellData.setFormulaExp(data.getAmount() == null ? " " : data.getAmount().toString());
cellData.setCreateBy("admin"); cellData.setCreateBy("admin");
cellData.setCreateTime(new Date()); cellData.setCreateTime(new Date());
cellData.setUpdateBy("admin"); cellData.setUpdateBy("admin");
...@@ -897,6 +897,8 @@ public class ReportServiceImpl { ...@@ -897,6 +897,8 @@ public class ReportServiceImpl {
PeriodCellData cellData = periodCellDataMapper.selectByPrimaryKey(data.getCellId()); PeriodCellData cellData = periodCellDataMapper.selectByPrimaryKey(data.getCellId());
if(StringUtils.isNotBlank(data.getKeyinData())){ if(StringUtils.isNotBlank(data.getKeyinData())){
cellData.setKeyinData(data.getKeyinData()); cellData.setKeyinData(data.getKeyinData());
if (StringUtils.isEmpty(cellData.getFormulaExp()))
cellData.setFormulaExp(data.getKeyinData());
periodCellDataMapper.updateByPrimaryKeySelective(cellData); periodCellDataMapper.updateByPrimaryKeySelective(cellData);
}else if (data.getAmount() != null && cellData.getData() != data.getAmount().toString()) { }else if (data.getAmount() != null && cellData.getData() != data.getAmount().toString()) {
cellData.setData(data.getAmount().toString()); cellData.setData(data.getAmount().toString());
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
function doConfirmEventHandler() { function doConfirmEventHandler() {
var r = /^00\d*|^\.\d+|\.$/; var r = /^00\d*|^\.\d+|\.$/;
if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) { if ($scope.detail.inputValue && parseFloat($scope.detail.inputValue).toFixed(2) > 9999999999999) {
SweetAlert.warning($translate.instant('CheckInputValueLength')); SweetAlert.warning($translate.instant('CheckInputValueLength'));
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment