Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Nov 7, 2018
1 parent 466d979 commit 8d6d32a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 19 deletions.
8 changes: 8 additions & 0 deletions .idea/GoMybatis.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,9 @@ xml文件案例:
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="delete_flag" property="deleteFlag" jdbcType="INTEGER"/>
</resultMap>
<!-- SelectByCondition func(arg SelectByConditionArg, result *[]model.Activity) error -->
<!-- 后台查询产品 -->
<select id="SelectByCondition" resultMap="BaseResultMap">
select
<trim prefix="" suffix="" suffixOverrides=",">
<if test="Name != ''">name,</if>
</trim>
from biz_activity where delete_flag=1
<if test="Name != ''">
and name like concat('%',#{Name},'%')
</if>
<if test="StartTime != 0">
and create_time >= #{StartTime}
</if>
<if test="EndTime != 0">
and create_time &lt;= #{EndTime}
</if>
order by create_time desc
<if test="Page != 0 and Size != 0">limit #{Page}, #{Size}</if>
<!--SelectAll(result *[]Activity)error-->
<select id="selectAll" resultMap="BaseResultMap">
select * from biz_activity where delete_flag=1 order by create_time desc
</select>
</mapper>
```
Expand Down

0 comments on commit 8d6d32a

Please sign in to comment.