修改数据
This commit is contained in:
@ -6,6 +6,11 @@ import com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.entity.CoscoEvaluateLeve
|
|||||||
|
|
||||||
public class LevelResponse {
|
public class LevelResponse {
|
||||||
|
|
||||||
|
// 私有构造函数,防止实例化
|
||||||
|
private LevelResponse() {
|
||||||
|
throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
||||||
|
}
|
||||||
|
|
||||||
public static BaseResponse<String> getStringByTaskLevel(CoscoEvaluateLevel coscoEvaluateLevel) {
|
public static BaseResponse<String> getStringByTaskLevel(CoscoEvaluateLevel coscoEvaluateLevel) {
|
||||||
if (coscoEvaluateLevel.getLevelName() == null) {
|
if (coscoEvaluateLevel.getLevelName() == null) {
|
||||||
return BaseResponse.fail(ErrorMessageConstant.LEVEL_NAME_CANNOT_BE_EMPTY);
|
return BaseResponse.fail(ErrorMessageConstant.LEVEL_NAME_CANNOT_BE_EMPTY);
|
||||||
|
Reference in New Issue
Block a user