master
parent
e2864331e8
commit
fa8257a240
|
@ -8,7 +8,7 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Date;
|
||||
|
||||
|
@ -22,14 +22,14 @@ import java.util.Date;
|
|||
@TableName("askbuy")
|
||||
public class AskBuy {
|
||||
@TableId
|
||||
private BigInteger askBuyId; //求租ID
|
||||
private Long askBuyId; //求租ID
|
||||
private String askBuyAddress; //求租具体地址
|
||||
private String askBuyTitle; //求租标签
|
||||
private BigInteger dictionaryTypeId; //求租类型
|
||||
private BigInteger addrId; //三级联动
|
||||
private BigInteger userId; //联系人
|
||||
private DecimalFormat askBuyPrice; //求租价格
|
||||
private BigInteger isDelete; //逻辑删除
|
||||
private Long dictionaryTypeId; //求租类型
|
||||
private Long addrId; //三级联动
|
||||
private Long userId; //联系人
|
||||
private BigDecimal askBuyPrice; //求租价格
|
||||
private Long isDelete; //逻辑删除
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime; //创建时间
|
||||
|
|
|
@ -7,7 +7,8 @@ import lombok.Builder;
|
|||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.math.BigInteger;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Date;
|
||||
/**
|
||||
|
@ -20,14 +21,14 @@ import java.util.Date;
|
|||
@TableName("askrent")
|
||||
public class AskRent {
|
||||
@TableId
|
||||
private BigInteger askRentId; //求租ID
|
||||
private Long askRentId; //求租ID
|
||||
private String askRentAddress; //求租具体地址
|
||||
private String askRentTitle; //求租标签
|
||||
private BigInteger dictionaryTypeId; //求租类型
|
||||
private BigInteger addrId; //三级联动
|
||||
private BigInteger userId; //联系人
|
||||
private DecimalFormat askRentPrice; //求租价格
|
||||
private BigInteger isDelete; //逻辑删除
|
||||
private Long dictionaryTypeId; //求租类型
|
||||
private Long addrId; //三级联动
|
||||
private Long userId; //联系人
|
||||
private BigDecimal askRentPrice; //求租价格
|
||||
private Long isDelete; //逻辑删除
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime; //创建时间
|
||||
|
|
|
@ -9,7 +9,7 @@ import lombok.Data;
|
|||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|||
@SpringBootApplication
|
||||
@EnableDiscoveryClient
|
||||
@MapperScan("com.bwie.ask.mapper")
|
||||
public class AskMapperApp {
|
||||
public class AskApp {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AskMapperApp.class);
|
||||
SpringApplication.run(AskApp.class);
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
package com.bwie.ask.controller;
|
||||
|
||||
import com.bwie.ask.AskApp;
|
||||
import com.bwie.ask.seriver.AskRentService;
|
||||
import com.bwie.common.domain.AskRent;
|
||||
import com.bwie.common.result.Result;
|
||||
|
@ -7,23 +7,17 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 求租controller层
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/rent")
|
||||
public class AskRentController {
|
||||
|
||||
private final AskRentService askRentService;
|
||||
|
||||
public AskRentController(AskRentService askRentService) {
|
||||
this.askRentService = askRentService;
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/shouList")
|
||||
public Result<List<AskRent>> shouList(){
|
||||
return askRentService.shouList();
|
||||
|
@ -32,5 +26,4 @@ public class AskRentController {
|
|||
public Result addAskRent(@RequestBody AskRent askRent){
|
||||
return askRentService.addAskRent(askRent);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ spring:
|
|||
time-zone: GMT+8
|
||||
application:
|
||||
# 应用名称
|
||||
name: bwie-group
|
||||
name: bwie-ask
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
|
|
Loading…
Reference in New Issue