first commit
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
<?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.mhd.basic.domain.addressBook.repository.mapper.CommonRouteMapper">
|
||||
|
||||
<sql id="selectCommonRouteVo">
|
||||
select
|
||||
a.*
|
||||
from
|
||||
common_route a
|
||||
WHERE
|
||||
a.del_flag = 1
|
||||
</sql>
|
||||
|
||||
<select id="selectCommonRouteList" parameterType="com.mhd.basic.domain.addressBook.todo.CommonRouteDo" resultType="com.mhd.common.core.domain.po.CommonRoutePo">
|
||||
<include refid="selectCommonRouteVo"/>
|
||||
<include refid="common_where"></include>
|
||||
ORDER BY
|
||||
a.create_time DESC
|
||||
</select>
|
||||
|
||||
<sql id="common_where">
|
||||
<if test="commonRouteDo.createBy != null"> and a.create_by = #{commonRouteDo.createBy}</if>
|
||||
<if test="commonRouteDo.synthesize != null and commonRouteDo.synthesize != ''">
|
||||
and (a.mail_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%')
|
||||
OR a.addressee_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%'))
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="selectCommonRouteByCommonRouteId" parameterType="java.lang.Long"
|
||||
resultType="com.mhd.common.core.domain.po.CommonRoutePo">
|
||||
<include refid="selectCommonRouteVo"/>
|
||||
and common_route_id = #{commonRouteId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user