refactor travel
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.imyeyu.api.modules.journal.mapper.TravelLocationMapper">
|
||||
<sql id="table">travel_location</sql>
|
||||
<select id="listByIds" resultType="com.imyeyu.api.modules.journal.entity.TravelLocation">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
<include refid="table" />
|
||||
WHERE
|
||||
1 = 1
|
||||
<if test="ids != null and 0 < ids.length">
|
||||
AND `id` IN
|
||||
<foreach collection="ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
AND deleted_at IS NULL
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user