@ -54,7 +54,9 @@ public interface HighTyAgentOilStationMapperExt {
@Select("<script>"+
" SELECT"+
" b.mem_phone memPhone,"+
" b.order_no orderNo,"+
" a.gas_order_no gasOrderNo,"+
" CASE"+
" b.pay_type "+
" WHEN 1 THEN '支付' "+
@ -80,22 +82,22 @@ public interface HighTyAgentOilStationMapperExt {
" a.gas_salesman_name salesmanName "+
" FROM"+
" high_child_order a,"+
" high_order b,"+
" high_user c"+
" high_order b"+
" WHERE"+
" a.order_id = b.id "+
" and b.mem_id = c.id"+
" AND a.goods_type = 3 "+
" <if test='param.companyId != null'> AND a.gas_salesman_id in ( select id from high_ty_salesman where ty_agent_id in (select id from high_ty_agent "+
" where org_id in (select id from bs_organization WHERE company_id = #{param.companyId} and `status` = 1) and `status` = 1) and `status` = 1) </if> "+
" <if test='param.orgId != null'> AND a.gas_salesman_id in (select id from high_ty_salesman where ty_agent_id in (select id from high_ty_agent where org_id = #{param.orgId} and `status` = 1) and `status` = 1 ) </if> "+
" <if test='param.agentId != null'> AND a.gas_salesman_id in (select id from high_ty_salesman where ty_agent_id = #{param.agentId} and status = 1) </if> "+
" <if test='param.companyId != null'> AND a.gas_org_id in (select id from bs_organization WHERE company_id = #{param.companyId} and `status` = 1) </if> "+