审批+待办交互修改版本3.3(零部件树新增TC)
This commit is contained in:
parent
6594fdcf1a
commit
47f5e9df7f
@ -33,8 +33,8 @@ public class EngineParamDetailController {
|
||||
|
||||
//参数列表查询
|
||||
@GetMapping("/selectParamList")
|
||||
public Response selectParamList(@RequestParam(value = "modelID", required = false) String modelID) {
|
||||
Map<String, List<String>> list = engineParamDetailService.selectParamList(modelID);
|
||||
public Response selectParamList(@RequestParam(value = "modelID", required = false) String modelID,@RequestParam(value = "tcData", required = false) String tcData) {
|
||||
Map<String, List<String>> list = engineParamDetailService.selectParamList(modelID,tcData);
|
||||
return Response.ok().data(list);
|
||||
}
|
||||
//参数列表查询
|
||||
|
||||
@ -23,7 +23,7 @@ import java.util.Map;
|
||||
public interface EngineParamDetailService {
|
||||
|
||||
|
||||
HashMap<String, List<String>> selectParamList(String modelID);
|
||||
HashMap<String, List<String>> selectParamList(String modelID,String tcData);
|
||||
|
||||
void excelImport(MultipartFile file,String modelId);
|
||||
|
||||
|
||||
@ -78,8 +78,13 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public HashMap<String, List<String>> selectParamList(String modelID) {
|
||||
List<Parameter> parameters = selectAllByNewVersion();
|
||||
public HashMap<String, List<String>> selectParamList(String modelID, String tcData) {
|
||||
List<Parameter> parameters = new ArrayList<>();
|
||||
if (ObjectUtils.isNotEmpty(tcData) && "tc".equals(tcData)) {
|
||||
parameters = selectAllAndTcByNewVersion();
|
||||
} else {
|
||||
parameters = selectAllByNewVersion();
|
||||
}
|
||||
|
||||
List<Template> templates =
|
||||
sw.buildFromDatasource("xdap_app_223770822127386625")
|
||||
@ -175,7 +180,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
HashMap<String, HashMap<String, List<String>>> map = new HashMap<>();
|
||||
DataEntryEngineModelPojo dataEntryEngineModelPojo = dataEntryEngineModelService.selectBymodelId(modelID);
|
||||
String s = dataEntryEngineModelPojo.getProductNumber();
|
||||
HashMap<String, List<String>> stringListMap = selectParamList(modelID);
|
||||
HashMap<String, List<String>> stringListMap = selectParamList(modelID,null);
|
||||
map.put(s, stringListMap);
|
||||
return map;
|
||||
}
|
||||
@ -464,7 +469,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
//新增这个人的已办
|
||||
CompletedTaskPojo completedTaskPojo = new CompletedTaskPojo();
|
||||
BeanUtils.copyProperties(todoTaskPojo, completedTaskPojo);
|
||||
completedTaskPojo.setId(UUID.randomUUID().toString().replaceAll("-",""));
|
||||
completedTaskPojo.setId(UUID.randomUUID().toString().replaceAll("-", ""));
|
||||
completedTaskPojo.setDocumentNo(todoTaskPojo.getDocumentNo());
|
||||
completedTaskPojo.setCreationDate(Timestamp.valueOf(LocalDateTime.now()));
|
||||
completedTaskPojo.setIsDelete(0);
|
||||
@ -596,7 +601,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
//新增这个人的已办
|
||||
CompletedTaskPojo completedTaskPojo = new CompletedTaskPojo();
|
||||
BeanUtils.copyProperties(todoTaskPojo, completedTaskPojo);
|
||||
completedTaskPojo.setId(UUID.randomUUID().toString().replaceAll("-",""));
|
||||
completedTaskPojo.setId(UUID.randomUUID().toString().replaceAll("-", ""));
|
||||
completedTaskPojo.setDocumentNo(todoTaskPojo.getDocumentNo());
|
||||
completedTaskPojo.setCreationDate(Timestamp.valueOf(LocalDateTime.now()));
|
||||
completedTaskPojo.setIsDelete(0);
|
||||
@ -616,6 +621,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
public void batchInsertTodoTask(List<TodoTaskPojo> todoTaskPojos) {
|
||||
sw.buildFromDatasource("xdap_app_223770822127386625").doBatchInsert(todoTaskPojos);
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class) // 发生任何异常都回滚
|
||||
public void batchInsertInitiatedTask(List<InitiatedTaskPojo> taskPojos) {
|
||||
sw.buildFromDatasource("xdap_app_223770822127386625").doBatchInsert(taskPojos);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user