Commit 968ace91 authored by neo's avatar neo

[bugfix] delete from dynamic table mayper annation

parent 4a23eb1c
...@@ -9,11 +9,11 @@ import pwc.taxtech.atms.MyMapper; ...@@ -9,11 +9,11 @@ import pwc.taxtech.atms.MyMapper;
@Mapper @Mapper
public interface DataImportMapper extends MyMapper { public interface DataImportMapper extends MyMapper {
@Delete("DELETE FROM #{tbName} WHERE Period =#{period}") @Delete("DELETE FROM ${tbName} WHERE Period =#{period}")
Integer deleteByNameAndPeriod(@Param("tbName") String tbName, @Param("period") Integer period); Integer deleteByNameAndPeriod(@Param("tbName") String tbName, @Param("period") Integer period);
@Update("TRUNCATE TABLE #{tbName}") @Update("TRUNCATE TABLE ${tbName}")
Integer truncateByName(@Param("tbName") String tbName); Integer truncateByName(@Param("tbName") String tbName);
@Delete("DELETE FROM ValidationInfo WHERE PeriodId = #{period}and ImportTypeId=#{typeId} ") @Delete("DELETE FROM ValidationInfo WHERE PeriodId = #{period}and ImportTypeId=#{typeId} ")
......
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