File tree 1 file changed +3
-3
lines changed
src/main/java/com/moplus/moplus_server/domain/problem/domain/problem
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,10 @@ public void deleteChildProblem(Long childProblemId) {
165
165
166
166
public boolean isValid () {
167
167
return problemCustomId != null
168
- && practiceTestId != null
169
168
&& problemType != null
170
169
&& title != null && !title .getTitle ().isEmpty ()
171
170
&& answer != null && !answer .getValue ().isEmpty ()
172
171
&& difficulty != null && difficulty .getDifficulty () != null
173
- && memo != null && !memo .isEmpty ()
174
172
&& mainProblemImageUrl != null && !mainProblemImageUrl .isEmpty ()
175
173
&& mainAnalysisImageUrl != null && !mainAnalysisImageUrl .isEmpty ()
176
174
&& mainHandwritingExplanationImageUrl != null && !mainHandwritingExplanationImageUrl .isEmpty ()
@@ -180,7 +178,9 @@ public boolean isValid() {
180
178
&& prescriptionImageUrls .stream ().allMatch (url -> url != null && !url .isEmpty ())
181
179
&& answerType != null
182
180
&& conceptTagIds != null && !conceptTagIds .isEmpty ()
183
- && recommendedTime != null ;
181
+ && recommendedTime != null
182
+ && recommendedTime .getMinute () != null && recommendedTime .getMinute () >= 0
183
+ && recommendedTime .getSecond () != null && recommendedTime .getSecond () >= 0 ;
184
184
}
185
185
186
186
public String getTitle () {
You can’t perform that action at this time.
0 commit comments