Просмотр исходного кода

门店详情接口(getInfo)回显统编(实存pos_store_ezpay.ubn,供门店审核页显示)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
qmj 1 день назад
Родитель
Сommit
a3b221a7c1

+ 3 - 1
ruoyi-admin/src/main/java/com/ruoyi/app/mendian/PosStoreController.java

@@ -443,11 +443,13 @@ public class PosStoreController extends BaseController {
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         PosStore posStore = posStoreService.selectPosStoreById(id);
-        // 回显营业时间(按周几分组的 timeSlots),供编辑门店时显示
+        // 回显营业时间(按周几分组的 timeSlots)与统一编号(统编),供门店审核页显示
         if (posStore != null) {
             LambdaQueryWrapper<OperatingHours> wrapper = new LambdaQueryWrapper<>();
             wrapper.eq(OperatingHours::getMdId, id);
             posStore.setBusinessHours(getStoreOperatOutput(operatingHoursService.list(wrapper), id));
+            // 统编实存于 pos_store_ezpay.ubn
+            posStore.setUbn(posStoreEzpayService.getUbn(id));
         }
         return success(posStore);
     }