Commit c50ce5c4 authored by 周健威's avatar 周健威

修改

parent 30ec26a5
...@@ -11,6 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling; ...@@ -11,6 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = { @SpringBootApplication(scanBasePackages = {
"com.xxfc.platform", "com.xxfc.platform",
// "com.xxfc.platform.vehicle",
// "com.xxfc.platform.vehicle.biz",
// "com.xxfc.platform.vehicle.rest",
"com.github.wxiaoqi.security.common.handler", "com.github.wxiaoqi.security.common.handler",
"com.github.wxiaoqi.security.common.log" "com.github.wxiaoqi.security.common.log"
}) })
......
...@@ -39,8 +39,8 @@ import java.util.Map; ...@@ -39,8 +39,8 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@Service
@Slf4j @Slf4j
@Service
public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, VehicleWarningMsg> { public class VehicleWarningMsgBiz extends BaseBiz<VehicleWarningMsgMapper, VehicleWarningMsg> {
......
package com.xxfc.platform.vehicle.common; package com.xxfc.platform.vehicle.common;
import com.github.wxiaoqi.security.common.biz.BaseBiz; import com.github.wxiaoqi.security.common.biz.BaseBiz;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Slf4j @Slf4j
public class BaseController<Biz extends BaseBiz> { public class BaseController<Biz extends BaseBiz> {
@Autowired @Autowired
protected HttpServletRequest request; protected HttpServletRequest request;
@Autowired @Autowired
@Lazy
protected Biz baseBiz; protected Biz baseBiz;
} }
...@@ -13,6 +13,7 @@ import com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo; ...@@ -13,6 +13,7 @@ import com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo;
import com.github.wxiaoqi.security.common.vo.PageDataVO; import com.github.wxiaoqi.security.common.vo.PageDataVO;
import com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo; import com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.HashMap; import java.util.HashMap;
...@@ -24,6 +25,9 @@ import java.util.Map; ...@@ -24,6 +25,9 @@ import java.util.Map;
@Slf4j @Slf4j
public class VehicleWarningMsgController extends BaseController<VehicleWarningMsgBiz> { public class VehicleWarningMsgController extends BaseController<VehicleWarningMsgBiz> {
// @Autowired
// VehicleWarningMsgBiz vehicleWarningMsgBiz;
@RequestMapping(value ="{id}",method = RequestMethod.GET) @RequestMapping(value ="{id}",method = RequestMethod.GET)
private RestResponse<VehicleWarningMsg> get(@PathVariable Integer id) throws Exception{ private RestResponse<VehicleWarningMsg> get(@PathVariable Integer id) throws Exception{
return RestResponse.codeAndData(RestResponse.SUC_CODE,baseBiz.selectById(id)); return RestResponse.codeAndData(RestResponse.SUC_CODE,baseBiz.selectById(id));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment