Commit 43b5af84 authored by 周健威's avatar 周健威

添加详情

parent 4f0b60e8
...@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.msg.TableResultResponse; ...@@ -7,6 +7,7 @@ import com.github.wxiaoqi.security.common.msg.TableResultResponse;
import com.github.wxiaoqi.security.common.util.Query; import com.github.wxiaoqi.security.common.util.Query;
import com.github.wxiaoqi.security.common.util.ReflectionUtils; import com.github.wxiaoqi.security.common.util.ReflectionUtils;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -144,5 +145,8 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro ...@@ -144,5 +145,8 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@Data
public static class BaseDetailDTO {
Integer id;
}
} }
...@@ -33,10 +33,7 @@ import lombok.Data; ...@@ -33,10 +33,7 @@ import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.persistence.Column;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE; import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_FALSE;
import static com.github.wxiaoqi.security.common.constant.CommonConstants.SYS_TRUE;
import static com.xxfc.platform.order.entity.SpecialRent.*; import static com.xxfc.platform.order.entity.SpecialRent.*;
@RestController @RestController
...@@ -135,7 +132,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia ...@@ -135,7 +132,7 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
@ResponseBody @ResponseBody
@ApiOperation(value = "查询特惠租车详情") @ApiOperation(value = "查询特惠租车详情")
@IgnoreUserToken @IgnoreUserToken
public ObjectRestResponse<SpecialRent> detail(SpecialDetailDTO dto) { public ObjectRestResponse<SpecialRent> detail(BaseDetailDTO dto) {
//查询数据 //查询数据
AssertUtils.isBlankBean(dto); AssertUtils.isBlankBean(dto);
return ObjectRestResponse.succ(baseBiz.selectById(dto.getId())); return ObjectRestResponse.succ(baseBiz.selectById(dto.getId()));
...@@ -261,9 +258,4 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia ...@@ -261,9 +258,4 @@ public class SpecialRentController extends BaseController<SpecialRentBiz, Specia
public static class SpecialOrderDTO extends AddRentVehicleDTO { public static class SpecialOrderDTO extends AddRentVehicleDTO {
Integer specialId; Integer specialId;
} }
@Data
public static class SpecialDetailDTO {
Integer id;
}
} }
\ No newline at end of file
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