|
@@ -482,12 +482,15 @@ public class StoreClockInServiceImpl extends ServiceImpl<StoreClockInMapper, Sto
|
|
|
@Override
|
|
@Override
|
|
|
public StoreClockInVo getStoreClockInById(Integer id, Integer userId) {
|
|
public StoreClockInVo getStoreClockInById(Integer id, Integer userId) {
|
|
|
StoreClockIn storeClockIn = storeClockInMapper.selectById(id);
|
|
StoreClockIn storeClockIn = storeClockInMapper.selectById(id);
|
|
|
- StoreClockInVo storeClockInVo = BeanUtil.copyProperties(storeClockIn, StoreClockInVo.class);
|
|
|
|
|
if (null == storeClockIn) {
|
|
if (null == storeClockIn) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
+ StoreClockInVo storeClockInVo = BeanUtil.copyProperties(storeClockIn, StoreClockInVo.class);
|
|
|
|
|
|
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeClockIn.getStoreId());
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeClockIn.getStoreId());
|
|
|
|
|
+ if (storeInfo == null) {
|
|
|
|
|
+ throw new IllegalArgumentException("当前店铺已删除");
|
|
|
|
|
+ }
|
|
|
// 店铺名称
|
|
// 店铺名称
|
|
|
storeClockInVo.setStoreName(storeInfo.getStoreName());
|
|
storeClockInVo.setStoreName(storeInfo.getStoreName());
|
|
|
storeClockInVo.setStoreBlurb(storeInfo.getStoreBlurb());
|
|
storeClockInVo.setStoreBlurb(storeInfo.getStoreBlurb());
|