|
|
@ -16,6 +16,7 @@ import com.daqing.framework.domain.guarantee.DgCopyFor; |
|
|
|
import com.daqing.framework.domain.guarantee.DgCopyUser; |
|
|
|
import com.daqing.framework.domain.guarantee.DgCopyUser; |
|
|
|
import com.daqing.framework.domain.guarantee.DgProcessUser; |
|
|
|
import com.daqing.framework.domain.guarantee.DgProcessUser; |
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +43,10 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean copySendUser(Integer businessId, Integer processId, String imgData) throws IOException { |
|
|
|
public boolean copySendUser(Integer businessId, Integer processId, String imgData) throws IOException { |
|
|
|
|
|
|
|
String accessPath = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//图片信息不为空,不生成图片地址
|
|
|
|
|
|
|
|
if(StringUtils.isNotEmpty(imgData)){ |
|
|
|
//获取随机值
|
|
|
|
//获取随机值
|
|
|
|
String snowflakeId = IdUtil.getSnowflake(6, 4).nextIdStr(); |
|
|
|
String snowflakeId = IdUtil.getSnowflake(6, 4).nextIdStr(); |
|
|
|
//文件扩展名
|
|
|
|
//文件扩展名
|
|
|
@ -59,7 +64,8 @@ public class DgCopyForServiceImpl extends ServiceImpl<DgCopyForMapper, DgCopyFor |
|
|
|
//访问路径前缀
|
|
|
|
//访问路径前缀
|
|
|
|
String serverPrefix = PromptSuccess.IMAGE_URL_PATH; |
|
|
|
String serverPrefix = PromptSuccess.IMAGE_URL_PATH; |
|
|
|
//访问路径
|
|
|
|
//访问路径
|
|
|
|
String accessPath = serverPrefix + newName; |
|
|
|
accessPath = serverPrefix + newName; |
|
|
|
|
|
|
|
} |
|
|
|
//取出抄送详情id
|
|
|
|
//取出抄送详情id
|
|
|
|
Integer copyForId = 0; |
|
|
|
Integer copyForId = 0; |
|
|
|
//添加之前判断是否抄送详情存在,如果存在则更新这条数据
|
|
|
|
//添加之前判断是否抄送详情存在,如果存在则更新这条数据
|
|
|
|