Commit ef759fc0 authored by hanfeng's avatar hanfeng

Merge remote-tracking branch 'origin/base-modify' into base-modify

parents 10400fa7 5f352ba2
...@@ -59,6 +59,10 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> ...@@ -59,6 +59,10 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder>
companyIds.add(dto.getStartCompanyId()); companyIds.add(dto.getStartCompanyId());
} }
} }
//有当前大区权限才能搜索到数据
if (dto.getZoneId() != null && (userDTO.getDataAll() == 1 || userDTO.getZoneId().equals(dto.getZoneId()) || userDTO.getDataZone().contains(dto.getZoneId()+""))) {
companyIds.clear();
}
dto.setCompanyIds(companyIds); dto.setCompanyIds(companyIds);
if (dto.getStartTime() != null) { if (dto.getStartTime() != null) {
if (dto.getEndTime() == null) { if (dto.getEndTime() == null) {
......
...@@ -303,10 +303,15 @@ ...@@ -303,10 +303,15 @@
<foreach collection="companyIds" item="id" open="(" separator="," close=")"> <foreach collection="companyIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
or
o1.end_company_id in
<foreach collection="companyIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
) )
</if> </if>
<if test="zoneId != null"> <if test="zoneId != null">
and o1.start_zone_id = #{zoneId} and (bc1.zone_id = #{zoneId} or bc1.zone_id = #{zoneId})
</if> </if>
<if test="zoneIds != null and zoneIds.size > 0"> <if test="zoneIds != null and zoneIds.size > 0">
and (o1.start_zone_id in and (o1.start_zone_id in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment