公共元素优化
parent
61b0b14749
commit
931b0d3646
|
@ -36,6 +36,8 @@ import com.muyu.common.core.web.page.TableDataInfo;
|
|||
@RestController
|
||||
@RequestMapping("/attribute")
|
||||
public class AttributeInfoController extends BaseController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private AttributeInfoService attributeInfoService;
|
||||
|
||||
|
@ -83,7 +85,8 @@ public class AttributeInfoController extends BaseController {
|
|||
@PostMapping
|
||||
@ApiOperation("新增商品属性")
|
||||
public Result<String> add(@RequestBody AttributeInfoSaveReq attributeInfoSaveReq) {
|
||||
return toAjax(attributeInfoService.save(AttributeInfo.saveBuild(attributeInfoSaveReq)));
|
||||
AttributeInfo attributeInfo = AttributeInfo.saveBuild(attributeInfoSaveReq);
|
||||
return attributeInfoService.save(attributeInfo) ? success(attributeInfo.getId()) : error();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,10 +40,6 @@ public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMap
|
|||
queryWrapper.eq(AsAttributeGroup::getAttributeId, asAttributeGroup.getAttributeId());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return list(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue