|
@@ -3244,6 +3244,7 @@
|
|
|
GROUP_CONCAT(inscompany ORDER BY inscompany SEPARATOR ',') as "namesimple"
|
|
GROUP_CONCAT(inscompany ORDER BY inscompany SEPARATOR ',') as "namesimple"
|
|
|
from ins_area_company iac
|
|
from ins_area_company iac
|
|
|
left join ins_orders io on io.orderno = iac.orderno
|
|
left join ins_orders io on io.orderno = iac.orderno
|
|
|
|
|
+ left join sys_user su on su.id =io.userid
|
|
|
<where>
|
|
<where>
|
|
|
iac.orderstatus ='3'
|
|
iac.orderstatus ='3'
|
|
|
<if test="vo.licenseno !=null and vo.licenseno!=''">
|
|
<if test="vo.licenseno !=null and vo.licenseno!=''">
|
|
@@ -3252,6 +3253,19 @@
|
|
|
<if test="vo.frameno !=null and vo.frameno!=''">
|
|
<if test="vo.frameno !=null and vo.frameno!=''">
|
|
|
AND io.frameno =#{vo.frameno}
|
|
AND io.frameno =#{vo.frameno}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.userId !=null and vo.userId!=''">
|
|
|
|
|
+ AND io.userId =#{vo.userId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.userName != null and vo.userName!='' ">
|
|
|
|
|
+ AND su.name =#{vo.userName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="vo.mobile != null and vo.mobile!='' ">
|
|
|
|
|
+ AND su.mobile =#{vo.mobile}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
<if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
<if test="vo.beginDate != null and vo.beginDate!='' and vo.endDate != null and vo.endDate!=''">
|
|
|
AND io.createtime BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
AND io.createtime BETWEEN #{vo.beginDate} AND #{vo.endDate}
|
|
|
</if>
|
|
</if>
|