Commit 189b3fc9 authored by neo's avatar neo

[dev] fix period template and cell not found project id in xml

parent 9c69f649
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
VALIDATION_DESCRIPTION, VALIDATION_DESCRIPTION,
VOUCHER_KEYWORD, VOUCHER_KEYWORD,
CELL_TEMPLATE_CONFIG_ID, CELL_TEMPLATE_CONFIG_ID,
KEY_VALUE_PARSED_FORMULA KEY_VALUE_PARSED_FORMULA,
PROJECT_ID
) VALUES ) VALUES
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<choose> <choose>
...@@ -135,6 +136,10 @@ ...@@ -135,6 +136,10 @@
</when> </when>
<otherwise>' ',</otherwise> <otherwise>' ',</otherwise>
</choose> </choose>
<choose>
<when test="item.projectId != null">#{item.projectId,jdbcType=VARCHAR},</when>
<otherwise>' ',</otherwise>
</choose>
</trim> </trim>
</foreach> </foreach>
SELECT 1 FROM DUAL SELECT 1 FROM DUAL
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
IS_READ_ONLY, IS_READ_ONLY,
COPY_FROM_ID, COPY_FROM_ID,
CREATE_BY, CREATE_BY,
UPDATE_BY UPDATE_BY,
PROJECT_ID
) VALUES ) VALUES
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<choose> <choose>
...@@ -88,6 +89,10 @@ ...@@ -88,6 +89,10 @@
<when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR}</when> <when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR}</when>
<otherwise>' ',</otherwise> <otherwise>' ',</otherwise>
</choose> </choose>
<choose>
<when test="item.projectId != null">#{item.projectId,jdbcType=VARCHAR},</when>
<otherwise>' ',</otherwise>
</choose>
</trim> </trim>
</foreach> </foreach>
SELECT 1 FROM DUAL SELECT 1 FROM DUAL
......
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
PARENT_ID, PARENT_ID,
TEMPLATE_ID, TEMPLATE_ID,
CREATE_BY, CREATE_BY,
UPDATE_BY UPDATE_BY,
PROJECT_ID
) VALUES ) VALUES
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<choose> <choose>
...@@ -87,6 +88,10 @@ ...@@ -87,6 +88,10 @@
<when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR},</when> <when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR},</when>
<otherwise>' ',</otherwise> <otherwise>' ',</otherwise>
</choose> </choose>
<choose>
<when test="item.projectId != null">#{item.projectId,jdbcType=VARCHAR},</when>
<otherwise>' ',</otherwise>
</choose>
</trim> </trim>
</foreach> </foreach>
SELECT 1 FROM DUAL SELECT 1 FROM DUAL
......
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