自动化立体仓库 - WMS系统
#
18516761980
2022-10-06 5b4989a3e8dc144da636f1a8b84206e0f4ba76f3
#
2个文件已修改
17 ■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/TestMast.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/TestMast.java
@@ -53,7 +53,7 @@
    /**
     * 状态 0: 待申请  1: 申请中  2: 已复核;3  4: 完成  
     */
    @ApiModelProperty(value= "状态 0: 待申请  1: 申请中  2: 已复核 3: 测试中  4: 完成  ")
    @ApiModelProperty(value= "状态 0: 暂停  1: 申请中  2: 复核中  3: 测试中  4: 完成  ")
    private Integer status;
    /**
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -623,24 +623,25 @@
    @Transactional
    public void startUpTestPACK(TestMast testMast) {
//        启动测试请求
        ReturnT<String> result=startUpTestPACK1(testMast);
        if (!result.isSuccess()) {
            log.error("测试申请失败", testMast.getBarcode());
            throw new CoolException("测试申请失败");
        }
        LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>()
                .eq("loc_no", testMast.getLocNo())
        );
        if (Cools.isEmpty(locMast)) {
            throw new CoolException(BaseRes.PARAM);
        }
        Date now = new Date();
        testMast.setStatus(1);
        testMast.setChannel(locMast.getChannel());
        testMast.setModiTime(now);
        testMast.setAppeTime(now);
//        启动测试请求
        ReturnT<String> result=startUpTestPACK1(testMast);
        if (!result.isSuccess()) {
            log.error("测试申请失败", testMast.getBarcode());
            throw new CoolException("测试申请失败");
        }
        if (!testMastService.insert(testMast)){
            throw new CoolException("添加testMast失败");
        }