|
|
@@ -442,7 +442,14 @@ public class PosStoreController extends BaseController {
|
|
|
@PreAuthorize("@ss.hasPermi('chanting:store:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
- return success(posStoreService.selectPosStoreById(id));
|
|
|
+ PosStore posStore = posStoreService.selectPosStoreById(id);
|
|
|
+ // 回显营业时间(按周几分组的 timeSlots),供编辑门店时显示
|
|
|
+ if (posStore != null) {
|
|
|
+ LambdaQueryWrapper<OperatingHours> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(OperatingHours::getMdId, id);
|
|
|
+ posStore.setBusinessHours(getStoreOperatOutput(operatingHoursService.list(wrapper), id));
|
|
|
+ }
|
|
|
+ return success(posStore);
|
|
|
}
|
|
|
|
|
|
/**
|