自动化立体仓库 - WMS系统
13
zhang
2025-05-26 b9d80dfdb1cef36c9edb8bf6b2fdf9e6e1708d2b
13
29个文件已修改
1个文件已添加
571 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/MatController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MobileController.java 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OrderController.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OrderDetlPakinController.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocDetl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/Order.java 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderDetl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderDetlPakin.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderDetlPakout.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderPakin.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/OrderPakout.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakin.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WaitPakinLog.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/FullStoreParam.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/MatParam.java 196 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/OpenOrderPakinParam.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/OpenOrderPakoutParam.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/OrderDomainParam.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/PickMatParam.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/StockOutParam.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/model/LocDto.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/nc/entity/NccCgCgdhdWms.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/nc/task/handler/PlanOrderHandler.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MatController.java
@@ -13,7 +13,7 @@
import com.zy.asrs.entity.Mat;
import com.zy.asrs.entity.MatPrint;
import com.zy.asrs.entity.OrderDetl;
import com.zy.asrs.entity.param.EmptyPlateOutParam;
import com.zy.asrs.entity.param.MatParam;
import com.zy.asrs.entity.result.KeyValueVo;
import com.zy.asrs.service.MatService;
import com.zy.asrs.utils.MatExcelListener;
@@ -22,7 +22,10 @@
import com.zy.common.entity.MatExcel;
import com.zy.common.utils.BarcodeUtils;
import com.zy.common.utils.QrCode;
import com.zy.common.utils.Synchro;
import com.zy.common.web.BaseController;
import com.zy.nc.entity.NccJcQilibcBarcodeflowWms;
import com.zy.nc.service.NccJcQilibcBarcodeflowWmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
@@ -40,6 +43,8 @@
    @Autowired
    private MatService matService;
    @Autowired
    private SnowflakeIdWorker snowflakeIdWorker;
@@ -71,6 +76,7 @@
        return R.ok().add(mats);
    }
    @RequestMapping(value = "/mat/{id}/auth")
    @ManagerAuth
    public R get(@PathVariable("id") String id) {
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -15,7 +15,11 @@
import com.zy.asrs.service.*;
import com.zy.asrs.utils.OrderInAndOutUtil;
import com.zy.common.model.WrkDto;
import com.zy.common.model.enumUtils.OrderEnumVo;
import com.zy.common.utils.Synchro;
import com.zy.common.web.BaseController;
import com.zy.nc.entity.NccJcQilibcBarcodeflowWms;
import com.zy.nc.service.NccJcQilibcBarcodeflowWmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
@@ -55,6 +59,13 @@
    private ManLocDetlMapper manLocDetlMapper;
    @Autowired
    private WrkDetlLogService wrkDetlLogService;
    @Autowired
    private MatService matService;
    @Autowired
    private NccJcQilibcBarcodeflowWmsService nccJcQilibcBarcodeflowWmsService;
    @Autowired
    private OrderPakinService orderPakinService;
    @Resource
    private StaDescService staDescService;
@@ -129,6 +140,7 @@
        mobileService.onSale(combParam);
        return R.ok("上架成功");
    }
    // 商品下架
    @RequestMapping("/mat/offSale/auth")
    //@ManagerAuth
@@ -136,7 +148,6 @@
        mobileService.offSale(offSaleParam);
        return R.ok("下架成功");
    }
    // 组托 ----------------------------------------------------------------------------------------------------
@@ -171,14 +182,14 @@
        if (Cools.isEmpty(orderNo)){
            orderNo=null;
        }
//        List<Order> orders = orderService.selectorderNoL(orderNo);
        List<Order> orders = OrderInAndOutUtil.selectOrderNoL(null, orderNo);
        if (Cools.isEmpty(orders)){
        List<OrderPakin> orderPakins = orderPakinService.selectorderNoL(orderNo);
        //List<Order> orders = OrderInAndOutUtil.selectOrderNoL(OrderEnumVo.PAKIN.getCode(), orderNo);
        if (Cools.isEmpty(orderPakins)) {
            return R.ok();
        }
        LinkedList<CombParam> combParams = new LinkedList<>();
        if (!Cools.isEmpty(orders)){
            for (Order order:orders){
        if (!Cools.isEmpty(orderPakins)) {
            for (OrderPakin order : orderPakins) {
                CombParam combParam=new CombParam();
                if (order == null) {
                    continue;
@@ -209,7 +220,28 @@
                combParams.add(combParam);
            }
        }
        return R.ok().add(combParams);
        return R.ok().add(combParams.get(0));
    }
    @RequestMapping(value = "/mat/search/auth")
    @ManagerAuth
    public R pdaSearchV2(@RequestParam String matnr) {
        EntityWrapper<NccJcQilibcBarcodeflowWms> wrapper = new EntityWrapper<>();
        wrapper.eq("VBARCODE", matnr).orderBy("ts", false);
        NccJcQilibcBarcodeflowWms nccJcQilibcBarcodeflowWms = nccJcQilibcBarcodeflowWmsService.selectOne(wrapper);
        if (null == nccJcQilibcBarcodeflowWms) {
            return R.error("未找到此条码");
        } else {
            if (!nccJcQilibcBarcodeflowWms.getInfla().equals("出库")) {
                return R.error("该条码最后一次不是出库");
            }
        }
        Mat mat = matService.selectByMatnr(nccJcQilibcBarcodeflowWms.getWlbm());
        MatParam matParam = new MatParam();
        Synchro.Copy(mat, matParam);
        matParam.setBatch(nccJcQilibcBarcodeflowWms.getVbatchcode());
        matParam.setAnfme(12D);
        return R.ok().add(matParam);
    }
    @RequestMapping("/comb/auth")
src/main/java/com/zy/asrs/controller/OrderController.java
@@ -125,8 +125,8 @@
                param.getOrderNo(),    // 订单编号
                DateUtils.convert(now),    // 单据日期
                param.getDocType(),    // 单据类型
                param.getItemId(),    // 项目编号
                param.getItemName(),    //
                null,    // 项目编号
                null,    //
                null,    // 调拨项目编号
                null,    // 初始票据号
                null,    // 票据号
@@ -206,8 +206,6 @@
            order.setDocType(param.getDocType());
            order.setUpdateBy(userId);
            order.setUpdateTime(now);
            order.setItemId(param.getItemId());
            order.setItemName(param.getItemName());
            if (!orderService.updateById(order)) {
                throw new CoolException("修改订单类型失败");
            }
@@ -222,11 +220,11 @@
        List<DetlDto> list = new ArrayList<>();
        for (OrderDetl orderDetl : param.getOrderDetlList()) {
            DetlDto dto = new DetlDto(orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getBrand(),
                    orderDetl.getStandby1(), orderDetl.getStandby2(), orderDetl.getStandby3(),
                    param.getItemId(), orderDetl.getStandby2(), orderDetl.getStandby3(),
                    orderDetl.getBoxType1(), orderDetl.getBoxType2(), orderDetl.getBoxType3());
            if (DetlDto.has(list, dto)) {
                OrderDetl item = orderDetlService.selectItem(order.getId(), orderDetl.getMatnr(), orderDetl.getBatch(), orderDetl.getBrand(),
                        orderDetl.getStandby1(), orderDetl.getStandby2(), orderDetl.getStandby3(),
                        param.getItemId(), orderDetl.getStandby2(), orderDetl.getStandby3(),
                        orderDetl.getBoxType1(), orderDetl.getBoxType2(), orderDetl.getBoxType3());
                item.setAnfme(item.getAnfme() + orderDetl.getAnfme());
                if (!orderDetlService.updateById(item)) {
@@ -242,6 +240,7 @@
                orderDetl.setUpdateTime(now);
                orderDetl.setStatus(1);
                orderDetl.setQty(0.0D);
                orderDetl.setStandby1(param.getItemId());
                if (!orderDetlService.insert(orderDetl)) {
                    throw new CoolException("保存订单明细档失败");
                }
src/main/java/com/zy/asrs/controller/OrderDetlPakinController.java
@@ -51,6 +51,24 @@
        return R.ok(orderDetlPage);
    }
    @RequestMapping(value = "/orderDetl/pda/list/auth")
    @ManagerAuth
    public R listpda(@RequestParam(defaultValue = "1")Integer curr,
                  @RequestParam(defaultValue = "10")Integer limit,
                  @RequestParam(required = false)String orderByField,
                  @RequestParam(required = false)String orderByType,
                  @RequestParam Map<String, Object> param){
        EntityWrapper<OrderDetlPakin> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
            wrapper.orderBy("create_time", false);
        }
        wrapper.eq("status", 1);
        Page<OrderDetlPakin> orderDetlPage = orderDetlService.selectPage(new Page<>(curr, limit), wrapper);
        return R.ok(orderDetlPage);
    }
    @RequestMapping(value = "/orderDetl/pakout/list/auth")
    @ManagerAuth
    public R pakoutList(@RequestParam(defaultValue = "1")Integer curr,
src/main/java/com/zy/asrs/controller/OrderDetlPakoutController.java
@@ -43,7 +43,29 @@
        EntityWrapper<OrderDetlPakout> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} else {
        if (!Cools.isEmpty(orderByField)) {
            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
        } else {
            wrapper.orderBy("create_time", false);
        }
        wrapper.eq("status", 1);
        Page<OrderDetlPakout> orderDetlPage = orderDetlService.selectPage(new Page<>(curr, limit), wrapper);
        return R.ok(orderDetlPage);
    }
    @RequestMapping(value = "/orderDetl/pda/list/auth")
    @ManagerAuth
    public R listpda(@RequestParam(defaultValue = "1") Integer curr,
                     @RequestParam(defaultValue = "10") Integer limit,
                     @RequestParam(required = false) String orderByField,
                     @RequestParam(required = false) String orderByType,
                     @RequestParam Map<String, Object> param) {
        EntityWrapper<OrderDetlPakout> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
        if (!Cools.isEmpty(orderByField)) {
            wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));
        } else {
            wrapper.orderBy("create_time", false);
        }
        wrapper.eq("status", 1);
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -191,21 +191,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    /**
     * 是否冻结
src/main/java/com/zy/asrs/entity/Order.java
@@ -60,25 +60,27 @@
    private Long docType;
    /**
     * 项目编号
     * 出库仓库id
     */
    @ApiModelProperty(value= "项目编号")
    @ApiModelProperty(value = "出库仓库id")
    @TableField("item_id")
    private Long itemId;
    private String itemId;
    @ApiModelProperty(value= "")
    @ApiModelProperty(value = "出库仓库名称")
    @TableField("item_name")
    private String itemName;
    /**
     * 调拨项目编号
     *
     */
    @ApiModelProperty(value= "调拨项目编号")
    @ApiModelProperty(value = "ru库仓库id")
    @TableField("allot_item_id")
    private Long allotItemId;
    private String allotItemId;
    /**
     * 初始票据号
     * 初始票据号,入库仓库id
     */
    @ApiModelProperty(value= "初始票据号")
    @TableField("def_number")
@@ -282,9 +284,10 @@
    @TableField("pakin_pakout_status")
    private Integer pakinPakoutStatus;
    public Order() {}
    public Order() {
    }
    public Order(String uuid,String orderNo,String orderTime,Long docType,Long itemId,String itemName,Long allotItemId,String defNumber,String number,Long cstmr,String cstmrName,String tel,String operMemb,Double totalFee,Double discount,Double discountFee,Double otherFee,Double actFee,Integer payType,String salesman,Integer accountDay,Integer postFeeType,Double postFee,Date payTime,Date sendTime,String shipName,String shipCode,Long settle,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
    public Order(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
        this.uuid = uuid;
        this.orderNo = orderNo;
        this.orderTime = orderTime;
@@ -321,7 +324,7 @@
        this.memo = memo;
    }
    public Order(String uuid,String orderNo,String orderTime,Long docType,Long itemId,String itemName,Long allotItemId,String defNumber,String number,Long cstmr,String cstmrName,String tel,String operMemb,Double totalFee,Double discount,Double discountFee,Double otherFee,Double actFee,Integer payType,String salesman,Integer accountDay,Integer postFeeType,Double postFee,Date payTime,Date sendTime,String shipName,String shipCode,Long settle,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer pakinPakoutStatus) {
    public Order(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo, Integer pakinPakoutStatus) {
        this.uuid = uuid;
        this.orderNo = orderNo;
        this.orderTime = orderTime;
@@ -445,7 +448,9 @@
    }
    public String getPayType$(){
        if (null == this.payType){ return null; }
        if (null == this.payType) {
            return null;
        }
        switch (this.payType){
            case 1:
                return "现金";
@@ -468,7 +473,9 @@
    }
    public String getPostFeeType$(){
        if (null == this.postFeeType){ return null; }
        if (null == this.postFeeType) {
            return null;
        }
        switch (this.postFeeType){
            case 1:
                return "在线支付";
@@ -503,7 +510,9 @@
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        if (null == this.status) {
            return null;
        }
        switch (this.status){
            case 1:
                return "正常";
@@ -515,7 +524,9 @@
    }
    public String getMoveStatus$(){
        if (null == this.moveStatus){ return null; }
        if (null == this.moveStatus) {
            return null;
        }
        switch (this.moveStatus){
            case 2:
                return "已备货";
src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -337,21 +337,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    @ApiModelProperty(value= "备注")
    @TableField("remark")
src/main/java/com/zy/asrs/entity/OrderDetlPakin.java
@@ -336,21 +336,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public OrderDetlPakin() {}
src/main/java/com/zy/asrs/entity/OrderDetlPakout.java
@@ -336,21 +336,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public OrderDetlPakout() {}
src/main/java/com/zy/asrs/entity/OrderPakin.java
@@ -64,7 +64,7 @@
     */
    @ApiModelProperty(value= "项目编号")
    @TableField("item_id")
    private Long itemId;
    private String itemId;
    @ApiModelProperty(value= "")
    @TableField("item_name")
@@ -75,7 +75,9 @@
     */
    @ApiModelProperty(value= "调拨项目编号")
    @TableField("allot_item_id")
    private Long allotItemId;
    private String allotItemId;
    /**
     * 初始票据号
@@ -278,7 +280,7 @@
    public OrderPakin() {}
    public OrderPakin(String uuid, String orderNo, String orderTime, Long docType, Long itemId, String itemName, Long allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
    public OrderPakin(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
        this.uuid = uuid;
        this.orderNo = orderNo;
        this.orderTime = orderTime;
src/main/java/com/zy/asrs/entity/OrderPakout.java
@@ -64,7 +64,7 @@
     */
    @ApiModelProperty(value= "项目编号")
    @TableField("item_id")
    private Long itemId;
    private String itemId;
    @ApiModelProperty(value= "")
    @TableField("item_name")
@@ -75,7 +75,9 @@
     */
    @ApiModelProperty(value= "调拨项目编号")
    @TableField("allot_item_id")
    private Long allotItemId;
    private String allotItemId;
    /**
     * 初始票据号
@@ -278,7 +280,7 @@
    public OrderPakout() {}
    public OrderPakout(String uuid, String orderNo, String orderTime, Long docType, Long itemId, String itemName, Long allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
    public OrderPakout(String uuid, String orderNo, String orderTime, Long docType, String itemId, String itemName, String allotItemId, String defNumber, String number, Long cstmr, String cstmrName, String tel, String operMemb, Double totalFee, Double discount, Double discountFee, Double otherFee, Double actFee, Integer payType, String salesman, Integer accountDay, Integer postFeeType, Double postFee, Date payTime, Date sendTime, String shipName, String shipCode, Long settle, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo) {
        this.uuid = uuid;
        this.orderNo = orderNo;
        this.orderTime = orderTime;
src/main/java/com/zy/asrs/entity/WaitPakin.java
@@ -179,21 +179,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
src/main/java/com/zy/asrs/entity/WaitPakinLog.java
@@ -178,21 +178,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -293,21 +293,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -293,21 +293,21 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
src/main/java/com/zy/asrs/entity/param/FullStoreParam.java
@@ -32,9 +32,9 @@
        private String standby1 = "";
        private String standby2 = "";
        private String standby3 = "";
        private String boxType1 = "1";
        private String boxType2 = "1";
        private String boxType3 = "1";
        private String boxType1 = "";
        private String boxType2 = "";
        private String boxType3 = "";
        // 物料数量
        private Double anfme;
src/main/java/com/zy/asrs/entity/param/MatParam.java
New file
@@ -0,0 +1,196 @@
package com.zy.asrs.entity.param;
import lombok.Data;
import java.io.Serializable;
/**
 * 商品同步接口,参数
 * Created on 2022/6/22
 */
@Data
public class MatParam implements Serializable {
    /**
     * 商品编号
     */
    private double anfme;
    /**
     * 商品编号
     */
    private String batch;
    /**
     * 商品编号
     */
    private String matnr;
    /**
     * 商品名称
     */
    private String maktx;
    /**
     * 商品分类
     */
    private String groupCode;
    /**
     * 分类名称
     */
    private String groupName;
    /**
     * 别名
     */
    private String name;
    /**
     * 规格
     */
    private String specs;
    /**
     * 型号
     */
    private String model;
    /**
     * 颜色
     */
    private String color;
    /**
     * 品牌
     */
    private String brand;
    /**
     * 单位
     */
    private String unit;
    /**
     * 单价
     */
    private Double price;
    /**
     * sku
     */
    private String sku;
    /**
     * 单位量
     */
    private Double units;
    /**
     * 条码
     */
    private String barcode;
    /**
     * 产地
     */
    private String origin;
    /**
     * 厂家
     */
    private String manu;
    /**
     * 生产日期
     */
    private String manuDate;
    /**
     * 品项数
     */
    private String itemNum;
    /**
     * 安全库存量
     */
    private Double safeQty;
    /**
     * 重量
     */
    private Double weight;
    /**
     * 长度
     */
    private Double length;
    /**
     * 体积
     */
    private Double volume;
    /**
     * 三方编码
     */
    private String threeCode;
    /**
     * 供应商
     */
    private String supp;
    /**
     * 供应商编码
     */
    private String suppCode;
    /**
     * 是否批次 1: 是  0: 否
     */
    private Integer beBatch;
    /**
     * 保质期
     */
    private String deadTime;
    /**
     * 预警天数
     */
    private Integer deadWarn;
    /**
     * 来源 1: 制造  2: 采购  3: 外协
     */
    private Integer source;
    /**
     * 要求检验 1: 是  0: 否
     */
    private Integer inspect;
    /**
     * 危险品 1: 是  0: 否
     */
    private Integer danger;
    /**
     * 状态 1: 正常  0: 禁用
     */
    private Integer status;
    /**
     * 添加人员
     */
    private String createBy;
    /**
     * 添加时间
     */
    private String createTime;
    /**
     * 备注
     */
    private String memo;
}
src/main/java/com/zy/asrs/entity/param/OpenOrderPakinParam.java
@@ -1,6 +1,8 @@
package com.zy.asrs.entity.param;
import com.baomidou.mybatisplus.annotations.TableField;
import com.zy.common.model.DetlDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@@ -17,9 +19,13 @@
    private String orderTime;
    private Long itemId;
    private String itemName;
//    private String itemId;
//
//    private String itemName;
//
//    private String allotItemId;
//
//    private String allotItemName;
    private List<DetlDto> orderDetails;
src/main/java/com/zy/asrs/entity/param/OpenOrderPakoutParam.java
@@ -21,9 +21,13 @@
    private String orderTime;
    private Long itemId;
    private String itemName;
//    private String itemId;
//
//    private String itemName;
//
//    private String allotItemId;
//
//    private String allotItemName;
    private List<DetlDto> orderDetails;
src/main/java/com/zy/asrs/entity/param/OrderDomainParam.java
@@ -19,7 +19,7 @@
    private String orderNo;
    private Long itemId;
    private String itemId;
    private String itemName;
src/main/java/com/zy/asrs/entity/param/PickMatParam.java
@@ -44,20 +44,20 @@
     */
    @ApiModelProperty(value= "备用1")
    @TableField("box_type1")
    private String boxType1 = "1";
    private String boxType1 = "";
    /**
     * 备用2
     */
    @ApiModelProperty(value= "备用2")
    @TableField("box_type2")
    private String boxType2 = "1";
    private String boxType2 = "";
    /**
     * 备用3
     */
    @ApiModelProperty(value= "备用3")
    @TableField("box_type3")
    private String boxType3 = "1";
    private String boxType3 = "";
}
src/main/java/com/zy/asrs/entity/param/StockOutParam.java
@@ -58,21 +58,21 @@
         */
        @ApiModelProperty(value= "备用1")
        @TableField("box_type1")
        private String boxType1 = "1";
        private String boxType1 = "";
        /**
         * 备用2
         */
        @ApiModelProperty(value= "备用2")
        @TableField("box_type2")
        private String boxType2 = "1";
        private String boxType2 = "";
        /**
         * 备用3
         */
        @ApiModelProperty(value= "备用3")
        @TableField("box_type3")
        private String boxType3 = "1";
        private String boxType3 = "";
    }
src/main/java/com/zy/asrs/entity/result/FindLocNoAttributeVo.java
@@ -14,9 +14,9 @@
    private String standby1 = "";
    private String standby2 = "";
    private String standby3 = "";
    private String boxType1 = "1";
    private String boxType2 = "1";
    private String boxType3 = "1";
    private String boxType1 = "";
    private String boxType2 = "";
    private String boxType3 = "";
    public FindLocNoAttributeVo() {
    }
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -546,9 +546,9 @@
        if (Cools.isEmpty(param.getBarcode(), param.getCombMats())) {
            throw new CoolException(BaseRes.PARAM);
        }
        if (param.getCombMats().size() > 1) {
            throw new CoolException("请提取一个商品,或者刷新重新组托!");
        }
//        if (param.getCombMats().size() > 1) {
//            throw new CoolException("请提取一个商品,或者刷新重新组托!");
//        }
        // 判断是否有相同条码的数据
        if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>().
                eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) {
@@ -558,9 +558,9 @@
        if (param.getBarcode().length() != 8) {
            throw new CoolException("条码长度不是8位===>>" + param.getBarcode());
        }
        if (param.getCombMats().size() > 1) {
            throw new CoolException("不允许混料===>>" + param.getBarcode());
        }
//        if (param.getCombMats().size() > 1) {
//            throw new CoolException("不允许混料===>>" + param.getBarcode());
//        }
        int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet", param.getBarcode()));
        int countWrk = wrkDetlService.selectCount(new EntityWrapper<WrkDetl>().eq("zpallet", param.getBarcode()));
@@ -620,20 +620,14 @@
            List<DetlDto> detlDtos = new ArrayList<>();
            param.getCombMats().forEach(elem -> {
                // TODO 不考虑代码效率,因为旧代码bug少
                if (!Cools.isEmpty(elem.getVbarcode())) {
                    NccJcQilibcBarcodeflowWms vbarcode1 = barcodeflowWmsService.selectOne(new EntityWrapper<NccJcQilibcBarcodeflowWms>().eq("vbarcode", elem.getVbarcode()));
                    elem.setBatch(vbarcode1.getVbatchcode());
                    elem.setMatnr(vbarcode1.getWlbm());
                    elem.setAnfme(vbarcode1.getNastnum().doubleValue());
                }
                // 订单明细数量校验
//                OrderDetl orderDetl = orderDetlService.selectItem(order.getId(), elem.getMatnr(), elem.getBatch());
                OrderDetl orderDetl = OrderInAndOutUtil.selectItem(Boolean.TRUE, order.getId(), elem.getMatnr(), elem.getBatch(), elem.getBrand(), elem.getStandby1(), elem.getStandby2(), elem.getStandby3(),
                        elem.getBoxType1(), elem.getBoxType2(), elem.getBoxType3());
                if (elem.getAnfme() > orderDetl.getEnableQty()) {
                    throw new CoolException(orderDetl.getMatnr() + "入库数量不合法");
                    throw new CoolException(orderDetl.getMatnr() + "入库数量不合法,已经超过单据入库数量");
                }
                // 修改订单作业数量
//                if (!orderDetlService.increaseWorkQty(order.getId(), elem.getMatnr(), elem.getBatch(), elem.getAnfme())) {
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -97,6 +97,7 @@
                null,   // 备注
                1
        );
        if (!orderService.insert(order)) {
            throw new CoolException("生成单据主档失败,请联系管理员");
        }
@@ -128,6 +129,9 @@
            orderDetl.setStandby1(detlDto.getStandby1());
            orderDetl.setStandby2(detlDto.getStandby2());
            orderDetl.setStandby3(detlDto.getStandby3());
            orderDetl.setBoxType1(detlDto.getBoxType1());
            orderDetl.setBoxType2(detlDto.getBoxType2());
            orderDetl.setBoxType3(detlDto.getBoxType3());
            orderDetl.setOrderId(order.getId());
            orderDetl.setOrderNo(order.getOrderNo());
            orderDetl.setCreateBy(9527L);
@@ -215,7 +219,8 @@
        // 如果单据不存在则添加;如果单据存在,作业中无法修改,反之则修改单据
        if (!Cools.isEmpty(order)) {
            if (order.getSettle() > 1L) {
                throw new CoolException(param.getOrderNo() + "正在出库,无法修改单据");
                //TODO
                //throw new CoolException(param.getOrderNo() + "正在出库,无法修改单据");
            }
            orderService.remove(order.getId());
        }
@@ -292,6 +297,9 @@
            orderDetl.setStandby1(detlDto.getStandby1());
            orderDetl.setStandby2(detlDto.getStandby2());
            orderDetl.setStandby3(detlDto.getStandby3());
            orderDetl.setBoxType1(detlDto.getBoxType1());
            orderDetl.setBoxType2(detlDto.getBoxType2());
            orderDetl.setBoxType3(detlDto.getBoxType3());
            orderDetl.setOrderId(order.getId());
            orderDetl.setOrderNo(order.getOrderNo());
            orderDetl.setCreateBy(9527L);
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -100,6 +100,17 @@
                    }
                    break;
                case "转库-出库":
                    if (step == 1) {
                        process2 = processGENERALOUT2(orderDetls);
                        List<Object> zkck2 = new ArrayList<>();
                        zkck2.add(process2);
                        //发送请求
                        response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, generalout, JSONObject.toJSONString(zkck2));
                        if (!Cools.isEmpty(response) && response.isSuccess()) {
                            log.info("转库-出库2response:{}", response);
                            step = 10;
                        }
                    } else {
                    process1 = processZKCK(order, orderDetls);
                    List<Object> zkck1 = new ArrayList<>();
                    zkck1.add(process1);
@@ -107,8 +118,6 @@
                    response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, whstrans, JSONObject.toJSONString(zkck1));
                    if (!Cools.isEmpty(response) && response.isSuccess()) {
                        log.info("转库-出库1response:{}", response);
                        step = 1;
                    }
                    process2 = processGENERALOUT2(orderDetls);
                    List<Object> zkck2 = new ArrayList<>();
@@ -118,6 +127,10 @@
                    if (!Cools.isEmpty(response) && response.isSuccess()) {
                        log.info("转库-出库2response:{}", response);
                        step = 10;
                            }
                        } else {
                            step = 1;
                        }
                    }
                    break;
                case "集团内部调拨":
@@ -139,7 +152,7 @@
                }
            } else if (step != 0) {
                // 修改订单状态 做标记
                if (!orderService.updateSettleStep(order.getId(), 6L, null, step)) {
                if (!orderService.updateSettleStep(order.getId(), 4L, null, step)) {
                    throw new CoolException("服务器内部错误,请联系管理员");
                }
            }
@@ -247,9 +260,8 @@
        Map<String, Object> data = new HashMap<String, Object>();
        WhsTransBillHeaderVO whsTransBillHeaderVO = new WhsTransBillHeaderVO();
        whsTransBillHeaderVO.setPk_org("FYT");
        whsTransBillHeaderVO.setCwarehouseid(order.getItemId() + "");
        whsTransBillHeaderVO.setCotherbizid(order.getAllotItemId() + "");
        whsTransBillHeaderVO.setCtrantypeid("4K-Cxx-01");
        whsTransBillHeaderVO.setCwarehouseid(order.getItemId());
        whsTransBillHeaderVO.setCtrantypeid("4K-01");
        WhsTransBillBodyVO whsTransBillBodyVO = null;
        List<WhsTransBillBodyVO> whsTransBillBodyVOS = new ArrayList<>();
        for (OrderDetl orderDetl : orderDetls) {
@@ -258,9 +270,10 @@
            //if (!Cools.isEmpty(remark)) {
            //NccSaleXsfhmxWms nccSaleXsfhmxWms = JSONObject.parseObject(remark, NccSaleXsfhmxWms.class);
            whsTransBillBodyVO.setNnum(orderDetl.getQty());
            whsTransBillBodyVO.setVfree10(orderDetl.getBatch());
            whsTransBillBodyVO.setCmaterialoid(orderDetl.getMatnr());
            whsTransBillBodyVO.setVbatchcode(orderDetl.getBatch());
            //}
            whsTransBillHeaderVO.setCotherbizid(orderDetl.getStandby1());
            whsTransBillBodyVOS.add(whsTransBillBodyVO);
        }
        data.put("WhsTransBillHeaderVO", whsTransBillHeaderVO);
src/main/java/com/zy/common/model/LocDto.java
@@ -24,9 +24,9 @@
    private String standby2 = "";
    private String standby3 = "";
    private String boxType1 = "1";
    private String boxType2 = "1";
    private String boxType3 = "1";
    private String boxType1 = "";
    private String boxType2 = "";
    private String boxType3 = "";
    private String orderNo;
src/main/java/com/zy/nc/entity/NccCgCgdhdWms.java
@@ -1,9 +1,9 @@
package com.zy.nc.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.math.BigDecimal;
import lombok.Data;
/**
@@ -152,11 +152,6 @@
    /**
     *
     */
    private String  vbatchcode;
    /**
     *
     */
    private BigDecimal ydsl;
    /**
@@ -183,10 +178,32 @@
     * 
     */
    private Integer bdr;
    /**
     *
     */
    private String wmsMemo;
    /**
     *
     */
    private String vbatchcode;
    /**
     *
     */
    private String ckbm;
    /**
     *
     */
    private String ckmc;
    /**
     *
     */
    private BigDecimal ntaxmny;
    @Override
    public boolean equals(Object that) {
        if (this == that) {
@@ -231,7 +248,12 @@
            && (this.getBts() == null ? other.getBts() == null : this.getBts().equals(other.getBts()))
            && (this.getWmsFlag() == null ? other.getWmsFlag() == null : this.getWmsFlag().equals(other.getWmsFlag()))
            && (this.getHdr() == null ? other.getHdr() == null : this.getHdr().equals(other.getHdr()))
            && (this.getBdr() == null ? other.getBdr() == null : this.getBdr().equals(other.getBdr()));
            && (this.getBdr() == null ? other.getBdr() == null : this.getBdr().equals(other.getBdr()))
            && (this.getWmsMemo() == null ? other.getWmsMemo() == null : this.getWmsMemo().equals(other.getWmsMemo()))
            && (this.getVbatchcode() == null ? other.getVbatchcode() == null : this.getVbatchcode().equals(other.getVbatchcode()))
            && (this.getCkbm() == null ? other.getCkbm() == null : this.getCkbm().equals(other.getCkbm()))
            && (this.getCkmc() == null ? other.getCkmc() == null : this.getCkmc().equals(other.getCkmc()))
            && (this.getNtaxmny() == null ? other.getNtaxmny() == null : this.getNtaxmny().equals(other.getNtaxmny()));
    }
    @Override
@@ -271,6 +293,11 @@
        result = prime * result + ((getWmsFlag() == null) ? 0 : getWmsFlag().hashCode());
        result = prime * result + ((getHdr() == null) ? 0 : getHdr().hashCode());
        result = prime * result + ((getBdr() == null) ? 0 : getBdr().hashCode());
        result = prime * result + ((getWmsMemo() == null) ? 0 : getWmsMemo().hashCode());
        result = prime * result + ((getVbatchcode() == null) ? 0 : getVbatchcode().hashCode());
        result = prime * result + ((getCkbm() == null) ? 0 : getCkbm().hashCode());
        result = prime * result + ((getCkmc() == null) ? 0 : getCkmc().hashCode());
        result = prime * result + ((getNtaxmny() == null) ? 0 : getNtaxmny().hashCode());
        return result;
    }
@@ -313,6 +340,11 @@
        sb.append(", wmsFlag=").append(wmsFlag);
        sb.append(", hdr=").append(hdr);
        sb.append(", bdr=").append(bdr);
        sb.append(", wmsMemo=").append(wmsMemo);
        sb.append(", vbatchcode=").append(vbatchcode);
        sb.append(", ckbm=").append(ckbm);
        sb.append(", ckmc=").append(ckmc);
        sb.append(", ntaxmny=").append(ntaxmny);
        sb.append("]");
        return sb.toString();
    }
src/main/java/com/zy/nc/task/handler/PlanOrderHandler.java
@@ -113,6 +113,7 @@
                detlDto.setBatch(nccScZkmxbWms.getVbatchcode());
                detlDto.setLineNumber(i);
                detlDto.setRemark(JSONObject.toJSONString(nccScZkmxbWms));
                detlDto.setStandby1(nccScZkmxbWms.getRkckbm());
                orderDetails.add(detlDto);
                i++;
                nccScZkmxbWms.setWmsFlag(1);
@@ -185,6 +186,7 @@
                detlDto.setBatch(nccCgCgdhdWms.getVbatchcode());
                detlDto.setLineNumber(i);
                detlDto.setRemark(JSONObject.toJSONString(nccCgCgdhdWms));
                detlDto.setStandby1(nccCgCgdhdWms.getCkbm());
                orderDetails.add(detlDto);
                i++;
                nccCgCgdhdWms.setWmsFlag(1);