Commit ef84ec9e authored by 赵啸非's avatar 赵啸非

添加站点政务同步接口

parent 3cdb4090
This diff is collapsed.
...@@ -1295,6 +1295,46 @@ data|Object|数据|- ...@@ -1295,6 +1295,46 @@ data|Object|数据|-
``` ```
### 同步站点相关事项
**请求URL:** site/syncGovMatterBySiteId
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 同步站点相关事项
**请求参数:**
参数名称|类型|备注|必填|其它
id|Long|站点id|是|-
**请求样例:**
```
{“id”:3}
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
data|Object|数据|-
**响应消息样例:**
```
{
"code":1,
"msg":"成功"
}
```
### 根据区域查询站点列表 ### 根据区域查询站点列表
**请求URL:** site/getFlatSitesByAreaCode **请求URL:** site/getFlatSitesByAreaCode
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</activation> </activation>
<properties> <properties>
<profiles.active>develop</profiles.active> <profiles.active>develop</profiles.active>
<profiles.server.ip>192.168.0.98</profiles.server.ip> <profiles.server.ip>127.0.0.1</profiles.server.ip>
<profiles.server.port>17211</profiles.server.port> <profiles.server.port>17211</profiles.server.port>
<profiles.nginx.port>11071</profiles.nginx.port> <profiles.nginx.port>11071</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport> <profiles.server.gatewayport>11078</profiles.server.gatewayport>
......
package com.mortals.xhx.common.utils; package com.mortals.xhx.common.utils;
import cn.hutool.core.collection.ListUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.mortals.framework.common.Rest; import com.mortals.framework.common.Rest;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.xhx.ManagerBaseApplication;
import com.mortals.xhx.common.code.SourceEnum; import com.mortals.xhx.common.code.SourceEnum;
import com.mortals.xhx.common.code.YesNoEnum; import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.module.dept.service.DeptService; import com.mortals.xhx.module.dept.service.DeptService;
...@@ -10,16 +12,22 @@ import com.mortals.xhx.module.matter.model.MatterEntity; ...@@ -10,16 +12,22 @@ import com.mortals.xhx.module.matter.model.MatterEntity;
import com.mortals.xhx.module.matter.model.MatterQuery; import com.mortals.xhx.module.matter.model.MatterQuery;
import com.mortals.xhx.module.matter.service.MatterService; import com.mortals.xhx.module.matter.service.MatterService;
import com.mortals.xhx.module.site.model.SiteEntity; import com.mortals.xhx.module.site.model.SiteEntity;
import com.mortals.xhx.module.site.model.SiteMatterEntity;
import com.mortals.xhx.module.site.model.SiteQuery;
import com.mortals.xhx.module.site.service.SiteMatterService;
import com.mortals.xhx.module.site.service.SiteService; import com.mortals.xhx.module.site.service.SiteService;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.CustomLog;
import lombok.extern.apachecommons.CommonsLog;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import javax.xml.transform.Source; import javax.xml.transform.Source;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
@AllArgsConstructor @AllArgsConstructor
@Slf4j @CommonsLog
public class SyncGovMatterDetailThread implements Runnable { public class SyncGovMatterDetailThread implements Runnable {
private MatterService matterService; private MatterService matterService;
...@@ -28,23 +36,56 @@ public class SyncGovMatterDetailThread implements Runnable { ...@@ -28,23 +36,56 @@ public class SyncGovMatterDetailThread implements Runnable {
private DeptService deptService; private DeptService deptService;
private SiteMatterService siteMatterService;
private SiteEntity siteEntity; private SiteEntity siteEntity;
private Context context; private Context context;
@Override @Override
public void run() { public void run() {
log.info("同步站点事项开始.....");
Rest<String> deptRest = deptService.syncDeptBySiteId(siteEntity.getId(), context); Rest<String> deptRest = deptService.syncDeptBySiteId(siteEntity.getId(), context);
log.info("同步站点部门:"+ JSON.toJSONString(deptRest));
Rest<String> rest = siteService.syncMatterBySiteId(siteEntity.getId(), context); Rest<String> rest = siteService.syncMatterBySiteId(siteEntity.getId(), context);
log.info("syncMatterBySiteId:"+ JSON.toJSONString(rest)); log.info("同步事项列表:"+ JSON.toJSONString(rest));
if(rest.getCode()== YesNoEnum.YES.getValue()){ if(rest.getCode()== YesNoEnum.YES.getValue()){
List<MatterEntity> matterEntityList = matterService.find(new MatterQuery().areaCode(siteEntity.getAreaCode()).haveGetMatterInfo("false").source(SourceEnum.政务网.getValue())); List<MatterEntity> matterEntityList = matterService.find(new MatterQuery().areaCode(siteEntity.getAreaCode()).source(SourceEnum.政务网.getValue()));
matterEntityList.parallelStream().forEach(matterEntity -> {
List<MatterEntity> unSyncDetailMatterList = matterEntityList.stream().filter(f -> f.getHaveGetMatterInfo().equalsIgnoreCase("false")).collect(Collectors.toList());
log.info("同步站点事项到站点.....");
//查询站点事项相关
List<SiteEntity> siteEntities = siteService.find(new SiteQuery().areaCode(siteEntity.getAreaCode()));
//删除站点与政务事项相关项
for (SiteEntity site : siteEntities) {
siteMatterService.deleteBysiteIdAndSource(site.getId(),SourceEnum.政务网.getValue(), context);
}
//重新添加
for (SiteEntity site : siteEntities) {
List<SiteMatterEntity> siteMatterList = matterEntityList.stream().map(item -> {
return matterService.switchMatterToSiteMatterr(item, site.getId(), context).getData();
}).filter(f -> f != null).collect(Collectors.toList());
List<List<SiteMatterEntity>> partition = ListUtil.partition(siteMatterList, 100);
for (List<SiteMatterEntity> rests : partition) {
siteMatterService.save(rests);
}
}
log.info("同步站点事项到站点完成.....");
log.info("同步站点事项详细条数....."+unSyncDetailMatterList.size());
/* for (MatterEntity matterEntity : matterEntityList) {
matterService.buildMatterDetail(matterEntity, context);
matterService.update(matterEntity,context);
}*/
unSyncDetailMatterList.parallelStream().forEach(matterEntity -> {
matterService.buildMatterDetail(matterEntity, context); matterService.buildMatterDetail(matterEntity, context);
matterService.update(matterEntity,context);
}); });
} }
log.info("同步站点事项结束.....");
} }
} }
...@@ -7,7 +7,10 @@ import com.mortals.framework.common.Rest; ...@@ -7,7 +7,10 @@ import com.mortals.framework.common.Rest;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.framework.util.HttpUtil; import com.mortals.framework.util.HttpUtil;
import com.mortals.xhx.common.code.YesNoEnum;
import com.mortals.xhx.common.key.Constant; import com.mortals.xhx.common.key.Constant;
import com.mortals.xhx.common.utils.MatterHtmlParseUtil;
import com.mortals.xhx.module.area.model.AreaEntity;
import com.mortals.xhx.module.dept.dao.DeptDao; import com.mortals.xhx.module.dept.dao.DeptDao;
import com.mortals.xhx.module.dept.model.DeptEntity; import com.mortals.xhx.module.dept.model.DeptEntity;
import com.mortals.xhx.module.dept.model.DeptQuery; import com.mortals.xhx.module.dept.model.DeptQuery;
...@@ -54,6 +57,11 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE ...@@ -54,6 +57,11 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
@Autowired @Autowired
private MattersDeptService mattersDeptService; private MattersDeptService mattersDeptService;
@Override
protected String getExtKey(DeptEntity data) {
return data.getDeptNumber();
}
@Override @Override
public void syncDept(String areaCode, Context context) { public void syncDept(String areaCode, Context context) {
List<MattersDeptEntity> deptList = mattersDeptService.find(new MattersDeptQuery()); List<MattersDeptEntity> deptList = mattersDeptService.find(new MattersDeptQuery());
...@@ -83,30 +91,15 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE ...@@ -83,30 +91,15 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
SiteEntity siteEntity = siteService.get(siteId, context); SiteEntity siteEntity = siteService.get(siteId, context);
if (!ObjectUtils.isEmpty(siteEntity)) { if (!ObjectUtils.isEmpty(siteEntity)) {
String areaCode = siteEntity.getAreaCode(); String areaCode = siteEntity.getAreaCode();
String exp = "//ul[@class='bm-list']//li";
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
params.put("areaCode",areaCode); params.put("areaCode", areaCode);
// url += "?areaCode=" + areaCode;
String html; Rest<Map<String, String>> rest = MatterHtmlParseUtil.syncDeptBySiteId(params, url);
Object result; if (rest.getCode() == YesNoEnum.YES.getValue()) {
try { rest.getData().entrySet().stream().forEach(item -> {
html = HttpUtil.doGet(url, params); String deptCode = item.getKey();
//html = HttpUtil.get(url); String deptName = item.getValue();
HtmlCleaner hc = new HtmlCleaner();
TagNode tn = hc.clean(html);
Document dom = new DomSerializer(new CleanerProperties()).createDOM(tn);
XPath xPath = XPathFactory.newInstance().newXPath();
result = xPath.evaluate(exp, dom, XPathConstants.NODESET);
if (result instanceof NodeList) {
NodeList nodeList = (NodeList) result;
for (int i = 0; i < nodeList.getLength(); i++) {
Node node = nodeList.item(i);
String deptName = node.getAttributes().getNamedItem("title").getNodeValue();
String href = StringEscapeUtils.unescapeHtml4(node.getFirstChild().getAttributes().getNamedItem("href").getNodeValue());
UrlBuilder builder = UrlBuilder.ofHttp(href, CharsetUtil.CHARSET_UTF_8);
String deptCode = builder.getQuery().get("deptCode").toString();
//根据站点添加部门信息,部门编号存在时候不添加
DeptEntity deptExistEntity = deptService.selectOne(new DeptQuery().siteId(siteId).deptNumber(deptCode), context); DeptEntity deptExistEntity = deptService.selectOne(new DeptQuery().siteId(siteId).deptNumber(deptCode), context);
if (ObjectUtils.isEmpty(deptExistEntity)) { if (ObjectUtils.isEmpty(deptExistEntity)) {
DeptEntity deptEntity = new DeptEntity(); DeptEntity deptEntity = new DeptEntity();
...@@ -118,14 +111,12 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE ...@@ -118,14 +111,12 @@ public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptE
deptEntity.setCreateUserId(1L); deptEntity.setCreateUserId(1L);
deptService.save(deptEntity, context); deptService.save(deptEntity, context);
} }
});
} else {
return Rest.fail(rest.getMsg());
} }
} } else {
} return Rest.fail("当前站点不存在!");
catch (Exception e) {
log.error("同步部门异常!siteId:" + siteId, e);
return Rest.fail(e.getMessage());
}
} }
return Rest.ok("当前站点同步添加部门成功!"); return Rest.ok("当前站点同步添加部门成功!");
} }
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterAcceptVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterAcceptVo;
* 事项受理条件实体对象 * 事项受理条件实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterAcceptEntity extends MatterAcceptVo { public class MatterAcceptEntity extends MatterAcceptVo {
...@@ -21,6 +21,10 @@ public class MatterAcceptEntity extends MatterAcceptVo { ...@@ -21,6 +21,10 @@ public class MatterAcceptEntity extends MatterAcceptVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -51,6 +55,20 @@ public class MatterAcceptEntity extends MatterAcceptVo { ...@@ -51,6 +55,20 @@ public class MatterAcceptEntity extends MatterAcceptVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -115,6 +133,7 @@ public class MatterAcceptEntity extends MatterAcceptVo { ...@@ -115,6 +133,7 @@ public class MatterAcceptEntity extends MatterAcceptVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",content:").append(getContent()); sb.append(",content:").append(getContent());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
...@@ -125,6 +144,8 @@ public class MatterAcceptEntity extends MatterAcceptVo { ...@@ -125,6 +144,8 @@ public class MatterAcceptEntity extends MatterAcceptVo {
this.matterId = 0L; this.matterId = 0L;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.content = ""; this.content = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterAcceptEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterAcceptEntity;
* 事项受理条件查询对象 * 事项受理条件查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterAcceptQuery extends MatterAcceptEntity { public class MatterAcceptQuery extends MatterAcceptEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,6 +33,9 @@ public class MatterAcceptQuery extends MatterAcceptEntity { ...@@ -33,6 +33,9 @@ public class MatterAcceptQuery extends MatterAcceptEntity {
/** 基础事项表id列表 */ /** 基础事项表id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -211,6 +214,21 @@ public class MatterAcceptQuery extends MatterAcceptEntity { ...@@ -211,6 +214,21 @@ public class MatterAcceptQuery extends MatterAcceptEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -524,6 +542,25 @@ public class MatterAcceptQuery extends MatterAcceptEntity { ...@@ -524,6 +542,25 @@ public class MatterAcceptQuery extends MatterAcceptEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterAcceptQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterAcceptQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterChargesVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterChargesVo;
* 事项收费标准实体对象 * 事项收费标准实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterChargesEntity extends MatterChargesVo { public class MatterChargesEntity extends MatterChargesVo {
...@@ -21,6 +21,10 @@ public class MatterChargesEntity extends MatterChargesVo { ...@@ -21,6 +21,10 @@ public class MatterChargesEntity extends MatterChargesVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -51,6 +55,20 @@ public class MatterChargesEntity extends MatterChargesVo { ...@@ -51,6 +55,20 @@ public class MatterChargesEntity extends MatterChargesVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -93,6 +111,9 @@ public class MatterChargesEntity extends MatterChargesVo { ...@@ -93,6 +111,9 @@ public class MatterChargesEntity extends MatterChargesVo {
this.source = source; this.source = source;
} }
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -112,6 +133,7 @@ public class MatterChargesEntity extends MatterChargesVo { ...@@ -112,6 +133,7 @@ public class MatterChargesEntity extends MatterChargesVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",content:").append(getContent()); sb.append(",content:").append(getContent());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
...@@ -122,6 +144,8 @@ public class MatterChargesEntity extends MatterChargesVo { ...@@ -122,6 +144,8 @@ public class MatterChargesEntity extends MatterChargesVo {
this.matterId = 0L; this.matterId = 0L;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.content = ""; this.content = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterChargesEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterChargesEntity;
* 事项收费标准查询对象 * 事项收费标准查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterChargesQuery extends MatterChargesEntity { public class MatterChargesQuery extends MatterChargesEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,6 +33,9 @@ public class MatterChargesQuery extends MatterChargesEntity { ...@@ -33,6 +33,9 @@ public class MatterChargesQuery extends MatterChargesEntity {
/** 事项基础表matter id列表 */ /** 事项基础表matter id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -211,6 +214,21 @@ public class MatterChargesQuery extends MatterChargesEntity { ...@@ -211,6 +214,21 @@ public class MatterChargesQuery extends MatterChargesEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -524,6 +542,25 @@ public class MatterChargesQuery extends MatterChargesEntity { ...@@ -524,6 +542,25 @@ public class MatterChargesQuery extends MatterChargesEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterChargesQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterChargesQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
......
...@@ -11,7 +11,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumFileEntity; ...@@ -11,7 +11,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumFileEntity;
* 事项申请材料实体对象 * 事项申请材料实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-17 * @date 2022-11-16
*/ */
public class MatterDatumEntity extends MatterDatumVo { public class MatterDatumEntity extends MatterDatumVo {
...@@ -21,6 +21,10 @@ public class MatterDatumEntity extends MatterDatumVo { ...@@ -21,6 +21,10 @@ public class MatterDatumEntity extends MatterDatumVo {
* 事项id * 事项id
*/ */
private Long matterId; private Long matterId;
/**
* 事项编码
*/
private String matterCode;
/** /**
* 事项名称 * 事项名称
*/ */
...@@ -123,6 +127,20 @@ public class MatterDatumEntity extends MatterDatumVo { ...@@ -123,6 +127,20 @@ public class MatterDatumEntity extends MatterDatumVo {
public void setMatterId(Long matterId){ public void setMatterId(Long matterId){
this.matterId = matterId; this.matterId = matterId;
} }
/**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
...@@ -433,6 +451,7 @@ public class MatterDatumEntity extends MatterDatumVo { ...@@ -433,6 +451,7 @@ public class MatterDatumEntity extends MatterDatumVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",materialName:").append(getMaterialName()); sb.append(",materialName:").append(getMaterialName());
sb.append(",isMust:").append(getIsMust()); sb.append(",isMust:").append(getIsMust());
...@@ -460,6 +479,8 @@ public class MatterDatumEntity extends MatterDatumVo { ...@@ -460,6 +479,8 @@ public class MatterDatumEntity extends MatterDatumVo {
this.matterId = null; this.matterId = null;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.materialName = ""; this.materialName = "";
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterDatumFileVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterDatumFileVo;
* 材料附件实体对象 * 材料附件实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-17 * @date 2022-11-16
*/ */
public class MatterDatumFileEntity extends MatterDatumFileVo { public class MatterDatumFileEntity extends MatterDatumFileVo {
...@@ -20,6 +20,14 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -20,6 +20,14 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
* 材料id * 材料id
*/ */
private Long datumId; private Long datumId;
/**
* 事项编码
*/
private String matterCode;
/**
* 材料名
*/
private String materialName;
/** /**
* 附件名称 * 附件名称
*/ */
...@@ -29,17 +37,17 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -29,17 +37,17 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
*/ */
private String fileUrl; private String fileUrl;
/** /**
* 附件类型 (1.示例样表,2.空白表格) * 附件本地下载地址
*/ */
private Integer filetype; private String localFileUrl;
/** /**
* 附件来源 (0.政务网,1.自定义) * 附件类型 (示例样表.示例样表,空白表格.空白表格)
*/ */
private Integer source; private String filetype;
/** /**
* 材料名 * 附件来源 (0.政务网,1.自定义)
*/ */
private String materialName; private Integer source;
...@@ -58,6 +66,34 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -58,6 +66,34 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
public void setDatumId(Long datumId){ public void setDatumId(Long datumId){
this.datumId = datumId; this.datumId = datumId;
} }
/**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 材料名
* @return String
*/
public String getMaterialName(){
return materialName;
}
/**
* 设置 材料名
* @param materialName
*/
public void setMaterialName(String materialName){
this.materialName = materialName;
}
/** /**
* 获取 附件名称 * 获取 附件名称
* @return String * @return String
...@@ -87,17 +123,31 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -87,17 +123,31 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
this.fileUrl = fileUrl; this.fileUrl = fileUrl;
} }
/** /**
* 获取 附件类型 (1.示例样表,2.空白表格) * 获取 附件本地下载地址
* @return Integer * @return String
*/
public String getLocalFileUrl(){
return localFileUrl;
}
/**
* 设置 附件本地下载地址
* @param localFileUrl
*/
public void setLocalFileUrl(String localFileUrl){
this.localFileUrl = localFileUrl;
}
/**
* 获取 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @return String
*/ */
public Integer getFiletype(){ public String getFiletype(){
return filetype; return filetype;
} }
/** /**
* 设置 附件类型 (1.示例样表,2.空白表格) * 设置 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @param filetype * @param filetype
*/ */
public void setFiletype(Integer filetype){ public void setFiletype(String filetype){
this.filetype = filetype; this.filetype = filetype;
} }
/** /**
...@@ -114,20 +164,6 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -114,20 +164,6 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
public void setSource(Integer source){ public void setSource(Integer source){
this.source = source; this.source = source;
} }
/**
* 获取 材料名
* @return String
*/
public String getMaterialName(){
return materialName;
}
/**
* 设置 材料名
* @param materialName
*/
public void setMaterialName(String materialName){
this.materialName = materialName;
}
...@@ -151,11 +187,13 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -151,11 +187,13 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",datumId:").append(getDatumId()); sb.append(",datumId:").append(getDatumId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",materialName:").append(getMaterialName());
sb.append(",fileName:").append(getFileName()); sb.append(",fileName:").append(getFileName());
sb.append(",fileUrl:").append(getFileUrl()); sb.append(",fileUrl:").append(getFileUrl());
sb.append(",localFileUrl:").append(getLocalFileUrl());
sb.append(",filetype:").append(getFiletype()); sb.append(",filetype:").append(getFiletype());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
sb.append(",materialName:").append(getMaterialName());
return sb.toString(); return sb.toString();
} }
...@@ -163,14 +201,18 @@ public class MatterDatumFileEntity extends MatterDatumFileVo { ...@@ -163,14 +201,18 @@ public class MatterDatumFileEntity extends MatterDatumFileVo {
this.datumId = null; this.datumId = null;
this.fileName = null; this.matterCode = "";
this.fileUrl = null; this.materialName = "";
this.filetype = 1; this.fileName = "";
this.source = 1; this.fileUrl = "";
this.materialName = ""; this.localFileUrl = "";
this.filetype = "示例样表";
this.source = 1;
} }
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumFileEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumFileEntity;
* 材料附件查询对象 * 材料附件查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-17 * @date 2022-11-16
*/ */
public class MatterDatumFileQuery extends MatterDatumFileEntity { public class MatterDatumFileQuery extends MatterDatumFileEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,23 +33,23 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -33,23 +33,23 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
/** 材料id列表 */ /** 材料id列表 */
private List <Long> datumIdList; private List <Long> datumIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 材料名 */
private List<String> materialNameList;
/** 附件名称 */ /** 附件名称 */
private List<String> fileNameList; private List<String> fileNameList;
/** 附件下载地址 */ /** 附件下载地址 */
private List<String> fileUrlList; private List<String> fileUrlList;
/** 开始 附件类型 (1.示例样表,2.空白表格) */ /** 附件本地下载地址 */
private Integer filetypeStart; private List<String> localFileUrlList;
/** 结束 附件类型 (1.示例样表,2.空白表格) */ /** 附件类型 (示例样表.示例样表,空白表格.空白表格) */
private Integer filetypeEnd; private List<String> filetypeList;
/** 增加 附件类型 (1.示例样表,2.空白表格) */
private Integer filetypeIncrement;
/** 附件类型 (1.示例样表,2.空白表格)列表 */
private List <Integer> filetypeList;
/** 开始 附件来源 (0.政务网,1.自定义) */ /** 开始 附件来源 (0.政务网,1.自定义) */
private Integer sourceStart; private Integer sourceStart;
...@@ -87,9 +87,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -87,9 +87,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
/** 结束 修改时间 */ /** 结束 修改时间 */
private String updateTimeEnd; private String updateTimeEnd;
/** 材料名 */
private List<String> materialNameList;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */ /** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<MatterDatumFileQuery> orConditionList; private List<MatterDatumFileQuery> orConditionList;
...@@ -226,6 +223,36 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -226,6 +223,36 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
this.datumIdList = datumIdList; this.datumIdList = datumIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/**
* 获取 材料名
* @return materialNameList
*/
public List<String> getMaterialNameList(){
return this.materialNameList;
}
/**
* 设置 材料名
* @param materialNameList
*/
public void setMaterialNameList(List<String> materialNameList){
this.materialNameList = materialNameList;
}
/** /**
* 获取 附件名称 * 获取 附件名称
* @return fileNameList * @return fileNameList
...@@ -257,69 +284,35 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -257,69 +284,35 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
this.fileUrlList = fileUrlList; this.fileUrlList = fileUrlList;
} }
/** /**
* 获取 开始 附件类型 (1.示例样表,2.空白表格) * 获取 附件本地下载地址
* @return filetypeStart * @return localFileUrlList
*/ */
public Integer getFiletypeStart(){ public List<String> getLocalFileUrlList(){
return this.filetypeStart; return this.localFileUrlList;
} }
/** /**
* 设置 开始 附件类型 (1.示例样表,2.空白表格) * 设置 附件本地下载地址
* @param filetypeStart * @param localFileUrlList
*/ */
public void setFiletypeStart(Integer filetypeStart){ public void setLocalFileUrlList(List<String> localFileUrlList){
this.filetypeStart = filetypeStart; this.localFileUrlList = localFileUrlList;
} }
/**
* 获取 结束 附件类型 (1.示例样表,2.空白表格)
* @return $filetypeEnd
*/
public Integer getFiletypeEnd(){
return this.filetypeEnd;
}
/**
* 设置 结束 附件类型 (1.示例样表,2.空白表格)
* @param filetypeEnd
*/
public void setFiletypeEnd(Integer filetypeEnd){
this.filetypeEnd = filetypeEnd;
}
/**
* 获取 增加 附件类型 (1.示例样表,2.空白表格)
* @return filetypeIncrement
*/
public Integer getFiletypeIncrement(){
return this.filetypeIncrement;
}
/**
* 设置 增加 附件类型 (1.示例样表,2.空白表格)
* @param filetypeIncrement
*/
public void setFiletypeIncrement(Integer filetypeIncrement){
this.filetypeIncrement = filetypeIncrement;
}
/** /**
* 获取 附件类型 (1.示例样表,2.空白表格) * 获取 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @return filetypeList * @return filetypeList
*/ */
public List<Integer> getFiletypeList(){ public List<String> getFiletypeList(){
return this.filetypeList; return this.filetypeList;
} }
/** /**
* 设置 附件类型 (1.示例样表,2.空白表格) * 设置 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @param filetypeList * @param filetypeList
*/ */
public void setFiletypeList(List<Integer> filetypeList){ public void setFiletypeList(List<String> filetypeList){
this.filetypeList = filetypeList; this.filetypeList = filetypeList;
} }
/** /**
* 获取 开始 附件来源 (0.政务网,1.自定义) * 获取 开始 附件来源 (0.政务网,1.自定义)
* @return sourceStart * @return sourceStart
...@@ -512,21 +505,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -512,21 +505,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
this.updateTimeEnd = updateTimeEnd; this.updateTimeEnd = updateTimeEnd;
} }
/**
* 获取 材料名
* @return materialNameList
*/
public List<String> getMaterialNameList(){
return this.materialNameList;
}
/**
* 设置 材料名
* @param materialNameList
*/
public void setMaterialNameList(List<String> materialNameList){
this.materialNameList = materialNameList;
}
/** /**
* 设置 主键,自增长 * 设置 主键,自增长
* @param id * @param id
...@@ -618,6 +596,44 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -618,6 +596,44 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterDatumFileQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterDatumFileQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/**
* 设置 材料名
* @param materialName
*/
public MatterDatumFileQuery materialName(String materialName){
setMaterialName(materialName);
return this;
}
/**
* 设置 材料名
* @param materialNameList
*/
public MatterDatumFileQuery materialNameList(List<String> materialNameList){
this.materialNameList = materialNameList;
return this;
}
/** /**
* 设置 附件名称 * 设置 附件名称
* @param fileName * @param fileName
...@@ -655,47 +671,40 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -655,47 +671,40 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
return this; return this;
} }
/**
* 设置 附件类型 (1.示例样表,2.空白表格)
* @param filetype
*/
public MatterDatumFileQuery filetype(Integer filetype){
setFiletype(filetype);
return this;
}
/** /**
* 设置 开始 附件类型 (1.示例样表,2.空白表格) * 设置 附件本地下载地址
* @param filetypeStart * @param localFileUrl
*/ */
public MatterDatumFileQuery filetypeStart(Integer filetypeStart){ public MatterDatumFileQuery localFileUrl(String localFileUrl){
this.filetypeStart = filetypeStart; setLocalFileUrl(localFileUrl);
return this; return this;
} }
/** /**
* 设置 结束 附件类型 (1.示例样表,2.空白表格) * 设置 附件本地下载地址
* @param filetypeEnd * @param localFileUrlList
*/ */
public MatterDatumFileQuery filetypeEnd(Integer filetypeEnd){ public MatterDatumFileQuery localFileUrlList(List<String> localFileUrlList){
this.filetypeEnd = filetypeEnd; this.localFileUrlList = localFileUrlList;
return this; return this;
} }
/** /**
* 设置 增加 附件类型 (1.示例样表,2.空白表格) * 设置 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @param filetypeIncrement * @param filetype
*/ */
public MatterDatumFileQuery filetypeIncrement(Integer filetypeIncrement){ public MatterDatumFileQuery filetype(String filetype){
this.filetypeIncrement = filetypeIncrement; setFiletype(filetype);
return this; return this;
} }
/** /**
* 设置 附件类型 (1.示例样表,2.空白表格) * 设置 附件类型 (示例样表.示例样表,空白表格.空白表格)
* @param filetypeList * @param filetypeList
*/ */
public MatterDatumFileQuery filetypeList(List<Integer> filetypeList){ public MatterDatumFileQuery filetypeList(List<String> filetypeList){
this.filetypeList = filetypeList; this.filetypeList = filetypeList;
return this; return this;
} }
...@@ -792,25 +801,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity { ...@@ -792,25 +801,6 @@ public class MatterDatumFileQuery extends MatterDatumFileEntity {
} }
/**
* 设置 材料名
* @param materialName
*/
public MatterDatumFileQuery materialName(String materialName){
setMaterialName(materialName);
return this;
}
/**
* 设置 材料名
* @param materialNameList
*/
public MatterDatumFileQuery materialNameList(List<String> materialNameList){
this.materialNameList = materialNameList;
return this;
}
/** /**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) * 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList * @return orConditionList
......
...@@ -7,7 +7,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumEntity; ...@@ -7,7 +7,7 @@ import com.mortals.xhx.module.matter.model.MatterDatumEntity;
* 事项申请材料查询对象 * 事项申请材料查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-17 * @date 2022-11-16
*/ */
public class MatterDatumQuery extends MatterDatumEntity { public class MatterDatumQuery extends MatterDatumEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -34,6 +34,9 @@ public class MatterDatumQuery extends MatterDatumEntity { ...@@ -34,6 +34,9 @@ public class MatterDatumQuery extends MatterDatumEntity {
/** 事项id列表 */ /** 事项id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -272,6 +275,21 @@ public class MatterDatumQuery extends MatterDatumEntity { ...@@ -272,6 +275,21 @@ public class MatterDatumQuery extends MatterDatumEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -889,6 +907,25 @@ public class MatterDatumQuery extends MatterDatumEntity { ...@@ -889,6 +907,25 @@ public class MatterDatumQuery extends MatterDatumEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterDatumQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterDatumQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterFlowlimitVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterFlowlimitVo;
* 事项办理流程实体对象 * 事项办理流程实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterFlowlimitEntity extends MatterFlowlimitVo { public class MatterFlowlimitEntity extends MatterFlowlimitVo {
...@@ -21,6 +21,10 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo { ...@@ -21,6 +21,10 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -63,6 +67,20 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo { ...@@ -63,6 +67,20 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -169,6 +187,7 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo { ...@@ -169,6 +187,7 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",flowName:").append(getFlowName()); sb.append(",flowName:").append(getFlowName());
sb.append(",flowTime:").append(getFlowTime()); sb.append(",flowTime:").append(getFlowTime());
...@@ -182,6 +201,8 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo { ...@@ -182,6 +201,8 @@ public class MatterFlowlimitEntity extends MatterFlowlimitVo {
this.matterId = 0L; this.matterId = 0L;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.flowName = ""; this.flowName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterFlowlimitEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterFlowlimitEntity;
* 事项办理流程查询对象 * 事项办理流程查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterFlowlimitQuery extends MatterFlowlimitEntity { public class MatterFlowlimitQuery extends MatterFlowlimitEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,6 +33,9 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity { ...@@ -33,6 +33,9 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity {
/** 事项基础表id列表 */ /** 事项基础表id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -220,6 +223,21 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity { ...@@ -220,6 +223,21 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -578,6 +596,25 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity { ...@@ -578,6 +596,25 @@ public class MatterFlowlimitQuery extends MatterFlowlimitEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterFlowlimitQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterFlowlimitQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterIntermediaryVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterIntermediaryVo;
* 事项中介服务实体对象 * 事项中介服务实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterIntermediaryEntity extends MatterIntermediaryVo { public class MatterIntermediaryEntity extends MatterIntermediaryVo {
...@@ -21,6 +21,10 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -21,6 +21,10 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -37,7 +41,7 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -37,7 +41,7 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
*/ */
private String intermediaryRequestTime; private String intermediaryRequestTime;
/** /**
* 备注 * 内容
*/ */
private String remark; private String remark;
/** /**
...@@ -63,6 +67,20 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -63,6 +67,20 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -119,14 +137,14 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -119,14 +137,14 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
this.intermediaryRequestTime = intermediaryRequestTime; this.intermediaryRequestTime = intermediaryRequestTime;
} }
/** /**
* 获取 备注 * 获取 内容
* @return String * @return String
*/ */
public String getRemark(){ public String getRemark(){
return remark; return remark;
} }
/** /**
* 设置 备注 * 设置 内容
* @param remark * @param remark
*/ */
public void setRemark(String remark){ public void setRemark(String remark){
...@@ -169,6 +187,7 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -169,6 +187,7 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",title:").append(getTitle()); sb.append(",title:").append(getTitle());
sb.append(",intermediaryRequest:").append(getIntermediaryRequest()); sb.append(",intermediaryRequest:").append(getIntermediaryRequest());
...@@ -182,15 +201,17 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo { ...@@ -182,15 +201,17 @@ public class MatterIntermediaryEntity extends MatterIntermediaryVo {
this.matterId = 0L; this.matterId = 0L;
this.matterName = null; this.matterCode = "";
this.matterName = "";
this.title = null; this.title = "";
this.intermediaryRequest = null; this.intermediaryRequest = "";
this.intermediaryRequestTime = null; this.intermediaryRequestTime = "";
this.remark = null; this.remark = "";
this.source = 0; this.source = 0;
} }
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterIntermediaryEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterIntermediaryEntity;
* 事项中介服务查询对象 * 事项中介服务查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterIntermediaryQuery extends MatterIntermediaryEntity { public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,6 +33,9 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -33,6 +33,9 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
/** 事项matter id列表 */ /** 事项matter id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -45,7 +48,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -45,7 +48,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
/** 服务时限 */ /** 服务时限 */
private List<String> intermediaryRequestTimeList; private List<String> intermediaryRequestTimeList;
/** 备注 */ /** 内容 */
private List<String> remarkList; private List<String> remarkList;
/** 开始 事项来源,(0.政务网,1.自定义) */ /** 开始 事项来源,(0.政务网,1.自定义) */
...@@ -220,6 +223,21 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -220,6 +223,21 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -281,7 +299,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -281,7 +299,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
this.intermediaryRequestTimeList = intermediaryRequestTimeList; this.intermediaryRequestTimeList = intermediaryRequestTimeList;
} }
/** /**
* 获取 备注 * 获取 内容
* @return remarkList * @return remarkList
*/ */
public List<String> getRemarkList(){ public List<String> getRemarkList(){
...@@ -289,7 +307,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -289,7 +307,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
} }
/** /**
* 设置 备注 * 设置 内容
* @param remarkList * @param remarkList
*/ */
public void setRemarkList(List<String> remarkList){ public void setRemarkList(List<String> remarkList){
...@@ -578,6 +596,25 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -578,6 +596,25 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterIntermediaryQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterIntermediaryQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
...@@ -655,7 +692,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -655,7 +692,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
/** /**
* 设置 备注 * 设置 内容
* @param remark * @param remark
*/ */
public MatterIntermediaryQuery remark(String remark){ public MatterIntermediaryQuery remark(String remark){
...@@ -664,7 +701,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity { ...@@ -664,7 +701,7 @@ public class MatterIntermediaryQuery extends MatterIntermediaryEntity {
} }
/** /**
* 设置 备注 * 设置 内容
* @param remarkList * @param remarkList
*/ */
public MatterIntermediaryQuery remarkList(List<String> remarkList){ public MatterIntermediaryQuery remarkList(List<String> remarkList){
......
...@@ -4,11 +4,11 @@ import java.util.Date; ...@@ -4,11 +4,11 @@ import java.util.Date;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.matter.model.MatterEntity; import com.mortals.xhx.module.matter.model.MatterEntity;
/** /**
* 基础事项查询对象 * 基础事项查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-10-13 * @date 2022-11-16
*/ */
public class MatterQuery extends MatterEntity { public class MatterQuery extends MatterEntity {
/** 开始 序号,主键,自增长 */ /** 开始 序号,主键,自增长 */
private Long idStart; private Long idStart;
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterQuestionVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterQuestionVo;
* 事项常见问题实体对象 * 事项常见问题实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterQuestionEntity extends MatterQuestionVo { public class MatterQuestionEntity extends MatterQuestionVo {
...@@ -21,6 +21,10 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -21,6 +21,10 @@ public class MatterQuestionEntity extends MatterQuestionVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -29,7 +33,7 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -29,7 +33,7 @@ public class MatterQuestionEntity extends MatterQuestionVo {
*/ */
private String question; private String question;
/** /**
* 回答 * 常见问题
*/ */
private String answer; private String answer;
/** /**
...@@ -55,6 +59,20 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -55,6 +59,20 @@ public class MatterQuestionEntity extends MatterQuestionVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -83,14 +101,14 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -83,14 +101,14 @@ public class MatterQuestionEntity extends MatterQuestionVo {
this.question = question; this.question = question;
} }
/** /**
* 获取 回答 * 获取 常见问题
* @return String * @return String
*/ */
public String getAnswer(){ public String getAnswer(){
return answer; return answer;
} }
/** /**
* 设置 回答 * 设置 常见问题
* @param answer * @param answer
*/ */
public void setAnswer(String answer){ public void setAnswer(String answer){
...@@ -133,6 +151,7 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -133,6 +151,7 @@ public class MatterQuestionEntity extends MatterQuestionVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",question:").append(getQuestion()); sb.append(",question:").append(getQuestion());
sb.append(",answer:").append(getAnswer()); sb.append(",answer:").append(getAnswer());
...@@ -144,6 +163,8 @@ public class MatterQuestionEntity extends MatterQuestionVo { ...@@ -144,6 +163,8 @@ public class MatterQuestionEntity extends MatterQuestionVo {
this.matterId = 0L; this.matterId = 0L;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.question = ""; this.question = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterQuestionEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterQuestionEntity;
* 事项常见问题查询对象 * 事项常见问题查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterQuestionQuery extends MatterQuestionEntity { public class MatterQuestionQuery extends MatterQuestionEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,13 +33,16 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -33,13 +33,16 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
/** 事项基础表matter id列表 */ /** 事项基础表matter id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
/** 问题 */ /** 问题 */
private List<String> questionList; private List<String> questionList;
/** 回答 */ /** 常见问题 */
private List<String> answerList; private List<String> answerList;
/** 开始 事项来源,(0.政务网,1.自定义) */ /** 开始 事项来源,(0.政务网,1.自定义) */
...@@ -214,6 +217,21 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -214,6 +217,21 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -245,7 +263,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -245,7 +263,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
this.questionList = questionList; this.questionList = questionList;
} }
/** /**
* 获取 回答 * 获取 常见问题
* @return answerList * @return answerList
*/ */
public List<String> getAnswerList(){ public List<String> getAnswerList(){
...@@ -253,7 +271,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -253,7 +271,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
} }
/** /**
* 设置 回答 * 设置 常见问题
* @param answerList * @param answerList
*/ */
public void setAnswerList(List<String> answerList){ public void setAnswerList(List<String> answerList){
...@@ -542,6 +560,25 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -542,6 +560,25 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterQuestionQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterQuestionQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
...@@ -581,7 +618,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -581,7 +618,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
/** /**
* 设置 回答 * 设置 常见问题
* @param answer * @param answer
*/ */
public MatterQuestionQuery answer(String answer){ public MatterQuestionQuery answer(String answer){
...@@ -590,7 +627,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity { ...@@ -590,7 +627,7 @@ public class MatterQuestionQuery extends MatterQuestionEntity {
} }
/** /**
* 设置 回答 * 设置 常见问题
* @param answerList * @param answerList
*/ */
public MatterQuestionQuery answerList(List<String> answerList){ public MatterQuestionQuery answerList(List<String> answerList){
......
...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterSetbaseVo; ...@@ -10,7 +10,7 @@ import com.mortals.xhx.module.matter.model.vo.MatterSetbaseVo;
* 事项设定依据实体对象 * 事项设定依据实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterSetbaseEntity extends MatterSetbaseVo { public class MatterSetbaseEntity extends MatterSetbaseVo {
...@@ -21,6 +21,10 @@ public class MatterSetbaseEntity extends MatterSetbaseVo { ...@@ -21,6 +21,10 @@ public class MatterSetbaseEntity extends MatterSetbaseVo {
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项编码
*/
private String matterCode;
/**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
...@@ -63,6 +67,20 @@ public class MatterSetbaseEntity extends MatterSetbaseVo { ...@@ -63,6 +67,20 @@ public class MatterSetbaseEntity extends MatterSetbaseVo {
this.matterId = matterId; this.matterId = matterId;
} }
/** /**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/**
* 获取 事项名称 * 获取 事项名称
* @return String * @return String
*/ */
...@@ -169,6 +187,7 @@ public class MatterSetbaseEntity extends MatterSetbaseVo { ...@@ -169,6 +187,7 @@ public class MatterSetbaseEntity extends MatterSetbaseVo {
public String toString(){ public String toString(){
StringBuilder sb = new StringBuilder(""); StringBuilder sb = new StringBuilder("");
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",policyName:").append(getPolicyName()); sb.append(",policyName:").append(getPolicyName());
sb.append(",policyType:").append(getPolicyType()); sb.append(",policyType:").append(getPolicyType());
...@@ -182,6 +201,8 @@ public class MatterSetbaseEntity extends MatterSetbaseVo { ...@@ -182,6 +201,8 @@ public class MatterSetbaseEntity extends MatterSetbaseVo {
this.matterId = 0L; this.matterId = 0L;
this.matterCode = "";
this.matterName = ""; this.matterName = "";
this.policyName = ""; this.policyName = "";
......
...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterSetbaseEntity; ...@@ -6,7 +6,7 @@ import com.mortals.xhx.module.matter.model.MatterSetbaseEntity;
* 事项设定依据查询对象 * 事项设定依据查询对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-12 * @date 2022-11-16
*/ */
public class MatterSetbaseQuery extends MatterSetbaseEntity { public class MatterSetbaseQuery extends MatterSetbaseEntity {
/** 开始 主键,自增长 */ /** 开始 主键,自增长 */
...@@ -33,6 +33,9 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity { ...@@ -33,6 +33,9 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity {
/** 事项matter id列表 */ /** 事项matter id列表 */
private List <Long> matterIdList; private List <Long> matterIdList;
/** 事项编码 */
private List<String> matterCodeList;
/** 事项名称 */ /** 事项名称 */
private List<String> matterNameList; private List<String> matterNameList;
...@@ -220,6 +223,21 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity { ...@@ -220,6 +223,21 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity {
this.matterIdList = matterIdList; this.matterIdList = matterIdList;
} }
/**
* 获取 事项编码
* @return matterCodeList
*/
public List<String> getMatterCodeList(){
return this.matterCodeList;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public void setMatterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
}
/** /**
* 获取 事项名称 * 获取 事项名称
* @return matterNameList * @return matterNameList
...@@ -578,6 +596,25 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity { ...@@ -578,6 +596,25 @@ public class MatterSetbaseQuery extends MatterSetbaseEntity {
} }
/**
* 设置 事项编码
* @param matterCode
*/
public MatterSetbaseQuery matterCode(String matterCode){
setMatterCode(matterCode);
return this;
}
/**
* 设置 事项编码
* @param matterCodeList
*/
public MatterSetbaseQuery matterCodeList(List<String> matterCodeList){
this.matterCodeList = matterCodeList;
return this;
}
/** /**
* 设置 事项名称 * 设置 事项名称
* @param matterName * @param matterName
......
...@@ -4,6 +4,7 @@ import com.mortals.framework.model.Context; ...@@ -4,6 +4,7 @@ import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDCacheService; import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService; import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.matter.model.MatterEntity; import com.mortals.xhx.module.matter.model.MatterEntity;
import com.mortals.xhx.module.site.model.SiteMatterEntity;
import org.w3c.dom.Document; import org.w3c.dom.Document;
import java.util.Map; import java.util.Map;
...@@ -56,4 +57,13 @@ public interface MatterService extends ICRUDCacheService<MatterEntity,Long> { ...@@ -56,4 +57,13 @@ public interface MatterService extends ICRUDCacheService<MatterEntity,Long> {
Rest<String> buildMatterDetail(MatterEntity matterEntity, Context context); Rest<String> buildMatterDetail(MatterEntity matterEntity, Context context);
/**
* 添加业务到站点
* @param matterEntity
* @param siteId
* @param context
*/
Rest<SiteMatterEntity> switchMatterToSiteMatterr(MatterEntity matterEntity, Long siteId, Context context);
} }
\ No newline at end of file
package com.mortals.xhx.module.site.model; package com.mortals.xhx.module.site.model;
import com.mortals.xhx.module.site.model.vo.SiteMatterVo; import com.mortals.xhx.module.site.model.vo.SiteMatterVo;
/** /**
* 站点事项实体对象 * 站点事项实体对象
* *
* @author zxfei * @author zxfei
* @date 2022-01-20 * @date 2022-11-16
*/ */
public class SiteMatterEntity extends SiteMatterVo { public class SiteMatterEntity extends SiteMatterVo {
...@@ -28,6 +27,10 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -28,6 +27,10 @@ public class SiteMatterEntity extends SiteMatterVo {
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
/**
* 事项编码
*/
private String matterCode;
/** /**
* 部门ID * 部门ID
*/ */
...@@ -36,6 +39,14 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -36,6 +39,14 @@ public class SiteMatterEntity extends SiteMatterVo {
* 部门名称 * 部门名称
*/ */
private String deptName; private String deptName;
/**
* 事项来源
*/
private Integer source;
/**
* 部门编号
*/
private String deptCode;
...@@ -96,6 +107,20 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -96,6 +107,20 @@ public class SiteMatterEntity extends SiteMatterVo {
public void setMatterName(String matterName){ public void setMatterName(String matterName){
this.matterName = matterName; this.matterName = matterName;
} }
/**
* 获取 事项编码
* @return String
*/
public String getMatterCode(){
return matterCode;
}
/**
* 设置 事项编码
* @param matterCode
*/
public void setMatterCode(String matterCode){
this.matterCode = matterCode;
}
/** /**
* 获取 部门ID * 获取 部门ID
* @return Long * @return Long
...@@ -124,6 +149,34 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -124,6 +149,34 @@ public class SiteMatterEntity extends SiteMatterVo {
public void setDeptName(String deptName){ public void setDeptName(String deptName){
this.deptName = deptName; this.deptName = deptName;
} }
/**
* 获取 事项来源
* @return Integer
*/
public Integer getSource(){
return source;
}
/**
* 设置 事项来源
* @param source
*/
public void setSource(Integer source){
this.source = source;
}
/**
* 获取 部门编号
* @return String
*/
public String getDeptCode(){
return deptCode;
}
/**
* 设置 部门编号
* @param deptCode
*/
public void setDeptCode(String deptCode){
this.deptCode = deptCode;
}
...@@ -150,23 +203,32 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -150,23 +203,32 @@ public class SiteMatterEntity extends SiteMatterVo {
sb.append(",siteName:").append(getSiteName()); sb.append(",siteName:").append(getSiteName());
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterName:").append(getMatterName()); sb.append(",matterName:").append(getMatterName());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",deptId:").append(getDeptId()); sb.append(",deptId:").append(getDeptId());
sb.append(",deptName:").append(getDeptName()); sb.append(",deptName:").append(getDeptName());
sb.append(",source:").append(getSource());
sb.append(",deptCode:").append(getDeptCode());
return sb.toString(); return sb.toString();
} }
public void initAttrValue(){ public void initAttrValue(){
this.siteId = null; this.siteId = -1L;
this.siteName = null; this.siteName = "";
this.matterId = null; this.matterId = null;
this.matterName = null; this.matterName = "";
this.matterCode = "";
this.deptId = null; this.deptId = null;
this.deptName = null; this.deptName = "";
this.source = 0;
this.deptCode = "";
} }
} }
\ No newline at end of file
package com.mortals.xhx.module.site.service; package com.mortals.xhx.module.site.service;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDService; import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.site.model.SiteMatterEntity; import com.mortals.xhx.module.site.model.SiteMatterEntity;
/** /**
...@@ -10,5 +11,5 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity; ...@@ -10,5 +11,5 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity;
* @date 2022-01-12 * @date 2022-01-12
*/ */
public interface SiteMatterService extends ICRUDService<SiteMatterEntity,Long>{ public interface SiteMatterService extends ICRUDService<SiteMatterEntity,Long>{
void deleteBysiteIdAndSource(Long siteId,Integer source, Context context);
} }
\ No newline at end of file
...@@ -74,4 +74,6 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> { ...@@ -74,4 +74,6 @@ public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
Rest<String> syncMatterBySiteId(Long siteId, Context context); Rest<String> syncMatterBySiteId(Long siteId, Context context);
void deleteBysiteIdAndSource(Long siteId,Integer source, Context context);
} }
\ No newline at end of file
...@@ -12,7 +12,9 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity; ...@@ -12,7 +12,9 @@ import com.mortals.xhx.module.site.model.SiteMatterEntity;
import com.mortals.xhx.module.site.service.SiteMatterService; import com.mortals.xhx.module.site.service.SiteMatterService;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* SiteMatterService * SiteMatterService
...@@ -42,4 +44,12 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao ...@@ -42,4 +44,12 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
}); });
super.findAfter(params, pageInfo, context, list); super.findAfter(params, pageInfo, context, list);
} }
@Override
public void deleteBysiteIdAndSource(Long siteId, Integer source, Context context) {
Map<String, Object> condition = new HashMap<>();
condition.put("siteId", siteId);
condition.put("source", source);
this.dao.delete(condition);
}
} }
\ No newline at end of file
...@@ -22,6 +22,7 @@ import com.mortals.xhx.module.model.service.ModelService; ...@@ -22,6 +22,7 @@ import com.mortals.xhx.module.model.service.ModelService;
import com.mortals.xhx.module.site.model.SiteEntity; import com.mortals.xhx.module.site.model.SiteEntity;
import com.mortals.xhx.module.site.model.SiteQuery; import com.mortals.xhx.module.site.model.SiteQuery;
import com.mortals.xhx.module.site.model.SiteTreeSelect; import com.mortals.xhx.module.site.model.SiteTreeSelect;
import com.mortals.xhx.module.site.service.SiteMatterService;
import com.mortals.xhx.module.site.service.SiteService; import com.mortals.xhx.module.site.service.SiteService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
...@@ -57,6 +58,8 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic ...@@ -57,6 +58,8 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
private DeptService deptService; private DeptService deptService;
@Autowired @Autowired
private SiteService siteService; private SiteService siteService;
@Autowired
private SiteMatterService siteMatterService;
public SiteController() { public SiteController() {
super.setFormClass(SiteForm.class); super.setFormClass(SiteForm.class);
...@@ -265,17 +268,21 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic ...@@ -265,17 +268,21 @@ public class SiteController extends BaseCRUDJsonBodyMappingController<SiteServic
* 同步站点事项数据 * 同步站点事项数据
*/ */
@PostMapping(value = "syncGovMatterBySiteId") @PostMapping(value = "syncGovMatterBySiteId")
@UnAuth
public String syncMatterBySiteId(@RequestBody SiteQuery site) { public String syncMatterBySiteId(@RequestBody SiteQuery site) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
String busiDesc = "同步站点事项数据" + this.getModuleDesc(); String busiDesc = "同步站点事项数据" + this.getModuleDesc();
try { try {
SiteEntity siteEntity = this.service.get(site.getId(), getContext()); SiteEntity siteEntity = this.service.get(site.getId(), getContext());
//启动 //启动
if(ObjectUtils.isEmpty(siteEntity)){
throw new AppException("当前站点为空!");
}
boolean bool = cacheService.setnx(RedisCacheKeys.getFlowDistributedLockKey() + siteEntity.getAreaCode(), siteEntity.getAreaCode(), 60L); boolean bool = cacheService.setnx(RedisCacheKeys.getFlowDistributedLockKey() + siteEntity.getAreaCode(), siteEntity.getAreaCode(), 60L);
if (!bool) { if (!bool) {
throw new AppException("当前正在同步事项数据中,请勿重复提交!"); throw new AppException("当前正在同步事项数据中,请勿重复提交!");
} }
ThreadPool.getInstance().execute(new SyncGovMatterDetailThread(matterService, siteService, deptService, siteEntity, getContext())); ThreadPool.getInstance().execute(new SyncGovMatterDetailThread(matterService, siteService, deptService, siteMatterService, siteEntity, getContext()));
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS); jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
jsonObject.put(KEY_RESULT_MSG, "同步站点事项数据命令下发成功!"); jsonObject.put(KEY_RESULT_MSG, "同步站点事项数据命令下发成功!");
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.matter.dao.ibatis.MatterDaoImpl"> <mapper namespace="com.mortals.xhx.module.matter.dao.ibatis.MatterDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
......
{ {
"base-local": { "base-local": {
"baseUrl": "http://127.0.0.1:17214/base" "baseUrl": "http://127.0.0.1:17211/base"
}, },
"base-dev": { "base-dev": {
"baseUrl": "http://192.168.0.60:17211/base" "baseUrl": "http://192.168.0.60:17211/base"
......
This diff is collapsed.
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