Commit 16b64262d35e773bc1caadcab5ceae5f986810d2
1 parent
51b04cd8
用户和仓库关系
Showing
2 changed files
with
17 additions
and
11 deletions
ant-design-vue-jeecg/src/views/system/UserList.vue
... | ... | @@ -263,16 +263,22 @@ export default { |
263 | 263 | dataIndex: 'phone' |
264 | 264 | }, |
265 | 265 | { |
266 | - title: '部门', | |
266 | + title: '所属仓库', | |
267 | 267 | align: "center", |
268 | - width: 180, | |
269 | - dataIndex: 'orgCodeTxt' | |
270 | - }, | |
271 | - { | |
272 | - title: '负责部门', | |
273 | - align: "center", | |
274 | - dataIndex: 'departIds_dictText' | |
268 | + width: 100, | |
269 | + dataIndex: 'selectedWarehouse' | |
275 | 270 | }, |
271 | + // { | |
272 | + // title: '部门', | |
273 | + // align: "center", | |
274 | + // width: 180, | |
275 | + // dataIndex: 'orgCodeTxt' | |
276 | + // }, | |
277 | + // { | |
278 | + // title: '负责部门', | |
279 | + // align: "center", | |
280 | + // dataIndex: 'departIds_dictText' | |
281 | + // }, | |
276 | 282 | { |
277 | 283 | title: '状态', |
278 | 284 | align: "center", |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java
... | ... | @@ -8,6 +8,7 @@ import javax.annotation.Resource; |
8 | 8 | import org.jeecg.common.api.vo.Result; |
9 | 9 | import org.jeecg.common.constant.CacheConstant; |
10 | 10 | import org.jeecg.common.constant.CommonConstant; |
11 | +import org.jeecg.common.exception.JeecgBootException; | |
11 | 12 | import org.jeecg.common.system.api.ISysBaseAPI; |
12 | 13 | import org.jeecg.common.system.vo.LoginUser; |
13 | 14 | import org.jeecg.common.system.vo.SysUserCacheInfo; |
... | ... | @@ -28,7 +29,6 @@ import org.springframework.stereotype.Service; |
28 | 29 | import org.springframework.transaction.annotation.Transactional; |
29 | 30 | |
30 | 31 | import com.alibaba.fastjson.JSONObject; |
31 | -import org.jeecg.common.exception.JeecgBootException; | |
32 | 32 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
33 | 33 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
34 | 34 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -557,9 +557,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl |
557 | 557 | // step5 |
558 | 558 | LambdaQueryWrapper<SysUserWarehouse> sysUserWarehouseLambdaQueryWrapper = Wrappers.lambdaQuery(); |
559 | 559 | sysUserWarehouseLambdaQueryWrapper.eq(SysUserWarehouse::getUserid, user.getId()); |
560 | - sysUserWarehouseService.remove(sysUserWarehouseLambdaQueryWrapper{ | |
560 | + sysUserWarehouseService.remove(sysUserWarehouseLambdaQueryWrapper); | |
561 | 561 | |
562 | - if (StringUtils.isNotEmpty(warehouses)) { | |
562 | + if (StringUtils.isNotEmpty(warehouses)) { | |
563 | 563 | String[] strs = warehouses.split(","); |
564 | 564 | for (String warehouseCode : strs) { |
565 | 565 | SysUserWarehouse sysUserWarehouse = new SysUserWarehouse(); |
... | ... |