|
|
|
@ -46,7 +46,6 @@ public class GoodManageController {
|
|
|
|
|
throw new Exception("商户未知!");
|
|
|
|
|
}
|
|
|
|
|
return goodManage.getGoodDetail(goodId);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@PartnerMapping(value ="/{goodId}",method = RequestMethod.DELETE)
|
|
|
|
|
public void deleteGood(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject partner, @PathVariable String goodId) throws Exception {
|
|
|
|
@ -65,6 +64,14 @@ public class GoodManageController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/{goodId}/inventory_display", method = RequestMethod.PUT)
|
|
|
|
|
public void updateDisplayInventory(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject partner, @PathVariable String goodId, @RequestBody JSONObject params) throws Exception {
|
|
|
|
|
if (partner == null) {
|
|
|
|
|
throw new Exception("商户未知!");
|
|
|
|
|
}
|
|
|
|
|
goodManage.updateDisplayInventory(partner, goodId,params.getBooleanValue("inventory_display"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PartnerMapping(value = "/goodOrders", method = RequestMethod.GET)
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JSONObject listGoodOrders(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject partner, GoodOrderQuery goodOrderQuery) {
|
|
|
|
|