| | |
| | | throw new TipsException("导出标识错误,导出记录不存在!"); |
| | | } |
| | | Map<String, Object> sqlMap = SimpleTool.beanToMap(fileExUpdateDto); |
| | | sqlMap.put("completeTime",DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss")); |
| | | SqlSentence sqlSentence = new SqlSentence(); |
| | | sqlSentence.sqlUpdate(" status = #{m.status},fileName = #{m.fileName},fileUrl = #{m.fileUrl},errMsg = #{m.errMsg} WHERE id = #{m.id} ",sqlMap); |
| | | sqlSentence.sqlUpdate(" status = #{m.status},fileName = #{m.fileName},fileUrl = #{m.fileUrl},errMsg = #{m.errMsg},completeTime = #{m.completeTime} WHERE id = #{m.id} ",sqlMap); |
| | | if (fileImportExportMapper.updateWhere(sqlSentence) != 1){ |
| | | throw new TipsException("修改失败!"); |
| | | } |