|
@@ -173,9 +173,9 @@ public class WorkContractService {
|
|
|
WorkAttachment i = new WorkAttachment();
|
|
|
//包含了url、size、name
|
|
|
i.setId(UUID.randomUUID().toString().replace("-", ""));
|
|
|
- i.getCreateBy().setId(userDTO.getId());
|
|
|
+// i.getCreateBy().setId(userDTO.getId());
|
|
|
i.setCreateDate(new Date());
|
|
|
- i.getUpdateBy().setId(userDTO.getId());
|
|
|
+// i.getUpdateBy().setId(userDTO.getId());
|
|
|
i.setUpdateDate(new Date());
|
|
|
i.setDelFlag(0);
|
|
|
i.setUrl(dto.getUrl());
|
|
@@ -189,7 +189,7 @@ public class WorkContractService {
|
|
|
i.setAttachmentFlag("workcontract");
|
|
|
i.setFileSize(dto.getSize());
|
|
|
i.setSort(j);
|
|
|
- ossServiceMapper.insert(i);
|
|
|
+ ossServiceMapper.insertWorkAttachment(i, userDTO);
|
|
|
j++;
|
|
|
}
|
|
|
}
|
|
@@ -225,9 +225,9 @@ public class WorkContractService {
|
|
|
WorkAttachment i = new WorkAttachment();
|
|
|
//包含了url、size、name
|
|
|
i.setId(UUID.randomUUID().toString().replace("-", ""));
|
|
|
- i.getCreateBy().setId(userDTO.getId());
|
|
|
+// i.getCreateBy().setId(userDTO.getId());
|
|
|
i.setCreateDate(new Date());
|
|
|
- i.getUpdateBy().setId(userDTO.getId());
|
|
|
+// i.getUpdateBy().setId(userDTO.getId());
|
|
|
i.setUpdateDate(new Date());
|
|
|
i.setDelFlag(0);
|
|
|
i.setUrl(dto.getUrl());
|
|
@@ -241,7 +241,7 @@ public class WorkContractService {
|
|
|
i.setAttachmentFlag("workcontract");
|
|
|
i.setFileSize(dto.getSize());
|
|
|
i.setSort(j);
|
|
|
- ossServiceMapper.insert(i);
|
|
|
+ ossServiceMapper.insertWorkAttachment(i, userDTO);
|
|
|
j++;
|
|
|
}
|
|
|
}
|