|
@@ -7,6 +7,7 @@ import com.jeeplus.common.config.Global;
|
|
|
import com.jeeplus.common.utils.StringUtils;
|
|
|
import com.jeeplus.common.web.BaseController;
|
|
|
import com.jeeplus.modules.projectAccessory.entity.ProjectAccessoryRelationInfo;
|
|
|
+import com.jeeplus.modules.projectAccessory.entity.ProjectTemplateInfo;
|
|
|
import com.jeeplus.modules.projectAccessory.service.ProjectAccessoryRelationService;
|
|
|
import com.jeeplus.modules.projectAccessory.service.ProjectTemplateService;
|
|
|
import com.jeeplus.modules.sys.dao.MainDictDetailDao;
|
|
@@ -98,7 +99,10 @@ public class ProjectAccessoryRelationController extends BaseController {
|
|
|
public String form(ProjectAccessoryRelationInfo projectAccessoryRelationInfo, Model model) {
|
|
|
//修改
|
|
|
if(StringUtils.isNotBlank(projectAccessoryRelationInfo.getId())){
|
|
|
- projectAccessoryRelationInfo.setProjectTemplateList(projectTemplateService.getProjectTemplateListById(projectAccessoryRelationInfo.getAttachType(), projectAccessoryRelationInfo.getProjectType(),projectAccessoryRelationInfo.getId()));
|
|
|
+ List<ProjectTemplateInfo> projectTemplateList = projectTemplateService.getProjectTemplateListByForm(projectAccessoryRelationInfo);
|
|
|
+ ProjectTemplateInfo info = projectTemplateService.get(projectAccessoryRelationInfo.getAttachId());
|
|
|
+ projectTemplateList.add(info);
|
|
|
+ projectAccessoryRelationInfo.setProjectTemplateList(projectTemplateList);
|
|
|
|
|
|
} else if(StringUtils.isNotBlank(projectAccessoryRelationInfo.getParentIds())) {
|
|
|
//新增
|