| | |
| | | /**删除,返回删除数量*/ |
| | | int deleteById(Object object); |
| | | /**删除,返回删除数量*/ |
| | | int deleteByDeductionSingleId(@Param("comparePhotoRecordId") String comparePhotoRecordId); |
| | | int deleteByComparePhotoRecordId(@Param("comparePhotoRecordId") String comparePhotoRecordId); |
| | | } |
| | |
| | | delete from compare_photo_record_pictures WHERE id = #{value} |
| | | </delete> |
| | | |
| | | <delete id="deleteByDeductionSingleId" > |
| | | <delete id="deleteByComparePhotoRecordId" > |
| | | delete from compare_photo_record_pictures WHERE comparePhotoRecordId = #{comparePhotoRecordId} |
| | | </delete> |
| | | |
| | |
| | | </delete> |
| | | |
| | | <delete id="deleteByDeductionSingleId" > |
| | | delete from deduction_join WHERE deductionProjectId = #{deductionProjectId} AND deductionSingleId = #{deductionSingleId} |
| | | delete from deduction_sign WHERE deductionProjectId = #{deductionProjectId} AND deductionSingleId = #{deductionSingleId} |
| | | </delete> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | // 编辑数据 |
| | | if(type == BaseEntity.NO){ |
| | | comparePhotoRecordPicturesMapper.deleteByDeductionSingleId(comparePhotoRecord.getId()); |
| | | comparePhotoRecordPicturesMapper.deleteByComparePhotoRecordId(comparePhotoRecord.getId()); |
| | | } |
| | | comparePhotoRecordPicturesList.forEach(comparePhotoRecordPictures -> { |
| | | comparePhotoRecordPictures.setComparePhotoRecordId(comparePhotoRecord.getId()); |