首先测试接口发送方式。。。。。注意发送结构!
后端接收@RequestPart
@SaCheckPermission("system:records:add")
@Log(title = "【用药纪录】", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
public R<Void> add( @RequestPart MedicationRecordsBo bo, MultipartFile file) {
return toAjax(iMedicationRecordsService.insertByBo(bo,file));
}