Browse Source

Merge branch 'feature/v1.0.0' of http://139.159.180.147/air/back-end into feature/v1.0.0

 Conflicts:
	air/src/main/java/com/air/housing/entity/HousingEstates.java
	air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java
release/v1.0.0
yueminglinxia 4 years ago
parent
commit
87bfd1159a
  1. 30
      air/src/main/java/com/air/enums/BlocksOriginStatusEnum.java
  2. 63
      air/src/main/java/com/air/housing/entity/Format.java
  3. 2
      air/src/main/java/com/air/housing/entity/HousingEstates.java
  4. 11
      air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java
  5. 23
      air/src/main/java/com/air/land/controller/AuctionRecordController.java

30
air/src/main/java/com/air/enums/BlocksOriginStatusEnum.java

@ -0,0 +1,30 @@
package com.air.enums;
import lombok.Getter;
/**
* 楼栋信息爬虫数据状态
*
* @author peihao
* @date 2021-05-20
**/
@Getter
public enum BlocksOriginStatusEnum {
/**
* 待处理
*/
READY_TO_HANDLE("0","待处理"),
/**
* 已处理
*/
HANDLED("1","已处理");
private final String code;
private final String name;
BlocksOriginStatusEnum(String code, String name) {
this.code = code;
this.name = name;
}
}

63
air/src/main/java/com/air/housing/entity/Format.java

@ -1,5 +1,6 @@
package com.air.housing.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
@ -7,6 +8,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
@ -18,63 +20,64 @@ import java.time.LocalDateTime;
* @date 2021-06-09 09:13:16
*/
@Data
@TableName("format")
@TableName("`format`")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "业态信息")
public class Format extends Model<Format> {
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L;
@TableId
@ApiModelProperty(value="主键,自增")
@TableId
@ApiModelProperty(value = "主键,自增")
private Long formatId;
@ApiModelProperty(value="楼盘id")
@ApiModelProperty(value = "楼盘id")
private Long housingEstateId;
@ApiModelProperty(value="物业类型")
@ApiModelProperty(value = "物业类型")
private String propertyType;
@ApiModelProperty(value="大业态")
@ApiModelProperty(value = "大业态")
private String largeFormat;
@ApiModelProperty(value="业态")
@ApiModelProperty(value = "业态")
@TableField(value = "`format`")
private String format;
@ApiModelProperty(value="拟售总价")
@ApiModelProperty(value = "拟售总价")
private BigDecimal preTotalPrice;
@ApiModelProperty(value="装修标准(字典标识)")
@ApiModelProperty(value = "装修标准(字典标识)")
private String decorationStandard;
@ApiModelProperty(value="业态体量")
@ApiModelProperty(value = "业态体量")
private BigDecimal formatSize;
@ApiModelProperty(value="业态首推时间")
@ApiModelProperty(value = "业态首推时间")
private LocalDateTime firstPushDate;
@ApiModelProperty(value="供应套数")
@ApiModelProperty(value = "供应套数")
private Integer supplyCount;
@ApiModelProperty(value="供应面积")
@ApiModelProperty(value = "供应面积")
private BigDecimal supplyArea;
@ApiModelProperty(value="成交套数")
@ApiModelProperty(value = "成交套数")
private Integer dealtCount;
@ApiModelProperty(value="成交面积")
@ApiModelProperty(value = "成交面积")
private BigDecimal dealtArea;
@ApiModelProperty(value="狭义库存")
@ApiModelProperty(value = "狭义库存")
private BigDecimal narrowSenseStock;
@ApiModelProperty(value="未推库存")
@ApiModelProperty(value = "未推库存")
private BigDecimal unpushedStock;
@ApiModelProperty(value="广义库存")
@ApiModelProperty(value = "广义库存")
private BigDecimal broadSenseStock;
@ApiModelProperty(value="最近6月月均成交量")
@ApiModelProperty(value = "最近6月月均成交量")
private Integer lastSixMonDealtCount;
@ApiModelProperty(value="狭义去化周期")
@ApiModelProperty(value = "狭义去化周期")
private Integer narrowSenseDec;
@ApiModelProperty(value="广义去化周期")
@ApiModelProperty(value = "广义去化周期")
private Integer broadSenseDec;
@ApiModelProperty(value="状态")
@ApiModelProperty(value = "状态")
private String statusCd;
@ApiModelProperty(value="状态时间")
@ApiModelProperty(value = "状态时间")
private LocalDateTime statusDate;
@ApiModelProperty(value="创建人")
@ApiModelProperty(value = "创建人")
private String createUserId;
@ApiModelProperty(value="创建时间")
@ApiModelProperty(value = "创建时间")
private LocalDateTime createDate;
@ApiModelProperty(value="修改人")
@ApiModelProperty(value = "修改人")
private String updateUserId;
@ApiModelProperty(value="修改时间")
@ApiModelProperty(value = "修改时间")
private LocalDateTime updateDate;
@ApiModelProperty(value="备注")
@ApiModelProperty(value = "备注")
private String remark;
}
}

2
air/src/main/java/com/air/housing/entity/HousingEstates.java

@ -1,6 +1,5 @@
package com.air.housing.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
@ -51,6 +50,7 @@ public class HousingEstates extends Model<HousingEstates> {
private String largeFormat;
@ApiModelProperty(value = "业态")
@TableField(value = "`format`")
private String format;
@ApiModelProperty(value = "拟售总价")

11
air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java

@ -1,13 +1,16 @@
package com.air.housing.service.impl;
import cn.hutool.core.util.ObjectUtil;
import com.air.enums.BlocksOriginStatusEnum;
import com.air.housing.dto.HousingDefine;
import com.air.housing.entity.Blocks;
import com.air.housing.entity.Format;
import com.air.housing.entity.Houses;
import com.air.housing.dto.HousingDefine;
import com.air.housing.entity.HousingEstates;
import com.air.housing.mapper.HousingEstatesMapper;
import com.air.housing.service.BlocksService;
import com.air.housing.service.FormatService;
import com.air.housing.service.HousesService;
import com.air.housing.service.HousingEstatesService;
import com.air.housing.vo.HousingEstatesDetail;
import com.air.housing.vo.HousingEstatesName;
@ -17,8 +20,6 @@ import com.air.origin.entity.BlocksOrigin;
import com.air.origin.entity.HousesOrigin;
import com.air.origin.service.BlocksOriginService;
import com.air.origin.service.HousesOriginService;
import com.air.housing.service.BlocksService;
import com.air.housing.service.HousesService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -55,6 +56,7 @@ public class HousingEstatesServiceImpl extends ServiceImpl<HousingEstatesMapper,
private LandListedService landListedService;
@Autowired
private FormatService formatService;
@Override
public IPage<HousingEstatesName> getHousingEstatesNamePage(IPage<HousingEstatesName> page, String name) {
@ -96,6 +98,9 @@ public class HousingEstatesServiceImpl extends ServiceImpl<HousingEstatesMapper,
format.setFormat(housingDefine.getFormat());
formatService.save(format);
}
//origin更新为已处理
blocksOrigin.setStatusCd(BlocksOriginStatusEnum.HANDLED.getCode());
blocksOrigin.updateById();
return true;
}

23
air/src/main/java/com/air/land/controller/AuctionRecordController.java

@ -4,14 +4,18 @@ import cn.hutool.core.bean.BeanUtil;
import com.air.land.entity.AuctionRecord;
import com.air.land.service.AuctionRecordService;
import com.air.land.vo.AuctionRecordVo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.cinderella.framework.common.core.util.R;
import com.cinderella.framework.common.data.mybatis.QueryPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import sun.jvm.hotspot.debugger.Page;
import java.util.List;
@ -24,8 +28,8 @@ import java.util.List;
*/
@RestController
@AllArgsConstructor
@RequestMapping("/auctionrecord")
@Api(value = "auctionrecord", tags = "参拍记录表管理")
@RequestMapping("/auction_record")
@Api(value = "auction_record", tags = "参拍记录表管理")
public class AuctionRecordController {
private final AuctionRecordService auctionRecordService;
@ -37,12 +41,15 @@ public class AuctionRecordController {
* @return
*/
@ApiOperation(value = "查询参拍记录列表", notes = "查询参拍记录列表")
@GetMapping("/list/{landListedId}")
public R<List<AuctionRecord>> getAuctionRecordPage(@PathVariable Long landListedId) {
List<AuctionRecord> list = auctionRecordService.list(Wrappers.<AuctionRecord>query().lambda()
.eq(AuctionRecord::getLandListedId, landListedId)
.orderByDesc(AuctionRecord::getUpdateDate));
return R.ok(list, "查询成功");
@GetMapping("/list")
public R<IPage<AuctionRecord>> getAuctionRecordPage(QueryPage page, @RequestParam(required = false) Long landListedId) {
LambdaQueryWrapper<AuctionRecord> lambda = Wrappers.<AuctionRecord>query().lambda();
if (landListedId != null) {
lambda.eq(AuctionRecord::getLandListedId, landListedId);
}
IPage<AuctionRecord> recordPage = auctionRecordService.page(page.toPage(),
lambda.orderByDesc(AuctionRecord::getUpdateDate));
return R.ok(recordPage, "查询成功");
}
/**

Loading…
Cancel
Save