Browse Source

update

tags/v0
zhaohe 7 months ago
parent
commit
726b15416b
  1. 14
      src/main/java/a8k/app/controler/api/v1/app/data/ReactionResultControler.java
  2. 3
      src/main/java/a8k/app/dao/db/type/appsetting/settingenum/LISSerialBaudrateType.java

14
src/main/java/a8k/app/controler/api/v1/app/data/ReactionResultControler.java

@ -46,23 +46,29 @@ public class ReactionResultControler {
return ApiRet.success();
}
public static class IDList {
public List<Integer> ids;
}
@PostMapping("/printfRecords")
public ApiRet<Void> printfRecord(List<Integer> id) {
for (Integer i : id) {
public ApiRet<Void> printfRecord(IDList ids) {
for (Integer i : ids.ids) {
reactionRecordMgrService.printfRecord(i);
}
return ApiRet.success();
}
@PostMapping("/exportRecordByLIS")
public ApiRet<Void> exportRecordByLIS(Integer id) {
reactionRecordMgrService.exportRecordByLIS(id);
return ApiRet.success();
}
@PostMapping("/exportRecordsByLIS")
public ApiRet<Void> exportRecordByLIS(List<Integer> id) {
for (Integer i : id) {
public ApiRet<Void> exportRecordByLIS(IDList ids) {
for (Integer i : ids.ids) {
reactionRecordMgrService.exportRecordByLIS(i);
}
return ApiRet.success();

3
src/main/java/a8k/app/dao/db/type/appsetting/settingenum/LISSerialBaudrateType.java

@ -3,4 +3,7 @@ package a8k.app.dao.db.type.appsetting.settingenum;
public enum LISSerialBaudrateType {
B9600,
B115200,
B12800,
B19200,
;
}
Loading…
Cancel
Save