严智鑫
2024-07-25 8a76767b0a7ad271c8487a02063590b956deb5df
hangzhoumesParent/moduleService/UnLoadGlassModule/src/test/java/mes/UnloadGlassModuleApplicationTest.java
@@ -12,9 +12,11 @@
import com.mes.downstorage.service.impl.DownStorageCageDetailsServiceImpl;
import com.mes.downstorage.service.impl.DownStorageCageServiceImpl;
import com.mes.downworkstation.entity.DownWorkstation;
import com.mes.downworkstation.service.DownWorkstationService;
import com.mes.downworkstation.service.impl.DownWorkstationServiceImpl;
import com.mes.glassinfo.service.impl.GlassInfoServiceImpl;
import com.mes.job.DownLoadCacheGlassTask;
import com.mes.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
@@ -97,14 +99,14 @@
    @Test
    public void testupdateFlowCardIdAndCount() {
        log.info("绑定流程卡号和数量");
        downWorkstationServiceImpl.updateFlowCardIdAndCount("1", 1, 1);
        downWorkstationServiceImpl.updateFlowCardIdAndCount("NG24060401A020", 1, 2);
    }
    @Test
    public void testplc() {
        log.info("测试");
        glassInfoServiceImpl.getGlassInfoCountByFlowCardId("NG24030702A01");
        glassInfoServiceImpl.getGlassInfoCountByFlowCardId("NG24030702A01",1);
    }
@@ -190,15 +192,41 @@
    }
    @Test
    public void updateDownWorkstationstate() {
        DownWorkstation downWorkstation=  new DownWorkstation();
        downWorkstation.setId(1);
        downWorkstation.setEnableState(0);
        downWorkstationServiceImpl.updateDownWorkstationstate(downWorkstation);
    }
    @Test
    public void updateDownstate() {
        DownStorageCage downStorageCage=  new DownStorageCage();
        downStorageCage.setId(1);
        downStorageCage.setEnableState(0);
        downStorageCageServiceImpl.updateDownStorageCage(downStorageCage);
    }
 /*   @Test
    public void updateDownStorageCage() {
        DownStorageCage downStorageCage=  new DownStorageCage();
        downStorageCage.setEnableState("0");
        downStorageCage.setEnableState(0);
        downStorageCage.setId(1);
        downStorageCageService.updateDownStorageCage(downStorageCage);
    }
    }*/
}