Commit 7330852f authored by neo's avatar neo

[bugfix] fix bb null is not insert when insert datasource

parent 189b3fc9
......@@ -117,15 +117,15 @@ public class FunctionBase {
dataSource.setType(FormulaDataSourceType.Report.getCode());
dataSource.setName("ReportDataSource");
dataSource.setAmount(val);
dataSource.setDescription("");
dataSource.setDescription("描述");
dataSource.setCreateBy("Admin");
dataSource.setUpdateBy("Admin");
dataSource.setCreateTime(creatime);
dataSource.setUpdateTime(creatime);
dataSource.setRowIndex(rowNumP == null ? ec.getRowIndex() : rowNumP);
dataSource.setColumnIndex(colNumP == null ? ec.getColumnIndex() : colNumP);
dataSource.setRowName("");
dataSource.setColumnName("");
dataSource.setRowName("行名");
dataSource.setColumnName("列名");
dataSource.setCellTemplateId(periodCellTemplateId);
dataSource.setPeriod(period);
SpringContextUtil.periodDataSourceMapper.insertSelective(dataSource);
......
......@@ -5,25 +5,7 @@
<insert id="batchInsert" parameterType="pwc.taxtech.atms.vat.entity.PeriodCellTemplate">
INSERT ALL
<foreach collection="list" item="item">
INTO PERIOD_CELL_TEMPLATE (
ID,
PERIOD,
REPORT_TEMPLATE_ID,
ROW_INDEX,
ROW_NAME,
COLUMN_INDEX,
"COLUMN_NAME",
"COMMENT",
CREATE_TIME,
UPDATE_TIME,
CELL_TEMPLATE_ID,
DATA_TYPE,
IS_READ_ONLY,
COPY_FROM_ID,
CREATE_BY,
UPDATE_BY,
PROJECT_ID
) VALUES
INTO PERIOD_CELL_TEMPLATE VALUES
<trim prefix="(" suffix=")" suffixOverrides=",">
<choose>
<when test="item.id != null">#{item.id,jdbcType=INTEGER},</when>
......
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