| | |
| | | @ApiModelProperty(value = "库位名称") |
| | | private String warehouseLocationCode; |
| | | |
| | | @ApiModelProperty(value = "日期") |
| | | private String date; |
| | | |
| | | @ApiModelProperty(hidden = true) |
| | | private LocalDateTime startDate; |
| | | |
| | |
| | | @ApiModelProperty(value = "库位名称") |
| | | private String warehouseLocationCode; |
| | | |
| | | @ApiModelProperty(value = "日期") |
| | | private String date; |
| | | |
| | | @ApiModelProperty(hidden = true) |
| | | private LocalDateTime startDate; |
| | | |
| | |
| | | private String flowerLevelStr; |
| | | |
| | | @ApiModelProperty(value = "订单商品状态") |
| | | @DictTrans(target = "statusStr", codeType = "CHECK_OPERATE") |
| | | @DictTrans(target = "statusStr", codeType = "ORDER_ITEM_STATUS") |
| | | private String status; |
| | | private String statusStr; |
| | | |
| | |
| | | @ApiModelProperty(value = "供应商总价") |
| | | private BigDecimal totalAmount; |
| | | |
| | | @ApiModelProperty(value = "未完成质检订单数量") |
| | | private Integer uncheckedCount; |
| | | } |
| | |
| | | ); |
| | | if (items != null && items.size() > 0) { |
| | | for (OrderItem i : items) { |
| | | i.setStatus(Constants.CHECK_OPERATE.ok.name()); |
| | | i.setStatus(Constants.ORDER_ITEM_STATUS.ok.name()); |
| | | i.setCheckTime(LocalDateTime.now()); |
| | | orderItemMapper.updateById(i); |
| | | } |
| | |
| | | @ApiOperation(value = "查询集货站供应商配送列表") |
| | | public ResponseEntity<ReturnDataDTO<Page<DeliveryOrderList4CheckDTO>>> selectSupplierDoList4Check(Page page |
| | | , DeliveryOrderStationQueryDTO dto){ |
| | | LocalDate localDate = deliveryOrderService.parseLocalDate(dto.getDate()); |
| | | if(localDate != null){ |
| | | LocalDateTime end = localDate.atTime(17, 0, 0); |
| | | LocalDateTime begin = end.plusDays(-1); |
| | | dto.setStartDate(begin); |
| | | dto.setEndDate(end); |
| | | } |
| | | |
| | | return returnData(R.SUCCESS.getCode(), deliveryOrderService.selectSupplierDoList4Check(page, dto)); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "查询供应商配送单列表") |
| | | public ResponseEntity<ReturnDataDTO<Page<DeliveryOrder4CheckDTO>>> selectSupplierDoInfo4Check(Page page |
| | | , DeliveryOrderInfoSpQueryDTO dto){ |
| | | LocalDate localDate = deliveryOrderService.parseLocalDate(dto.getDate()); |
| | | if(localDate != null){ |
| | | LocalDateTime end = localDate.atTime(17, 0, 0); |
| | | LocalDateTime begin = end.plusDays(-1); |
| | | dto.setStartDate(begin); |
| | | dto.setEndDate(end); |
| | | } |
| | | |
| | | return returnData(R.SUCCESS.getCode(), deliveryOrderService.selectSupplierDoInfo4Check(page, dto)); |
| | | } |
| | | |
| | |
| | | </select> |
| | | |
| | | <select id="selectSupplierDoList4Check" resultType="com.mzl.flower.dto.response.payment.DeliveryOrderList4CheckDTO"> |
| | | SELECT tt.id, tt.supplierName, tt.supplierTel, tt.stationName, sum(tt.num) totalNum, sum(tt.amount) totalAmount |
| | | SELECT tt.id, tt.supplierName, tt.supplierTel, tt.stationName, sum(tt.num) totalNum |
| | | , sum(tt.amount) totalAmount, sum(tt.uncheckedCount) uncheckedCount |
| | | from ( |
| | | select s.id, s.name supplierName, s.contact_tel supplierTel, st.name stationName |
| | | , (select sum(num) from t_order_item oi |
| | | where oi.supplier_id = q.supplier_id and oi.order_id = q.order_id) num |
| | | , (select sum(oi.supplier_price * oi.num) from t_order_item oi |
| | | , (select sum(oi.supplier_price * oi.num) from t_order_item oi |
| | | where oi.supplier_id = q.supplier_id and oi.order_id = q.order_id) amount |
| | | , (select count(1) from t_delivery_order dor |
| | | where dor.id = q.id and dor.status != 'CHECKED') uncheckedCount |
| | | from t_supplier_info s |
| | | join t_station st on st.id = s.station_id |
| | | join t_delivery_order q on s.id = q.supplier_id |