|
@@ -506,6 +506,7 @@ public class TemplateGenerator {
|
|
DGasGatherAreaSQLBuilder gatherSb = new DGasGatherAreaSQLBuilder();
|
|
DGasGatherAreaSQLBuilder gatherSb = new DGasGatherAreaSQLBuilder();
|
|
DGasGatherAreaSQLBuilder.Criteria gatherSc = gatherSb.createCriteria();
|
|
DGasGatherAreaSQLBuilder.Criteria gatherSc = gatherSb.createCriteria();
|
|
gatherSc.andGidEqualTo(gid);
|
|
gatherSc.andGidEqualTo(gid);
|
|
|
|
+ gatherSb.setOrderByClause("id ASC");
|
|
List<DGasGatherArea> gatherList = gatherMapper.selectByExample(gatherSb);
|
|
List<DGasGatherArea> gatherList = gatherMapper.selectByExample(gatherSb);
|
|
if (gatherList.isEmpty()) {
|
|
if (gatherList.isEmpty()) {
|
|
throw new BusinessException("EB3100024");
|
|
throw new BusinessException("EB3100024");
|
|
@@ -543,6 +544,9 @@ public class TemplateGenerator {
|
|
mkGassDirs(aid, jid, gid);
|
|
mkGassDirs(aid, jid, gid);
|
|
FileWriter fileWriter = new FileWriter(BPATH + "/" + aid + "/" + jid + "/" + "/gas" + "/" + gid + "/run.sh");
|
|
FileWriter fileWriter = new FileWriter(BPATH + "/" + aid + "/" + jid + "/" + "/gas" + "/" + gid + "/run.sh");
|
|
fileWriter.write(writer.toString());
|
|
fileWriter.write(writer.toString());
|
|
|
|
+
|
|
fileWriter.close();
|
|
fileWriter.close();
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|