修改订单详情->未完成

This commit is contained in:
xuwenbo
2020-09-10 00:21:42 +08:00
parent 9fcd93840e
commit 450af253b1
2 changed files with 11 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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);
} }