|
@@ -9,6 +9,7 @@ import com.caimei.modules.common.entity.City;
|
|
|
import com.caimei.modules.common.entity.Province;
|
|
|
import com.caimei.modules.common.entity.Town;
|
|
|
import com.caimei.modules.weisha.dao.CmOrganizeStoreDao;
|
|
|
+import com.caimei.modules.weisha.entity.CmOrganizeOperate;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.Model;
|
|
@@ -142,22 +143,36 @@ public class CmOrganizeStoreController extends BaseController {
|
|
|
return "redirect:" + Global.getAdminPath() + "/weisha/cmOrganizeStore/?repage";
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 解除绑定微信
|
|
|
- * @param id
|
|
|
- * @param organizeId
|
|
|
- * @param clubId
|
|
|
- * @param redirectAttributes
|
|
|
- * @return
|
|
|
- */
|
|
|
- @RequestMapping("/outWx")
|
|
|
- public String outWx(Integer id, Integer organizeId, Integer clubId, RedirectAttributes redirectAttributes) {
|
|
|
- if(null == id) {
|
|
|
- addMessage(redirectAttributes, "id为空,微信绑定解除失败");
|
|
|
- return "redirect:"+Global.getAdminPath()+"/weisha/cmOrganizeStore/getOperate?organizeId="+organizeId+"&clubId="+clubId;
|
|
|
- }
|
|
|
- cmOrganizeStoreService.outWx(id);
|
|
|
- addMessage(redirectAttributes, "微信绑定解除成功");
|
|
|
- return "redirect:"+Global.getAdminPath()+"/weisha/cmOrganizeStore/getOperate?organizeId="+organizeId+"&clubId="+clubId;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 查看运营人员
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/getOperate")
|
|
|
+ public String getOperate(CmOrganizeOperate cmOrganizeOperate, Model model, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ Page<CmOrganizeOperate> operatePage = cmOrganizeStoreService.findOperatePage(new Page<CmOrganizeOperate>(request, response), cmOrganizeOperate);
|
|
|
+ String clubName = cmOrganizeStoreDao.getClubName(cmOrganizeOperate.getClubId());
|
|
|
+ model.addAttribute("cmOrganizeOperate", cmOrganizeOperate);
|
|
|
+ model.addAttribute("page", operatePage);
|
|
|
+ model.addAttribute("clubName", clubName);
|
|
|
+ return "modules/weisha/cmOrganizeOperate";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 解除绑定微信
|
|
|
+ * @param id
|
|
|
+ * @param organizeId
|
|
|
+ * @param clubId
|
|
|
+ * @param redirectAttributes
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/outWx")
|
|
|
+ public String outWx(Integer id, Integer organizeId, Integer clubId, RedirectAttributes redirectAttributes) {
|
|
|
+ if(null == id) {
|
|
|
+ addMessage(redirectAttributes, "id为空,微信绑定解除失败");
|
|
|
+ return "redirect:"+Global.getAdminPath()+"/weisha/cmOrganizeStore/getOperate?organizeId="+organizeId+"&clubId="+clubId;
|
|
|
+ }
|
|
|
+ cmOrganizeStoreService.outWx(id);
|
|
|
+ addMessage(redirectAttributes, "微信绑定解除成功");
|
|
|
+ return "redirect:"+Global.getAdminPath()+"/weisha/cmOrganizeStore/getOperate?organizeId="+organizeId+"&clubId="+clubId;
|
|
|
+ }
|
|
|
}
|