package jnpf.limsController;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
import jnpf.limsService.LimsBusinessReminderService;
|
import jnpf.util.R;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.Map;
|
|
@Tag(name = "LIMS站内消息", description = "非流程业务提醒扫描")
|
@RestController
|
@RequestMapping("/lims/message/reminder")
|
@RequiredArgsConstructor
|
public class LimsMessageReminderController {
|
private final LimsBusinessReminderService businessReminderService;
|
|
@Operation(summary = "手动扫描设备计量和留样观察提醒")
|
@PostMapping("/run-now")
|
public R<Map<String, Map<String, Integer>>> runNow(
|
@RequestParam(value = "dry", defaultValue = "true") boolean dry) {
|
return R.success(businessReminderService.scanAndRemind(dry));
|
}
|
}
|