Commit 22465cb1 authored by neo's avatar neo

[dev] fix sql bugs

parent ee8c5dcf
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</choose> </choose>
<choose> <choose>
<when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when> <when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR},</when> <when test="item.updateBy != null">#{item.updateBy,jdbcType=VARCHAR},</when>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
</choose> </choose>
<choose> <choose>
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when> <when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.invoiceCategory != null">#{item.invoiceCategory,jdbcType=VARCHAR},</when> <when test="item.invoiceCategory != null">#{item.invoiceCategory,jdbcType=VARCHAR},</when>
......
...@@ -58,11 +58,11 @@ ...@@ -58,11 +58,11 @@
</choose> </choose>
<choose> <choose>
<when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when> <when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when> <when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.cellTemplateId != null">#{item.cellTemplateId,jdbcType=INTEGER},</when> <when test="item.cellTemplateId != null">#{item.cellTemplateId,jdbcType=INTEGER},</when>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
ID, ID,
PERIOD, PERIOD,
"NAME", "NAME",
"COD"`, "COD",
PATH, PATH,
REPORT_TYPE, REPORT_TYPE,
TEMPLATE_GROUP_ID, TEMPLATE_GROUP_ID,
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
</choose> </choose>
<choose> <choose>
<when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when> <when test="item.createTime != null">#{item.createTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when> <when test="item.updateTime != null">#{item.updateTime,jdbcType=TIMESTAMP},</when>
<otherwise>'1970-01-01 08:00:00',</otherwise> <otherwise>to_date('1970-01-01 08:00:00','yyyy-mm-dd hh24:mi:ss'),</otherwise>
</choose> </choose>
<choose> <choose>
<when test="item.isSystemType != null">#{item.isSystemType,jdbcType=INTEGER},</when> <when test="item.isSystemType != null">#{item.isSystemType,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