36 changed files with 515 additions and 69 deletions
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.evaluationindex.screen.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2020/10/22 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CompartmentByBizTypeFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3354778434424878413L; |
||||
|
|
||||
|
public interface CompartmentByBizType extends CustomerClientShowGroup {} |
||||
|
|
||||
|
/** |
||||
|
* 机关ID |
||||
|
*/ |
||||
|
@NotBlank(message = "机关ID不能为空",groups = {CompartmentByBizType.class}) |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 业务类型 |
||||
|
*/ |
||||
|
@NotBlank(message = "bizType不能为空", groups = {CompartmentByBizType.class}) |
||||
|
private String bizType; |
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.epmet.project.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2020/10/23 10:13 上午 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectDetailResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 2450826789942547426L; |
||||
|
|
||||
|
/** 【事件 = 项目】 |
||||
|
* 事件标题 |
||||
|
*/ |
||||
|
private String eventTitle; |
||||
|
|
||||
|
/** |
||||
|
* 事件内容 |
||||
|
*/ |
||||
|
private String eventContent; |
||||
|
|
||||
|
/** |
||||
|
* 事件来源 |
||||
|
*/ |
||||
|
private String eventSource; |
||||
|
|
||||
|
/** |
||||
|
* 事件图片集合 |
||||
|
*/ |
||||
|
private List<String> imgUrlList; |
||||
|
|
||||
|
/** |
||||
|
* 项目进展 |
||||
|
*/ |
||||
|
private List<ProjectProcessResultDTO> processList; |
||||
|
|
||||
|
public ProjectDetailResultDTO() { |
||||
|
this.eventTitle = ""; |
||||
|
this.eventContent = ""; |
||||
|
this.eventSource = ""; |
||||
|
this.imgUrlList = new ArrayList<>(); |
||||
|
this.processList = new ArrayList<>(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.project.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 项目跟踪-项目处理进展列表-接口返参 |
||||
|
* |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectProcessResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 项目Id |
||||
|
*/ |
||||
|
private String projectId = ""; |
||||
|
|
||||
|
/** |
||||
|
* 项目处理进展Id |
||||
|
*/ |
||||
|
private String processId = ""; |
||||
|
|
||||
|
/** |
||||
|
* 处理进展名称 |
||||
|
*/ |
||||
|
private String processName = ""; |
||||
|
|
||||
|
/** |
||||
|
* 处理进展时间 |
||||
|
*/ |
||||
|
private Long processTime; |
||||
|
|
||||
|
/** |
||||
|
* 处理进展时间 字符串 |
||||
|
*/ |
||||
|
//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
|
//private String processTimeStr;
|
||||
|
|
||||
|
/** |
||||
|
* 处理部门 |
||||
|
*/ |
||||
|
private String departmentName = ""; |
||||
|
|
||||
|
/** |
||||
|
* 公开答复 |
||||
|
*/ |
||||
|
private String publicReply = ""; |
||||
|
|
||||
|
/** |
||||
|
* 内部备注 |
||||
|
*/ |
||||
|
private String internalRemark = ""; |
||||
|
|
||||
|
|
||||
|
} |
@ -1,13 +1,11 @@ |
|||||
package com.epmet.datareport.service.backdoor; |
package com.epmet.datareport.service.backdoor; |
||||
|
|
||||
import com.epmet.commons.tools.utils.Result; |
|
||||
|
|
||||
/** |
/** |
||||
* @Author zxc |
* @Author zxc |
||||
* @DateTime 2020/10/21 5:17 下午 |
* @DateTime 2020/10/21 5:17 下午 |
||||
*/ |
*/ |
||||
public interface BackDoorService { |
public interface BackDoorService { |
||||
|
|
||||
Object backDoor(String dataType, String appId, String target, Object o); |
Object redirect(String dataType, String appId, String target, Object o,String env); |
||||
|
|
||||
} |
} |
||||
|
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.datareport.service.evaluationindex.screen; |
||||
|
|
||||
|
import com.epmet.dto.form.ProcessListFormDTO; |
||||
|
import com.epmet.project.dto.result.ProjectDetailResultDTO; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2020/10/23 1:26 下午 |
||||
|
*/ |
||||
|
public interface ScreenDifficultyDataService { |
||||
|
|
||||
|
ProjectDetailResultDTO projectDetail(ProcessListFormDTO processListFormDTO); |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.datareport.service.evaluationindex.screen.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.constant.DataSourceConstant; |
||||
|
import com.epmet.datareport.dao.evaluationindex.screen.ScreenDifficultyDataDao; |
||||
|
import com.epmet.datareport.service.evaluationindex.screen.ScreenDifficultyDataService; |
||||
|
import com.epmet.dto.form.ProcessListFormDTO; |
||||
|
import com.epmet.project.dto.result.ProjectDetailResultDTO; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2020/10/23 1:26 下午 |
||||
|
*/ |
||||
|
@Service |
||||
|
@Slf4j |
||||
|
@DataSource(DataSourceConstant.EVALUATION_INDEX) |
||||
|
public class ScreenDifficultyDataServiceImpl implements ScreenDifficultyDataService { |
||||
|
|
||||
|
@Autowired |
||||
|
private ScreenDifficultyDataDao screenDifficultyDataDao; |
||||
|
|
||||
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
||||
|
@Override |
||||
|
public ProjectDetailResultDTO projectDetail(ProcessListFormDTO processListFormDTO) { |
||||
|
ProjectDetailResultDTO projectDetailResultDTO = screenDifficultyDataDao.projectDetail(processListFormDTO.getProjectId()); |
||||
|
return projectDetailResultDTO; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue