id被注入到对象中:
int num_of_record_inserted = fileAttachmentMapper.insertSelective(fileAttachment);int id = fileAttachment.getId();
要做的
selectKey是在要插入的对象中设置id,在这种情况下,
fileAttachment在其属性中设置ID,并插入
idAFTER记录。

id被注入到对象中:
int num_of_record_inserted = fileAttachmentMapper.insertSelective(fileAttachment);int id = fileAttachment.getId();
要做的
selectKey是在要插入的对象中设置id,在这种情况下,
fileAttachment在其属性中设置ID,并插入
idAFTER记录。