修改job表中areacode类型

This commit is contained in:
sh
2026-02-06 18:28:24 +08:00
parent 5f71f34d88
commit f4e85fd139
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ public class Job extends BaseEntity
private String jobLocation; private String jobLocation;
@ApiModelProperty("工作地点区县字典代码") @ApiModelProperty("工作地点区县字典代码")
private Integer jobLocationAreaCode; private String jobLocationAreaCode;
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")

View File

@@ -910,7 +910,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
if(Objects.isNull(rowWork.getCounty())){ if(Objects.isNull(rowWork.getCounty())){
job.setJobLocationAreaCode(null); job.setJobLocationAreaCode(null);
}else { }else {
job.setJobLocationAreaCode(Integer.valueOf(Objects.requireNonNull(iBussinessDictDataService.findCode(areaData, rowWork.getCounty())))); job.setJobLocationAreaCode(Objects.requireNonNull(iBussinessDictDataService.findCode(areaData, rowWork.getCounty())));
} }
job.setDescription(rowWork.getAcb22a()); job.setDescription(rowWork.getAcb22a());
job.setIsPublish(1); job.setIsPublish(1);
@@ -1217,7 +1217,7 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
job.setJobType(jobType); job.setJobType(jobType);
job.setType(type); job.setType(type);
job.setJobLocation(StringUtils.isBlank(it.getJobAddress()) ? it.getJobLocation() : it.getJobAddress()); job.setJobLocation(StringUtils.isBlank(it.getJobAddress()) ? it.getJobLocation() : it.getJobAddress());
job.setJobLocationAreaCode(StringUtils.isBlank(areaCode) ? 0 : Integer.valueOf(areaCode)); job.setJobLocationAreaCode(StringUtils.isBlank(areaCode) ? "0" : areaCode);
job.setIsPublish(1); job.setIsPublish(1);
job.setDataSource("1"); job.setDataSource("1");
job.setPostingDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS)); job.setPostingDate(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS));