no message
This commit is contained in:
@ -82,6 +82,11 @@ public class ItemController {
|
|||||||
return itemService.stringRentItem(request);
|
return itemService.stringRentItem(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping(value = "/rent/modify")
|
||||||
|
public OpenResponse<String> modifyCreate(@RequestBody String request) {
|
||||||
|
return itemService.modifyItem(request);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "商品详情查询")
|
@ApiOperation(value = "商品详情查询")
|
||||||
@ApiOperationSupport(order = 7)
|
@ApiOperationSupport(order = 7)
|
||||||
@GetMapping(value = "/query")
|
@GetMapping(value = "/query")
|
||||||
|
|||||||
@ -31,6 +31,8 @@ public interface ItemService {
|
|||||||
OpenResponse<String> createRentItem(RentRuleItem param);
|
OpenResponse<String> createRentItem(RentRuleItem param);
|
||||||
OpenResponse<String> createStringRentItem(String param);
|
OpenResponse<String> createStringRentItem(String param);
|
||||||
OpenResponse<String> stringRentItem(String param);
|
OpenResponse<String> stringRentItem(String param);
|
||||||
|
OpenResponse<String> modifyItem(String param);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据业务属性写死自提履约信息
|
* 根据业务属性写死自提履约信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -284,6 +284,37 @@ public class ItemServiceImpl implements ItemService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OpenResponse<String> modifyItem(String param) {
|
||||||
|
return AlipayApiTemplate.execute(new AlipayApiCallback<String, AlipayOpenAppItemModifyResponse >() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AlipayOpenAppItemModifyResponse process() throws AlipayApiException {
|
||||||
|
|
||||||
|
AlipayOpenAppItemModifyModel itemCreateRequest = JSON.parseObject(param, AlipayOpenAppItemModifyModel.class);
|
||||||
|
|
||||||
|
// 构造请求参数以调用接口
|
||||||
|
AlipayOpenAppItemModifyRequest request = new AlipayOpenAppItemModifyRequest();
|
||||||
|
AlipayOpenAppItemModifyModel model = itemCreateRequest;
|
||||||
|
|
||||||
|
|
||||||
|
logger.info("属性列表:" + JSON.toJSONString(model));
|
||||||
|
return alipaySdkUtil.execute(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getData(AlipayOpenAppItemModifyResponse response) {
|
||||||
|
//rentRuleItemMapper.updateItemIdByOutItemId(response.getOutItemId(), response.getItemId());
|
||||||
|
return response.getItemId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getApiName() {
|
||||||
|
return "alipay.open.app.item.modify";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public OpenResponse<String> syncDeliveryInfo() {
|
public OpenResponse<String> syncDeliveryInfo() {
|
||||||
return AlipayApiTemplate.execute(new AlipayApiCallback<String, AlipayOpenAppDeliveryInfoSyncResponse>() {
|
return AlipayApiTemplate.execute(new AlipayApiCallback<String, AlipayOpenAppDeliveryInfoSyncResponse>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user