Commit 0b068f1d authored by 廖旭伟's avatar 廖旭伟

群众助办件,寄存件信息录入

parent d8a95915
package com.mortals.xhx.module.matter.service.impl; package com.mortals.xhx.module.matter.service.impl;
import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.RandomUtil;
import cn.hutool.http.HttpUtil;
import com.mortals.framework.ap.GlobalSysInfo;
import com.mortals.framework.model.PageInfo; import com.mortals.framework.model.PageInfo;
import com.mortals.framework.util.DateUtils; import com.mortals.framework.util.DateUtils;
import com.mortals.xhx.common.utils.StringUtils; import com.mortals.xhx.common.utils.StringUtils;
...@@ -13,9 +15,10 @@ import com.mortals.framework.model.Context; ...@@ -13,9 +15,10 @@ import com.mortals.framework.model.Context;
import com.mortals.xhx.module.matter.dao.UserMatterApplyDao; import com.mortals.xhx.module.matter.dao.UserMatterApplyDao;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.ArrayList; import java.util.*;
import java.util.Date; import java.util.stream.Collectors;
import java.util.List;
import static com.mortals.xhx.common.key.Constant.PARAM_SERVER_PHP_HTTP_URL;
/** /**
* UserMatterApplyService * UserMatterApplyService
...@@ -82,6 +85,20 @@ public class UserMatterApplyServiceImpl extends AbstractCRUDServiceImpl<UserMatt ...@@ -82,6 +85,20 @@ public class UserMatterApplyServiceImpl extends AbstractCRUDServiceImpl<UserMatt
if (!ObjectUtils.isEmpty(entity.getUserMatterDetails())) { if (!ObjectUtils.isEmpty(entity.getUserMatterDetails())) {
List<UserMatterDetailsEntity> details = doSaveAfer(entity, context); List<UserMatterDetailsEntity> details = doSaveAfer(entity, context);
userMatterDetailsService.save(details); userMatterDetailsService.save(details);
try {
String datum_name = details.stream().map(UserMatterDetailsEntity::getFullName).collect(Collectors.joining(";"));
Map<String, Object> paramsMap = new HashMap<>();
paramsMap.put("userid",entity.getUserId());
paramsMap.put("datum_name",datum_name);
paramsMap.put("matter_name",entity.getMatterName());
paramsMap.put("apply_time",DateUtils.getCurrStrDateTime());
String phpUrl = GlobalSysInfo.getParamValue(PARAM_SERVER_PHP_HTTP_URL, "http://172.15.28.116:8090");
phpUrl += "/pickup/enter_api/enterForPeople";
String resp = HttpUtil.createPost(phpUrl).form(paramsMap).execute().body();
}catch (Exception e){
log.error("群众助办件,寄存件信息录入接调用异常",e);
}
} }
matterApplyService.addReportCount(entity.getMatterId()); matterApplyService.addReportCount(entity.getMatterId());
super.saveAfter(entity, context); super.saveAfter(entity, context);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment