63 lines
1.8 KiB
XML
63 lines
1.8 KiB
XML
<?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.user.domain.userAggregate.repository.mapper.AgreementDetailsMapper">
|
|
|
|
<sql id="selectAgreementDetailsVo">
|
|
SELECT id,
|
|
shipper_id,
|
|
orgcode,
|
|
code,
|
|
pday,
|
|
pname,
|
|
ptypename,
|
|
pcode,
|
|
ptype,
|
|
create_time,
|
|
create_by,
|
|
create_by_name,
|
|
update_time,
|
|
update_by,
|
|
update_by_name,
|
|
del_flag
|
|
FROM agreement_details
|
|
</sql>
|
|
|
|
<!--通用的查询条件-->
|
|
<sql id="common_where">
|
|
<if test="null != id">
|
|
AND id = #{id}
|
|
</if>
|
|
<if test="null != shipperId">
|
|
AND shipper_id = #{shipperId}
|
|
</if>
|
|
<if test="null != orgcode and '' != orgcode">
|
|
AND orgcode = #{orgcode}
|
|
</if>
|
|
<if test="null != code and '' != code">
|
|
AND code = #{code}
|
|
</if>
|
|
<if test="null != pday and '' != pday">
|
|
AND pday = #{pday}
|
|
</if>
|
|
<if test="null != pname and '' != pname">
|
|
AND pname = #{pname}
|
|
</if>
|
|
<if test="null != ptypename and '' != ptypename">
|
|
AND ptypename = #{ptypename}
|
|
</if>
|
|
<if test="null != pcode and '' != pcode">
|
|
AND pcode = #{pcode}
|
|
</if>
|
|
<if test="null != ptype and '' != ptype">
|
|
AND ptype = #{ptype}
|
|
</if>
|
|
<if test="null != delFlag">
|
|
AND del_flag = #{delFlag}
|
|
</if>
|
|
ORDER BY create_time DESC
|
|
</sql>
|
|
|
|
</mapper>
|