diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java index e1096cd8b..2c8bbec13 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/petrolStationManagement/service/impl/OilNumberServiceImpl.java @@ -2,6 +2,7 @@ package com.fuint.business.petrolStationManagement.service.impl; +import cn.hutool.core.util.ObjectUtil; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -35,8 +36,11 @@ public class OilNumberServiceImpl extends ServiceImpl selectOilNumberList2(Page page, OilNumber oilNumber) { - AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); - oilNumber.setStoreId(nowAccountInfo.getStoreId()); + if (ObjectUtil.isEmpty(oilNumber.getStoreId())) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + oilNumber.setStoreId(nowAccountInfo.getStoreId()); + } + return baseMapper.selectOilNumberList2(page,oilNumber); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/storeInformation/controller/LJStoreController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/storeInformation/controller/LJStoreController.java index 4485838d6..44889fb82 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/storeInformation/controller/LJStoreController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/storeInformation/controller/LJStoreController.java @@ -28,6 +28,12 @@ public class LJStoreController extends BaseController { return getSuccessResult(store); } + @GetMapping("storeInfoUni") + public ResponseObject storeInfoUni(Integer storeId){ + LJStore store = storeService.selectStoreByIdUni(storeId); + return getSuccessResult(store); + } + /** * 查询所有门店信息 * @return diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java index 64e9d72f1..b85609374 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/controller/LJUserController.java @@ -74,8 +74,9 @@ public class LJUserController extends BaseController { } @GetMapping("/getByUniApp") - public ResponseObject getByUniApp(){ - LJUserVo user = userService.getByUniApp(); + public ResponseObject getByUniApp(Integer chainStoreId){ + // todo wangh改为便利店id + LJUserVo user = userService.getByUniApp(chainStoreId); return getSuccessResult(user); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java index 805ec9b23..daf5dccc1 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/LJUserMapper.java @@ -35,6 +35,13 @@ public interface LJUserMapper extends BaseMapper { */ public LJUserVo selectUserById(@Param("id") Integer id); + /** + * uniapp使用 + * @param id + * @return + */ + public LJUserVo selectUserByIdUni(@Param("id") Integer id,@Param("chainStoreId") Integer chainStoreId); + /** * 根据手机号查询用户信息 * @param mobile diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml index 9cf136e20..4e19affe8 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/LJUserMapper.xml @@ -106,6 +106,15 @@ mu.id = #{id} + +