first commit
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?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.linke.product.domain.commonWeb.repository.mapper.CommonWebMapper">
|
||||
|
||||
|
||||
<sql id="selectCommonWebPo1">
|
||||
<if test="commonWebDO.createByName != null and commonWebDO.createByName != ''">
|
||||
and create_by_name like concat('%', #{commonWebDO.createByName}, '%')
|
||||
</if>
|
||||
<if test="commonWebDO.updateByName != null and commonWebDO.updateByName != ''">
|
||||
and update_by_name like concat('%', #{commonWebDO.updateByName}, '%')
|
||||
</if>
|
||||
<if test="commonWebDO.topOrganizationId != null ">
|
||||
and top_organization_id = #{commonWebDO.topOrganizationId}
|
||||
</if>
|
||||
<if test="commonWebDO.organizationId != null ">
|
||||
and organization_id = #{commonWebDO.organizationId}
|
||||
</if>
|
||||
<if test="commonWebDO.organizationName != null and commonWebDO.organizationName != ''">
|
||||
and organization_name like concat('%', #{commonWebDO.organizationName}, '%')
|
||||
</if>
|
||||
<if test="commonWebDO.userId != null ">
|
||||
and user_id = #{commonWebDO.userId}
|
||||
</if>
|
||||
<if test="commonWebDO.webName != null and commonWebDO.webName != ''">
|
||||
and web_name like concat('%', #{commonWebDO.webName}, '%')
|
||||
</if>
|
||||
<if test="commonWebDO.webIcon != null and commonWebDO.webIcon != ''">
|
||||
and web_icon = #{commonWebDO.webIcon}
|
||||
</if>
|
||||
<if test="commonWebDO.webAddress != null and commonWebDO.webAddress != ''">
|
||||
and web_address = #{commonWebDO.webAddress}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.linke.product.domain.commonWeb.repository.todo.CommonWebDO"
|
||||
resultType="com.linke.product.domain.commonWeb.repository.po.CommonWebPO">
|
||||
select
|
||||
*
|
||||
from common_web
|
||||
where del_flag = 1
|
||||
<include refid="selectCommonWebPo1"/>
|
||||
order by sort
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user