Преглед на файлове

店铺查看数据异样处理

yjwang преди 3 дни
родител
ревизия
2fd3c18644

+ 3 - 0
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreAfterSalesScrmMapper.java

@@ -113,6 +113,9 @@ public interface FsStoreAfterSalesScrmMapper
             "<if test = 'maps.companyUserId != null    '> " +
             "and s.company_user_id = #{maps.companyUserId} " +
             "</if>" +
+            "<if test = 'maps.storeId != null'> " +
+            "and o.store_id = #{maps.storeId} " +
+            "</if>" +
             "<if test = 'maps.deliverySn != null and  maps.deliverySn !=  \"\" '> " +
             " and ( o.delivery_id like concat('%', #{maps.deliverySn}, '%') or s.delivery_sn like concat('%', #{maps.deliverySn}, '%')) " +
             "</if>" +

+ 3 - 0
fs-service/src/main/java/com/fs/hisStore/mapper/FsStoreOrderScrmMapper.java

@@ -86,6 +86,9 @@ public interface FsStoreOrderScrmMapper
             "<if test = 'maps.orderCode != null and  maps.orderCode !=\"\"    '> " +
             "and o.order_code like CONCAT('%',#{maps.orderCode},'%') " +
             "</if>" +
+            "<if test = 'maps.storeId != null'> " +
+            "and o.store_id = #{maps.storeId} " +
+            "</if>" +
             "<if test = 'maps.isPayRemain != null      '> " +
             "and o.is_pay_remain =#{maps.isPayRemain} " +
             "</if>" +

+ 2 - 0
fs-store/src/main/java/com/fs/hisStore/controller/store/FsStoreAfterSalesScrmController.java

@@ -12,6 +12,7 @@ import com.fs.his.vo.FsStoreAfterSalesListVO;
 import com.fs.hisStore.domain.FsStoreAfterSalesScrm;
 import com.fs.his.param.FsStoreAfterSalesParam;
 import com.fs.hisStore.service.IFsStoreAfterSalesScrmService;
+import com.fs.hisStore.utils.UserUtil;
 import com.fs.hisStore.vo.FsStoreAfterSalesVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Lazy;
@@ -40,6 +41,7 @@ public class FsStoreAfterSalesScrmController extends BaseController
     @GetMapping("/list")
     public TableDataInfo list(FsStoreAfterSalesScrm fsStoreAfterSales)
     {
+        fsStoreAfterSales.setStoreId(UserUtil.getLoginUserStoreID());
         startPage();
         if(!StringUtils.isEmpty(fsStoreAfterSales.getCreateTimeRange())){
             fsStoreAfterSales.setCreateTimeList(fsStoreAfterSales.getCreateTimeRange().split("--"));