[update]订单字段修改

master
NH-LHG 2 years ago
parent 4dac647e7b
commit a1206ca269

@ -108,9 +108,7 @@ public class OrderController {
@ApiOperation(value="订单状态统计", notes="订单状态统计") @ApiOperation(value="订单状态统计", notes="订单状态统计")
@GetMapping(value = "/queryState") @GetMapping(value = "/queryState")
public Result<OrderStateVo> queryState(@RequestParam(name="userId",required=true) String userId){ public Result<OrderStateVo> queryState(@RequestParam(name="userId",required=true) String userId){
OrderStateVo orderStateVo = new OrderStateVo(); return Result.OK(orderService.queryState(userId));
orderStateVo = orderService.queryState(userId);
return Result.OK(orderStateVo);
} }
/** /**
* *

@ -6,7 +6,7 @@
<select id="queryState" resultType="org.jeecg.modules.demo.erp.vo.OrderStateVo"> <select id="queryState" resultType="org.jeecg.modules.demo.erp.vo.OrderStateVo">
SELECT SELECT
count(1) as totalNum, count(1) as totalNum,
sum(CASE state WHEN -1 THEN 1 ELSE 0 END ) AS unconfirmed, sum(CASE state WHEN 6 THEN 1 ELSE 0 END ) AS unconfirmed,
sum(CASE state WHEN 0 THEN 1 ELSE 0 END ) AS unpaid, sum(CASE state WHEN 0 THEN 1 ELSE 0 END ) AS unpaid,
sum(CASE state WHEN 1 THEN 1 ELSE 0 END ) AS notSend, sum(CASE state WHEN 1 THEN 1 ELSE 0 END ) AS notSend,
sum(CASE state WHEN 2 THEN 1 ELSE 0 END) as send, sum(CASE state WHEN 2 THEN 1 ELSE 0 END) as send,

@ -76,6 +76,12 @@ public class OrderPage {
@Excel(name = "物控员备注", width = 15) @Excel(name = "物控员备注", width = 15)
@ApiModelProperty(value = "物控员备注") @ApiModelProperty(value = "物控员备注")
private java.lang.String materialRemark; private java.lang.String materialRemark;
/**物控审核时间*/
@Excel(name = "物控审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "物控审核时间")
private java.util.Date materialTime;
/**审核人id*/ /**审核人id*/
@Excel(name = "审核人id", width = 15) @Excel(name = "审核人id", width = 15)
@ApiModelProperty(value = "审核人id") @ApiModelProperty(value = "审核人id")
@ -90,10 +96,6 @@ public class OrderPage {
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "审核时间") @ApiModelProperty(value = "审核时间")
private java.util.Date financeTime; private java.util.Date financeTime;
/**派单人Id*/
@Excel(name = "派单人Id", width = 15)
@ApiModelProperty(value = "派单人Id")
private java.lang.String dispacherId;
/**审核意见*/ /**审核意见*/
@Excel(name = "审核意见", width = 15) @Excel(name = "审核意见", width = 15)
@ApiModelProperty(value = "审核意见") @ApiModelProperty(value = "审核意见")
@ -102,6 +104,10 @@ public class OrderPage {
@Excel(name = "付款回执url", width = 15) @Excel(name = "付款回执url", width = 15)
@ApiModelProperty(value = "付款回执url") @ApiModelProperty(value = "付款回执url")
private java.lang.String financeUrl; private java.lang.String financeUrl;
/**派单人Id*/
@Excel(name = "派单人Id", width = 15)
@ApiModelProperty(value = "派单人Id")
private java.lang.String dispacherId;
/**派单人*/ /**派单人*/
@Excel(name = "派单人", width = 15) @Excel(name = "派单人", width = 15)
@ApiModelProperty(value = "派单人") @ApiModelProperty(value = "派单人")

Loading…
Cancel
Save