|
@@ -11,11 +11,7 @@ import cn.cslg.pas.common.utils.CacheUtils;
|
|
|
import cn.cslg.pas.common.utils.LoginUtils;
|
|
|
import cn.cslg.pas.common.vo.business.EventCountVO;
|
|
|
import cn.cslg.pas.common.vo.business.EventVO;
|
|
|
-import cn.cslg.pas.domain.business.AssoEventFile;
|
|
|
-
|
|
|
-import cn.cslg.pas.domain.business.PatentProject;
|
|
|
-import cn.cslg.pas.domain.business.Project;
|
|
|
-import cn.cslg.pas.domain.business.SystemDict;
|
|
|
+import cn.cslg.pas.domain.business.*;
|
|
|
|
|
|
import cn.cslg.pas.exception.XiaoShiException;
|
|
|
import cn.cslg.pas.factorys.businessFactory.Business;
|
|
@@ -79,6 +75,9 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
@Autowired
|
|
|
private ProjectService projectService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AssoProjectEventService assoProjectEventService;
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Object queryMessage(QueryRequest queryRequest) throws Exception {
|
|
@@ -91,7 +90,7 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
Long total = eventMapper.getEventCount(sqls.get(0));
|
|
|
|
|
|
//装载事件信息
|
|
|
- this.loadEvent(eventVOS);
|
|
|
+
|
|
|
Records records = new Records();
|
|
|
records.setCurrent(queryRequest.getCurrent());
|
|
|
records.setSize(queryRequest.getSize());
|
|
@@ -107,6 +106,20 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ *
|
|
|
+ * @param object
|
|
|
+ * @param files
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public Object updateMessage(Object object, List<MultipartFile> files) {
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Object deleteMessage(List<Integer> ids) throws IOException {
|
|
@@ -127,19 +140,6 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 更新事件接口
|
|
|
- *
|
|
|
- * @param object
|
|
|
- * @param files
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- @Transactional(rollbackFor = Exception.class)
|
|
|
- public Object updateMessage(Object object, List<MultipartFile> files) {
|
|
|
-
|
|
|
- return null;
|
|
|
- }
|
|
|
- /**
|
|
|
* 查询事件分组信息
|
|
|
*
|
|
|
* @param groupRequest
|
|
@@ -184,11 +184,14 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public Object addMessage(Object object) {
|
|
|
//TODO 校验参数
|
|
|
- PatentProjectDTO patentProjectDTO =(PatentProjectDTO)object;
|
|
|
+ //1 判断是否选择更新并且上传了cron表达式
|
|
|
+ //2校验必传参数是否上传
|
|
|
|
|
|
//装载project
|
|
|
+ PatentProjectDTO patentProjectDTO =(PatentProjectDTO)object;
|
|
|
Project project = new Project();
|
|
|
BeanUtils.copyProperties(patentProjectDTO,project);
|
|
|
|
|
@@ -196,8 +199,14 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
PatentProject patentProject=new PatentProject();
|
|
|
BeanUtils.copyProperties(patentProjectDTO,patentProject);
|
|
|
|
|
|
- //装载
|
|
|
+ //装载事件与project关联
|
|
|
+ AssoProjectEvent assoProjectEvent =new AssoProjectEvent();
|
|
|
+
|
|
|
+ //装载树结构和project关联
|
|
|
+
|
|
|
|
|
|
+ //装载和附件关联
|
|
|
+ AssoProjectFile assoProjectFile =new AssoProjectFile();
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -211,7 +220,7 @@ public class PatentProjectService extends ServiceImpl<PatentProjectMapper, Paten
|
|
|
*
|
|
|
* @param eventVOs
|
|
|
*/
|
|
|
- private void loadEvent(List<EventVO> eventVOs) throws IOException {
|
|
|
+ private void loadPatentProject(List<EventVO> eventVOs) throws IOException {
|
|
|
List<String> createIds = new ArrayList<>();
|
|
|
List<Integer> clientIds = new ArrayList<>();
|
|
|
List<Integer> ids = new ArrayList<>();
|