Browse Source

合作伙伴查询业务恢复原来的

lzm 3 years ago
parent
commit
d2ceec9f31

+ 1 - 3
sp-server/src/main/java/com/pj/project/tb_business/TbBusinessController.java

@@ -192,9 +192,7 @@ public class TbBusinessController {
     public AjaxJson getOtherBusiness() {
         SoMap so = SoMap.getRequestSoMap();
         String currentCustomerId = StpUserUtil.getCustomerId();
-        TbCostomer currentCustomer = tbCostomerService.getById(currentCustomerId);
-        if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())
-                && currentCustomer.getType().equals(TbCostomer.CustomerEnum.BUSINESS_TYPE.getType())) {
+        if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
             so.put("createByCustomerId", currentCustomerId);
         }
         List<TbBusiness> list = tbBusinessService.getList(so.startPage());