| | |
| | | String companyId = sysUserInfo.getCompanyId(); |
| | | String userId = sysUserInfo.getUserId(); |
| | | String id = suMaterialWarehouseEntity.getId(); |
| | | suMaterialWarehouseEntity.setType(1);//1手动 |
| | | if(StringUtils.isNotBlank(id)){ |
| | | suMaterialWarehouseEntity.setUpdateTime(new Date()); |
| | | suMaterialWarehouseEntity.setUpdateUser(userId); |
| | | }else { |
| | | suMaterialWarehouseEntity.setId(UUIDUtils.create()); |
| | | } |
| | | suMaterialWarehouseEntity.setId(UUIDUtils.create()); |
| | | suMaterialWarehouseEntity.setCreateUser(userId); |
| | | suMaterialWarehouseEntity.setCompanyId(companyId); |
| | | suMaterialWarehouseMapper.insertAndUpdate(suMaterialWarehouseEntity); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public BasicResult selectInfo(Integer id) { |
| | | public BasicResult selectInfo(String id) { |
| | | return BasicResult.success(suMaterialWarehouseMapper.selectInfo(id)); |
| | | } |
| | | |