工作组新建项目发消息修改

This commit is contained in:
liangqitao
2022-01-05 15:40:09 +08:00
parent 65bb28a602
commit c64e367512
4 changed files with 37 additions and 92 deletions
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class PaySendContactsMessageDTO implements Serializable {
@@ -35,4 +36,8 @@ public class PaySendContactsMessageDTO implements Serializable {
* 前端需要的参数值
*/
private JSONObject json;
/**
* 文件
*/
private List<String> listFile;
}
@@ -12,6 +12,7 @@ import com.jero.common.system.vo.LoginUser;
import com.jero.common.util.PasswordUtil;
import com.jero.modules.system.entity.SysUser;
import com.jero.modules.system.service.ISysUserService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Service;
@@ -81,6 +82,9 @@ public class ContractCreateProjectSendMessageServiceImpl implements ContractCrea
sendMessageDTO.setPhone(PasswordUtil.decrypt(paySendContactsMessageDTO.getPhone()));
sendMessageDTO.setToUser(PasswordUtil.decrypt(paySendContactsMessageDTO.getPhone()));
}
if(!CollectionUtils.isEmpty(paySendContactsMessageDTO.getListFile())){
sendMessageDTO.setListFile(paySendContactsMessageDTO.getListFile());
}
HashMap<String,String> map = new HashMap<>();
map.put("projectName",paySendContactsMessageDTO.getProjectName());
sendMessageDTO.setFromUser(sysUser.getUsername());