|
@@ -11,6 +11,7 @@ import com.pj.project.tb_business.TbBusiness;
|
|
import com.pj.project.tb_business.TbBusinessService;
|
|
import com.pj.project.tb_business.TbBusinessService;
|
|
import com.pj.project.tb_business_item.TbBusinessItem;
|
|
import com.pj.project.tb_business_item.TbBusinessItem;
|
|
import com.pj.project.tb_costomer.TbCostomer;
|
|
import com.pj.project.tb_costomer.TbCostomer;
|
|
|
|
+import com.pj.project.tb_costomer.TbCostomerService;
|
|
import com.pj.utils.so.SoMap;
|
|
import com.pj.utils.so.SoMap;
|
|
import org.aspectj.weaver.loadtime.Aj;
|
|
import org.aspectj.weaver.loadtime.Aj;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -40,6 +41,8 @@ public class TbBusinessCarController {
|
|
*/
|
|
*/
|
|
@Autowired
|
|
@Autowired
|
|
TbBusinessCarService tbBusinessCarService;
|
|
TbBusinessCarService tbBusinessCarService;
|
|
|
|
+ @Resource
|
|
|
|
+ TbCostomerService tbCostomerService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -107,7 +110,11 @@ public class TbBusinessCarController {
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
String currentCustomerId = StpUserUtil.getCustomerId();
|
|
String currentCustomerId = StpUserUtil.getCustomerId();
|
|
if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
- so.put("customerId", currentCustomerId);
|
|
|
|
|
|
+ TbCostomer currentCustomer = tbCostomerService.getById(currentCustomerId);
|
|
|
|
+ if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())
|
|
|
|
+ && currentCustomer.getType().equals(TbCostomer.CustomerEnum.BUSINESS_TYPE.getType())) {
|
|
|
|
+ so.put("customerId", currentCustomerId);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
String limitDay = so.getString("limitDay");
|
|
String limitDay = so.getString("limitDay");
|
|
if (StrUtil.isNotEmpty(limitDay)){
|
|
if (StrUtil.isNotEmpty(limitDay)){
|