diff --git a/air/src/main/java/com/air/housing/dto/HousingDefine.java b/air/src/main/java/com/air/housing/dto/HousingDefine.java index 3101953..a6c467d 100644 --- a/air/src/main/java/com/air/housing/dto/HousingDefine.java +++ b/air/src/main/java/com/air/housing/dto/HousingDefine.java @@ -25,6 +25,4 @@ public class HousingDefine { private String format; @ApiModelProperty(value = "物业类型") private String propertyType; -// @ApiModelProperty(value = "其他编号") -// private String otherNo; } diff --git a/air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java b/air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java index 0b025c7..5be4f2f 100644 --- a/air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java +++ b/air/src/main/java/com/air/housing/service/impl/HousingEstatesServiceImpl.java @@ -1,10 +1,12 @@ package com.air.housing.service.impl; import com.air.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.FormatService; import com.air.housing.service.HousingEstatesService; import com.air.housing.vo.HousingEstatesName; import com.air.origin.entity.BlocksOrigin; @@ -43,7 +45,8 @@ public class HousingEstatesServiceImpl extends ServiceImpl getHousingEstatesNamePage(IPage page, String name) { @@ -73,6 +76,18 @@ public class HousingEstatesServiceImpl extends ServiceImplquery().lambda().eq(Format::getHousingEstateId, housingDefine.getHousingEstatesId()) + .eq(Format::getLargeFormat, housingDefine.getLargeFormat()) + .eq(Format::getFormat, housingDefine.getFormat())); + if (format == null) { + format = new Format(); + format.setHousingEstateId(housingDefine.getHousingEstatesId()); + format.setLargeFormat(housingDefine.getLargeFormat()); + format.setFormat(housingDefine.getFormat()); + formatService.save(format); + } return true; } diff --git a/air/src/main/java/com/air/origin/dto/BlocksOriginQuery.java b/air/src/main/java/com/air/origin/dto/BlocksOriginQuery.java index 93ef561..aec37ab 100644 --- a/air/src/main/java/com/air/origin/dto/BlocksOriginQuery.java +++ b/air/src/main/java/com/air/origin/dto/BlocksOriginQuery.java @@ -2,10 +2,15 @@ package com.air.origin.dto; import cn.hutool.core.bean.BeanUtil; import com.air.origin.entity.BlocksOrigin; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import org.springframework.format.annotation.DateTimeFormat; + +import java.time.LocalDateTime; +import java.util.Date; /** * 楼栋信息 @@ -29,6 +34,10 @@ public class BlocksOriginQuery { private String preSaleLicenseNo; @ApiModelProperty(value = "状态") private String statusCd; + @ApiModelProperty(value = "日期,格式yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern = "yyyy-MM-dd") + private LocalDateTime createDate; public BlocksOrigin blocksOrigin() { BlocksOrigin origin = new BlocksOrigin(); diff --git a/air/src/main/java/com/air/origin/entity/BlocksOrigin.java b/air/src/main/java/com/air/origin/entity/BlocksOrigin.java index 3a32b78..2d7567d 100644 --- a/air/src/main/java/com/air/origin/entity/BlocksOrigin.java +++ b/air/src/main/java/com/air/origin/entity/BlocksOrigin.java @@ -5,10 +5,12 @@ 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; +import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.time.LocalDateTime; @@ -57,6 +59,8 @@ public class BlocksOrigin extends Model { @ApiModelProperty(value = "创建人") private String createUserId; @ApiModelProperty(value = "创建时间") + @JsonFormat(pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDateTime createDate; @ApiModelProperty(value = "修改人") private String updateUserId; @@ -66,4 +70,6 @@ public class BlocksOrigin extends Model { private String remark; @ApiModelProperty(value = "数据id") private String dataId; + @ApiModelProperty(value = "其他编号") + private String otherNo; } diff --git a/air/src/main/resources/mapper/BlocksOriginMapper.xml b/air/src/main/resources/mapper/BlocksOriginMapper.xml index 9e35107..3a30898 100644 --- a/air/src/main/resources/mapper/BlocksOriginMapper.xml +++ b/air/src/main/resources/mapper/BlocksOriginMapper.xml @@ -22,5 +22,6 @@ +