| | |
| | | @NotNull |
| | | private BladeFile getBladeFile(@RequestParam MultipartFile file) throws IOException { |
| | | String fileName = file.getOriginalFilename(); |
| | | BladeFile bladeFile = ossBuilder.template().putFile(fileName, file.getInputStream()); |
| | | BladeFile bladeFile = ossBuilder.template("estack").putFile(fileName, file.getInputStream()); |
| | | Long attachId = buildAttach(fileName, null, file.getSize(), bladeFile); |
| | | bladeFile.setAttachId(attachId); |
| | | return bladeFile; |
| | |
| | | and ( |
| | | 1=2 |
| | | <if test="param2.droneName != null and param2.droneName != ''"> |
| | | or dar.drone_name like CONCAT('%', #{param2.droneName}, '%') |
| | | or dar.drone_name::text like CONCAT('%', #{param2.droneName}::text, '%') |
| | | </if> |
| | | <if test="param2.droneSerialNo != null and param2.droneSerialNo != ''"> |
| | | or dar.drone_serial_no like CONCAT('%', #{param2.droneSerialNo}, '%') |
| | | or dar.drone_serial_no::text like CONCAT('%', #{param2.droneSerialNo}::text, '%') |
| | | </if> |
| | | ) |
| | | </if> |
| | |
| | | </if> |
| | | |
| | | <if test="param2.areaName != null and param2.areaName != ''"> |
| | | and dar.area_name like CONCAT('%', #{param2.areaName}, '%') |
| | | and dar.area_name::text like CONCAT('%', #{param2.areaName}::text, '%') |
| | | </if> |
| | | </where> |
| | | order by favorited desc, dar.alarm_time desc |