|
@@ -21,6 +21,9 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @author lifang
|
|
* @author lifang
|
|
|
* @version 1.0.0
|
|
* @version 1.0.0
|
|
@@ -35,6 +38,16 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class BusInfusionHistoryController implements BaseQueryController<BusInfusionHistoryEntity, String> {
|
|
public class BusInfusionHistoryController implements BaseQueryController<BusInfusionHistoryEntity, String> {
|
|
|
private final LocalBusInfusionHistoryService infusionHistoryService;
|
|
private final LocalBusInfusionHistoryService infusionHistoryService;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void queryAuth(){
|
|
|
|
|
+ if(isAuth()){
|
|
|
|
|
+ List<String> savePermission = Arrays.asList("*:infusion:query", "*:infusion:all");
|
|
|
|
|
+ getStpLogin().checkPermissionOr(savePermission.toArray(new String[2]));
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public BaseService<? extends Mapper<BusInfusionHistoryEntity>, BusInfusionHistoryEntity, String> getService() {
|
|
public BaseService<? extends Mapper<BusInfusionHistoryEntity>, BusInfusionHistoryEntity, String> getService() {
|
|
|
return infusionHistoryService;
|
|
return infusionHistoryService;
|