mongodb文件上传
This commit is contained in:
parent
b3afa3cfd7
commit
4572ffd995
|
|
@ -85,10 +85,10 @@ public class PersonMgeServiceImpl implements IPersonMgeService {
|
|||
// 验证身份证是否重复、手机号
|
||||
List<Map<String, String>> list = mapper.personIsExist(vo);
|
||||
if (idCardIsExist(list, vo, 1)) {
|
||||
return AjaxResult.error("身份证号码" + vo.getIdCard() + "已存在");
|
||||
return AjaxResult.error("身份证号码已存在");
|
||||
}
|
||||
if (idCardIsExist(list, vo, 2)) {
|
||||
return AjaxResult.error("电话" + vo.getPhone() + "已存在");
|
||||
return AjaxResult.error("电话已存在");
|
||||
}
|
||||
// 校验文件、上传文件
|
||||
if (file == null) {
|
||||
|
|
@ -130,10 +130,10 @@ public class PersonMgeServiceImpl implements IPersonMgeService {
|
|||
// 验证身份证是否重复、手机号
|
||||
List<Map<String, String>> list = mapper.personIsExist(vo);
|
||||
if (idCardIsExist(list, vo, 1)) {
|
||||
return AjaxResult.error("身份证号码" + vo.getIdCard() + "已存在");
|
||||
return AjaxResult.error("身份证号码已存在");
|
||||
}
|
||||
if (idCardIsExist(list, vo, 2)) {
|
||||
return AjaxResult.error("电话" + vo.getPhone() + "已存在");
|
||||
return AjaxResult.error("电话已存在");
|
||||
}
|
||||
// 校验文件、上传文件
|
||||
if (file == null && StringUtils.isNotBlank(vo.getDelFiles())) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="fileName != null and fileName!=''">file_name,</if>
|
||||
<if test="fileSuffix != null and fileSuffix!=''">file_suffix,</if>
|
||||
<if test="filePath != null and filePath!=''">file_path,</if>
|
||||
<if test="fileType != null and fileType!=''">file_type,</if>
|
||||
<if test="fileType != null">file_type,</if>
|
||||
<if test="sourceId != null and sourceId!=''">source_id,</if>
|
||||
<if test="sourceType != null and sourceType!=''">source_type,</if>
|
||||
create_time,
|
||||
|
|
@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="fileName != null and fileName!=''">#{fileName},</if>
|
||||
<if test="fileSuffix != null and fileSuffix!=''">#{fileSuffix},</if>
|
||||
<if test="filePath != null and filePath!=''">#{filePath},</if>
|
||||
<if test="fileType != null and fileType!=''">#{filePath},</if>
|
||||
<if test="fileType != null">#{fileType},</if>
|
||||
<if test="sourceId != null and sourceId!=''">#{sourceId},</if>
|
||||
<if test="sourceType != null and sourceType!=''">#{sourceType},</if>
|
||||
#{createTime},
|
||||
|
|
|
|||
Loading…
Reference in New Issue