浏览代码

自动确认收货bug修改

zouxuan 1 年之前
父节点
当前提交
45b28f2e16
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentGoodsSellServiceImpl.java

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentGoodsSellServiceImpl.java

@@ -95,14 +95,14 @@ public class StudentGoodsSellServiceImpl extends BaseServiceImpl<Integer, Studen
                 //获取到期的订单编号
                 //获取到期的订单编号
                 String s = studentGoodsSellDao.queryNoAffirmOrderNo(autoAffirmReceiveTime, tenantInfo.getId());
                 String s = studentGoodsSellDao.queryNoAffirmOrderNo(autoAffirmReceiveTime, tenantInfo.getId());
                 if(StringUtils.isNotEmpty(s)){
                 if(StringUtils.isNotEmpty(s)){
-                    sb.append(s);
                     if(sb.length() > 0){
                     if(sb.length() > 0){
                         sb.append(",");
                         sb.append(",");
                     }
                     }
+                    sb.append(s);
                 }
                 }
             }
             }
             if (sb.length() > 0) {
             if (sb.length() > 0) {
-                studentGoodsSellDao.autoAffirmReceive(sb.substring(0,sb.length() - 1), str);
+                studentGoodsSellDao.autoAffirmReceive(sb.toString(), str);
             }
             }
         }
         }
     }
     }