波形下载接口开发
This commit is contained in:
@@ -14,6 +14,7 @@ import com.njcn.csdevice.pojo.po.PortableOfflLog;
|
||||
import com.njcn.csdevice.service.IPortableOfflLogService;
|
||||
import com.njcn.csdevice.utils.ExcelStyleUtil;
|
||||
import com.njcn.csdevice.param.UploadDataParam;
|
||||
import com.njcn.minioss.config.MinIossProperties;
|
||||
import com.njcn.oss.utils.FileStorageUtil;
|
||||
import com.njcn.poi.excel.ExcelUtil;
|
||||
import com.njcn.poi.util.PoiUtil;
|
||||
@@ -56,7 +57,7 @@ public class PortableOfflLogController extends BaseController {
|
||||
private final DicDataFeignClient dicDataFeignClient;
|
||||
|
||||
private final FileStorageUtil fileStorageUtil;
|
||||
|
||||
private final MinIossProperties minIossProperties;
|
||||
@ResponseBody
|
||||
@ApiOperation("导出设备基础数据模板")
|
||||
@GetMapping(value = "getExcelTemplate")
|
||||
@@ -120,7 +121,7 @@ public class PortableOfflLogController extends BaseController {
|
||||
|
||||
List<MultipartFile> excelreport = null;
|
||||
try {
|
||||
excelreport = fileStorageUtil.getAllFile("excelreport", path);
|
||||
excelreport = fileStorageUtil.getAllFile(minIossProperties.getBucket(), path);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
</if>
|
||||
exists
|
||||
(select 1 from wl_record_test_data wd where wd.test_item_id = #{wlRecordPageParam.id} and wd.data_id = a.id)
|
||||
order by a.start_time asc
|
||||
</select>
|
||||
|
||||
<select id="getAll" resultType="com.njcn.csdevice.pojo.vo.CsLedgerVO">
|
||||
|
||||
Reference in New Issue
Block a user