@@ -1481,7 +1481,7 @@ select a.id, b.contract_no contractNo,a.order_no as orderNo,c.nickname as userNa
<if test="startSign !=null and endSign !=null">
and a.sign_time between #{startSign} and #{endSign}
</if>
- )x group by x.depName,x.name )z order by
+ )x group by x.depName,x.aid,x.name )z order by
<if test="sort ==0">
total