刘光辉
14 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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));
    }
}