आईडी को ऑब्जेक्ट में इंजेक्ट किया गया है:
int num_of_record_inserted = fileAttachmentMapper.insertSelective(fileAttachment);
int id = fileAttachment.getId();
क्या selectKey आईडी को उस वस्तु में सेट करना है जिसे आप सम्मिलित कर रहे हैं, इस मामले में fileAttachment में इसकी संपत्ति में id और रिकॉर्ड डालने के बाद।