业务单和执行单开发
This commit is contained in:
+124
@@ -0,0 +1,124 @@
|
||||
<?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.oms.domain.businessDocumentAddressMulti.repository.mapper.BusinessDocumentAddressMultiMapper">
|
||||
|
||||
<resultMap type="com.mhd.oms.domain.businessDocumentAddressMulti.repository.po.BusinessDocumentAddressMultiPO" id="BusinessDocumentAddressMultiResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="organizationId" column="ORGANIZATION_ID" />
|
||||
<result property="organizationName" column="ORGANIZATION_NAME" />
|
||||
<result property="topOrganizationId" column="TOP_ORGANIZATION_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" />
|
||||
<result property="orderId" column="ORDER_ID" />
|
||||
<result property="areaCode" column="AREA_CODE" />
|
||||
<result property="areaName" column="AREA_NAME" />
|
||||
<result property="address" column="ADDRESS" />
|
||||
<result property="longitude" column="LONGITUDE" />
|
||||
<result property="latitude" column="LATITUDE" />
|
||||
<result property="contactName" column="CONTACT_NAME" />
|
||||
<result property="contactPhone" column="CONTACT_PHONE" />
|
||||
<result property="layDate" column="LAY_DATE" />
|
||||
<result property="layTime" column="LAY_TIME" />
|
||||
<result property="layTimeId" column="LAY_TIME_ID" />
|
||||
<result property="layType" column="LAY_TYPE" />
|
||||
<result property="sort" column="SORT" />
|
||||
<result property="shortName" column="SHORT_NAME" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectBusinessDocumentAddressMultiPo">
|
||||
select ID, ORGANIZATION_ID, ORGANIZATION_NAME, TOP_ORGANIZATION_ID, CREATE_TIME, CREATE_BY, CREATE_BY_NAME, UPDATE_TIME, UPDATE_BY, UPDATE_BY_NAME, DEL_FLAG, ORDER_ID, AREA_CODE, AREA_NAME, ADDRESS, LONGITUDE, LATITUDE, CONTACT_NAME, CONTACT_PHONE, LAY_DATE, LAY_TIME, LAY_TIME_ID, LAY_TYPE, SORT, SHORT_NAME from business_document_address_multi
|
||||
</sql>
|
||||
|
||||
<sql id="selectBusinessDocumentAddressMultiPo1">
|
||||
<where>
|
||||
<if test="id != null ">
|
||||
and ID = #{id}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and ORGANIZATION_ID = #{organizationId}
|
||||
</if>
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
and ORGANIZATION_NAME like concat('%', #{organizationName}, '%')
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and TOP_ORGANIZATION_ID = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="createTime != null ">
|
||||
and CREATE_TIME = #{createTime}
|
||||
</if>
|
||||
<if test="createBy != null ">
|
||||
and CREATE_BY = #{createBy}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and CREATE_BY_NAME like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateTime != null ">
|
||||
and UPDATE_TIME = #{updateTime}
|
||||
</if>
|
||||
<if test="updateBy != null ">
|
||||
and UPDATE_BY = #{updateBy}
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and UPDATE_BY_NAME like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
<if test="delFlag != null ">
|
||||
and DEL_FLAG = #{delFlag}
|
||||
</if>
|
||||
<if test="orderId != null and orderId != ''">
|
||||
and ORDER_ID = #{orderId}
|
||||
</if>
|
||||
<if test="areaCode != null and areaCode != ''">
|
||||
and AREA_CODE = #{areaCode}
|
||||
</if>
|
||||
<if test="areaName != null and areaName != ''">
|
||||
and AREA_NAME like concat('%', #{areaName}, '%')
|
||||
</if>
|
||||
<if test="address != null and address != ''">
|
||||
and ADDRESS = #{address}
|
||||
</if>
|
||||
<if test="longitude != null and longitude != ''">
|
||||
and LONGITUDE = #{longitude}
|
||||
</if>
|
||||
<if test="latitude != null and latitude != ''">
|
||||
and LATITUDE = #{latitude}
|
||||
</if>
|
||||
<if test="contactName != null and contactName != ''">
|
||||
and CONTACT_NAME like concat('%', #{contactName}, '%')
|
||||
</if>
|
||||
<if test="contactPhone != null and contactPhone != ''">
|
||||
and CONTACT_PHONE = #{contactPhone}
|
||||
</if>
|
||||
<if test="layDate != null ">
|
||||
and LAY_DATE = #{layDate}
|
||||
</if>
|
||||
<if test="layTime != null and layTime != ''">
|
||||
and LAY_TIME = #{layTime}
|
||||
</if>
|
||||
<if test="layTimeId != null and layTimeId != ''">
|
||||
and LAY_TIME_ID = #{layTimeId}
|
||||
</if>
|
||||
<if test="layType != null ">
|
||||
and LAY_TYPE = #{layType}
|
||||
</if>
|
||||
<if test="sort != null ">
|
||||
and SORT = #{sort}
|
||||
</if>
|
||||
<if test="shortName != null and shortName != ''">
|
||||
and SHORT_NAME like concat('%', #{shortName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.businessDocumentAddressMulti.repository.todo.BusinessDocumentAddressMultiDO" resultMap="BusinessDocumentAddressMultiResult">
|
||||
<include refid="selectBusinessDocumentAddressMultiPo"/>
|
||||
<include refid="selectBusinessDocumentAddressMultiPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user