| | |
| | | package com.yeshi.fanli.controller.admin.user.cloud;
|
| | |
|
| | | import java.io.PrintWriter;
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.accept.AdminAcceptData;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.yeshi.utils.JsonUtil;
|
| | |
| | | import com.google.gson.Gson;
|
| | | import com.google.gson.GsonBuilder;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloud;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudGoods;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudGroup;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudOrder;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudSendContent;
|
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudSendRecord;
|
| | | import com.yeshi.fanli.entity.system.SystemCoupon.CouponTypeEnum;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.dynamic.GoodsEvaluateService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudGoodsService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudGroupService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudManageService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudOrderService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudSendContentService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudSendRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.cloud.UserCloudService;
|
| | | import com.yeshi.fanli.service.manger.alipay.UserCloudAlipayManager;
|
| | | import com.yeshi.fanli.tag.PageEntity;
|
| | | import com.yeshi.common.entity.PageEntity;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | |
| | | private UserCloudSendRecordService userCloudSendRecordService;
|
| | |
|
| | | @Resource
|
| | | private UserCloudManageService userCloudManageService;
|
| | |
|
| | | @Resource
|
| | | private UserCloudAlipayManager userCloudAlipayManager;
|
| | | |
| | | @Resource
|
| | | private GoodsEvaluateService goodsEvaluateService;
|
| | | |
| | | @Resource
|
| | | private UserCloudSendContentService userCloudSendContentService;
|
| | |
|
| | |
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "queryOrder")
|
| | | public void queryOrder(String callback, Integer pageIndex, Integer pageSize, String key, Integer state, PrintWriter out) {
|
| | | public void queryOrder(AdminAcceptData acceptData, String callback, Integer pageIndex, Integer pageSize, String key, Integer state, PrintWriter out) {
|
| | | try {
|
| | | if (pageIndex == null)
|
| | | pageIndex = 1;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "queryCloud")
|
| | | public void queryCloud(String callback, Integer pageIndex, Integer pageSize, String key, Integer state, PrintWriter out) {
|
| | | public void queryCloud(AdminAcceptData acceptData,String callback, Integer pageIndex, Integer pageSize, String key, Integer state, PrintWriter out) {
|
| | | try {
|
| | | if (pageIndex == null)
|
| | | pageIndex = 1;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "querySendRecord")
|
| | | public void querySendRecord(String callback, Integer pageIndex, Integer pageSize, String key, Integer origin, PrintWriter out) {
|
| | | public void querySendRecord(AdminAcceptData acceptData,String callback, Integer pageIndex, Integer pageSize, String key, Integer origin, PrintWriter out) {
|
| | | try {
|
| | | if (pageIndex == null)
|
| | | pageIndex = 1;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getSendContent")
|
| | | public void getSendContent(String callback, String pid, PrintWriter out) {
|
| | | public void getSendContent(AdminAcceptData acceptData,String callback, String pid, PrintWriter out) {
|
| | | try {
|
| | | List<UserCloudSendContent> list = userCloudSendContentService.getByPid(pid);
|
| | | if (list == null || list.size() == 0) {
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getUserGroups")
|
| | | public void getUserGroups(String callback, Long uid, PrintWriter out) {
|
| | | public void getUserGroups(AdminAcceptData acceptData,String callback, Long uid, PrintWriter out) {
|
| | | try {
|
| | | List<UserCloudGroup> list = userCloudGroupService.listByUid(uid);
|
| | | if (list == null || list.size() == 0) {
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "queryGoodsList")
|
| | | public void queryGoodsList(String callback, Integer pageIndex, Integer pageSize, String key, PrintWriter out) {
|
| | | public void queryGoodsList(AdminAcceptData acceptData,String callback, Integer pageIndex, Integer pageSize, String key, PrintWriter out) {
|
| | | try {
|
| | | if (pageIndex == null)
|
| | | pageIndex = 1;
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "statisticsCloud")
|
| | | public void statisticsCloud(String callback, Long uid, PrintWriter out) {
|
| | | public void statisticsCloud(AdminAcceptData acceptData,String callback, Long uid, PrintWriter out) {
|
| | | try {
|
| | | long orderNum = userCloudOrderService.countOrderRecord(uid, 1);
|
| | | long recordNum = userCloudSendRecordService.countRecordNum(uid, null);
|