|
|
@ -42,8 +42,8 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
private DgCopyUserMapper copyUserMapper; |
|
|
|
private DgCopyUserMapper copyUserMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean copySendUser(Integer businessId, Integer processId, String imgData) throws IOException { |
|
|
|
public boolean copySendUser(Integer businessId, Integer processId, Integer detailId) throws IOException { |
|
|
|
String accessPath = ""; |
|
|
|
/* String accessPath = ""; |
|
|
|
|
|
|
|
|
|
|
|
//图片信息不为空,不生成图片地址
|
|
|
|
//图片信息不为空,不生成图片地址
|
|
|
|
if(StringUtils.isNotEmpty(imgData)){ |
|
|
|
if(StringUtils.isNotEmpty(imgData)){ |
|
|
@ -65,7 +65,7 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
String serverPrefix = PromptSuccess.IMAGE_URL_PATH; |
|
|
|
String serverPrefix = PromptSuccess.IMAGE_URL_PATH; |
|
|
|
//访问路径
|
|
|
|
//访问路径
|
|
|
|
accessPath = serverPrefix + newName; |
|
|
|
accessPath = serverPrefix + newName; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
//取出抄送详情id
|
|
|
|
//取出抄送详情id
|
|
|
|
Integer copyForId = 0; |
|
|
|
Integer copyForId = 0; |
|
|
|
//添加之前判断是否抄送详情存在,如果存在则更新这条数据
|
|
|
|
//添加之前判断是否抄送详情存在,如果存在则更新这条数据
|
|
|
@ -75,7 +75,8 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
if (ObjectUtil.isNotNull(copyFor)){ |
|
|
|
if (ObjectUtil.isNotNull(copyFor)){ |
|
|
|
//更新数据
|
|
|
|
//更新数据
|
|
|
|
DgCopyFor copyForUpdate = new DgCopyFor(); |
|
|
|
DgCopyFor copyForUpdate = new DgCopyFor(); |
|
|
|
copyForUpdate.setPicUrl(accessPath); |
|
|
|
//copyForUpdate.setPicUrl(accessPath);
|
|
|
|
|
|
|
|
copyForUpdate.setDetailId(detailId); |
|
|
|
UpdateWrapper<DgCopyFor> updateWrapper = new UpdateWrapper<>(); |
|
|
|
UpdateWrapper<DgCopyFor> updateWrapper = new UpdateWrapper<>(); |
|
|
|
updateWrapper.eq("business_id",businessId).eq("process_id",processId); |
|
|
|
updateWrapper.eq("business_id",businessId).eq("process_id",processId); |
|
|
|
baseMapper.update(copyForUpdate, updateWrapper); |
|
|
|
baseMapper.update(copyForUpdate, updateWrapper); |
|
|
@ -84,7 +85,8 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
DgCopyFor copyForAdd = new DgCopyFor(); |
|
|
|
DgCopyFor copyForAdd = new DgCopyFor(); |
|
|
|
copyForAdd.setBusinessId(businessId); |
|
|
|
copyForAdd.setBusinessId(businessId); |
|
|
|
copyForAdd.setProcessId(processId); |
|
|
|
copyForAdd.setProcessId(processId); |
|
|
|
copyForAdd.setPicUrl(accessPath); |
|
|
|
//copyForAdd.setPicUrl(accessPath);
|
|
|
|
|
|
|
|
copyForAdd.setDetailId(detailId); |
|
|
|
//添加抄送详情
|
|
|
|
//添加抄送详情
|
|
|
|
baseMapper.insert(copyForAdd); |
|
|
|
baseMapper.insert(copyForAdd); |
|
|
|
copyForId = copyForAdd.getId(); |
|
|
|
copyForId = copyForAdd.getId(); |
|
|
|