浏览代码

管道修改BUG

huangxingxing 1 年之前
父节点
当前提交
f75f837205
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/miniframe/bisiness/system/D10021Service.java

+ 3 - 3
src/main/java/com/miniframe/bisiness/system/D10021Service.java

@@ -49,7 +49,7 @@ public class D10021Service extends D10021BaseModel implements ExecProcessFlow {
             throw new BusinessException("EB3100021");
         }
         List<String> blockNames = readBFile(bf);
-
+        System.out.println(blockNames);
         DAccidentMapper accidentMapper = UtilTools.getBean(DAccidentMapper.class);
         DAccident accident = accidentMapper.selectByPrimaryKey(aid);
         if (accident == null) {
@@ -74,9 +74,9 @@ public class D10021Service extends D10021BaseModel implements ExecProcessFlow {
             sc.andGfidEqualTo(gfid);
             sb.setOrderByClause("id DESC");
 
-            gas = gasMapper.selectOneByExample(sb);
+            gas = gasMapper.selectByExample(sb).get(0);
+
 
-            System.out.println(blockNames);
             for (String blockName : blockNames) {
                 DGasGatherArea area =new DGasGatherArea();
                 area.setGasdensity(0f);