|
|
@@ -1,7 +1,10 @@
|
|
|
package com.aoyang.tms.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.aoyang.common.result.Result;
|
|
|
+import com.aoyang.tms.common.ErrCodeEnum;
|
|
|
import com.aoyang.tms.entity.WorkOrder;
|
|
|
+import com.aoyang.tms.entity.WorkSpot;
|
|
|
import com.aoyang.tms.service.JxlsExportTestService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -46,4 +49,15 @@ public class JxlsExportTestController {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取行车日志导出类", notes = "必传参数:cycleId")
|
|
|
+ @PostMapping("/get_get_work_log_tpl_vo")
|
|
|
+ public Result getWorkLogTplVO(@RequestBody WorkOrder param) {
|
|
|
+ log.info("获取行车日志导出类,调用/tms/jxls_export/get_get_work_log_tpl_vo,参数:{}", JSON.toJSONString(param));
|
|
|
+ if (param == null || param.getCycleId() == null) {
|
|
|
+ return new Result<>(ErrCodeEnum.BAD_PARAM.getCode(), ErrCodeEnum.BAD_PARAM.getMessage());
|
|
|
+ }
|
|
|
+ return new Result<>(jxlsExportTestService.getWorkLogTplVO(param));
|
|
|
+ }
|
|
|
+
|
|
|
}
|