野心家
2025-05-13 d344ce3d537b9d149b8029f169cb52aba5753021
初始化
5个文件已修改
30 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/thread/SiemensDevpThread.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-prod.yml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocMastMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkMastMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -131,14 +131,14 @@
                if (crnProtocol == null) {
                    continue;
                }
                TaskWrk taskWrk1 = taskWrkService.selectOne(new EntityWrapper<TaskWrk>().eq("crn_no",crn.getCrnNo()).eq("io_type",3));
                if (taskWrk1 != null) {
                    continue;
                }
                // 只有当堆垛机空闲 并且 无任务时才继续执行
                if (crnProtocol.getStatusType() == CrnStatusType.IDLE && crnProtocol.getTaskNo() == 0 && crnProtocol.getModeType() == CrnModeType.AUTO) {
                    // 获取移库工作档信息
                    WrkMast wrkMast = wrkMastMapper.selectLocMove(crn.getCrnNo());
                    if (null != wrkMast) {
                        continue;
                    }
                    LocMast sourceLoc = locMastService.queryDemoSourceLoc(crn.getCrnNo());
                    LocMast loc = locMastService.queryDemoLoc(crn.getCrnNo(),sourceLoc.getLocType1());
src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -287,7 +287,7 @@
        if (result2.IsSuccess) {
            for (int i = 0; i < 1; i++) {
                String barcode = siemensS7Net.getByteTransform().TransString(result2.Content, i * 8, 8, "UTF-8");
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, i + 1);
                BarcodeThread barcodeThread = (BarcodeThread) SlaveConnection.get(SlaveType.Barcode, slave.getId());
                if (!Cools.isEmpty(barcodeThread) && !barcodeThread.getBarcode().equals(barcode)) {
                    barcodeThread.setBarcode(barcode);
                }
src/main/resources/application-prod.yml
@@ -152,7 +152,7 @@
    crnInStn[5]: #堆垛机入库站点1--2F输送线 取货口
      staNo: 2056
      row: 7
      bay: 12
      bay: 2
      lev: 13
      backSta: 106
      devpPlcId: ${wcs-slave.devp[3].id}
@@ -210,7 +210,7 @@
      staNo: 1053
  devp[3]: #输送线--成品2F
    id: 4
    ip: 192.168.110.70
    ip: 192.168.110.40
    rack: 0
    port: 102
    slot: 0
@@ -233,19 +233,15 @@
    # 拣料入库口1
    pickSta[0]:
      staNo: 2051
      barcode: ${wcs-slave.barcode[3].id}
    # 拣料入库口2
    pickSta[1]:
      staNo: 2052
      barcode: ${wcs-slave.barcode[3].id}
    # 拣料入库口3
    pickSta[2]:
      staNo: 2057
      barcode: ${wcs-slave.barcode[3].id}
    # 拣料入库口4
    pickSta[3]:
      staNo: 2058
      barcode: ${wcs-slave.barcode[3].id}
  barcode[0]: #条码扫描仪
    port: 51236
    ip: 172.17.91.39
@@ -253,15 +249,15 @@
  barcode[1]: #条码扫描仪
    port: 51236
    ip: 172.17.91.39
    id: 1
    id: 2
  barcode[2]: #条码扫描仪
    port: 51236
    ip: 172.17.91.39
    id: 1
    id: 3
  barcode[3]: #条码扫描仪
    port: 51236
    ip: 172.17.91.39
    id: 1
    id: 4
#  crn[0]: #堆垛机1
#    rack: 0
#    offset: 2    #偏移量,当堆垛机站点列号=1时,偏移量=2
src/main/resources/mapper/LocMastMapper.xml
@@ -57,7 +57,7 @@
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_type1 = #{locType1} and loc_sts = 'O' and (ctn_kind=0 or ctn_kind is null)
        ORDER BY NEWID()
        ORDER BY lev1 asc,bay1 asc
    </select>
    <select id="selectByLocNo" resultMap="BaseResultMap">
src/main/resources/mapper/WrkMastMapper.xml
@@ -113,7 +113,7 @@
    </select>
    <select id="selectLocMove" resultMap="BaseResultMap">
        select top 1 * from dbo.asr_wrk_mast where wrk_sts=11 and io_type=11 and crn_no=#{crnNo} order by io_time,wrk_no
        select top 1 * from dbo.asr_wrk_mast where io_type=3 and crn_no=#{crnNo} order by io_time,wrk_no
    </select>
    <select id="selectLocMoving" resultMap="BaseResultMap">