first commit
This commit is contained in:
+64
@@ -0,0 +1,64 @@
|
||||
<?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.commonLineDriver.repository.mapper.CommonLineDriverMapper">
|
||||
|
||||
<resultMap type="com.mhd.basic.domain.commonLineDriver.repository.po.CommonLineDriverPO" id="CommonLineDriverResult">
|
||||
<result property="commonLineDriverId" column="common_line_driver_id" />
|
||||
<result property="lineName" column="line_name" />
|
||||
<result property="loadingName" column="loading_name" />
|
||||
<result property="loadingAreaId" column="loading_area_id" />
|
||||
<result property="unloadName" column="unload_name" />
|
||||
<result property="unloadAreaId" column="unload_area_id" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createByName" column="create_by_name" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateByName" column="update_by_name" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectCommonLineDriverPo">
|
||||
select *
|
||||
from common_line_driver
|
||||
</sql>
|
||||
|
||||
<sql id="selectCommonLineDriverPo1">
|
||||
<where>
|
||||
del_flag = 1
|
||||
<if test="lineName != null and lineName != ''">
|
||||
and line_name like concat('%', #{lineName}, '%')
|
||||
</if>
|
||||
<if test="loadingName != null and loadingName != ''">
|
||||
and loading_name like concat('%', #{loadingName}, '%')
|
||||
</if>
|
||||
<if test="loadingAreaId != null and loadingAreaId != ''">
|
||||
and loading_area_id = #{loadingAreaId}
|
||||
</if>
|
||||
<if test="unloadName != null and unloadName != ''">
|
||||
and unload_name like concat('%', #{unloadName}, '%')
|
||||
</if>
|
||||
<if test="unloadAreaId != null and unloadAreaId != ''">
|
||||
and unload_area_id = #{unloadAreaId}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="createBy != null and createBy != ''">
|
||||
and create_by = #{createBy}
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.basic.domain.commonLineDriver.repository.todo.CommonLineDriverDO"
|
||||
resultType="com.mhd.basic.domain.commonLineDriver.repository.po.CommonLineDriverPO">
|
||||
<include refid="selectCommonLineDriverPo"/>
|
||||
<include refid="selectCommonLineDriverPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user