|
|
@ -45,6 +45,7 @@ import java.io.InputStream; |
|
|
|
import java.net.URLEncoder; |
|
|
|
import java.nio.file.Path; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
|
|
|
@ -329,4 +330,24 @@ public class IcNatController implements ResultDataResolver { |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 清楚核酸检测记录(只保留近n天) |
|
|
|
* @author wxz |
|
|
|
* @date 2022/11/28 下午5:36 |
|
|
|
* * @param map |
|
|
|
* * @return Result |
|
|
|
*/ |
|
|
|
@PostMapping("clearNatRecords") |
|
|
|
public Result clearNatRecords(@RequestBody Map<String, Object> map) { |
|
|
|
// 保留天数
|
|
|
|
Integer retentionDays = (Integer) map.get("retentionDays"); |
|
|
|
|
|
|
|
// 如果是-1直接不做任何操作
|
|
|
|
if (-1 != retentionDays) { |
|
|
|
icNucleinService.clearNatRecords(retentionDays); |
|
|
|
} |
|
|
|
|
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|