fix:1.补路径分隔符 2.SQL语句分号
This commit is contained in:
parent
45811d00e0
commit
dfb536fbbb
|
@ -2,8 +2,8 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="org.jeecg.modules.system.mapper.GardsSampleDataMapper">
|
<mapper namespace="org.jeecg.modules.system.mapper.GardsSampleDataMapper">
|
||||||
<delete id="delTables">
|
<delete id="delTables">
|
||||||
<foreach collection="tableNames" item="tableName" index="index">
|
<foreach collection = "tableNames" item = "tableName" index = "index">
|
||||||
DELETE FROM ${tableName} WHERE SAMPLE_ID = #{sampleId}
|
DELETE FROM ${tableName} WHERE SAMPLE_ID = #{sampleId};
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
|
@ -91,8 +91,8 @@ public class GardsSampleDataServiceImpl extends ServiceImpl<GardsSampleDataMappe
|
||||||
public Result<?> deleteById(Integer sampleId, boolean sampleData,
|
public Result<?> deleteById(Integer sampleId, boolean sampleData,
|
||||||
boolean rnAuto, boolean rnMan) {
|
boolean rnAuto, boolean rnMan) {
|
||||||
String ftpRootPath = ftpUtil.getFtpRootPath();
|
String ftpRootPath = ftpUtil.getFtpRootPath();
|
||||||
String savePath = ftpRootPath + pathProperties.getSaveFilePath();
|
String savePath = ftpRootPath + pathProperties.getSaveFilePath() + StrUtil.SLASH;
|
||||||
String logPath = ftpRootPath + pathProperties.getLogPath();
|
String logPath = ftpRootPath + pathProperties.getLogPath() + StrUtil.SLASH;
|
||||||
/* 删除数据库数据 */
|
/* 删除数据库数据 */
|
||||||
// 过滤掉多余的表
|
// 过滤掉多余的表
|
||||||
String ORIGINAL = "ORIGINAL";String RNAUTO = "RNAUTO";String RNMAN = "RNMAN";
|
String ORIGINAL = "ORIGINAL";String RNAUTO = "RNAUTO";String RNMAN = "RNMAN";
|
||||||
|
@ -169,8 +169,7 @@ public class GardsSampleDataServiceImpl extends ServiceImpl<GardsSampleDataMappe
|
||||||
.orElse(new GardsSampleDataSystem());
|
.orElse(new GardsSampleDataSystem());
|
||||||
}
|
}
|
||||||
|
|
||||||
private String samplePath(String savePath,
|
private String samplePath(String savePath, Integer sampleId){
|
||||||
Integer sampleId){
|
|
||||||
GardsSampleDataSystem sampleData = getOne(sampleId);
|
GardsSampleDataSystem sampleData = getOne(sampleId);
|
||||||
String inputFileName = sampleData.getInputFileName();
|
String inputFileName = sampleData.getInputFileName();
|
||||||
if (StrUtil.isBlank(inputFileName))
|
if (StrUtil.isBlank(inputFileName))
|
||||||
|
@ -178,10 +177,8 @@ public class GardsSampleDataServiceImpl extends ServiceImpl<GardsSampleDataMappe
|
||||||
return savePath + inputFileName;
|
return savePath + inputFileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> manOrAutoPath(String savePath,
|
private List<String> manOrAutoPath(String savePath, String logPath,
|
||||||
String logPath,
|
Integer sampleId, String owner){
|
||||||
Integer sampleId,
|
|
||||||
String owner){
|
|
||||||
List<String> fileList = new ArrayList<>();
|
List<String> fileList = new ArrayList<>();
|
||||||
GardsAnalyses analysisMan = baseMapper.getAnalysis(sampleId, owner);
|
GardsAnalyses analysisMan = baseMapper.getAnalysis(sampleId, owner);
|
||||||
if (ObjectUtil.isNull(analysisMan))
|
if (ObjectUtil.isNull(analysisMan))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user