"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id in ( ${map.gasSalesmanId} ) </if> ",
"<if test='map.companyId != null'> AND hco.gas_org_id in (select id from bs_organization WHERE company_id = #{map.companyId} and `status` = 1) </if> "+
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id = #{map.gasSalesmanId} </if> ",
"<if test='map.orgId != null'> and hco.gas_org_id = #{map.orgId} </if> ",
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id in ( ${map.gasSalesmanId} ) </if> ",
"<if test='map.companyId != null'> AND hco.gas_org_id in (select id from bs_organization WHERE company_id = #{map.companyId} and `status` = 1) </if> "+
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id = #{map.gasSalesmanId} </if> ",
"<if test='map.orgId != null'> and hco.gas_org_id = #{map.orgId} </if> ",
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id in ( ${map.gasSalesmanId} ) </if> ",
"<if test='map.companyId != null'> AND hco.gas_org_id in (select id from bs_organization WHERE company_id = #{map.companyId} and `status` = 1) </if> "+
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id = #{map.gasSalesmanId} </if> ",
"<if test='map.orgId != null'> and hco.gas_org_id = #{map.orgId} </if> ",
@ -1020,10 +1029,13 @@ public interface HighOrderMapperExt {
"from high_order ho join high_child_order hco on ho.id = hco.order_id ",
"from high_order ho join high_child_order hco on ho.id = hco.order_id ",
"where hco.goods_type = 3 and ho.order_status in (2, 3) ",
"where hco.goods_type = 3 and ho.order_status in (2, 3) ",
"<if test='map.payType != null'> and ho.pay_type = #{map.payType} </if> ",
"<if test='map.payType != null'> and ho.pay_type = #{map.payType} </if> ",
"<if test='map.companyId != null'> AND hco.gas_org_id in (select id from bs_organization WHERE company_id = #{map.companyId} and `status` = 1) </if> "+
"<if test='map.gasOilNo != null'> and hco.gas_oil_no = #{map.gasOilNo} </if> ",
"<if test='map.gasOilNo != null'> and hco.gas_oil_no = #{map.gasOilNo} </if> ",
"<if test='map.gasOilType != null'> and hco.gas_oil_type = #{map.gasOilType} </if> ",
"<if test='map.gasOilType != null'> and hco.gas_oil_type = #{map.gasOilType} </if> ",
"<if test='map.goodsId != null'> and hco.goods_id = #{map.goodsId} </if> ",
"<if test='map.goodsId != null'> and hco.goods_id = #{map.goodsId} </if> ",
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id in ( ${map.gasSalesmanId} ) </if> ",
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id = #{map.gasSalesmanId} </if> ",
"<if test='map.orgId != null'> and hco.gas_org_id = #{map.orgId} </if> ",
@ -1043,7 +1055,10 @@ public interface HighOrderMapperExt {
"<if test='map.gasOilNo != null'> and hco.gas_oil_no = #{map.gasOilNo} </if> ",
"<if test='map.gasOilNo != null'> and hco.gas_oil_no = #{map.gasOilNo} </if> ",
"<if test='map.gasOilType != null'> and hco.gas_oil_type = #{map.gasOilType} </if> ",
"<if test='map.gasOilType != null'> and hco.gas_oil_type = #{map.gasOilType} </if> ",
"<if test='map.goodsId != null'> and hco.goods_id = #{map.goodsId} </if> ",
"<if test='map.goodsId != null'> and hco.goods_id = #{map.goodsId} </if> ",
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id in ( ${map.gasSalesmanId} ) </if> ",
"<if test='map.companyId != null'> AND hco.gas_org_id in (select id from bs_organization WHERE company_id = #{map.companyId} and `status` = 1) </if> "+
"<if test='map.gasSalesmanId != null'> and hco.gas_salesman_id = #{map.gasSalesmanId} </if> ",
"<if test='map.orgId != null'> and hco.gas_org_id = #{map.orgId} </if> ",