|
@@ -83,7 +83,7 @@ public class ApiController {
|
|
|
@RequestMapping(value = "getCustomerList")
|
|
|
public AjaxJson getCustomerList() {
|
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
|
- if (StpUserUtil.isLogin()){
|
|
|
+ if (StpUserUtil.isLogin()) {
|
|
|
String currentCustomerId = StpUserUtil.getCustomerId();
|
|
|
if (!currentCustomerId.equals(UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
|
so.put("id", currentCustomerId);
|
|
@@ -109,7 +109,7 @@ public class ApiController {
|
|
|
|
|
|
@GetMapping(value = "searchPartCar")
|
|
|
public AjaxJson searchPartCar(String carNo) {
|
|
|
- carNo=carNo.toUpperCase();
|
|
|
+ carNo = carNo.toUpperCase();
|
|
|
List<TbBusinessCar> list = apiService.searchPartCar(carNo);
|
|
|
return AjaxJson.getSuccessData(list);
|
|
|
}
|
|
@@ -121,13 +121,17 @@ public class ApiController {
|
|
|
|
|
|
@GetMapping(value = "getPartCarByChannel")
|
|
|
public AjaxJson getPartCarByChannel(String channel) {
|
|
|
- StaticLog.error("查询通道车辆:{}",channel);
|
|
|
+ StaticLog.error("查询通道车辆:{}", channel);
|
|
|
return AjaxJson.getSuccessData(apiService.getPartCarByChannel(channel));
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getDeclareList")
|
|
|
public AjaxJson getDeclareList() {
|
|
|
SoMap so = SoMap.getRequestSoMap();
|
|
|
+ String customerId = StpUserUtil.getCustomerId();
|
|
|
+ if (!StrUtil.equals(customerId, UserTypeEnum.PLATFORM_ADMIN.getCustomerId())) {
|
|
|
+ so.put("customerId", customerId);
|
|
|
+ }
|
|
|
return AjaxJson.getSuccessData(apiService.getDeclareList(so.startPage()));
|
|
|
}
|
|
|
|
|
@@ -208,17 +212,20 @@ public class ApiController {
|
|
|
apiService.addCarDisinfect(otherBusinessBO);
|
|
|
return AjaxJson.getSuccess();
|
|
|
}
|
|
|
+
|
|
|
@RequestMapping(value = "editCarDisinfect")
|
|
|
public AjaxJson editCarDisinfect(@RequestBody OtherBusinessBO otherBusinessBO) {
|
|
|
apiService.editOtherBusiness(otherBusinessBO);
|
|
|
return AjaxJson.getSuccess();
|
|
|
}
|
|
|
+
|
|
|
@RequestMapping("addOtherBusiness")
|
|
|
public AjaxJson addOtherBusiness(OtherBusinessBO otherBusinessBO) {
|
|
|
otherBusinessBO.setItems(JSONUtil.toList(otherBusinessBO.getItemJson(), TbItem.class));
|
|
|
apiService.addCarDisinfect(otherBusinessBO);
|
|
|
return AjaxJson.getSuccess();
|
|
|
}
|
|
|
+
|
|
|
@RequestMapping("editOtherBusiness")
|
|
|
public AjaxJson editOtherBusiness(OtherBusinessBO otherBusinessBO) {
|
|
|
otherBusinessBO.setItems(JSONUtil.toList(otherBusinessBO.getItemJson(), TbItem.class));
|
|
@@ -227,5 +234,4 @@ public class ApiController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|