修改订单详情->未完成
This commit is contained in:
@ -5,9 +5,12 @@
|
|||||||
*/
|
*/
|
||||||
package co.yixiang.modules.order.service.dto;
|
package co.yixiang.modules.order.service.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author hupeng
|
* @author hupeng
|
||||||
@ -28,5 +31,9 @@ public class YxStoreOrderStatusDto implements Serializable {
|
|||||||
private String changeMessage;
|
private String changeMessage;
|
||||||
|
|
||||||
/** 操作时间 */
|
/** 操作时间 */
|
||||||
private Integer changeTime;
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(
|
||||||
|
pattern = "yyyy-MM-dd HH:mm:ss"
|
||||||
|
)
|
||||||
|
private Date changeTime;
|
||||||
}
|
}
|
||||||
|
@ -127,10 +127,10 @@ public class StoreOrderController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "根据订单id获取订单详情")
|
@ApiOperation(value = "根据订单id获取订单详情")
|
||||||
@GetMapping(value = "/getStoreOrderDetail")
|
@GetMapping(value = "/getStoreOrderDetail/{id}")
|
||||||
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT','YXEXPRESS_SELECT')")
|
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT','YXEXPRESS_SELECT')")
|
||||||
public ResponseEntity getYxStoreOrders(@PathVariable Long orderId) {
|
public ResponseEntity getYxStoreOrders(@PathVariable Long id) {
|
||||||
return new ResponseEntity<>(yxStoreOrderService.getOrderDetail(orderId), HttpStatus.OK);
|
return new ResponseEntity<>(yxStoreOrderService.getOrderDetail(id), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user