|
@@ -892,7 +892,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
|
|
|
</where>
|
|
|
-
|
|
|
+ ${maps.params.dataScope}
|
|
|
ORDER BY
|
|
|
|
|
|
<if test="maps.sortField == 'companyUserName'">
|
|
@@ -913,7 +913,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.sortField == null or maps.sortField == ''">
|
|
|
so.order_id desc
|
|
|
</if>
|
|
|
- ${maps.params.dataScope}
|
|
|
+
|
|
|
</select>
|
|
|
<select id="selectFsStoreOrderListVOByErpAccount" resultType="com.fs.his.vo.FsStoreOrderListVO">
|
|
|
select so.*,st.store_name,us.nick_name,us.phone,d.doctor_name,p.patient_name,p.prescribe_code,c.company_name,
|
|
@@ -1098,12 +1098,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.erpPhoneNumber != null and maps.erpPhoneNumber != ''">
|
|
|
and so.erp_phone like concat(#{maps.erpPhoneNumber},'%')
|
|
|
</if>
|
|
|
- <if test="maps.erpAccount != null and maps.erpAccount != ''">
|
|
|
+ <if test="maps.erpAccount != null and maps.erpAccount != '未分拣' and maps.erpAccount != ''">
|
|
|
and df.login_account like #{maps.erpAccount}
|
|
|
</if>
|
|
|
+ <if test="maps.erpAccount == '未分拣'">
|
|
|
+ and ( df.login_account is null or df.login_account like '')
|
|
|
+ </if>
|
|
|
|
|
|
</where>
|
|
|
-
|
|
|
+ ${maps.params.dataScope}
|
|
|
ORDER BY
|
|
|
|
|
|
<if test="maps.sortField == 'companyUserName'">
|
|
@@ -1124,7 +1127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="maps.sortField == null or maps.sortField == ''">
|
|
|
so.order_id desc
|
|
|
</if>
|
|
|
- ${maps.params.dataScope}
|
|
|
+
|
|
|
</select>
|
|
|
<select id="selectFsStoreOrderByFsUserId" resultMap="FsStoreOrderResult">
|
|
|
<include refid="selectFsStoreOrderVo"/>
|