dev798
parent
f707761ef3
commit
9eb681ad67
|
@ -93,6 +93,7 @@ public class MallProductInfoController extends BaseController
|
|||
@PutMapping
|
||||
public Result edit(@RequestBody MallProductInfoForm mallProductInfo)
|
||||
{
|
||||
mallProductInfo.setStep("1");
|
||||
return toAjax(mallProductInfoService.updateMallProductInfo(mallProductInfo));
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,11 @@ public class MallProductInfoServiceImpl implements MallProductInfoService
|
|||
public int updateMallProductInfo(MallProductInfoForm mallProductInfo)
|
||||
{
|
||||
String step = mallProductInfo.getStep();
|
||||
log.info("参数{}",step);
|
||||
if (step == null) {
|
||||
// 在这里处理 step 为 null 的情况,可以抛出异常或者采取其他措施
|
||||
log.error("Step 参数为空");
|
||||
return 0; // 或者抛出异常
|
||||
}
|
||||
switch (step) {
|
||||
case ProductConstant.STEP_ONE:
|
||||
Long productInfoId = mallProductInfo.getId();
|
||||
|
|
Loading…
Reference in New Issue