自动化立体仓库 - WMS系统
#
lty
2025-07-02 2b480586814e907e6237a87f0022b92fa04dfe7a
#
2个文件已修改
17 ■■■■ 已修改文件
src/main/java/com/zy/common/service/CommonService.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/service/CommonService.java
@@ -137,8 +137,11 @@
     */
    @Transactional
    public StartupDto getLocNoRun(Integer whsType, Integer staDescId, Integer sourceStaNo, String matnr, String batch, String grade, Integer moveCrnNo, LocTypeDto locTypeDto, int times) {
        int tagId = 0;
        if (Cools.isEmpty(matnr)) {  //物料号
            matnr = "";
        }else{
            tagId = matService.getTagIdByMatnr(matnr);
        }
        if (Cools.isEmpty(batch)) {  //箱号
            batch = "";
@@ -159,8 +162,6 @@
        int sRow = rowLastno.getsRow();
        int eRow = rowLastno.geteRow();
        int crnNumber = rowLastno.getCrnQty();
        int tagId = matService.getTagIdByMatnr(matnr);
        if (Cools.isEmpty(rowLastno)) {
            throw new CoolException("数据异常,请联系管理员");
        }
@@ -418,7 +419,7 @@
//                return getLocNo(1, staDescId, sourceStaNo, matnr,batch,grade, locTypeDto, 0);
//            }
            log.error("系统没有空库位!!! 尺寸规格: {}, 轮询次数:{}", JSON.toJSONString(locTypeDto), times);
            throw new CoolException("没有空库位");
            throw new CoolException("没有空库位或堆垛机异常");
        }
        String locNo = locMast.getLocNo();
src/main/resources/application.yml
@@ -109,9 +109,7 @@
  refreshtime: 0/5 * * * * ?
  db:
    driver_class_name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    url: jdbc:sqlserver://127.0.0.1:1433;databasename=TZGLLK
    username: sa
    password: sa@123
#    url: jdbc:sqlserver://192.168.4.138:1433;databasename=XDLinkLK2
#    username: sa
#    password: sa@123
    url: jdbc:sqlserver://192.168.16.202:9116;databasename=TZGLLK
    username: GLLK
    password: GLLK0626