7/12
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
from warehouse_area a
|
from warehouse_area a
|
||||||
left join warehouse_info b on b.sid=a.warehouseSid
|
left join warehouse_info b on b.sid=a.warehouseSid
|
||||||
left join warehouse_area_type c on c.sid =a.areaTypeSid
|
left join warehouse_area_type c on c.sid =a.areaTypeSid
|
||||||
|
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -38,13 +38,13 @@ public class WarehouseAreaService extends MybatisBaseService<WarehouseAreaMapper
|
|||||||
int index=query.getIndex();
|
int index=query.getIndex();
|
||||||
if ("1".equals(orgLevelKey)) {
|
if ("1".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("2".equals(orgLevelKey)) {
|
} else if ("2".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("3".equals(orgLevelKey)) {
|
} else if ("3".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.apply("a.useOrgSid like('"+orgSidPath+"%')");
|
qw.apply("s.orgSidPath like('"+orgSidPath+"')");
|
||||||
} else if ("4".equals(orgLevelKey)) {
|
} else if ("4".equals(orgLevelKey)) {
|
||||||
qw.eq("a.createBySid", query.getUserSid());
|
qw.eq("a.createBySid", query.getUserSid());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
select
|
select
|
||||||
a.*
|
a.*
|
||||||
from warehouse_area_type a
|
from warehouse_area_type a
|
||||||
|
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -38,13 +38,13 @@ public class WarehouseAreaTypeService extends MybatisBaseService<WarehouseAreaTy
|
|||||||
int index=query.getIndex();
|
int index=query.getIndex();
|
||||||
if ("1".equals(orgLevelKey)) {
|
if ("1".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("2".equals(orgLevelKey)) {
|
} else if ("2".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("3".equals(orgLevelKey)) {
|
} else if ("3".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.apply("a.useOrgSid like('"+orgSidPath+"%')");
|
qw.apply("s.orgSidPath like('"+orgSidPath+"')");
|
||||||
} else if ("4".equals(orgLevelKey)) {
|
} else if ("4".equals(orgLevelKey)) {
|
||||||
qw.eq("a.createBySid", query.getUserSid());
|
qw.eq("a.createBySid", query.getUserSid());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -43,4 +43,5 @@ public class WarehouseInfoDto implements Dto {
|
|||||||
private String createOrgSid;//创建组织sid
|
private String createOrgSid;//创建组织sid
|
||||||
// private List<WmsWarehouseExtendDto> wmsWarehouseExtendDtos;
|
// private List<WmsWarehouseExtendDto> wmsWarehouseExtendDtos;
|
||||||
private WarehouseExtendDto wmsWarehouseExtendDto;
|
private WarehouseExtendDto wmsWarehouseExtendDto;
|
||||||
|
private String userSid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,9 @@
|
|||||||
|
|
||||||
<select id="listPage" resultType="com.yxt.warehouse.biz.warehouseinfo.WarehouseInfoVo">
|
<select id="listPage" resultType="com.yxt.warehouse.biz.warehouseinfo.WarehouseInfoVo">
|
||||||
select
|
select
|
||||||
*
|
a.*
|
||||||
from warehouse_info
|
from warehouse_info a
|
||||||
|
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -47,15 +47,15 @@ public class WarehouseInfoService extends MybatisBaseService<WarehouseInfoMapper
|
|||||||
int index=query.getIndex();
|
int index=query.getIndex();
|
||||||
if ("1".equals(orgLevelKey)) {
|
if ("1".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("2".equals(orgLevelKey)) {
|
} else if ("2".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("3".equals(orgLevelKey)) {
|
} else if ("3".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.apply("useOrgSid like('"+orgSidPath+"')");
|
qw.apply("s.orgSidPath like('"+orgSidPath+"')");
|
||||||
} else if ("4".equals(orgLevelKey)) {
|
} else if ("4".equals(orgLevelKey)) {
|
||||||
qw.eq("createBySid", query.getUserSid());
|
qw.eq("a.createBySid", query.getUserSid());
|
||||||
} else {
|
} else {
|
||||||
PagerVo<WarehouseInfoVo> p = new PagerVo<>();
|
PagerVo<WarehouseInfoVo> p = new PagerVo<>();
|
||||||
return rb.success().setData(p);
|
return rb.success().setData(p);
|
||||||
@@ -65,16 +65,16 @@ public class WarehouseInfoService extends MybatisBaseService<WarehouseInfoMapper
|
|||||||
return rb.success().setData(p);
|
return rb.success().setData(p);
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(query.getName())) {
|
if (StringUtils.isNotBlank(query.getName())) {
|
||||||
qw.like("warehouseName", query.getName());
|
qw.like("a.warehouseName", query.getName());
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(query.getCode())) {
|
if (StringUtils.isNotBlank(query.getCode())) {
|
||||||
qw.like("warehouseCode", query.getCode());
|
qw.like("a.warehouseCode", query.getCode());
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(query.getAddress())) {
|
if (StringUtils.isNotBlank(query.getAddress())) {
|
||||||
qw.like("address", query.getAddress());
|
qw.like("a.address", query.getAddress());
|
||||||
}
|
}
|
||||||
qw.ne("isDelete",1);
|
qw.ne("a.isDelete",1);
|
||||||
qw.orderByDesc("sortNo");
|
qw.orderByDesc("a.sortNo");
|
||||||
IPage<WarehouseInfo> page = PagerUtil.queryToPage(pq);
|
IPage<WarehouseInfo> page = PagerUtil.queryToPage(pq);
|
||||||
IPage<WarehouseInfoVo> pagging = baseMapper.listPage(page, qw);
|
IPage<WarehouseInfoVo> pagging = baseMapper.listPage(page, qw);
|
||||||
PagerVo<WarehouseInfoVo> p = PagerUtil.pageToVo(pagging, null);
|
PagerVo<WarehouseInfoVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
@@ -108,6 +108,7 @@ public class WarehouseInfoService extends MybatisBaseService<WarehouseInfoMapper
|
|||||||
sid = wmsWarehouse.getSid();
|
sid = wmsWarehouse.getSid();
|
||||||
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid");
|
BeanUtil.copyProperties(dto, wmsWarehouse, "id", "sid");
|
||||||
wmsWarehouse.setCreateTime(new DateTime());
|
wmsWarehouse.setCreateTime(new DateTime());
|
||||||
|
wmsWarehouse.setCreateOrgSid(dto.getUserSid());
|
||||||
baseMapper.insert(wmsWarehouse);
|
baseMapper.insert(wmsWarehouse);
|
||||||
// for (WmsWarehouseExtendDto wmsWarehouseExtendDto : dto.getWmsWarehouseExtendDtos()) {
|
// for (WmsWarehouseExtendDto wmsWarehouseExtendDto : dto.getWmsWarehouseExtendDtos()) {
|
||||||
// wmsWarehouseExtendDto.setWarehouseSid(wmsWarehouse.getSid());
|
// wmsWarehouseExtendDto.setWarehouseSid(wmsWarehouse.getSid());
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
from warehouse_rack a
|
from warehouse_rack a
|
||||||
left join warehouse_area b on b.sid =a.locationSid
|
left join warehouse_area b on b.sid =a.locationSid
|
||||||
left join warehouse_info c on c.sid = a.warehouseSid
|
left join warehouse_info c on c.sid = a.warehouseSid
|
||||||
|
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||||
<where>
|
<where>
|
||||||
${ew.sqlSegment}
|
${ew.sqlSegment}
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -38,13 +38,13 @@ public class WarehouseRackService extends MybatisBaseService<WarehouseRackMapper
|
|||||||
int index=query.getIndex();
|
int index=query.getIndex();
|
||||||
if ("1".equals(orgLevelKey)) {
|
if ("1".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("2".equals(orgLevelKey)) {
|
} else if ("2".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.like("a.useOrgSid", orgSidPath);
|
qw.like("s.orgSidPath", orgSidPath);
|
||||||
} else if ("3".equals(orgLevelKey)) {
|
} else if ("3".equals(orgLevelKey)) {
|
||||||
orgSidPath = orgSidPath.substring(0, index);
|
orgSidPath = orgSidPath.substring(0, index);
|
||||||
qw.apply("a.useOrgSid like('"+orgSidPath+"%')");
|
qw.apply("s.orgSidPath like('"+orgSidPath+"')");
|
||||||
} else if ("4".equals(orgLevelKey)) {
|
} else if ("4".equals(orgLevelKey)) {
|
||||||
qw.eq("a.createBySid", query.getUserSid());
|
qw.eq("a.createBySid", query.getUserSid());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user