|
@ -140,7 +140,7 @@ public class IotDeviceQualityController extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "summary", value = "质检总结")
|
|
|
@RequestParam(value = "summary", required = true) String summary,
|
|
|
@ApiParam(name = "imgs", value = "质检图像")
|
|
|
@RequestParam(value = "imgs",required = false,defaultValue = "") List<String> imgs ) {
|
|
|
@RequestParam(value = "imgs",required = false,defaultValue = "") String imgs ) {
|
|
|
try {
|
|
|
iotDeviceQualityInspectionPlanService.completePlan(id,actualTime,summary,imgs);
|
|
|
return MixEnvelop.getSuccess(IotRequestMapping.Common.message_success_find);
|
|
@ -150,24 +150,24 @@ public class IotDeviceQualityController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = IotRequestMapping.DeviceQuality.completePlanByPurchaseId)
|
|
|
@ApiOperation(value = "完成质检计划(按采购id)", notes = "完成质检计划(按采购id)")
|
|
|
public MixEnvelop<IotDeviceQualityInspectionPlanVO, IotDeviceQualityInspectionPlanVO> completePlanByPurchaseId(@ApiParam(name = "actualTime", value = "完成时间", defaultValue = "")
|
|
|
@RequestParam(value = "actualTime", required = true) String actualTime,
|
|
|
@ApiParam(name = "purchaseId", value = "purchaseId")
|
|
|
@RequestParam(value = "purchaseId", required = true) String purchaseId,
|
|
|
@ApiParam(name = "summary", value = "质检总结")
|
|
|
@RequestParam(value = "summary", required = true) String summary,
|
|
|
@ApiParam(name = "imgs", value = "质检图像")
|
|
|
@RequestBody List<String> imgs ) {
|
|
|
try{
|
|
|
iotDeviceQualityInspectionPlanService.completePlanByPurchaseId(purchaseId,actualTime,summary,imgs);
|
|
|
return MixEnvelop.getSuccess(IotRequestMapping.Common.message_success_find);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return MixEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
// @PostMapping(value = IotRequestMapping.DeviceQuality.completePlanByPurchaseId)
|
|
|
// @ApiOperation(value = "完成质检计划(按采购id)", notes = "完成质检计划(按采购id)")
|
|
|
// public MixEnvelop<IotDeviceQualityInspectionPlanVO, IotDeviceQualityInspectionPlanVO> completePlanByPurchaseId(@ApiParam(name = "actualTime", value = "完成时间", defaultValue = "")
|
|
|
// @RequestParam(value = "actualTime", required = true) String actualTime,
|
|
|
// @ApiParam(name = "purchaseId", value = "purchaseId")
|
|
|
// @RequestParam(value = "purchaseId", required = true) String purchaseId,
|
|
|
// @ApiParam(name = "summary", value = "质检总结")
|
|
|
// @RequestParam(value = "summary", required = true) String summary,
|
|
|
// @ApiParam(name = "imgs", value = "质检图像")
|
|
|
// @RequestBody List<String> imgs ) {
|
|
|
// try{
|
|
|
// iotDeviceQualityInspectionPlanService.completePlanByPurchaseId(purchaseId,actualTime,summary,imgs);
|
|
|
// return MixEnvelop.getSuccess(IotRequestMapping.Common.message_success_find);
|
|
|
// } catch (Exception e) {
|
|
|
// e.printStackTrace();
|
|
|
// return MixEnvelop.getError(e.getMessage());
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
|