| | |
| | | @PostMapping("/base/pointMerchars/updateGoodsDetail") |
| | | public boolean updateGoodsDetail(@RequestBody Map<String, Object> map) { |
| | | try { |
| | | String name = (String) map.get("name"); |
| | | Integer pointMerchandiseId = (Integer) map.get("pointMerchandiseId"); |
| | | PointsMerchandise byId1 = pmdsService.getById(pointMerchandiseId); |
| | | if (Integer.valueOf(map.get("type").toString()) != 1) { |
| | | byId1.setStatus(2); |
| | | } |
| | | if(StringUtils.hasLength(name)){ |
| | | byId1.setName(name); |
| | | } |
| | | Integer quantityIssued = (Integer) map.get("quantityIssued"); |
| | | Integer pickUpQuantity = (Integer) map.get("pickUpQuantity"); |
| | | String redemptionInstructions = (String) map.get("redemptionInstructions"); |