修改订单详情->未完成
This commit is contained in:
@ -5,9 +5,12 @@
|
||||
*/
|
||||
package co.yixiang.modules.order.service.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author hupeng
|
||||
@ -28,5 +31,9 @@ public class YxStoreOrderStatusDto implements Serializable {
|
||||
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获取订单详情")
|
||||
@GetMapping(value = "/getStoreOrderDetail")
|
||||
@GetMapping(value = "/getStoreOrderDetail/{id}")
|
||||
@PreAuthorize("hasAnyRole('admin','YXSTOREORDER_ALL','YXSTOREORDER_SELECT','YXEXPRESS_SELECT')")
|
||||
public ResponseEntity getYxStoreOrders(@PathVariable Long orderId) {
|
||||
return new ResponseEntity<>(yxStoreOrderService.getOrderDetail(orderId), HttpStatus.OK);
|
||||
public ResponseEntity getYxStoreOrders(@PathVariable Long id) {
|
||||
return new ResponseEntity<>(yxStoreOrderService.getOrderDetail(id), HttpStatus.OK);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user