技术监督模板、文件(批量)上传
This commit is contained in:
@@ -59,10 +59,18 @@ public class ThsSuperviseController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
@ApiOperation("更新技术监督")
|
||||
@ApiImplicitParam(name = "superviceRunLogVo", value = "更新技术监督参数", required = true)
|
||||
@PostMapping("/updateSupervice")
|
||||
public HttpResult updateSupervice(@RequestBody SuperviceRunLogVo superviceRunLogVo) {
|
||||
return thsOverRunLogService.updateSupervise(superviceRunLogVo);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("技术监督详情")
|
||||
@ApiImplicitParam(name = "supIndex", value = "技术监督id", required = true)
|
||||
@PostMapping("/superviseDetail")
|
||||
public HttpResult superviseDetail(@RequestParam String supIndex) {
|
||||
public HttpResult<SuperviceRunLogVo> superviseDetail(@RequestParam String supIndex) {
|
||||
SuperviceRunLogVo result = thsOverRunLogService.superviseDetail(supIndex);
|
||||
String methodDescribe = getMethodDescribe("superviseDetail");
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
@@ -88,9 +96,9 @@ public class ThsSuperviseController extends BaseController {
|
||||
@PostMapping("/uploadSuperviseTicket")
|
||||
public HttpResult uploadSuperviseTicket(@ApiParam(value = "文件", required = true)
|
||||
@RequestPart(value = "files") MultipartFile[] files,
|
||||
@ApiParam(name = "id", value = "越限监测点记录id", required = true) @RequestParam("id") String id,
|
||||
@ApiParam(name = "id", value = "越限监测点记录id") @RequestParam(value = "id", required = false) String id,
|
||||
@ApiParam(name = "supIndex", value = "技术监督id", required = true) @RequestParam("supIndex") String supIndex,
|
||||
@ApiParam(name = "ticketType", value = "上传单据类型", required = true) @RequestParam("ticketType") String ticketType,
|
||||
@ApiParam(name = "ticketType", value = "上传单据类型:1 反馈单,2 测试报告,4 整改通知反馈单", required = true) @RequestParam("ticketType") Integer ticketType,
|
||||
HttpServletResponse response) {
|
||||
thsSuperviseService.uploadSuperviseTicket(id, supIndex, ticketType, files, response);
|
||||
String methodDescribe = getMethodDescribe("uploadSuperviseTicket");
|
||||
@@ -122,14 +130,15 @@ public class ThsSuperviseController extends BaseController {
|
||||
@ApiOperation("下载单据模板")
|
||||
@PostMapping("/dowloadAlarmFormwork")
|
||||
public HttpResult dowloadAlarmFormwork(@ApiParam(name = "type", value = "类型(0:预警;1:告警)", required = true) @RequestParam("type") Integer type,
|
||||
@ApiParam(name = "supIndex", value = "技术监督id", required = true) @RequestParam("supIndex") String supIndex,
|
||||
@ApiParam(name = "formworkType", value = "0:预/告警单模板;1:整改通知反馈单模板", required = true) @RequestParam("formworkType") Integer formworkType,
|
||||
HttpServletResponse response) {
|
||||
String httpPath = thsSuperviseService.dowloadAlarmFormwork(type, formworkType, response);
|
||||
String httpPath = thsSuperviseService.dowloadAlarmFormwork(type, formworkType, supIndex, response);
|
||||
String methodDescribe = getMethodDescribe("uploadAlarmFormwork");
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, httpPath, methodDescribe);
|
||||
}
|
||||
|
||||
@ApiOperation("监督首页")
|
||||
@ApiOperation("技术监督首页")
|
||||
@ApiImplicitParam(name = "superviseDto", value = "查询技术监督列表参数", required = true)
|
||||
@PostMapping("/superviseIndex")
|
||||
public HttpResult<Page<ThsSuperviseVo>> superviseIndex(@RequestBody SuperviseDto superviseDto) {
|
||||
|
||||
Reference in New Issue
Block a user