|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | import com.doumee.dao.business.model.YwContract; | 
|---|
|  |  |  | import com.doumee.dao.business.model.YwContractBill; | 
|---|
|  |  |  | import com.doumee.service.business.YwContractService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(ywContractService.create(ywContract)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("根据参数预生成账单信息") | 
|---|
|  |  |  | @PostMapping("/getBillList") | 
|---|
|  |  |  | @CloudRequiredPermission("business:ywcontract:create") | 
|---|
|  |  |  | public ApiResponse< List<YwContractBill> > getBillList(@RequestBody YwContract ywContract, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
|---|
|  |  |  | ywContract.setLoginUserInfo(this.getLoginUser(token)); | 
|---|
|  |  |  | return ApiResponse.success(ywContractService.getBillList(ywContract)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("退租") | 
|---|
|  |  |  | @PostMapping("/backRent") | 
|---|
|  |  |  | @CloudRequiredPermission("business:ywcontract:update") | 
|---|