收银后台跟进1.9

This commit is contained in:
liuyingfang
2024-01-09 09:07:41 +08:00
parent 8f849b20a6
commit acffdcac01
58 changed files with 1410 additions and 119 deletions

View File

@@ -0,0 +1,24 @@
package me.zhengjie.exception;
import lombok.Getter;
import org.springframework.http.HttpStatus;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.springframework.http.HttpStatus.OK;
/**
* @author lyf
*/
@Getter
public class NewBadRequestException extends RuntimeException{
private Integer status = OK.value();
public NewBadRequestException(String msg){
super(msg);
}
public NewBadRequestException(HttpStatus status, String msg){
super(msg);
this.status = status.value();
}
}

View File

@@ -0,0 +1,16 @@
package me.zhengjie.utils;
import java.util.concurrent.CompletableFuture;
/**
* 线程相关
*/
public class Threads {
/**
* 并行执行
* @param cfs
*/
public static void call(CompletableFuture<?>... cfs){
CompletableFuture.allOf(cfs);
}
}