| | |
| | | return openService.kxlhCdwc(param); |
| | | } |
| | | |
| | | @PostMapping("/getUnfulfilledOrders") |
| | | @AppAuth(memo = "获取未完成订单统计信息") |
| | | public synchronized R getUnfulfilledOrders(@RequestHeader(required = false) String appkey, |
| | | HttpServletRequest request) { |
| | | auth(appkey, null, request); |
| | | return openService.getUnfulfilledOrders(); |
| | | } |
| | | |
| | | @PostMapping("/getCrnLaneWayInfo") |
| | | @AppAuth(memo = "获取堆垛机状态及所属巷道库位统计信息") |
| | | public synchronized R getCrnLaneWayInfo(@RequestHeader(required = false) String appkey, |
| | | HttpServletRequest request) { |
| | | auth(appkey, null, request); |
| | | return openService.getCrnLaneWayInfo(); |
| | | } |
| | | |
| | | |
| | | /*@PostMapping("/order/matSync/default/v1") |
| | | @AppAuth(memo = "商品信息同步接口") |
| | | public synchronized R syncMatInfo(@RequestHeader(required = false) String appkey, |
New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author pang.jiabao |
| | | * @description 堆垛机状态及所属巷道统计信息 |
| | | * @createDate 2025/4/27 13:37 |
| | | */ |
| | | @Data |
| | | public class CrnLaneWayInfoDto { |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 堆垛机状态 -1.离线, 0.维修, 1.手动,2.半自动,3.自动,100.其他 |
| | | */ |
| | | private Integer crnSts; |
| | | |
| | | /** |
| | | * 堆垛机是否异常 0.未异常,1.异常 |
| | | */ |
| | | private Integer crnErr; |
| | | |
| | | /** |
| | | * 巷道库位总数 |
| | | */ |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 在库数 |
| | | */ |
| | | private Integer stockQty; |
| | | |
| | | /** |
| | | * 空托盘数 |
| | | */ |
| | | private Integer emptyPalletQty; |
| | | |
| | | /** |
| | | * 空库位数 |
| | | */ |
| | | private Integer emptySlotQty; |
| | | |
| | | /** |
| | | * 其他状态库位数 |
| | | */ |
| | | private Integer otherQty; |
| | | |
| | | } |
New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @author pang.jiabao |
| | | * @description 未完成订单统计信息 |
| | | * @createDate 2025/4/27 10:39 |
| | | */ |
| | | @Data |
| | | public class OrderStatisticsDto { |
| | | |
| | | /** |
| | | * 订单号 |
| | | */ |
| | | private String orderNo; |
| | | |
| | | /** |
| | | * 订单明细总数 |
| | | */ |
| | | private Integer sum; |
| | | |
| | | /** |
| | | * 未处理订单明细数 |
| | | */ |
| | | private Integer toShipQuantity; |
| | | |
| | | /** |
| | | * 工作中订单明细数 |
| | | */ |
| | | private Integer workQuantity; |
| | | |
| | | /** |
| | | * 已完成订单明细数 |
| | | */ |
| | | private Integer completedQuantity; |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.asrs.entity.CrnLaneWayInfoDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface BasCrnpMapper extends BaseMapper<BasCrnp> { |
| | | |
| | | /** |
| | | * 获取堆垛机状态及所属巷道库位统计信息 |
| | | */ |
| | | List<CrnLaneWayInfoDto> getCrnLaneWayInfo(); |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.Order; |
| | | import com.zy.asrs.entity.OrderStatisticsDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | * 根据单据编号模糊查询单据编号 |
| | | */ |
| | | List<String> selectOrderNosByOrderNoLike(@Param("orderNo") String orderNo); |
| | | |
| | | /** |
| | | * 获取未完成订单统计信息 |
| | | */ |
| | | List<OrderStatisticsDto> getUnfulfilledOrders(); |
| | | } |
| | |
| | | R requestXhd(String barcode); |
| | | |
| | | /** |
| | | * 获取未完成订单统计信息 |
| | | */ |
| | | R getUnfulfilledOrders(); |
| | | |
| | | /** |
| | | * 获取堆垛机状态及所属巷道库位统计信息 |
| | | */ |
| | | R getCrnLaneWayInfo(); |
| | | |
| | | |
| | | /** |
| | | * 添加入库单 |
| | | */ |
| | | void pakinOrderCreate(OpenOrderPakinParam param); |
| | |
| | | import com.zy.asrs.entity.result.StockVo; |
| | | import com.zy.asrs.entity.result.ZphjcdgzVo; |
| | | import com.zy.asrs.entity.result.ZphjcdwcVo; |
| | | import com.zy.asrs.mapper.LocDetlMapper; |
| | | import com.zy.asrs.mapper.MatMapper; |
| | | import com.zy.asrs.mapper.TagMapper; |
| | | import com.zy.asrs.mapper.*; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.utils.MatUtils; |
| | | import com.zy.common.constant.MesConstant; |
| | |
| | | |
| | | @Resource |
| | | private ConfigMapper configMapper; |
| | | |
| | | @Resource |
| | | private OrderMapper orderMapper; |
| | | |
| | | @Resource |
| | | private BasCrnpMapper basCrnpMapper; |
| | | |
| | | @Override |
| | | @Transactional |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public R getUnfulfilledOrders() { |
| | | // 获取未完成订单统计信息 |
| | | List<OrderStatisticsDto> unfulfilledOrders = orderMapper.getUnfulfilledOrders(); |
| | | return R.ok(unfulfilledOrders); |
| | | } |
| | | |
| | | @Override |
| | | public R getCrnLaneWayInfo() { |
| | | List<CrnLaneWayInfoDto> crnLaneWayInfo = basCrnpMapper.getCrnLaneWayInfo(); |
| | | return R.ok(crnLaneWayInfo); |
| | | } |
| | | |
| | | /** |
| | | * 创建桁架理货出库的工作档 |
| | | */ |
| | |
| | | <result column="tank_qty1" property="tankQty1" /> |
| | | <result column="origin" property="origin" /> |
| | | </resultMap> |
| | | <select id="getCrnLaneWayInfo" resultType="com.zy.asrs.entity.CrnLaneWayInfoDto"> |
| | | select |
| | | crn.crn_no crnNo , |
| | | crn.crn_sts crnSts, |
| | | case when crn.crn_err != 0 then 1 else 0 end as crnErr, |
| | | count(loc.loc_no) count, |
| | | count(case when loc.loc_sts = 'F' then 1 end) stockQty, |
| | | count(case when loc.loc_sts = 'D' then 1 end) emptyPalletQty, |
| | | count(case when loc.loc_sts = 'O' then 1 end) emptySlotQty, |
| | | count(case when loc.loc_sts != 'O' and loc.loc_sts != 'D' and loc.loc_sts != 'F' then 1 end) otherQty |
| | | from |
| | | asr_bas_crnp crn |
| | | left join asr_loc_mast loc on |
| | | crn.crn_no = loc.crn_no |
| | | group by |
| | | crn.crn_no, |
| | | crn.crn_sts, |
| | | crn.crn_err |
| | | order by |
| | | crn.crn_no |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <select id="selectOrderNosByOrderNoLike" resultType="java.lang.String"> |
| | | select order_no from man_order where settle = 4 and order_no like '%' + #{orderNo} + '%' and doc_type in(21,23) |
| | | </select> |
| | | <select id="getUnfulfilledOrders" resultType="com.zy.asrs.entity.OrderStatisticsDto"> |
| | | select |
| | | mo.order_no orderNo, |
| | | count(mo.order_no) sum, |
| | | count(case when md.work_qty = 0 then 1 end) toShipQuantity, |
| | | count(case when md.work_qty != 0 and md.qty = 0 then 1 end) workQuantity, |
| | | count(case when md.anfme = md.qty then 1 end) completedQuantity |
| | | from |
| | | man_order mo |
| | | LEFT JOIN man_order_detl md on |
| | | mo.id = md.order_id |
| | | where |
| | | mo.doc_type = 21 |
| | | and mo.settle in(1, 2) |
| | | GROUP BY |
| | | mo.order_no |
| | | </select> |
| | | |
| | | </mapper> |