30 changed files with 1273 additions and 16 deletions
@ -0,0 +1,34 @@ |
|||||
|
package com.zdxt.enforcementcode.domain; |
||||
|
|
||||
|
/** |
||||
|
* @Author: kylin |
||||
|
* @Date: 2024/7/3 5:46 下午 |
||||
|
* @Version: 1.0 |
||||
|
* @Desc: TODO |
||||
|
*/ |
||||
|
public class FileData { |
||||
|
/** |
||||
|
* 附件名称 |
||||
|
*/ |
||||
|
private String fileName; |
||||
|
/** |
||||
|
* 附件数据流,需要转成Base64编码格式 |
||||
|
*/ |
||||
|
private String fileBytes; |
||||
|
|
||||
|
public String getFileName() { |
||||
|
return fileName; |
||||
|
} |
||||
|
|
||||
|
public void setFileName(String fileName) { |
||||
|
this.fileName = fileName; |
||||
|
} |
||||
|
|
||||
|
public String getFileBytes() { |
||||
|
return fileBytes; |
||||
|
} |
||||
|
|
||||
|
public void setFileBytes(String fileBytes) { |
||||
|
this.fileBytes = fileBytes; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,497 @@ |
|||||
|
package com.zdxt.enforcementcode.domain; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 民生诉求工单DTO |
||||
|
*/ |
||||
|
public class MssqAddOrder extends MssqBaseDomain { |
||||
|
|
||||
|
/** |
||||
|
* 诉求标题 |
||||
|
*/ |
||||
|
private String requestTopic; |
||||
|
/** |
||||
|
* 诉求内容 |
||||
|
*/ |
||||
|
private String requestContent; |
||||
|
|
||||
|
/** |
||||
|
* 联系人姓名 |
||||
|
*/ |
||||
|
private String contactName; |
||||
|
|
||||
|
/** |
||||
|
* 联系人电话 |
||||
|
*/ |
||||
|
private String contactTel; |
||||
|
|
||||
|
/** |
||||
|
* 证件类型:字典参数类型:zjlx |
||||
|
*/ |
||||
|
private Integer certType; |
||||
|
|
||||
|
/** |
||||
|
* 证件号码 |
||||
|
*/ |
||||
|
private String certCode; |
||||
|
|
||||
|
/** |
||||
|
* 联系地址 |
||||
|
*/ |
||||
|
private String contactAddress; |
||||
|
/** |
||||
|
* 事发地址 |
||||
|
*/ |
||||
|
private String requestArea; |
||||
|
|
||||
|
/** |
||||
|
* 事发详细地址X坐标 |
||||
|
*/ |
||||
|
private String addressX; |
||||
|
|
||||
|
/** |
||||
|
* 事发详细地址Y坐标 |
||||
|
*/ |
||||
|
private String addressY; |
||||
|
/** |
||||
|
* 来源渠道:字典参数类型:sqly |
||||
|
*/ |
||||
|
private Integer requestFrom; |
||||
|
|
||||
|
/** |
||||
|
* 公开意向 y—公开 n—不公开 |
||||
|
*/ |
||||
|
private String pubIntent; |
||||
|
|
||||
|
/** |
||||
|
* 工单类型:字典参数类型:sqlx |
||||
|
*/ |
||||
|
private Integer orderType; |
||||
|
|
||||
|
/** |
||||
|
* 是否党员: 1: 是; 0: 否 |
||||
|
*/ |
||||
|
private Integer isParty; |
||||
|
/** |
||||
|
* 第三方系统工单id |
||||
|
*/ |
||||
|
private String extendId; |
||||
|
|
||||
|
/** |
||||
|
* 事发地址所属区 |
||||
|
*/ |
||||
|
private String area; |
||||
|
|
||||
|
/** |
||||
|
* 事发地址所属街道 |
||||
|
*/ |
||||
|
private String street; |
||||
|
|
||||
|
/** |
||||
|
* 是否保密: 1: 是; 0: 否 |
||||
|
*/ |
||||
|
private Integer isSecrecy; |
||||
|
/** |
||||
|
* 事项编码 |
||||
|
*/ |
||||
|
private String actCode; |
||||
|
|
||||
|
/** |
||||
|
* 诉求分类(个人/商事主体): 1: 个人; 2: 商事主体 |
||||
|
*/ |
||||
|
private Integer formUserNature; |
||||
|
/** |
||||
|
* 涉事主体 |
||||
|
*/ |
||||
|
private String thingSubject; |
||||
|
|
||||
|
/** |
||||
|
* 涉事主体地址(如:**区**街道**) |
||||
|
*/ |
||||
|
private String subjectAddress; |
||||
|
|
||||
|
/** |
||||
|
* 上传附件数据集 |
||||
|
*/ |
||||
|
private List<FileData> fileDatas; |
||||
|
|
||||
|
|
||||
|
/** 工单编码 */ |
||||
|
private String proWoCode; |
||||
|
/** 工单编码,可以传递多个,最多20个 */ |
||||
|
private List<String> proWoCodes; |
||||
|
/** 开始时间 YYYY-MM-DD HH24:MI:SS */ |
||||
|
private String startTime; |
||||
|
/** 结束时间 YYYY-MM-DD HH24:MI:SS */ |
||||
|
private String endTime; |
||||
|
|
||||
|
private String appId; |
||||
|
private String sign; |
||||
|
private String timestamp; |
||||
|
/** 评价渠道 */ |
||||
|
private String pf; |
||||
|
/** 回调网址 */ |
||||
|
private String backUrl; |
||||
|
/** 评价业务,诉求工单代码值4 */ |
||||
|
private String assessServiceType; |
||||
|
/** 业务主键(诉求工单编号) */ |
||||
|
private String assessServiceCode; |
||||
|
/** 评价对象名称(诉求工单事项名称,若无则传诉求工单标题) */ |
||||
|
private String assessObjectName; |
||||
|
/** 评价对象编码(诉求工单事项编号,若无则传诉求工单编号) */ |
||||
|
private String assessObjectCode; |
||||
|
/** 部门编码(处理部门编码,区平台可以用区编码,编码需要保持与通过工作门户下发的一致) */ |
||||
|
private String deptCode; |
||||
|
/** 评价人名称 */ |
||||
|
private String evaluatorName; |
||||
|
/** 评价人联系号码 */ |
||||
|
private String evaluatorPapersPhone; |
||||
|
/** 附件地址 */ |
||||
|
private List<String> uploadPaths; |
||||
|
private String uploadPath; |
||||
|
|
||||
|
/** |
||||
|
* 获取工单流程信息-工单编码参数 |
||||
|
*/ |
||||
|
private String orderCode; |
||||
|
|
||||
|
public String getUploadPath() { |
||||
|
return uploadPath; |
||||
|
} |
||||
|
|
||||
|
public void setUploadPath(String uploadPath) { |
||||
|
this.uploadPath = uploadPath; |
||||
|
} |
||||
|
|
||||
|
public List<String> getUploadPaths() { |
||||
|
return uploadPaths; |
||||
|
} |
||||
|
|
||||
|
public void setUploadPaths(List<String> uploadPaths) { |
||||
|
this.uploadPaths = uploadPaths; |
||||
|
} |
||||
|
|
||||
|
public String getAppId() { |
||||
|
return appId; |
||||
|
} |
||||
|
|
||||
|
public void setAppId(String appId) { |
||||
|
this.appId = appId; |
||||
|
} |
||||
|
|
||||
|
public String getSign() { |
||||
|
return sign; |
||||
|
} |
||||
|
|
||||
|
public void setSign(String sign) { |
||||
|
this.sign = sign; |
||||
|
} |
||||
|
|
||||
|
public String getTimestamp() { |
||||
|
return timestamp; |
||||
|
} |
||||
|
|
||||
|
public void setTimestamp(String timestamp) { |
||||
|
this.timestamp = timestamp; |
||||
|
} |
||||
|
|
||||
|
public String getPf() { |
||||
|
return pf; |
||||
|
} |
||||
|
|
||||
|
public void setPf(String pf) { |
||||
|
this.pf = pf; |
||||
|
} |
||||
|
|
||||
|
public String getBackUrl() { |
||||
|
return backUrl; |
||||
|
} |
||||
|
|
||||
|
public void setBackUrl(String backUrl) { |
||||
|
this.backUrl = backUrl; |
||||
|
} |
||||
|
|
||||
|
public String getAssessServiceType() { |
||||
|
return assessServiceType; |
||||
|
} |
||||
|
|
||||
|
public void setAssessServiceType(String assessServiceType) { |
||||
|
this.assessServiceType = assessServiceType; |
||||
|
} |
||||
|
|
||||
|
public String getAssessServiceCode() { |
||||
|
return assessServiceCode; |
||||
|
} |
||||
|
|
||||
|
public void setAssessServiceCode(String assessServiceCode) { |
||||
|
this.assessServiceCode = assessServiceCode; |
||||
|
} |
||||
|
|
||||
|
public String getAssessObjectName() { |
||||
|
return assessObjectName; |
||||
|
} |
||||
|
|
||||
|
public void setAssessObjectName(String assessObjectName) { |
||||
|
this.assessObjectName = assessObjectName; |
||||
|
} |
||||
|
|
||||
|
public String getAssessObjectCode() { |
||||
|
return assessObjectCode; |
||||
|
} |
||||
|
|
||||
|
public void setAssessObjectCode(String assessObjectCode) { |
||||
|
this.assessObjectCode = assessObjectCode; |
||||
|
} |
||||
|
|
||||
|
public String getDeptCode() { |
||||
|
return deptCode; |
||||
|
} |
||||
|
|
||||
|
public void setDeptCode(String deptCode) { |
||||
|
this.deptCode = deptCode; |
||||
|
} |
||||
|
|
||||
|
public String getEvaluatorName() { |
||||
|
return evaluatorName; |
||||
|
} |
||||
|
|
||||
|
public void setEvaluatorName(String evaluatorName) { |
||||
|
this.evaluatorName = evaluatorName; |
||||
|
} |
||||
|
|
||||
|
public String getEvaluatorPapersPhone() { |
||||
|
return evaluatorPapersPhone; |
||||
|
} |
||||
|
|
||||
|
public void setEvaluatorPapersPhone(String evaluatorPapersPhone) { |
||||
|
this.evaluatorPapersPhone = evaluatorPapersPhone; |
||||
|
} |
||||
|
|
||||
|
public String getProWoCode() { |
||||
|
return proWoCode; |
||||
|
} |
||||
|
|
||||
|
public void setProWoCode(String proWoCode) { |
||||
|
this.proWoCode = proWoCode; |
||||
|
} |
||||
|
|
||||
|
public List<String> getProWoCodes() { |
||||
|
return proWoCodes; |
||||
|
} |
||||
|
|
||||
|
public void setProWoCodes(List<String> proWoCodes) { |
||||
|
this.proWoCodes = proWoCodes; |
||||
|
} |
||||
|
|
||||
|
public Integer getRequestFrom() { |
||||
|
return requestFrom; |
||||
|
} |
||||
|
|
||||
|
public void setRequestFrom(Integer requestFrom) { |
||||
|
this.requestFrom = requestFrom; |
||||
|
} |
||||
|
|
||||
|
public String getStartTime() { |
||||
|
return startTime; |
||||
|
} |
||||
|
|
||||
|
public void setStartTime(String startTime) { |
||||
|
this.startTime = startTime; |
||||
|
} |
||||
|
|
||||
|
public String getEndTime() { |
||||
|
return endTime; |
||||
|
} |
||||
|
|
||||
|
public void setEndTime(String endTime) { |
||||
|
this.endTime = endTime; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public String getRequestTopic() { |
||||
|
return requestTopic; |
||||
|
} |
||||
|
|
||||
|
public void setRequestTopic(String requestTopic) { |
||||
|
this.requestTopic = requestTopic; |
||||
|
} |
||||
|
|
||||
|
public String getRequestContent() { |
||||
|
return requestContent; |
||||
|
} |
||||
|
|
||||
|
public void setRequestContent(String requestContent) { |
||||
|
this.requestContent = requestContent; |
||||
|
} |
||||
|
|
||||
|
public String getContactName() { |
||||
|
return contactName; |
||||
|
} |
||||
|
|
||||
|
public void setContactName(String contactName) { |
||||
|
this.contactName = contactName; |
||||
|
} |
||||
|
|
||||
|
public String getContactTel() { |
||||
|
return contactTel; |
||||
|
} |
||||
|
|
||||
|
public void setContactTel(String contactTel) { |
||||
|
this.contactTel = contactTel; |
||||
|
} |
||||
|
|
||||
|
public Integer getCertType() { |
||||
|
return certType; |
||||
|
} |
||||
|
|
||||
|
public void setCertType(Integer certType) { |
||||
|
this.certType = certType; |
||||
|
} |
||||
|
|
||||
|
public String getCertCode() { |
||||
|
return certCode; |
||||
|
} |
||||
|
|
||||
|
public void setCertCode(String certCode) { |
||||
|
this.certCode = certCode; |
||||
|
} |
||||
|
|
||||
|
public String getContactAddress() { |
||||
|
return contactAddress; |
||||
|
} |
||||
|
|
||||
|
public void setContactAddress(String contactAddress) { |
||||
|
this.contactAddress = contactAddress; |
||||
|
} |
||||
|
|
||||
|
public String getRequestArea() { |
||||
|
return requestArea; |
||||
|
} |
||||
|
|
||||
|
public void setRequestArea(String requestArea) { |
||||
|
this.requestArea = requestArea; |
||||
|
} |
||||
|
|
||||
|
public String getAddressX() { |
||||
|
return addressX; |
||||
|
} |
||||
|
|
||||
|
public void setAddressX(String addressX) { |
||||
|
this.addressX = addressX; |
||||
|
} |
||||
|
|
||||
|
public String getAddressY() { |
||||
|
return addressY; |
||||
|
} |
||||
|
|
||||
|
public void setAddressY(String addressY) { |
||||
|
this.addressY = addressY; |
||||
|
} |
||||
|
|
||||
|
public String getPubIntent() { |
||||
|
return pubIntent; |
||||
|
} |
||||
|
|
||||
|
public void setPubIntent(String pubIntent) { |
||||
|
this.pubIntent = pubIntent; |
||||
|
} |
||||
|
|
||||
|
public Integer getOrderType() { |
||||
|
return orderType; |
||||
|
} |
||||
|
|
||||
|
public void setOrderType(Integer orderType) { |
||||
|
this.orderType = orderType; |
||||
|
} |
||||
|
|
||||
|
public Integer getIsParty() { |
||||
|
return isParty; |
||||
|
} |
||||
|
|
||||
|
public void setIsParty(Integer isParty) { |
||||
|
this.isParty = isParty; |
||||
|
} |
||||
|
|
||||
|
public String getExtendId() { |
||||
|
return extendId; |
||||
|
} |
||||
|
|
||||
|
public void setExtendId(String extendId) { |
||||
|
this.extendId = extendId; |
||||
|
} |
||||
|
|
||||
|
public String getArea() { |
||||
|
return area; |
||||
|
} |
||||
|
|
||||
|
public void setArea(String area) { |
||||
|
this.area = area; |
||||
|
} |
||||
|
|
||||
|
public String getStreet() { |
||||
|
return street; |
||||
|
} |
||||
|
|
||||
|
public void setStreet(String street) { |
||||
|
this.street = street; |
||||
|
} |
||||
|
|
||||
|
public Integer getIsSecrecy() { |
||||
|
return isSecrecy; |
||||
|
} |
||||
|
|
||||
|
public void setIsSecrecy(Integer isSecrecy) { |
||||
|
this.isSecrecy = isSecrecy; |
||||
|
} |
||||
|
|
||||
|
public String getActCode() { |
||||
|
return actCode; |
||||
|
} |
||||
|
|
||||
|
public void setActCode(String actCode) { |
||||
|
this.actCode = actCode; |
||||
|
} |
||||
|
|
||||
|
public Integer getFormUserNature() { |
||||
|
return formUserNature; |
||||
|
} |
||||
|
|
||||
|
public void setFormUserNature(Integer formUserNature) { |
||||
|
this.formUserNature = formUserNature; |
||||
|
} |
||||
|
|
||||
|
public String getThingSubject() { |
||||
|
return thingSubject; |
||||
|
} |
||||
|
|
||||
|
public void setThingSubject(String thingSubject) { |
||||
|
this.thingSubject = thingSubject; |
||||
|
} |
||||
|
|
||||
|
public String getSubjectAddress() { |
||||
|
return subjectAddress; |
||||
|
} |
||||
|
|
||||
|
public void setSubjectAddress(String subjectAddress) { |
||||
|
this.subjectAddress = subjectAddress; |
||||
|
} |
||||
|
|
||||
|
public List<FileData> getFileDatas() { |
||||
|
return fileDatas; |
||||
|
} |
||||
|
|
||||
|
public void setFileDatas(List<FileData> fileDatas) { |
||||
|
this.fileDatas = fileDatas; |
||||
|
} |
||||
|
|
||||
|
public String getOrderCode() { |
||||
|
return orderCode; |
||||
|
} |
||||
|
|
||||
|
public void setOrderCode(String orderCode) { |
||||
|
this.orderCode = orderCode; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
@ -0,0 +1,78 @@ |
|||||
|
package com.zdxt.enforcementcode.domain; |
||||
|
|
||||
|
public class MssqBaseDomain { |
||||
|
|
||||
|
/** |
||||
|
* 认证token |
||||
|
*/ |
||||
|
private String accessToken; |
||||
|
/** |
||||
|
* 分配的appId |
||||
|
*/ |
||||
|
private String appid; |
||||
|
/** |
||||
|
* 请求头携带的appId |
||||
|
*/ |
||||
|
private String gatewayAppId; |
||||
|
/** |
||||
|
* 请求头携带的签名 |
||||
|
*/ |
||||
|
private String gatewaySig; |
||||
|
|
||||
|
/** |
||||
|
* 请求方式 |
||||
|
*/ |
||||
|
private String invokingServiceRequestMethod; |
||||
|
/** |
||||
|
* 请求头携带的当前时间的时间戳 |
||||
|
*/ |
||||
|
private String gatewayRtime; |
||||
|
|
||||
|
public String getAccessToken() { |
||||
|
return accessToken; |
||||
|
} |
||||
|
|
||||
|
public void setAccessToken(String accessToken) { |
||||
|
this.accessToken = accessToken; |
||||
|
} |
||||
|
|
||||
|
public String getAppid() { |
||||
|
return appid; |
||||
|
} |
||||
|
|
||||
|
public void setAppid(String appid) { |
||||
|
this.appid = appid; |
||||
|
} |
||||
|
|
||||
|
public String getGatewayAppId() { |
||||
|
return gatewayAppId; |
||||
|
} |
||||
|
|
||||
|
public void setGatewayAppId(String gatewayAppId) { |
||||
|
this.gatewayAppId = gatewayAppId; |
||||
|
} |
||||
|
|
||||
|
public String getGatewaySig() { |
||||
|
return gatewaySig; |
||||
|
} |
||||
|
|
||||
|
public void setGatewaySig(String gatewaySig) { |
||||
|
this.gatewaySig = gatewaySig; |
||||
|
} |
||||
|
|
||||
|
public String getGatewayRtime() { |
||||
|
return gatewayRtime; |
||||
|
} |
||||
|
|
||||
|
public void setGatewayRtime(String gatewayRtime) { |
||||
|
this.gatewayRtime = gatewayRtime; |
||||
|
} |
||||
|
|
||||
|
public String getInvokingServiceRequestMethod() { |
||||
|
return invokingServiceRequestMethod; |
||||
|
} |
||||
|
|
||||
|
public void setInvokingServiceRequestMethod(String invokingServiceRequestMethod) { |
||||
|
this.invokingServiceRequestMethod = invokingServiceRequestMethod; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,138 @@ |
|||||
|
package com.zdxt.enforcementcode.domain; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = false) |
||||
|
public class MssqOrderFlow { |
||||
|
|
||||
|
/** |
||||
|
* 审批部门 |
||||
|
*/ |
||||
|
private String appOrgName; |
||||
|
|
||||
|
/** |
||||
|
* 审批人名称 |
||||
|
*/ |
||||
|
private String approveUserName; |
||||
|
|
||||
|
/** |
||||
|
* 审批时间 |
||||
|
*/ |
||||
|
private String approveTime; |
||||
|
|
||||
|
/** |
||||
|
* 审批意见 |
||||
|
*/ |
||||
|
private String approveContent; |
||||
|
/** |
||||
|
* 操作类型名 |
||||
|
*/ |
||||
|
private String operName; |
||||
|
|
||||
|
/** |
||||
|
* 状态 |
||||
|
*/ |
||||
|
private Integer state; |
||||
|
|
||||
|
/** |
||||
|
* 文件 |
||||
|
*/ |
||||
|
// private AppFiles appFiles;
|
||||
|
private String appOrgShortname; |
||||
|
|
||||
|
public String getAppOrgName() { |
||||
|
return appOrgName; |
||||
|
} |
||||
|
|
||||
|
public void setAppOrgName(String appOrgName) { |
||||
|
this.appOrgName = appOrgName; |
||||
|
} |
||||
|
|
||||
|
public String getApproveUserName() { |
||||
|
return approveUserName; |
||||
|
} |
||||
|
|
||||
|
public void setApproveUserName(String approveUserName) { |
||||
|
this.approveUserName = approveUserName; |
||||
|
} |
||||
|
|
||||
|
public String getApproveTime() { |
||||
|
return approveTime; |
||||
|
} |
||||
|
|
||||
|
public void setApproveTime(String approveTime) { |
||||
|
this.approveTime = approveTime; |
||||
|
} |
||||
|
|
||||
|
public String getApproveContent() { |
||||
|
return approveContent; |
||||
|
} |
||||
|
|
||||
|
public void setApproveContent(String approveContent) { |
||||
|
this.approveContent = approveContent; |
||||
|
} |
||||
|
|
||||
|
public String getOperName() { |
||||
|
return operName; |
||||
|
} |
||||
|
|
||||
|
public void setOperName(String operName) { |
||||
|
this.operName = operName; |
||||
|
} |
||||
|
|
||||
|
public Integer getState() { |
||||
|
return state; |
||||
|
} |
||||
|
|
||||
|
public void setState(Integer state) { |
||||
|
this.state = state; |
||||
|
} |
||||
|
|
||||
|
// public AppFiles getAppFiles() {
|
||||
|
// return appFiles;
|
||||
|
// }
|
||||
|
//
|
||||
|
// public void setAppFiles(AppFiles appFiles) {
|
||||
|
// this.appFiles = appFiles;
|
||||
|
// }
|
||||
|
|
||||
|
public String getAppOrgShortname() { |
||||
|
return appOrgShortname; |
||||
|
} |
||||
|
|
||||
|
public void setAppOrgShortname(String appOrgShortname) { |
||||
|
this.appOrgShortname = appOrgShortname; |
||||
|
} |
||||
|
|
||||
|
class AppFiles { |
||||
|
/** |
||||
|
* 文件名称 |
||||
|
*/ |
||||
|
private String fileName; |
||||
|
/** |
||||
|
* 文件地址 |
||||
|
*/ |
||||
|
private String fileUrl; |
||||
|
|
||||
|
public String getFileName() { |
||||
|
return fileName; |
||||
|
} |
||||
|
|
||||
|
public void setFileName(String fileName) { |
||||
|
this.fileName = fileName; |
||||
|
} |
||||
|
|
||||
|
public String getFileUrl() { |
||||
|
return fileUrl; |
||||
|
} |
||||
|
|
||||
|
public void setFileUrl(String fileUrl) { |
||||
|
this.fileUrl = fileUrl; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
@ -0,0 +1,22 @@ |
|||||
|
package com.zdxt.enforcementcode.service; |
||||
|
|
||||
|
|
||||
|
import com.zdxt.enforcementcode.domain.ComplaintStatistics; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
public interface ComplaintsReportService { |
||||
|
/** |
||||
|
* 获取投诉举报列表,合并两个投诉表的投诉部门 |
||||
|
* @param complaintStatistics |
||||
|
* @return |
||||
|
*/ |
||||
|
List<ComplaintStatistics> complaintGetComplaintDepartment(ComplaintStatistics complaintStatistics); |
||||
|
|
||||
|
/** |
||||
|
* 根据投诉统计id获取投诉举报详情 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
ComplaintStatistics complaintById(String id); |
||||
|
} |
||||
@ -0,0 +1,78 @@ |
|||||
|
package com.zdxt.enforcementcode.service.impl; |
||||
|
|
||||
|
|
||||
|
import com.zdxt.enforcementcode.domain.ComplaintStatistics; |
||||
|
import com.zdxt.enforcementcode.domain.EnterpriseComplaint; |
||||
|
import com.zdxt.enforcementcode.domain.ZdxtFile; |
||||
|
import com.zdxt.enforcementcode.mapper.ComplaintStatisticsMapper; |
||||
|
import com.zdxt.enforcementcode.mapper.EnterpriseComplaintMapper; |
||||
|
import com.zdxt.enforcementcode.mapper.ZdxtFileMapper; |
||||
|
import com.zdxt.enforcementcode.service.ComplaintsReportService; |
||||
|
import com.zdxt.enforcementcode.service.IEnterpriseComplaintService; |
||||
|
import org.dromara.system.mapper.SysDictDataMapper; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.text.SimpleDateFormat; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
@Service |
||||
|
public class ComplaintsReportServiceImpl implements ComplaintsReportService { |
||||
|
@Autowired |
||||
|
private ComplaintStatisticsMapper complaintStatisticsMapper; |
||||
|
@Autowired |
||||
|
private EnterpriseComplaintMapper enterpriseComplaintMapper; |
||||
|
@Autowired |
||||
|
private ZdxtFileMapper zdxtFileCommonMapper; |
||||
|
@Autowired |
||||
|
private SysDictDataMapper dictDataMapper; |
||||
|
@Autowired |
||||
|
private IEnterpriseComplaintService iEnterpriseComplaintService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 获取投诉部门 |
||||
|
* @param complaintStatistics |
||||
|
* @return |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<ComplaintStatistics> complaintGetComplaintDepartment(ComplaintStatistics complaintStatistics) { |
||||
|
List<ComplaintStatistics> list=complaintStatisticsMapper.complaintGetComplaintDepartment(complaintStatistics); |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 获取投诉信息 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
@Override |
||||
|
public ComplaintStatistics complaintById(String id) { |
||||
|
|
||||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
||||
|
ComplaintStatistics complaintStatistics = complaintStatisticsMapper.complaintGetComplaintDepartmentById(id); |
||||
|
EnterpriseComplaint enterpriseComplaint = enterpriseComplaintMapper.selectEnterpriseComplaintById(complaintStatistics.getCid()); |
||||
|
ZdxtFile zdxtFileCommon = new ZdxtFile(); |
||||
|
zdxtFileCommon.setBusinessId(complaintStatistics.getCid()); |
||||
|
List<ZdxtFile> zdxtFileCommonList = zdxtFileCommonMapper.selectZdxtFileList(zdxtFileCommon); |
||||
|
if (zdxtFileCommonList.size() > 0) { |
||||
|
complaintStatistics.setFileList(zdxtFileCommonList.stream().map(ZdxtFile::getUploadPath).collect(Collectors.toList())); |
||||
|
} |
||||
|
if(enterpriseComplaint.getEnforceType()!=null) { |
||||
|
String enforceTypeText = dictDataMapper.selectDictLabel("caseType", enterpriseComplaint.getEnforceType() + ""); |
||||
|
if (enforceTypeText == null || enforceTypeText.isEmpty()) { |
||||
|
|
||||
|
enterpriseComplaint.setEnforceTypeStr(enterpriseComplaint.getEnforceType() + ""); |
||||
|
} else { |
||||
|
enterpriseComplaint.setEnforceTypeStr(enforceTypeText); |
||||
|
} |
||||
|
}else{ |
||||
|
enterpriseComplaint.setEnforceTypeStr(" "); |
||||
|
} |
||||
|
enterpriseComplaint.setCreateTimeStr(simpleDateFormat.format(enterpriseComplaint.getCreateTime())); |
||||
|
complaintStatistics.setEnterpriseComplaint(enterpriseComplaint); |
||||
|
return complaintStatistics; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue