package com.web.pda.lyt.lytPda.controller;
|
|
import com.app.base.control.WebController;
|
import com.app.base.data.ApiResponseResult;
|
import com.web.pda.lyt.lytPda.service.PQCPolepieceService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.web.bind.annotation.*;
|
|
@Api(description = "PQC极片露空时间录入")
|
@CrossOrigin
|
@ControllerAdvice
|
//@RestController
|
@Controller
|
@RequestMapping(value = "pqc_pole_piece")
|
public class PQCPolepieceController extends WebController {
|
|
@Autowired
|
private PQCPolepieceService pqcPolepieceService;
|
|
@ApiOperation(value = "获取列表列", notes = "获取列表列")
|
@RequestMapping(value = "/getItemList", method = RequestMethod.POST, produces = "application/json")
|
@ResponseBody
|
public ApiResponseResult getItemList(
|
@RequestParam(value = "factory") String factory,
|
@RequestParam(value = "company") String company,
|
@RequestParam(value = "keyword") String keyword,
|
@RequestParam(value = "mid") String mid,
|
@RequestParam(value = "size") int size,
|
@RequestParam(value = "page") int page) {
|
try {
|
return pqcPolepieceService.getItemList(factory, company,keyword,mid,size,page);
|
} catch (Exception e) {
|
e.printStackTrace();
|
return ApiResponseResult.failure(e.toString());
|
}
|
}
|
|
@ApiOperation(value = "保存数据", notes = "保存数据")
|
@RequestMapping(value = "/saveData", method = RequestMethod.POST, produces = "application/json")
|
@ResponseBody
|
public ApiResponseResult saveData(
|
@RequestParam(value = "factory") String factory,
|
@RequestParam(value = "company") String company,
|
@RequestParam(value = "userNo") String userNo,
|
@RequestParam(value = "mid") String mid,
|
@RequestParam(value = "endTime") String endTime,
|
@RequestParam(value = "foven") String foven) {
|
try {
|
return pqcPolepieceService.saveData(factory, company,userNo,mid,endTime,foven);
|
} catch (Exception e) {
|
e.printStackTrace();
|
return ApiResponseResult.failure(e.toString());
|
}
|
}
|
|
@ApiOperation(value = "执行操作", notes = "执行操作")
|
@RequestMapping(value = "/sumbitData", method = RequestMethod.POST, produces = "application/json")
|
@ResponseBody
|
public ApiResponseResult sumbitData(
|
@RequestParam(value = "factory") String factory,
|
@RequestParam(value = "company") String company,
|
@RequestParam(value = "mid") String mid,
|
@RequestParam(value = "userNo") String userNo,
|
@RequestParam(value = "operaType") String operaType,
|
@RequestParam(value = "remark") String remark,
|
@RequestParam(value = "tableName") String tableName) {
|
try {
|
return pqcPolepieceService.sumbitData(factory, company,mid,userNo,operaType,remark,tableName);
|
} catch (Exception e) {
|
e.printStackTrace();
|
return ApiResponseResult.failure(e.toString());
|
}
|
}
|
|
|
}
|