|
|
@@ -16,10 +16,16 @@
|
|
|
*/
|
|
|
package org.springblade.sing.active.wrapper;
|
|
|
|
|
|
+import org.springblade.common.utils.SpringContextHolder;
|
|
|
import org.springblade.core.mp.support.BaseEntityWrapper;
|
|
|
import org.springblade.core.tool.utils.BeanUtil;
|
|
|
+import org.springblade.core.tool.utils.ObjectUtil;
|
|
|
import org.springblade.sing.active.entity.ActiveHelp;
|
|
|
+import org.springblade.sing.active.entity.ActiveRecord;
|
|
|
+import org.springblade.sing.active.service.IActiveRecordService;
|
|
|
import org.springblade.sing.active.vo.ActiveHelpVO;
|
|
|
+import org.springblade.sing.user.service.ILoginUserService;
|
|
|
+
|
|
|
import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
@@ -30,6 +36,7 @@ import java.util.Objects;
|
|
|
*/
|
|
|
public class ActiveHelpWrapper extends BaseEntityWrapper<ActiveHelp, ActiveHelpVO> {
|
|
|
|
|
|
+ private static final IActiveRecordService activeRecordService = SpringContextHolder.getBean(IActiveRecordService.class);
|
|
|
public static ActiveHelpWrapper build() {
|
|
|
return new ActiveHelpWrapper();
|
|
|
}
|
|
|
@@ -43,6 +50,11 @@ public class ActiveHelpWrapper extends BaseEntityWrapper<ActiveHelp, ActiveHelpV
|
|
|
//activeHelpVO.setCreateUserName(createUser.getName());
|
|
|
//activeHelpVO.setUpdateUserName(updateUser.getName());
|
|
|
|
|
|
+ ActiveRecord activeRecord = activeRecordService.getById(activeHelp.getActiveId());
|
|
|
+ if (ObjectUtil.isNotEmpty(activeRecord)){
|
|
|
+ activeHelpVO.setActiveName(activeRecord.getTitle());
|
|
|
+ }
|
|
|
+
|
|
|
return activeHelpVO;
|
|
|
}
|
|
|
|