Commit 62fb2631 authored by hezhen's avatar hezhen

123

parent cc354fc8
......@@ -14,6 +14,10 @@ import org.springframework.util.StringUtils;
public class UserMemberSaveDTO {
@ApiModelProperty(value = "会员导入Id")
private Integer id;
@ApiModelProperty(value = "手机号")
private String phone;
......
......@@ -99,7 +99,14 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper,
if (log.isDebugEnabled()) {
log.debug("当前组装的数据:【{}】", memberExport);
}
Integer id=userMemberSaveDTO.getId() == null ? 0 : userMemberSaveDTO.getId();
if (id == 0){
mapper.insertSelective(memberExport);
}else {
memberExport.setId(id);
mapper.updateByPrimaryKeySelective(memberExport);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment