|
@@ -12,6 +12,7 @@
|
|
<result property="fNo" column="f_no"/>
|
|
<result property="fNo" column="f_no"/>
|
|
<result property="fIsBonded" column="f_is_bonded"/>
|
|
<result property="fIsBonded" column="f_is_bonded"/>
|
|
<result property="fName" column="f_name"/>
|
|
<result property="fName" column="f_name"/>
|
|
|
|
+ <result property="fCname" column="f_cname"/>
|
|
<result property="fAddr" column="f_addr"/>
|
|
<result property="fAddr" column="f_addr"/>
|
|
<result property="fTotalgross" column="f_totalgross"/>
|
|
<result property="fTotalgross" column="f_totalgross"/>
|
|
<result property="fContacts" column="f_contacts"/>
|
|
<result property="fContacts" column="f_contacts"/>
|
|
@@ -37,6 +38,7 @@
|
|
f_no,
|
|
f_no,
|
|
f_is_bonded,
|
|
f_is_bonded,
|
|
f_name,
|
|
f_name,
|
|
|
|
+ f_cname,
|
|
f_addr,
|
|
f_addr,
|
|
f_totalgross,
|
|
f_totalgross,
|
|
f_contacts,
|
|
f_contacts,
|
|
@@ -62,6 +64,7 @@
|
|
<if test="ancestors != null and ancestors != ''">and ancestors like concat('%', #{ancestors}, '%')</if>
|
|
<if test="ancestors != null and ancestors != ''">and ancestors like concat('%', #{ancestors}, '%')</if>
|
|
<if test="fNo != null and fNo != ''">and f_no like concat('%', #{fNo}, '%')</if>
|
|
<if test="fNo != null and fNo != ''">and f_no like concat('%', #{fNo}, '%')</if>
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
<if test="fName != null and fName != ''">and f_name like concat('%', #{fName}, '%')</if>
|
|
|
|
+ <if test="fCname != null and fCname != ''">and f_cname like concat('%', #{fCname}, '%')</if>
|
|
<if test="fAddr != null and fAddr != ''">and f_addr like concat('%', #{fAddr}, '%')</if>
|
|
<if test="fAddr != null and fAddr != ''">and f_addr like concat('%', #{fAddr}, '%')</if>
|
|
<if test="fTotalgross != null ">and f_totalgross like concat('%', #{fTotalgross}, '%')</if>
|
|
<if test="fTotalgross != null ">and f_totalgross like concat('%', #{fTotalgross}, '%')</if>
|
|
<if test="fContacts != null and fContacts != ''">and f_contacts = #{fContacts}</if>
|
|
<if test="fContacts != null and fContacts != ''">and f_contacts = #{fContacts}</if>
|
|
@@ -76,8 +79,8 @@
|
|
|
|
|
|
<select id="lazyList" parameterType="TWarehouse" resultMap="TWarehouseResult">
|
|
<select id="lazyList" parameterType="TWarehouse" resultMap="TWarehouseResult">
|
|
select
|
|
select
|
|
- ware.f_id, ware.parent_id, ware.ancestors, ware.order_num,ware.f_no, ware.f_name,ware.f_totalgross, ware.f_location,
|
|
|
|
- ware.f_addr,ware.f_contacts,ware.f_tel,ware.f_charg,ware.f_is_bonded,ware.remark,ware.f_status,
|
|
|
|
|
|
+ ware.f_id, ware.parent_id, ware.ancestors, ware.order_num, ware.f_no, ware.f_name, ware.f_cname, ware.f_totalgross, ware.f_location,
|
|
|
|
+ ware.f_addr, ware.f_contacts, ware.f_tel, ware.f_charg, ware.f_is_bonded, ware.remark, ware.f_status,
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
CASE WHEN count( 1 ) > 0 THEN 1 ELSE 0 END
|
|
CASE WHEN count( 1 ) > 0 THEN 1 ELSE 0 END
|
|
@@ -91,6 +94,7 @@
|
|
<if test="parentId != null">and ware.parent_id = #{parentId}</if>
|
|
<if test="parentId != null">and ware.parent_id = #{parentId}</if>
|
|
<if test="fNo != null and fNo != ''">and ware.f_no like concat('%', #{fNo}, '%')</if>
|
|
<if test="fNo != null and fNo != ''">and ware.f_no like concat('%', #{fNo}, '%')</if>
|
|
<if test="fName != null and fName != ''">and ware.f_name like concat('%', #{fName}, '%')</if>
|
|
<if test="fName != null and fName != ''">and ware.f_name like concat('%', #{fName}, '%')</if>
|
|
|
|
+ <if test="fCname != null and fCname != ''">and ware.f_cname like concat('%', #{fCname}, '%')</if>
|
|
<if test="fStatus != null and fStatus != ''">and ware.f_status = #{fStatus}</if>
|
|
<if test="fStatus != null and fStatus != ''">and ware.f_status = #{fStatus}</if>
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
@@ -131,6 +135,7 @@
|
|
<if test="fNo != null and fNo != ''">f_no,</if>
|
|
<if test="fNo != null and fNo != ''">f_no,</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">f_is_bonded,</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">f_is_bonded,</if>
|
|
<if test="fName != null and fName != ''">f_name,</if>
|
|
<if test="fName != null and fName != ''">f_name,</if>
|
|
|
|
+ <if test="fCname != null and fCname != ''">f_cname,</if>
|
|
<if test="fAddr != null and fAddr != ''">f_addr,</if>
|
|
<if test="fAddr != null and fAddr != ''">f_addr,</if>
|
|
<if test="fTotalgross != null">f_totalgross,</if>
|
|
<if test="fTotalgross != null">f_totalgross,</if>
|
|
<if test="fContacts != null">f_contacts,</if>
|
|
<if test="fContacts != null">f_contacts,</if>
|
|
@@ -153,6 +158,7 @@
|
|
<if test="fNo != null and fNo != ''">#{fNo},</if>
|
|
<if test="fNo != null and fNo != ''">#{fNo},</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">#{fIsBonded},</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">#{fIsBonded},</if>
|
|
<if test="fName != null and fName != ''">#{fName},</if>
|
|
<if test="fName != null and fName != ''">#{fName},</if>
|
|
|
|
+ <if test="fCname != null and fCname != ''">#{fCname},</if>
|
|
<if test="fAddr != null and fAddr != ''">#{fAddr},</if>
|
|
<if test="fAddr != null and fAddr != ''">#{fAddr},</if>
|
|
<if test="fTotalgross != null">#{fTotalgross},</if>
|
|
<if test="fTotalgross != null">#{fTotalgross},</if>
|
|
<if test="fContacts != null">#{fContacts},</if>
|
|
<if test="fContacts != null">#{fContacts},</if>
|
|
@@ -179,6 +185,7 @@
|
|
<if test="fNo != null and fNo != ''">f_no = #{fNo},</if>
|
|
<if test="fNo != null and fNo != ''">f_no = #{fNo},</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">f_is_bonded = #{fIsBonded},</if>
|
|
<if test="fIsBonded != null and fIsBonded != ''">f_is_bonded = #{fIsBonded},</if>
|
|
<if test="fName != null and fName != ''">f_name = #{fName},</if>
|
|
<if test="fName != null and fName != ''">f_name = #{fName},</if>
|
|
|
|
+ <if test="fCname != null and fCname != ''">f_cname = #{fCname},</if>
|
|
<if test="fAddr != null and fAddr != ''">f_addr = #{fAddr},</if>
|
|
<if test="fAddr != null and fAddr != ''">f_addr = #{fAddr},</if>
|
|
<if test="fTotalgross != null">f_totalgross = #{fTotalgross},</if>
|
|
<if test="fTotalgross != null">f_totalgross = #{fTotalgross},</if>
|
|
<if test="fContacts != null">f_contacts = #{fContacts},</if>
|
|
<if test="fContacts != null">f_contacts = #{fContacts},</if>
|