|
@@ -186,8 +186,13 @@ public class InvestigateTableServiceImpl implements IInvestigateTableService {
|
|
|
*/
|
|
|
|
|
|
private void insertInvestigateDispositionTable(Long investigateTableId, List<InvestigateDispositionTable> investigateDispositionTableList) {
|
|
|
- for (InvestigateDispositionTable investigateDispositionTable : investigateDispositionTableList) {
|
|
|
+
|
|
|
+ for (int i = 0; i < investigateDispositionTableList.size(); i++) {
|
|
|
+ Date nowDate = new Date();
|
|
|
+ nowDate.setTime(nowDate.getTime()+ (i* 1000L));
|
|
|
+ InvestigateDispositionTable investigateDispositionTable = investigateDispositionTableList.get(i);
|
|
|
investigateDispositionTable.setInvestigateTableId(investigateTableId);
|
|
|
+ investigateDispositionTable.setCreateTime(nowDate);
|
|
|
//获取HTML文件
|
|
|
String content = investigateDispositionTable.getContent();
|
|
|
content = " <meta charset=\"utf-8\">\n" +
|
|
@@ -317,7 +322,10 @@ public class InvestigateTableServiceImpl implements IInvestigateTableService {
|
|
|
String path = url.replace("/profile", getProfile());
|
|
|
//todo 删除服务器文件
|
|
|
try {
|
|
|
- Runtime.getRuntime().exec("rm -f " + path);
|
|
|
+ File file = new File(path);
|
|
|
+ if (file.exists()) {
|
|
|
+ Runtime.getRuntime().exec("rm -f " + path);
|
|
|
+ }
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|