业务单和执行单开发
This commit is contained in:
+92
@@ -0,0 +1,92 @@
|
||||
<?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.businessDocumentCargoMulti.repository.mapper.BusinessDocumentCargoMultiMapper">
|
||||
|
||||
<resultMap type="com.mhd.oms.domain.businessDocumentCargoMulti.repository.po.BusinessDocumentCargoMultiPO" id="BusinessDocumentCargoMultiResult">
|
||||
<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="layInfoId" column="LAY_INFO_ID" />
|
||||
<result property="goodsTypeId" column="GOODS_TYPE_ID" />
|
||||
<result property="goodsType" column="GOODS_TYPE" />
|
||||
<result property="goodsNameId" column="GOODS_NAME_ID" />
|
||||
<result property="goodsName" column="GOODS_NAME" />
|
||||
<result property="cargoWeight" column="CARGO_WEIGHT" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectBusinessDocumentCargoMultiPo">
|
||||
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, LAY_INFO_ID, GOODS_TYPE_ID, GOODS_TYPE, GOODS_NAME_ID, GOODS_NAME, CARGO_WEIGHT from business_document_cargo_multi
|
||||
</sql>
|
||||
|
||||
<sql id="selectBusinessDocumentCargoMultiPo1">
|
||||
<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="layInfoId != null and layInfoId != ''">
|
||||
and LAY_INFO_ID = #{layInfoId}
|
||||
</if>
|
||||
<if test="goodsTypeId != null and goodsTypeId != ''">
|
||||
and GOODS_TYPE_ID = #{goodsTypeId}
|
||||
</if>
|
||||
<if test="goodsType != null and goodsType != ''">
|
||||
and GOODS_TYPE = #{goodsType}
|
||||
</if>
|
||||
<if test="goodsNameId != null and goodsNameId != ''">
|
||||
and GOODS_NAME_ID = #{goodsNameId}
|
||||
</if>
|
||||
<if test="goodsName != null and goodsName != ''">
|
||||
and GOODS_NAME like concat('%', #{goodsName}, '%')
|
||||
</if>
|
||||
<if test="cargoWeight != null ">
|
||||
and CARGO_WEIGHT = #{cargoWeight}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.businessDocumentCargoMulti.repository.todo.BusinessDocumentCargoMultiDO" resultMap="BusinessDocumentCargoMultiResult">
|
||||
<include refid="selectBusinessDocumentCargoMultiPo"/>
|
||||
<include refid="selectBusinessDocumentCargoMultiPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user