update 缺失字段处理
This commit is contained in:
@@ -82,6 +82,9 @@ create table pay_committee_member_info
|
|||||||
document_type varchar(100) null comment '证件类型',
|
document_type varchar(100) null comment '证件类型',
|
||||||
birth_date varchar(100) null comment '出生年月',
|
birth_date varchar(100) null comment '出生年月',
|
||||||
photo varchar(100) null comment '个人证件照',
|
photo varchar(100) null comment '个人证件照',
|
||||||
|
other_languages_and_proficiency_levels varchar(100) null comment '其他语言及熟练程度',
|
||||||
|
is_academician varchar(100) null comment '是否工程院院士',
|
||||||
|
is_academy_of_sciences varchar(100) null comment '是否科学院院士',
|
||||||
constraint Index_1
|
constraint Index_1
|
||||||
unique (id)
|
unique (id)
|
||||||
)
|
)
|
||||||
|
|||||||
+15
@@ -191,4 +191,19 @@ public class CommitteeMemberInfoDTO {
|
|||||||
*/
|
*/
|
||||||
@JSONField(name = "出生年月")
|
@JSONField(name = "出生年月")
|
||||||
private String birthDate;
|
private String birthDate;
|
||||||
|
/**
|
||||||
|
* 其他语言及熟练程度
|
||||||
|
*/
|
||||||
|
@JSONField(name = "其他语言及熟练程度")
|
||||||
|
private String otherLanguagesAndProficiencyLevels;
|
||||||
|
/**
|
||||||
|
* 是否工程院院士
|
||||||
|
*/
|
||||||
|
@JSONField(name = "是否工程院院士")
|
||||||
|
private String isAcademician;
|
||||||
|
/**
|
||||||
|
* 是否科学院院士
|
||||||
|
*/
|
||||||
|
@JSONField(name = "是否科学院院士")
|
||||||
|
private String isAcademyOfSciences;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,9 +1,11 @@
|
|||||||
package com.jero.committee.entity;
|
package com.jero.committee.entity;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jero.common.aspect.annotation.Dict;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|||||||
+21
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.jero.common.aspect.annotation.Dict;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -286,4 +287,24 @@ public class PayCommitteeMemberInfo {
|
|||||||
@TableField(value = "photo")
|
@TableField(value = "photo")
|
||||||
@ApiModelProperty(value = "个人证件照")
|
@ApiModelProperty(value = "个人证件照")
|
||||||
private String photo;
|
private String photo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 其他语言及熟练程度
|
||||||
|
*/
|
||||||
|
@TableField(value = "other_languages_and_proficiency_levels")
|
||||||
|
@ApiModelProperty(value = "其他语言及熟练程度")
|
||||||
|
private String otherLanguagesAndProficiencyLevels;
|
||||||
|
/**
|
||||||
|
* 是否工程院院士
|
||||||
|
*/
|
||||||
|
@TableField(value = "is_academician")
|
||||||
|
@Dict(dicCode = "yn")
|
||||||
|
@ApiModelProperty(value = "是否工程院院士")
|
||||||
|
private String isAcademician;
|
||||||
|
/**
|
||||||
|
* 是否科学院院士
|
||||||
|
*/
|
||||||
|
@TableField(value = "is_academy_of_sciences")
|
||||||
|
@ApiModelProperty(value = "是否科学院院士")
|
||||||
|
private String isAcademyOfSciences;
|
||||||
}
|
}
|
||||||
+3
@@ -205,6 +205,9 @@ public class PayCommitteeInfoService extends ServiceImpl<PayCommitteeInfoMapper,
|
|||||||
DateTime date = DateUtil.date(Long.parseLong(birthDate));
|
DateTime date = DateUtil.date(Long.parseLong(birthDate));
|
||||||
payCommitteeMemberInfo.setBirthDate(date.toDateStr());
|
payCommitteeMemberInfo.setBirthDate(date.toDateStr());
|
||||||
}
|
}
|
||||||
|
payCommitteeMemberInfo.setIsAcademician(dto.getIsAcademician());
|
||||||
|
payCommitteeMemberInfo.setIsAcademyOfSciences(dto.getIsAcademyOfSciences());
|
||||||
|
payCommitteeMemberInfo.setOtherLanguagesAndProficiencyLevels(dto.getOtherLanguagesAndProficiencyLevels());
|
||||||
return payCommitteeMemberInfo;
|
return payCommitteeMemberInfo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user