@@ -189,25 +189,25 @@ else if (dto.getDescriptionPath() != null)
189189 product .setDescriptionPath (descriptionFilePath );
190190 product .setPlot (dto .getPlot ());
191191
192- if (product .getAny () < 0 || product .getMale () < 0 || product .getFemale () < 0 )
192+ if (dto .getAny () < 0 || dto .getMale () < 0 || dto .getFemale () < 0 )
193193 throw new RuntimeException ("등장인물이 0명 이상이어야 함" );
194194
195- if (product .getStageComment () == null )
195+ if (dto .getStageComment () == null )
196196 throw new RuntimeException ("무대 설명이 작성되어야 함" );
197197
198- if (product .getRunningTime () <= 0 )
198+ if (dto .getRunningTime () <= 0 )
199199 throw new RuntimeException ("공연 시간이 0분 이상이어야 함" );
200200
201- if (product .getScene () < 0 || product .getAct () < 0 )
201+ if (dto .getScene () < 0 || dto .getAct () < 0 )
202202 throw new RuntimeException ("장과 막이 작성되어야 함" );
203203
204- product .setAny (product .getAny ());
205- product .setMale (product .getMale ());
206- product .setFemale (product .getFemale ());
207- product .setStageComment (product .getStageComment ());
208- product .setRunningTime (product .getRunningTime ());
209- product .setScene (product .getScene ());
210- product .setAct (product .getAct ());
204+ product .setAny (dto .getAny ());
205+ product .setMale (dto .getMale ());
206+ product .setFemale (dto .getFemale ());
207+ product .setStageComment (dto .getStageComment ());
208+ product .setRunningTime (dto .getRunningTime ());
209+ product .setScene (dto .getScene ());
210+ product .setAct (dto .getAct ());
211211
212212 productRepo .save (product );
213213 } catch (Exception e ) {
0 commit comments