|
@@ -23,10 +23,12 @@ import net.mingsoft.people.action.people.PeopleUserAction;
|
|
|
import net.mingsoft.people.action.web.PeopleAction;
|
|
import net.mingsoft.people.action.web.PeopleAction;
|
|
|
import net.mingsoft.people.biz.IPeopleBiz;
|
|
import net.mingsoft.people.biz.IPeopleBiz;
|
|
|
import net.mingsoft.people.entity.PeopleEntity;
|
|
import net.mingsoft.people.entity.PeopleEntity;
|
|
|
|
|
+import net.mingsoft.tf.biz.IExhibitionBiz;
|
|
|
import net.mingsoft.tf.biz.IExhibitorBiz;
|
|
import net.mingsoft.tf.biz.IExhibitorBiz;
|
|
|
import net.mingsoft.tf.biz.IGuestBiz;
|
|
import net.mingsoft.tf.biz.IGuestBiz;
|
|
|
import net.mingsoft.tf.biz.IPeopleExhibitorBiz;
|
|
import net.mingsoft.tf.biz.IPeopleExhibitorBiz;
|
|
|
import net.mingsoft.tf.entity.GuestEntity;
|
|
import net.mingsoft.tf.entity.GuestEntity;
|
|
|
|
|
+import net.mingsoft.tf.wx.dto.ExhibitorInfoResponse;
|
|
|
import net.mingsoft.tf.wx.dto.GuestRequest;
|
|
import net.mingsoft.tf.wx.dto.GuestRequest;
|
|
|
import net.mingsoft.tf.wx.dto.WxCustomUserNamePasswordToken;
|
|
import net.mingsoft.tf.wx.dto.WxCustomUserNamePasswordToken;
|
|
|
import net.mingsoft.tf.wx.dto.WxRegisterRequest;
|
|
import net.mingsoft.tf.wx.dto.WxRegisterRequest;
|
|
@@ -66,6 +68,8 @@ public class WxPeopleAction extends BaseAction {
|
|
|
private IPeopleExhibitorBiz peopleExhibitorBiz;
|
|
private IPeopleExhibitorBiz peopleExhibitorBiz;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IGuestBiz guestBiz;
|
|
private IGuestBiz guestBiz;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IExhibitionBiz exhibitionBiz;
|
|
|
@Value("${wx.appid}")
|
|
@Value("${wx.appid}")
|
|
|
private String appid;
|
|
private String appid;
|
|
|
@Value("${wx.secret}")
|
|
@Value("${wx.secret}")
|
|
@@ -201,4 +205,18 @@ public class WxPeopleAction extends BaseAction {
|
|
|
return ResultData.build().error(
|
|
return ResultData.build().error(
|
|
|
this.getResString("err.error", this.getResString("people.no.exist")));
|
|
this.getResString("err.error", this.getResString("people.no.exist")));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Operation(summary = "微信-展商-详情")
|
|
|
|
|
+ @Parameters({
|
|
|
|
|
+ @Parameter(name = "id", description = "展商海报ID", required = true, in = ParameterIn.QUERY)
|
|
|
|
|
+ })
|
|
|
|
|
+ @GetMapping(value = "/exhibitor/info")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public ResultData exhibitorInfo(String id) {
|
|
|
|
|
+ return Optional.ofNullable(id)
|
|
|
|
|
+ .map(exhibitorBiz::getById)
|
|
|
|
|
+ .map(entity -> new ExhibitorInfoResponse(entity, exhibitionBiz.getById(entity.getExhibitorActivities())))
|
|
|
|
|
+ .map(ResultData.build()::success)
|
|
|
|
|
+ .orElseGet(ResultData.build()::success);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|